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. Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jun 3, 3:47 am, Tushar Gandhi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> 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). --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi
2010-Jun-04 04:39 UTC
Re: rake gems:freeze GEM=pdf-writer not working on MAC
Hi, Here is the complete trace of error:- Can anyone help me out what is wrong with my configuration? administrators-macbook:browsercms_demo Administrator$ rake gems:freeze GEM=pdf-writer --trace (in /railsproject/bcms/browsercms_demo) 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) ** Invoke gems:freeze (first_time) ** Execute gems:freeze rake aborted! wrong number of arguments (2 for 1) /railsproject/bcms/browsercms_demo/vendor/plugins/gemsonrails/tasks/gems_freeze.rake:41:in `get_path'' /railsproject/bcms/browsercms_demo/vendor/plugins/gemsonrails/tasks/gems_freeze.rake:41 /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load'' /usr/bin/rake:19 Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. --Matt Jones On Jun 4, 12:39 am, Tushar Gandhi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > Here is the complete trace of error:- > Can anyone help me out what is wrong with my configuration? > > administrators-macbook:browsercms_demo Administrator$ rake gems:freeze > GEM=pdf-writer --trace > (in /railsproject/bcms/browsercms_demo) > 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) > ** Invoke gems:freeze (first_time) > ** Execute gems:freeze > rake aborted! > wrong number of arguments (2 for 1) > /railsproject/bcms/browsercms_demo/vendor/plugins/gemsonrails/tasks/gems_fr eeze.rake:41:in > `get_path'' > /railsproject/bcms/browsercms_demo/vendor/plugins/gemsonrails/tasks/gems_fr eeze.rake:41 > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_chain'' > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/mon itor.rb:242:in > `synchronize'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_chain'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > Thanks, > Tushar > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi
2010-Jun-07 05:08 UTC
Re: rake gems:freeze GEM=pdf-writer not working on MAC
Hi, If that is the probelm then the command should also not work on windows. But it is working on windows. What is the reason? Thanks Tushar Matt Jones wrote:> 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. > > --Matt Jones-- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jun 7, 1:08 am, Tushar Gandhi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > If that is the probelm then the command should also not work on windows. > But it is working on windows. What is the reason?I suspect that you''ve got different versions of Rubygems on the two machines. 1.3.6 has the 2-arg version: http://rubygems.rubyforge.org/svn/tags/REL_1_3_6/lib/rubygems/commands/unpack_command.rb While 1.3.7 has the 1-arg version: http://rubygems.rubyforge.org/svn/tags/REL_1_3_7/lib/rubygems/commands/unpack_command.rb --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi
2010-Jun-07 11:53 UTC
Re: rake gems:freeze GEM=pdf-writer not working on MAC
Hi, I just done the gem list. My gem list shows I have "rubygems-update(1.3.7)". How can I install rubygems version of 1.3.6? Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi
2010-Jun-07 13:33 UTC
Re: rake gems:freeze GEM=pdf-writer not working on MAC
Hi, I have installed rubygems-update 1.3.6. Still the issue has not resolved. Any other way. Thanks, Tushar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.