ruby aws-s3 に代わるものはありますか。
aws-s3 (gem install aws-s3) をインストールしましたが、スクリプトを実行するとエラーが発生しました
ruby s3Metadata.rb
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
'gem_original_require': /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlbase.rb:183:
syntax error, unexpected ',', expecting '|' (SyntaxError)
define_method(sym) do |*args, &block|
^
/usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlbase.rb:192: syntax error, unexpected kEND, expecting $end from /usr/local/lib/site_ruby/1.8/rubygems /custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlmarkup.rb:14
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:159:in 'require_library_or_gem'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.3/lib/aws/s3.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in 'require'
from s3Metadata.rb:4`
s3Metadata.rb:4 = `require 'aws/s3'
Googleで検索しましたが、解決策はありません....
スクリプトを実行して、Amazon S3のメタデータを更新/追加する必要があります。
aws-s3 (0.6.3)
古いバージョンの Rubyruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
を持っているのでアップグレードできません。ruby aws-s3 の解決策または代替手段はありますか?