rack_fake_s3 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ require 'rack_fake_s3/bucket'
5
5
  require 'rack_fake_s3/rate_limitable_file'
6
6
  require 'digest/md5'
7
7
  require 'yaml'
8
+ require 'uri'
8
9
 
9
10
  module RackFakeS3
10
11
  class FileStore
@@ -80,6 +81,7 @@ module RackFakeS3
80
81
  def get_object(bucket,object_name, request)
81
82
  begin
82
83
  real_obj = S3Object.new
84
+ object_name = URI.decode(object_name)
83
85
  obj_root = File.join(@root,bucket,object_name,SHUCK_METADATA_DIR)
84
86
  metadata = YAML.load(File.open(File.join(obj_root,"metadata"),'rb'))
85
87
  real_obj.name = object_name
@@ -1,3 +1,3 @@
1
1
  module RackFakeS3
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_fake_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-12-19 00:00:00.000000000 Z
12
+ date: 2012-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler