I was trying to use
rake gems:freeze GEM=facebooker2
but then rake won't support it. (using rake 0.8.7, gem 1.3.7, rails 2.3.8, ruby 1.8.7)
So looks like the current supported freezing is
rake rails:freeze:gems
but after I do that, I use hg status | grep facebooker
(similar to git status
, to see what files are added or modified) and it shows no result.
(facebookers is already installed by gem install facebooker2
). So I also add
config.gem 'facebooker2'
into config/environment.rb
and do a rake gems:install
and then rake rails:freeze:gems
again. But then I do the grep
again and still no facebooker2 file or folder name is there?
Update:
It looks like rake rails:freeze:gems
maybe to only freeze Rails but not other gems.
I now know I have to
$ gem install gemsonrails
$ gemsonrails
first and then do the freezing, but then it will report:
$ rake gems:freeze GEM=facebooker2
(in /Users/peter/ror/try187_222)
rake aborted!
wrong number of arguments (2 for 1)
(See full trace by running task with --trace)