page_by_page 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c96552a7455f5395239cef9f555ecba50b2fe8f6
4
- data.tar.gz: e3415ab5619370a7a344cb39834d884d605eaedb
3
+ metadata.gz: b0f56c80bdb70ae4aef3c770e9c0fb0554a2bad2
4
+ data.tar.gz: 2bdb85e741a4de3c5d109fc6539f548e2d8f48d3
5
5
  SHA512:
6
- metadata.gz: 8ef3e5d85b79c37c2e9c3a5b2319f9cb5036ba6632799f4241ba426fd21cf032015b2ae2d283abdd0805175a99a99834e12686824ce202c3ddf4d4ffd79533b2
7
- data.tar.gz: 77ed820bd3e4ece113c752993b1076a992c7e18e80d003d4bd175ae1f70e3387e8ec70fa77af6dd9366b5e03c0c1bb963d0b1038c32443b8526b255006bf0df0
6
+ metadata.gz: 510c3c2a34d8de3940659c798aa15758c62fd3bd7311fd14c3a09f77f0f9c9c4e4fd6fe19dfb992947e1ba07ecffc70605a82de747d8e95aa6a7ed74f76fb839
7
+ data.tar.gz: 8c6ba45664bcdfe832ccd41017a27710cef380cf86c3dd77440cae0c27ecf57f38340af0df819a8fe7569fa60f308cdda6f9c00a4aa4e756bcef55ca2fa39a88
@@ -1,3 +1,3 @@
1
1
  class PageByPage
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
data/lib/page_by_page.rb CHANGED
@@ -55,7 +55,8 @@ class PageByPage
55
55
  private
56
56
 
57
57
  def parse url
58
- Nokogiri::HTML open url
58
+ page = open(url)
59
+ Nokogiri::HTML page.read
59
60
  rescue OpenURI::HTTPError => e
60
61
  if e.message == '404 Not Found'
61
62
  throw :no_more
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: page_by_page
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken