Not sure what's going on here. Haml definitely has a Gemspec, and I don't think I've messed with any packaging-related stuff since beta 1. Does the Gemspec file actually exist?
On Tue, Apr 13, 2010 at 7:02 PM, Matt Martini <[email protected]> wrote: > I am running into a missing gemspec file problem with haml. > After pulling the latest master via git I created a new rails (2.3.5) > application, test_haml3b2. > Then I added haml and then tried to unpack the gem. (I like to freeze the > gems > in a project so I don't have to worry about upgrades on my server breaking a > project) > > During the unpack I got this error message: > > Unpacked gem haml-3.0.0.beta.2 in vendor/gems has no specification file. > Run 'rake gems:refresh_specs' to fix this. > > Doing the rake as directed resulted in this error message: > > undefined method `installed_source_index' for > #<Gem::SourceIndex:0x10054b9a0> > > This error is repeatable (at least on my server) and all of the details are > below. > Any ideas on what's going on here? > Thanks, > Matt > > > > > $ cd haml > .../Gems/haml > $ git pull > [...] > > $ cat VERSION > 3.0.0.beta.2 > > $ rake install > (in .../Gems/haml) > git submodule sync > git submodule update --init > Submodule 'test/haml/spec' (git://github.com/norman/haml-spec.git) > registered for path 'test/haml/spec' > Submodule 'vendor/fssm' (git://github.com/ttilley/fssm) registered for path > 'vendor/fssm' > Initialized empty Git repository in .../Gems/haml/test/haml/spec/.git/ > remote: Counting objects: 66, done. > remote: Compressing objects: 100% (49/49), done. > remote: Total 66 (delta 36), reused 33 (delta 17) > Receiving objects: 100% (66/66), 13.61 KiB, done. > Resolving deltas: 100% (36/36), done. > Submodule path 'test/haml/spec': checked out > '7e563d6f5c0b411925a8acbfa1fc43102e48275d' > Initialized empty Git repository in .../Gems/haml/vendor/fssm/.git/ > remote: Counting objects: 563, done. > remote: Compressing objects: 100% (538/538), done. > remote: Total 563 (delta 263), reused 0 (delta 0) > Receiving objects: 100% (563/563), 95.43 KiB, done. > Resolving deltas: 100% (263/263), done. > Submodule path 'vendor/fssm': checked out > 'f4b896724e0bf102a162001840ca2975eab21b02' > Successfully built RubyGem > Name: haml > Version: 3.0.0.beta.2 > File: haml-3.0.0.beta.2.gem > mv haml-3.0.0.beta.2.gem pkg/haml-3.0.0.beta.2.gem > sudo gem install --no-ri pkg/haml-3.0.0.beta.2 > Password: > Successfully installed haml-3.0.0.beta.2 > 1 gem installed > Installing RDoc documentation for haml-3.0.0.beta.2... > > > $ cd .../Test_Sites > .../Test_Sites > $ rails test_haml3b2 > create > [...] > create log/test.log > > $ cd test_haml3b2 > .../Test_Sites/test_haml3b2 > > $ haml --rails . > Haml plugin added to . > > $ vi config/environment.rb # add config.gem "haml" > > $ rake gems:install > (in .../Test_Sites/test_haml3b2) > > $ rake gems:unpack > (in .../Test_Sites/test_haml3b2) > ERROR: While executing gem ... (Gem::FilePermissionError) > You don't have write permissions into the /Library/Ruby/Gems/1.8 > directory. > > $ sudo rake gems:unpack > (in .../Test_Sites/test_haml3b2) > config.gem: Unpacked gem haml-3.0.0.beta.2 in vendor/gems has no > specification file. Run 'rake gems:refresh_specs' to fix this. > rake aborted! > no such file to load -- haml > > (See full trace by running task with --trace) > > $ rake gems:refresh_specs > (in .../Test_Sites/test_haml3b2) > rake aborted! > undefined method `installed_source_index' for > #<Gem::SourceIndex:0x10054b9a0> > > (See full trace by running task with --trace) > > > > -- > 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. > -- 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.
