spree/spree — Issue #976: Creating an extension using spree_cmd fails using 1.8.7
Author: BDQ
Created: 2012-01-15 18:50:49+00:00
State: open

When trying to generate a new extension using spree_cmd & Ruby 1.8.7 & 1.9.2 I'm getting this error:

Note, it works fine for 1.9.3

/cc @cmar

(erb):1:in `template': undefined method `today' for Date:Class (NoMethodError)
from (eval):1:in `template'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/spree_cmd-1.0.0.rc2/lib/spree_cmd/extension.rb:23:in `generate'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/shell.rb:14:in `map'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/core_ext/ordered_hash.rb:73:in `each'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `send'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:109:in `invoke'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/spree_cmd-1.0.0.rc2/lib/spree_cmd.rb:19:in `extension'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/gems/spree_cmd-1.0.0.rc2/bin/spree:5
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/bin/spree:19:in `load'
from /Users/briandquinn/.rvm/gems/ruby-1.8.7-p352/bin/spree:19