Permalink
Browse files

For now just redefine __method__ to take arguments so we don't break …

…1.8.7 use today
  • Loading branch information...
1 parent cd679c6 commit 96d3cb1b04425ea77aaf19bfdd69820d1c17f5f0 @marcel marcel committed Jul 3, 2008
Showing with 6 additions and 6 deletions.
  1. +3 −3 README
  2. +1 −1 lib/aws/s3/extensions.rb
  3. +2 −2 lib/aws/s3/version.rb
View
6 README
@@ -227,10 +227,10 @@ That metadata will be saved in S3 and is hence forth available from that object:
pp song.metadata
{"x-amz-meta-released" => "2005",
"x-amz-meta-album" => "A River Ain't Too Much To Love"}
- song.metada[:released]
+ song.metadata[:released]
# => "2005"
- song.metada[:released] = 2006
- pp song.metada
+ song.metadata[:released] = 2006
+ pp song.metadata
{"x-amz-meta-released" => 2006,
"x-amz-meta-album" => "A River Ain't Too Much To Love"}
View
@@ -103,7 +103,7 @@ def to_header
module Kernel
def __method__(depth = 0)
caller[depth][/`([^']+)'/, 1]
- end if RUBY_VERSION < '1.8.7'
+ end #if RUBY_VERSION < '1.8.7'
def memoize(reload = false, storage = nil)
storage = "@#{storage || __method__(1)}"
View
@@ -3,8 +3,8 @@ module S3
module VERSION #:nodoc:
MAJOR = '0'
MINOR = '5'
- TINY = '0'
- BETA = Time.now.to_i.to_s
+ TINY = '1'
+ BETA = nil # Time.now.to_i.to_s
end
Version = [VERSION::MAJOR, VERSION::MINOR, VERSION::TINY, VERSION::BETA].compact * '.'

0 comments on commit 96d3cb1

Please sign in to comment.