remote_files 1.3.4 → 1.4.0
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.
@@ -121,9 +121,9 @@ module RemoteFiles
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
-
def file_from_url(url)
|
124
|
+
def file_from_url(url, options = {})
|
125
125
|
stores.each do |store|
|
126
|
-
file = store.file_from_url(url, :configuration => name)
|
126
|
+
file = store.file_from_url(url, options.merge(:configuration => name))
|
127
127
|
return file if file
|
128
128
|
end
|
129
129
|
end
|
data/lib/remote_files/version.rb
CHANGED
data/test/configuration_test.rb
CHANGED
@@ -202,7 +202,7 @@ describe RemoteFiles::Configuration do
|
|
202
202
|
|
203
203
|
describe '#file_from_url' do
|
204
204
|
before do
|
205
|
-
@file = @configuration.file_from_url('memory://mock2/foo%40bar')
|
205
|
+
@file = @configuration.file_from_url('memory://mock2/foo%40bar', :foo => :bar)
|
206
206
|
assert @file
|
207
207
|
end
|
208
208
|
|
@@ -213,6 +213,10 @@ describe RemoteFiles::Configuration do
|
|
213
213
|
it 'should return a file from this configuration' do
|
214
214
|
@file.configuration.must_equal @configuration
|
215
215
|
end
|
216
|
+
|
217
|
+
it 'should pass on options' do
|
218
|
+
@file.options[:foo].must_equal :bar
|
219
|
+
end
|
216
220
|
end
|
217
221
|
|
218
222
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog
|
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
segments:
|
150
150
|
- 0
|
151
|
-
hash: -
|
151
|
+
hash: -1309416763629715964
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
segments:
|
159
159
|
- 0
|
160
|
-
hash: -
|
160
|
+
hash: -1309416763629715964
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
163
|
rubygems_version: 1.8.24
|