image-dumper 0.5.4.1 → 0.5.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dumper +7 -5
- data/lib/dumper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6974ffcabb5cb92bf8ec7dcbaec484fb60cbdc32
|
4
|
+
data.tar.gz: 606411203e58de11b818edb1eef79c529b59db16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 951420ac28177f8293f3cc24fdad249597adb48c4b7c9c4dee3ca3d9cb68550b33a1c802659ebc0b2047dcd231eaa5076f4f002b3216388211ebacab92a00bd0
|
7
|
+
data.tar.gz: 18340f6fb9b924251a4967056768a8bdf8f8f39bcb20c069d8d4144bd26e8251d33eba912eedd8496a05dca85e62006493a95aa856fd8cb5c1875d0050a00ad3
|
data/bin/dumper
CHANGED
@@ -23,10 +23,8 @@ require 'dumper'
|
|
23
23
|
options = {}
|
24
24
|
|
25
25
|
OptionParser.new do |o|
|
26
|
-
options[:url]
|
27
|
-
options[:path]
|
28
|
-
options[:from] = nil
|
29
|
-
options[:to] = nil
|
26
|
+
options[:url] = []
|
27
|
+
options[:path] = []
|
30
28
|
|
31
29
|
o.on '-l', '--list', 'Show available profiles' do
|
32
30
|
abort 'Profiles available:'.tap { |s|
|
@@ -91,7 +89,11 @@ options[:url].each_with_index { |url, i|
|
|
91
89
|
|
92
90
|
if Dumper::Profiles::list.include? host.gsub(?-, ?_)
|
93
91
|
method = ('get_' + host.gsub(?-, ?_)).to_sym
|
94
|
-
|
92
|
+
if options.include?(:from) && options.include?(:to)
|
93
|
+
Dumper::Profiles::send method, url, options[:path][i], options[:from], options[:to]
|
94
|
+
else
|
95
|
+
Dumper::Profiles::send method, url, options[:path][i]
|
96
|
+
end
|
95
97
|
else
|
96
98
|
Dumper::Profiles::get_generic url, options[:path][i], options[:xpath]
|
97
99
|
end
|
data/lib/dumper/version.rb
CHANGED