You have to declare the gem dependency in your environment.rb file:
config.gem "haml"

And then you unpack it like so:

rake gems:unpack GEM=haml

-chris

On Sat, Sep 19, 2009 at 11:37 PM, Giovanni <[email protected]> wrote:

>
> I am not a rails guru, and I hope I don't be wrong. But to me the rake
> task "rake gems:unpack" is not working. I have upgraded to rails
> 2.3.4, and now I wish to upgrade the haml gem which I have froze in
> the past.  I am pretty sure that in some previous version of rails (<
> 2.3.4) it was working.
> Probably it is more a problem with my installation or the current
> version of rails that a problem with haml gem.
> I am just wondering if there is someone with the same problem. And why
> the haml gem is reported as "Framework" instead of "Installed"?
>
> I am going to investigate more later.
>
> Thank you.
>
> On Sep 19, 10:39 pm, Chris Eppstein <[email protected]> wrote:
> > haml --rails does not freeze the gem; it installs the plugin code that
> > wires rails and haml together. If you want to freeze a gem, please use
> > the rake task.
> >
> > Hunt & pecked on my iPhone... Sorry if it's brief!
> >
> > On Sep 19, 2009, at 11:27 AM, Giovanni <[email protected]> wrote:
> >
> >
> >
> > > Hi,
> >
> > > I have tryed to unpack haml gem by "rake gems:unpack" but it doesn't
> > > work with rails 2.3.4. The gem status reported by "rake gems" is
> > > Framework.  In the following there are the commands to reproduce my
> > > problem
> >
> > > Perhaps this an issue of my machine or a problem of rails 2.3.4.
> >
> > > $ rails --version
> > > Rails 2.3.4
> > > $ rails test_haml
> > > [...]
> > > $ haml --rails
> > > $ haml --rails test_haml
> > > Haml plugin added to test_haml
> > > $ emacs test_haml/config/environment.rb
> > > [ adding config.gem "haml" ]
> > > $ cd test_haml
> > > $ rake gems
> > > $ rake gems
> > > (in .../test_haml)
> > > - [R] haml
> >
> > > I = Installed
> > > F = Frozen
> > > R = Framework (loaded before rails starts)
> > > $ rake gems:unpack
> > > [.. directory test_haml/vendors/gem is not created...]
> >
> > > Giovanni
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to