remote_files 1.3.2 → 1.3.3

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.
@@ -39,7 +39,7 @@ module RemoteFiles
39
39
 
40
40
  return nil unless matched
41
41
 
42
- file_identifier = matched[1]
42
+ file_identifier = CGI.unescape(matched[1])
43
43
 
44
44
  RemoteFiles::File.new(file_identifier, options.merge(:stored_in => [identifier]))
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module RemoteFiles
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.3'
3
3
  end
@@ -176,10 +176,17 @@ describe RemoteFiles::Configuration do
176
176
  end
177
177
 
178
178
  describe '#file_from_url' do
179
+ before do
180
+ @file = @configuration.file_from_url('memory://mock2/foo%40bar')
181
+ assert @file
182
+ end
183
+
184
+ it 'should unescape the identifier' do
185
+ @file.identifier.must_equal "foo@bar"
186
+ end
187
+
179
188
  it 'should return a file from this configuration' do
180
- file = @configuration.file_from_url('memory://mock2/foo')
181
- assert file
182
- file.configuration.must_equal @configuration
189
+ @file.configuration.must_equal @configuration
183
190
  end
184
191
  end
185
192
 
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.3.2
4
+ version: 1.3.3
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-11 00:00:00.000000000 Z
12
+ date: 2012-10-15 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: 2988257809019653015
151
+ hash: -3612222537816062651
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: 2988257809019653015
160
+ hash: -3612222537816062651
161
161
  requirements: []
162
162
  rubyforge_project:
163
163
  rubygems_version: 1.8.24