worochi 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/worochi/agent.rb +3 -1
- data/lib/worochi/item.rb +2 -3
- data/lib/worochi/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: cce39cd9277050e3451d8d35daede2f368a727be
|
4
|
+
data.tar.gz: e52e6e4945fe58482ef1c02fead726bb4a6833ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c242f31a7b52a55721c6c74ec95344167644a85cf08c8cbcc4241a9d2588ac9b6285851c55518dd225a33615f957b8d957fd03e9fdfd904020458a3f898928c0
|
7
|
+
data.tar.gz: 0504e9ba2d5906d8e7883c3e3df4a388d8f29d859590c73d71b45209e4ed1042e4861d0ab0ce6e5a4535d59c227ffcc5d9688e9c8f26b12efdfc1e9800392a18
|
data/lib/worochi/agent.rb
CHANGED
@@ -98,7 +98,9 @@ class Worochi
|
|
98
98
|
# @return [Hash] the updated options
|
99
99
|
def set_options(opts={})
|
100
100
|
self.options ||= default_options
|
101
|
-
|
101
|
+
sym_opts = {}
|
102
|
+
opts.each { |k, v| sym_opts[k.to_sym] = v }
|
103
|
+
options.merge!(sym_opts)
|
102
104
|
end
|
103
105
|
|
104
106
|
# Sets the remote target directory path. This is the same as modifying
|
data/lib/worochi/item.rb
CHANGED
@@ -83,8 +83,8 @@ class Worochi
|
|
83
83
|
# @return [Item] the file item
|
84
84
|
def open_single(entry)
|
85
85
|
if entry.kind_of?(Hash)
|
86
|
-
source = entry[:source]
|
87
|
-
path = entry[:path]
|
86
|
+
source = entry[:source] || entry['source']
|
87
|
+
path = entry[:path] || entry['path']
|
88
88
|
else
|
89
89
|
source = entry
|
90
90
|
end
|
@@ -123,7 +123,6 @@ class Worochi
|
|
123
123
|
# @param file_url [String, URI] the URL of the file
|
124
124
|
# @return [Tempfile] the downloaded file
|
125
125
|
def retrieve_remote(file_url)
|
126
|
-
Worochi::Log.debug file_url.class
|
127
126
|
uri = URI(file_url)
|
128
127
|
Worochi::Log.debug 'GET: ' + uri.to_s
|
129
128
|
|
data/lib/worochi/version.rb
CHANGED