Open AgataJot opened 11 years ago
This is very odd. I tried it on Ruby 1.8.7 and 1.9.3 and both accept an argument to rand(..)
. Could you paste the result of these two commands:
$ gem list
$ ruby -v
$ gem list
* LOCAL GEMS *
bigdecimal (1.1.0) io-console (0.3) json (1.5.4) minitest (2.5.1) rake (0.9.2.2) rdoc (3.9.4)
$ ruby -v ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.0]
I upgraded Ruby with Homebrew, but the same error occurs for both the new version and the original Ruby installed on Lion.
I was getting this error: ArgumentError on line 95 of /Library/Ruby/Gems/1.8/gems/compass-magick-0.1.6/lib/plugins/phantom.rb: wrong number of arguments (1 for 0)
I'm on Mac OS 10.7.4 and had the default ruby library installed.
Had to remove the range argument, and it works fine Was;
basename = "~magick-phantom-#{ rand(36**8).to_s(36) }.png"
Is:
basename = "~magick-phantom-#{ rand.to_s(36) }.png"