image-dumper 0.8.1 → 0.8.2

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: 12d3301c218c09fcec831ff6832942c9d93b73aa
4
- data.tar.gz: 4c239ac8eeda72d0fdd3fc6852e714076b944588
3
+ metadata.gz: 2c127bb6d9524db6431b204aee932e5ad3b4ed31
4
+ data.tar.gz: 6e5972628f2297f9e43f28961ee379a21408096d
5
5
  SHA512:
6
- metadata.gz: 6e65b8aa9c92a449af61973d00311e3a6b31721f7a615ac05fc4954d99a18131cf92cc467970ddcb77f9bf635804b2a8cf9d2ae860f93331a45414f1ac20357c
7
- data.tar.gz: dc9f55a321f92725878118febc95acefe1c9d986acbba581d33e7ef637adf3369d8698a97bc333b8c8245ec03ecdcc4833f3c5545b5c81f63625a70faa6b6a59
6
+ metadata.gz: 09fe44cb40cd45ef97e1c3f62501e937b8b16d8026ba0eeb12ecd55b2e6c304f75d11fc43c413a004c365ee8095d6309c5efa52001ac1b678df10275cf7830a7
7
+ data.tar.gz: be74e8428f3158e03e63564a4cf3da30858bcfc2ce78d6c4f2c7f9b37b3432bb46266028df73d42e251eb8e496167e3915f2ac142b2711ebbe7e4186f84d0cb9
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright(C) 2013 Giovanni Capuano <webmaster@giovannicapuano.net>
2
+ # Copyright(C) 2015 Giovanni Capuano <webmaster@giovannicapuano.net>
3
3
  #
4
4
  # This file is part of Dumper.
5
5
  #
@@ -27,7 +27,8 @@ 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 = Nokogiri::HTML(open("https://yande.re#{p}", 'User-Agent' => Dumper::USER_AGENT, 'Referer' => url)).at_xpath('//img[@id="image"]/@src').text
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
31
32
  Dumper.get path, img, { referer: url }
32
33
  }
33
34
  }
@@ -49,4 +50,4 @@ module Dumper
49
50
  end
50
51
 
51
52
  end
52
- end
53
+ end
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright(C) 2013 Giovanni Capuano <webmaster@giovannicapuano.net>
2
+ # Copyright(C) 2015 Giovanni Capuano <webmaster@giovannicapuano.net>
3
3
  #
4
4
  # This file is part of Dumper.
5
5
  #
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Dumper
21
21
  def self.version
22
- '0.8.1'
22
+ '0.8.2'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image-dumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-20 00:00:00.000000000 Z
11
+ date: 2015-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -272,7 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
272
  version: '0'
273
273
  requirements: []
274
274
  rubyforge_project:
275
- rubygems_version: 2.4.5
275
+ rubygems_version: 2.5.1
276
276
  signing_key:
277
277
  specification_version: 4
278
278
  summary: Fetch and download image gallery.