Skip to content

Commit

Permalink
For now just redefine __method__ to take arguments so we don't break …
Browse files Browse the repository at this point in the history
…1.8.7 use today
  • Loading branch information
marcel committed Jul 3, 2008
1 parent cd679c6 commit 96d3cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

Expand Down
2 changes: 1 addition & 1 deletion lib/aws/s3/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)}"
Expand Down
4 changes: 2 additions & 2 deletions lib/aws/s3/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 * '.'
Expand Down

0 comments on commit 96d3cb1

Please sign in to comment.