delano / redis-dump

Redis to JSON and nack again
https://rubygems.org/gems/redis-dump
MIT License
825 stars 124 forks source link

wrong number of arguments (1 for 2) #1

Closed huyente closed 12 years ago

huyente commented 13 years ago

Hi,

I got the following error when running redis-dump:


# redis-dump -u 192.168.5.208:35535 > redisdb_35535_`date +%F`.json
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:294: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:428: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:435: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:442: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:449: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:519: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:635: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:667: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:674: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:695: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:702: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:709: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:723: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:730: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:737: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:800: warning: parenthesize argument(s) for future version
/usr/lib/ruby/gems/1.8/gems/redis-2.2.1/lib/redis.rb:1131: warning: parenthesize argument(s) for future version
ERROR (ArgumentError): wrong number of arguments (1 for 2)

ruby version 1.8.5 gem env:


RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.1
  - RUBY VERSION: 1.8.5 (2006-08-25) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/lib/ruby/gems/1.8
     - /root/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
delano commented 13 years ago

Thanks for the report. I haven't tested it with 1.8.5 and I don't have that version available to test it. I'd happily accept a patch.

delano commented 12 years ago

I just pushed a new release (0.3) to rubygems. I'm going to close this issue but if it's still a problem let me know.