upgrading sprouts today -- undefined method 'sort_obj'

已查看 1 次
跳至第一个未读帖子

Aaron Evans

未读,
2009年3月24日 13:26:402009/3/24
收件人 project...@googlegroups.com
I ran 'gem update sprout' today on my appx 6 months old copy of sprouts, and got the following stack trace when I tried to create a new project:

C:\Users\aaron\projects>sprout -n as3 trySprouts
>> Creating new project 'trySprouts2' with as3
c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.rb:52:in `spr
out_search': undefined method `sort_obj' for #<Gem::Specification:0x338e138> (NoMethodError)
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/inflector.rb:257:
in `sort_by'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.
rb:52:in `each'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.
rb:52:in `sort_by'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.
rb:52:in `sprout_search'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout/generator/base_mixins.
rb:95:in `each'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:171:in `map'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:171:in `cache'
        from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/inflector.rb:257:
in `inject'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:171:in `each'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:171:in `inject'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:171:in `cache'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:152:in `lookup'
        from c:/ruby/lib/ruby/gems/1.8/gems/rubigen-1.3.3/lib/rubigen/lookup.rb:165:in `instance'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/lib/sprout.rb:131:in `generate'
        from c:/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.206-mswin32/bin/sprout:120
        from c:/ruby/bin/sprout:16:in `load'
        from c:/ruby/bin/sprout:16


C:\Users\aaron\projects>sprout -v
sprout 0.7.206

C:\Users\aaron\projects>ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]

Successfully installed sprout-0.7.206-mswin32
Successfully installed rubigen-1.3.3
Successfully installed hoe-1.11.0
Successfully installed rubyforge-1.0.3
Successfully installed rake-0.8.4
Successfully installed win32-open3-0.2.5-mswin32


Luke Bayes

未读,
2009年3月24日 13:48:012009/3/24
收件人 project...@googlegroups.com
Hey Aaron,

It looks like you may need to update Rubigen or RubyGems. We have
ongoing compatibility problems with changes in our dependencies.

Please start with rubigen and let me know which it was, so that we can
fix our dependency declarations.


Thanks,

Luke
--
Thanks,

Luke Bayes
510 459-9053
http://patternpark.com

Aaron Evans

未读,
2009年3月24日 14:10:232009/3/24
收件人 project...@googlegroups.com
Thanks Luke, you're the best. 

I still had gem -v 0.9.4 and hadn't thought about it.  I guess Ruby's still a fast moving target.

I'll call you at midnight sometime when I can't remember my password so you can remind me to check if the caps lock key is on.

-Aaron

Luke Bayes

未读,
2009年3月24日 15:09:262009/3/24
收件人 project...@googlegroups.com
No worries Aaron!

I would prefer for Sprouts to 'just work' without regard for the Gem
version, I just didn't take the time to make that happen. If anyone is
interested in contributing a patch to support multiple versions of
RubyGems, we're on Github
(http://github.com/lukebayes/project-sprouts).

Just fork, fix and send me a pull request!


Thanks,

Luke Bayes

回复全部
回复作者
转发
0 个新帖子