title: Warning message with Nokogiri and Open-Uri
body: <p>Hello I have an error message which is the following :</p>
  <p>warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open</p>
  <p>I don't understand why there is this message, I also tried the URI.open (&quot;link&quot;) command. Read</p>
  <p>But I have to use Nokogiri.</p>
  <p>Here is my code:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>require 'nokogiri'
  require 'open-uri'
  
  
  puts "Wait a second data is coming..."
  
  
  PAGE_URL = "https://coinmarketcap.com/all/views/all/"
  
  page = Nokogiri::HTML(open(PAGE_URL))
  
  
  currency_name_array = page.xpath("//tr/td/a[contains(@class, 'currency-name-container')]/text()").map {|x| x.to_s }
  
  currency_value_array = page.xpath("//tr/td/a[contains(@class, 'price')]/text()").map {|x| x.to_s }
  
  
  currency_result = Hash[currency_name_array.zip(currency_value_array)]
  
  puts currency_result</code></pre>
  </div>
  </div>
  </p>
  <p>Thanks in advance.</p>