scrapzirra 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,9 @@ module Scrapzirra
15
15
  require 'nokogiri'
16
16
  require 'open-uri'
17
17
 
18
- @doc = Nokogiri::HTML(open(@url))
18
+ @doc = Nokogiri::HTML(open(@url).read)
19
+ @doc.encoding = 'utf-8'
20
+ @doc
19
21
  rescue
20
22
  @doc = Nokogiri::HTML::Document.parse('No data')
21
23
  end
@@ -1,3 +1,3 @@
1
1
  module Scrapzirra
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: scrapzirra
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tomasz Tokarski