uninitialized constant ActiveSupport::Deprecation (NameError)
Opened this issue · 6 comments
I am trying to make a really simple command line script to update beeminder, but getting this error when running it.
I have a Gemfile with:
source 'https://rubygems.org'
gem 'beeminder'
and a ruby file with:
require 'beeminder'
Running the script I get a nasty error
/Users/aaronpk/.gem/ruby/1.9.3/gems/activesupport-4.2.0/lib/active_support/core_ext/module/deprecation.rb:21:in `deprecate': uninitialized constant ActiveSupport::Deprecation (NameError)
from /Users/aaronpk/.gem/ruby/1.9.3/gems/activesupport-4.2.0/lib/active_support/core_ext/class/delegating_attributes.rb:26:in `<class:Class>'
from /Users/aaronpk/.gem/ruby/1.9.3/gems/activesupport-4.2.0/lib/active_support/core_ext/class/delegating_attributes.rb:6:in `<top (required)>'
...
I get the same error in Ruby 1.9.3. and 2.1.3.
I don't really know what's going on.
This: rails/rails#12876 says it ought to have been fixed on 4.0.0 :(
What are you using activesupport for anyway? Can you just remove the dependency?
That was my first question too. Not sure, but it looks like maybe some date/time stuff? don't know what else.
+1 for removing the ActiveSupport dependency. For such a simple API client, vanilla ruby would be preferred.
kbarret8@kbarret8-mbp:~/beem (master *)$ bundle exec ruby file.rb
kbarret8@kbarret8-mbp:~/beem (master *)$ cat Gemfile
source 'https://rubygems.org'
gem 'beeminder', git: 'git@github.com:beeminder/beeminder-gem'
kbarret8@kbarret8-mbp:~/beem (master *)$ cat Gemfile.lock
GIT
remote: git@github.com:beeminder/beeminder-gem
revision: 88d79287886828e66637c1663be3fb93fcf4d73b
specs:
beeminder (0.2.11)
activesupport (>= 3.2, < 6)
I think this can be closed for the 2.11 release, it appears to be fixed in master.