12spokes / acts_as_restful_list

Just like acts_as_list, but restful.
MIT License
14 stars 9 forks source link

Initialization routine #5

Closed evizitei closed 13 years ago

evizitei commented 13 years ago

the problem in goodget was a result of the list updating routines not handling the conditions of uninitialized position columns in legacy records. This update allows the gem to plow through such a situation to at least give you a good baseline list to start sorting off of. It also dumps jewler, because I don't like working with it, but if you just want the code update you can revert the first commit and keep the second (everything should still work). Don't worry about pulling today, I'll work off my repo on goodget for the time being

treybean commented 13 years ago

After bundle install, I get this error when I run rake:

Irigaray:acts_as_restful_list treybean (evizitei-guard_clause)$ rake --trace rake aborted! undefined method desc' for #<Bundler::GemHelper:0x00000100a4a0a0> /Users/treybean/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.10/lib/bundler/gem_helper.rb:24:ininstall' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.10/lib/bundler/gem_helper.rb:9:in install_tasks' /Users/treybean/Sites/acts_as_restful_list/Rakefile:3:in<top (required)>' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in load' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/rake_module.rb:25:inload_rakefile' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:495:in raw_load_rakefile' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:78:inblock in load_rakefile' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:129:in standard_exception_handling' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:77:inload_rakefile' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:61:in block in run' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:129:instandard_exception_handling' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/lib/rake/application.rb:59:in run' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/gems/rake-0.9.0/bin/rake:31:in<top (required)>' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/bin/rake:19:in load' /Users/treybean/.rvm/gems/ruby-1.9.2-p180@acts_as_restful_list/bin/rake:19:in

'

Any ideas?

treybean commented 13 years ago

Nevermind, old rake version the 0.9.0 bite again. 0.9.2 works but throws deprecation warnings.

evizitei commented 13 years ago

should be backwards compatible now