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 +4 -4
- data/lib/dumper/profiles/yande.rb +4 -3
- data/lib/dumper/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c127bb6d9524db6431b204aee932e5ad3b4ed31
|
4
|
+
data.tar.gz: 6e5972628f2297f9e43f28961ee379a21408096d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09fe44cb40cd45ef97e1c3f62501e937b8b16d8026ba0eeb12ecd55b2e6c304f75d11fc43c413a004c365ee8095d6309c5efa52001ac1b678df10275cf7830a7
|
7
|
+
data.tar.gz: be74e8428f3158e03e63564a4cf3da30858bcfc2ce78d6c4f2c7f9b37b3432bb46266028df73d42e251eb8e496167e3915f2ac142b2711ebbe7e4186f84d0cb9
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright(C)
|
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
|
-
|
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
|
data/lib/dumper/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright(C)
|
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.
|
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.
|
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-
|
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.
|
275
|
+
rubygems_version: 2.5.1
|
276
276
|
signing_key:
|
277
277
|
specification_version: 4
|
278
278
|
summary: Fetch and download image gallery.
|