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 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.metada[:released]
230
+ song.metadata[:released]
231
231
  # => "2005"
232
- song.metada[:released] = 2006
233
- pp song.metada
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!'
@@ -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
@@ -103,7 +103,7 @@ end
103
103
  module Kernel
104
104
  def __method__(depth = 0)
105
105
  caller[depth][/`([^']+)'/, 1]
106
- end if RUBY_VERSION < '1.8.7'
106
+ end #if RUBY_VERSION < '1.8.7'
107
107
 
108
108
  def memoize(reload = false, storage = nil)
109
109
  storage = "@#{storage || __method__(1)}"
@@ -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.metada[:released]
110
+ # song.metadata[:released]
111
111
  # # => "2005"
112
- # song.metada[:released] = 2006
113
- # pp song.metada
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
@@ -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
@@ -3,7 +3,7 @@ module AWS
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = '0'
5
5
  MINOR = '5'
6
- TINY = '0'
6
+ TINY = '1'
7
7
  BETA = nil # Time.now.to_i.to_s
8
8
  end
9
9
 
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.0
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-06-07 00:00:00 -05:00
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.1.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