aws-s3 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -3
- data/Rakefile +1 -1
- data/lib/aws/s3/acl.rb +1 -1
- data/lib/aws/s3/extensions.rb +1 -1
- data/lib/aws/s3/object.rb +3 -3
- data/lib/aws/s3/owner.rb +1 -1
- data/lib/aws/s3/version.rb +1 -1
- metadata +6 -3
data/README
CHANGED
@@ -227,10 +227,10 @@ That metadata will be saved in S3 and is hence forth available from that object:
|
|
227
227
|
pp song.metadata
|
228
228
|
{"x-amz-meta-released" => "2005",
|
229
229
|
"x-amz-meta-album" => "A River Ain't Too Much To Love"}
|
230
|
-
song.
|
230
|
+
song.metadata[:released]
|
231
231
|
# => "2005"
|
232
|
-
song.
|
233
|
-
pp song.
|
232
|
+
song.metadata[:released] = 2006
|
233
|
+
pp song.metadata
|
234
234
|
{"x-amz-meta-released" => 2006,
|
235
235
|
"x-amz-meta-album" => "A River Ain't Too Much To Love"}
|
236
236
|
|
data/Rakefile
CHANGED
@@ -151,7 +151,7 @@ namespace :dist do
|
|
151
151
|
abort("Release #{spec.version} already exists!") if version_already_released.call
|
152
152
|
|
153
153
|
begin
|
154
|
-
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version, "#{package}.tar.gz", "#{package}.gem")
|
154
|
+
rubyforge.add_release(spec.rubyforge_project, spec.name, spec.version.to_s, "#{package}.tar.gz", "#{package}.gem")
|
155
155
|
puts "Version #{spec.version} released!"
|
156
156
|
rescue Exception => exception
|
157
157
|
puts 'Release failed!'
|
data/lib/aws/s3/acl.rb
CHANGED
@@ -385,7 +385,7 @@ module AWS
|
|
385
385
|
class Grantee
|
386
386
|
include SelectiveAttributeProxy #:nodoc:
|
387
387
|
|
388
|
-
undef_method :id # Get rid of Object#id
|
388
|
+
undef_method :id if method_defined?(:id) # Get rid of Object#id
|
389
389
|
|
390
390
|
def initialize(attributes = {})
|
391
391
|
# Set default values for attributes that may not be passed in but we still want the object
|
data/lib/aws/s3/extensions.rb
CHANGED
data/lib/aws/s3/object.rb
CHANGED
@@ -107,10 +107,10 @@ module AWS
|
|
107
107
|
# pp song.metadata
|
108
108
|
# {"x-amz-meta-released" => "2005",
|
109
109
|
# "x-amz-meta-album" => "A River Ain't Too Much To Love"}
|
110
|
-
# song.
|
110
|
+
# song.metadata[:released]
|
111
111
|
# # => "2005"
|
112
|
-
# song.
|
113
|
-
# pp song.
|
112
|
+
# song.metadata[:released] = 2006
|
113
|
+
# pp song.metadata
|
114
114
|
# {"x-amz-meta-released" => 2006,
|
115
115
|
# "x-amz-meta-album" => "A River Ain't Too Much To Love"}
|
116
116
|
class S3Object < Base
|
data/lib/aws/s3/owner.rb
CHANGED
@@ -7,7 +7,7 @@ module AWS
|
|
7
7
|
#
|
8
8
|
# You can retrieve the owner of the current account by calling Owner.current.
|
9
9
|
class Owner
|
10
|
-
undef_method :id # Get rid of Object#id
|
10
|
+
undef_method :id if method_defined?(:id) # Get rid of Object#id
|
11
11
|
include SelectiveAttributeProxy
|
12
12
|
|
13
13
|
class << self
|
data/lib/aws/s3/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcel Molina Jr.
|
@@ -9,11 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-03 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: xml-simple
|
17
|
+
type: :runtime
|
17
18
|
version_requirement:
|
18
19
|
version_requirements: !ruby/object:Gem::Requirement
|
19
20
|
requirements:
|
@@ -23,6 +24,7 @@ dependencies:
|
|
23
24
|
version:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: builder
|
27
|
+
type: :runtime
|
26
28
|
version_requirement:
|
27
29
|
version_requirements: !ruby/object:Gem::Requirement
|
28
30
|
requirements:
|
@@ -32,6 +34,7 @@ dependencies:
|
|
32
34
|
version:
|
33
35
|
- !ruby/object:Gem::Dependency
|
34
36
|
name: mime-types
|
37
|
+
type: :runtime
|
35
38
|
version_requirement:
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
@@ -105,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
108
|
requirements: []
|
106
109
|
|
107
110
|
rubyforge_project: amazon
|
108
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.2.0
|
109
112
|
signing_key:
|
110
113
|
specification_version: 2
|
111
114
|
summary: Client library for Amazon's Simple Storage Service's REST API
|