Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't have loaded 'active_support/time_with_zone' #858

Closed
ainame opened this issue Jun 8, 2012 · 1 comment
Closed

don't have loaded 'active_support/time_with_zone' #858

ainame opened this issue Jun 8, 2012 · 1 comment

Comments

@ainame
Copy link
Contributor

ainame commented Jun 8, 2012

First of all, padrino-helpers/lib/padrino-helpers.rb call 'require' 'active_support/core_ext/string/conversions'.
Next, 'active_support/core_ext/string/conversions' call 'require' for 'active_support/core_ext/time/calculations'.
And, 'active_support/core_ext/time/calculations' extend Time class.
Especially, Time#=== method will override by ActiveSupport, that depends on ActiveSupport::TimeWithZone class.
But, there is no file which reuire ActiveSupport::TimeWithZone class in padrino-helpers.

Then, padrino's test fails.

cd /Users/namai/workspace/prog/ruby/padrino_test/padrino-cache && /Users/namai/.rvm/rubies/ruby-1.8.7-p358/bin/ruby -S rake test
/Users/namai/.rvm/rubies/ruby-1.8.7-p358/bin/ruby -I"lib:test" -I"/Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/rake-0.9.2.2/lib" "/Users/namai/.rvm/gems/ruby-
1.8.7-p358/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/test_padrino_cache.rb" "test/test_stores.rb"
Invalid gemspec in [/Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/uuid-2.3.5/uuid.gemspec]: uninitialized constant ActiveSupport::TimeWithZone
/Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/uuid-2.3.5/lib/uuid.rb:65: undefined method version' for nil:NilClass (NoMethodError) from /Users/namai/workspace/prog/ruby/padrino_test/padrino-cache/test/helper.rb:8:inrequire'
from /Users/namai/workspace/prog/ruby/padrino_test/padrino-cache/test/helper.rb:8
from /Users/namai/workspace/prog/ruby/padrino_test/padrino-cache/test/test_padrino_cache.rb:1:in require' from /Users/namai/workspace/prog/ruby/padrino_test/padrino-cache/test/test_padrino_cache.rb:1 from /Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:15:inrequire'
from /Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:15
from /Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
from /Users/namai/.rvm/gems/ruby-1.8.7-p358/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4
rake aborted!
Command failed with status (1): [/Users/namai/.rvm/rubies/ruby-1.8.7-p358/b...]

ainame pushed a commit to ainame/padrino-framework that referenced this issue Jun 8, 2012
DAddYE added a commit that referenced this issue Jun 11, 2012
add require ActiveSupport::TimeWithZone class at padrino-helpers #858
@DAddYE DAddYE closed this as completed Jun 11, 2012
@DAddYE
Copy link
Member

DAddYE commented Jun 11, 2012

Thanks man, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants