worochi 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eec2ad00b82cef69907140bb1c3c916affa20c9
4
- data.tar.gz: fd48f47ecd38e5e6ff030f707581f6cf69a66f34
3
+ metadata.gz: cce39cd9277050e3451d8d35daede2f368a727be
4
+ data.tar.gz: e52e6e4945fe58482ef1c02fead726bb4a6833ba
5
5
  SHA512:
6
- metadata.gz: 7418a185c4066ccc90024d45975788b2ebbdadeae79570aea06994932f2cdf29c0b7f526ade3ab565458b9e4567423eebf5123d8fd4343024e43944279556c85
7
- data.tar.gz: d5863d2f999f541f44031b63647ee7ac773ab60069550920967fd097f42f9934ea8965258a828bc0d7bd91d8c2d291f141db931b1bd5448c91b09d8cbbd72197
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
- options.merge!(opts)
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
 
@@ -1,4 +1,4 @@
1
1
  class Worochi
2
2
  # Current version of the gem
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worochi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raven Jiang