image-dumper 0.8.2 → 0.8.3

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: 2c127bb6d9524db6431b204aee932e5ad3b4ed31
4
- data.tar.gz: 6e5972628f2297f9e43f28961ee379a21408096d
3
+ metadata.gz: 7d9b1ddab894fca19619178faebbf143c6b73e11
4
+ data.tar.gz: 806c1522ab4d1bd445fa576f7901dbefdc5cb071
5
5
  SHA512:
6
- metadata.gz: 09fe44cb40cd45ef97e1c3f62501e937b8b16d8026ba0eeb12ecd55b2e6c304f75d11fc43c413a004c365ee8095d6309c5efa52001ac1b678df10275cf7830a7
7
- data.tar.gz: be74e8428f3158e03e63564a4cf3da30858bcfc2ce78d6c4f2c7f9b37b3432bb46266028df73d42e251eb8e496167e3915f2ac142b2711ebbe7e4186f84d0cb9
6
+ metadata.gz: 55773153cbc02d2859b78d08727edfbdfa83fae16605a9c5c505f393fa2b07d1c138b3c5125701ca94bd3f393eaf6adcc1d8c1a3ce8b80d100b2fa507b941c2e
7
+ data.tar.gz: 1f3126eb47e9de2ca8730774fb69ebdf945fc49d1907c0b44e7e4a0b6920a05a8e8490cccad5d4092001527337c6249031906f55adc8709b84308e792153db3d
@@ -27,8 +27,10 @@ module Dumper
27
27
 
28
28
  Nokogiri::HTML(open("#{url}&page=#{i}", 'User-Agent' => Dumper::USER_AGENT, 'Referer' => url)).xpath('//a[@class="thumb"]/@href').each { |p|
29
29
  @pool.process {
30
- img_url = 'https://' + URI.parse(url).hostname + p
31
- img = Nokogiri::HTML(open(img_url, 'User-Agent' => Dumper::USER_AGENT, 'Referer' => url)).at_xpath('//img[@id="image"]/@src').text
30
+ img = Nokogiri::HTML(open('https://' + URI.parse(url).hostname + p,
31
+ 'User-Agent' => Dumper::USER_AGENT,
32
+ 'Referer' => url
33
+ )).at_xpath('//a[@class="original-file-unchanged"]/@href').text
32
34
  Dumper.get path, img, { referer: url }
33
35
  }
34
36
  }
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Dumper
21
21
  def self.version
22
- '0.8.2'
22
+ '0.8.3'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image-dumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
@@ -254,7 +254,7 @@ files:
254
254
  - spec/yande_spec.rb
255
255
  homepage: https://github.com/RoxasShadow
256
256
  licenses:
257
- - GPL-3
257
+ - GPL-3.0
258
258
  metadata: {}
259
259
  post_install_message:
260
260
  rdoc_options: []