Hi,
I am using MAC 10.6 OS.
I want to freeze the my application gems so that it will nor required to
install again when I go to production. For freezing of gems I am going
through the tutorial
"http://gemsonrails.rubyforge.org/"
But whenever I am doing "rake gems:freeze GEM=pdf-writer" it is giving
me following error:-
DEPRECATION WARNING: Rake tasks in vendor/plugins/gemsonrails/tasks,
vendor/plugins/gemsonrails/tasks, vendor/plugins/gemsonrails/tasks, and
vendor/plugins/gemsonrails/tasks are deprecated. Use lib/tasks instead.
(called from
/Library/Ruby/Gems/1.8/gems/rails-2.3.8/lib/tasks/rails.rb:10)
rake aborted!
wrong number of arguments (2 for 1)
(See full trace by running task with --trace)
But the same command work on windows.
Can anyone help me out for this.
Try posting the complete trace (as suggested by rake) as it will
contain a lot more information. You might also want to look into using
either the Rails 2 gem system (config.gem and 'rake gems:unpack') or
Bundler (the new solution preferred by Rails 3).
It looks like Gem::Commands::UnpackCommand#get_path changed it's
signature (from 2 args to 1) fairly recently - and much more recently
than gemsonrails was last updated (July 2008 according to Github).
You'll definitely want to switch to a different mechanism for
vendoring gems.