# Rake gems:freeze GEM=pdf-writer not working on MAC

**URL:** <https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565>\
**Category:** Rails\
**Created:** [June 3, 2010, 9:47am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565 "2010-06-03T09:47:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 3, 2010, 9:47am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/1 "2010-06-03T09:47:16Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 4, 2010, 3:23am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/2 "2010-06-04T03:23:23Z")

</div>

On Jun 3, 3:47 am, Tushar G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> DEPRECATION WARNING: Rake tasks in vendor/plugins/gemsonrails/tasks,  
> 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 J.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 4, 2010, 6:39am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/3 "2010-06-04T06:39:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 5, 2010, 5:22am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/4 "2010-06-05T05:22:16Z")

</div>

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 J.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 7, 2010, 7:08am UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/5 "2010-06-07T07:08:43Z")

</div>

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 J. 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 J.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 7, 2010, 1:53pm UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/6 "2010-06-07T13:53:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 7, 2010, 1:31pm UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/7 "2010-06-07T13:31:52Z")

</div>

On Jun 7, 1:08 am, Tushar G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](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](http://rubygems.rubyforge.org/svn/tags/REL_1_3_7/lib/rubygems/commands/unpack_command.rb)

–Matt J.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [June 7, 2010, 3:33pm UTC](https://www.ruby-forum.com/t/rake-gems-freeze-gem-pdf-writer-not-working-on-mac/189565/8 "2010-06-07T15:33:01Z")

</div>

Hi,  
I have installed rubygems-update 1.3.6. Still the issue has not  
resolved.

Any other way.

Thanks,  
Tushar
