I'm running Rails 4 and whenever I try running anything in the rails console, I get the following error:
2.0.0 (main):0 > User.first
CodeRay::Scanners::Scanner::ScanError:
***ERROR in scanner.rb:333:in `raise_inspect': no implicit conversion of Array into String (after tokens)
tokens:
current line: 1 column: 5 pos: 4
matched: nil state: "Error in CodeRay::Scanners::Ruby#scan_tokens, initial state was: :initial"
bol?: false, eos?: false
surrounding code:
nil ~~ ".first"
ERROR
from /Users/silasjmatson/.gem/ruby/2.0.0/gems/coderay-1.1.0/lib/coderay/encoders/terminal.rb:145:in `text_token'
2.0.0 (main):0 >
My Gemfile.lock is like so:
GIT
remote: git://github.com/gregbell/active_admin.git
revision: abb3d454d3a6cb0852be6e7aa4c289ba83e1a966
branch: master
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0)
bourbon
coffee-rails
devise (~> 3.0)
formtastic (~> 2.3.0.rc2)
inherited_resources (~> 1.3)
jquery-rails
jquery-ui-rails
kaminari (~> 0.13)
rails (>= 3.2, < 4.1)
ransack (~> 1.0)
sass-rails
PATH
remote: components/api
specs:
api (01.0)
rest-client
PATH
remote: components/data_models
specs:
data_models (0.0.1)
carrierwave
fog
mini_magick
rails (~> 4.0.0)
unf
PATH
remote: components/store
specs:
store (0.0.1)
activemerchant
coffee-rails (~> 4.0.0)
compass-blueprint
compass-rails (~> 2.0.alpha.0)
country_select
crummy
devise (~> 3.1.0)
devise-async
geocoder
heroku-deflater
jquery-rails
rails (~> 4.0.1)
sass-rails (~> 4.0.0)
sidekiq
sidekiq-failures
simple_form
sinatra
slim-rails (~> 2.0.1)
turbolinks
uglifier (>= 1.3.0)
GEM
remote: http://rubygems.org/
specs:
actionmailer (4.0.1)
actionpack (= 4.0.1)
mail (~> 2.5.4)
actionpack (4.0.1)
activesupport (= 4.0.1)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
active_utils (2.0.1)
activesupport (>= 2.3.11)
i18n
activemerchant (1.42.2)
active_utils (~> 2.0, >= 2.0.1)
activesupport (>= 2.3.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0)
i18n (~> 0.5)
json (~> 1.7)
money (< 7.0.0)
nokogiri (~> 1.4)
activemodel (4.0.1)
activesupport (= 4.0.1)
builder (~> 3.1.0)
activerecord (4.0.1)
activemodel (= 4.0.1)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.1)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.1)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
addressable (2.3.5)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (4.0.1)
asset_sync (1.0.0)
activemodel
fog (>= 1.8.0)
atomic (1.1.14)
bcrypt-ruby (3.1.2)
better_errors (1.0.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bourbon (3.1.8)
sass (>= 3.2.0)
thor
builder (3.1.4)
callsite (0.0.11)
carrierwave (0.9.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
celluloid (0.15.2)
timers (~> 1.1.0)
charlock_holmes (0.6.9.4)
chunky_png (1.2.9)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-blueprint (0.0.1)
compass
compass-rails (2.0.alpha.0)
compass (>= 0.12.2, < 0.14)
connection_pool (1.1.0)
country_select (1.2.0)
crack (0.4.1)
safe_yaml (~> 0.9.0)
crummy (1.8.0)
dalli (2.6.4)
debug_inspector (0.0.2)
devise (3.1.2)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
devise-async (0.8.0)
devise (>= 2.2, < 3.2)
diff-lcs (1.2.5)
docile (1.1.0)
dotenv (0.9.0)
erubis (2.7.0)
excon (0.28.0)
execjs (2.0.2)
factory_girl (4.3.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.3.0)
factory_girl (~> 4.3.0)
railties (>= 3.0.0)
ffi (1.9.3)
figaro (0.7.0)
bundler (~> 1.0)
rails (>= 3, < 5)
fog (1.18.0)
builder
excon (~> 0.28.0)
formatador (~> 0.2.0)
mime-types
multi_json (~> 1.0)
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
nokogiri (~> 1.5)
ruby-hmac
foreman (0.63.0)
dotenv (>= 0.7)
thor (>= 0.13.6)
formatador (0.2.4)
formtastic (2.3.0.rc2)
actionpack (>= 3.0)
fssm (0.2.10)
fuubar (1.2.1)
rspec (~> 2.0)
rspec-instafail (~> 0.2.0)
ruby-progressbar (~> 1.0)
geocoder (1.1.8)
growl (1.0.3)
guard (2.2.4)
formatador (>= 0.2.4)
listen (~> 2.1)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-rspec (4.0.4)
guard (>= 2.1.1)
rspec (~> 2.14)
has_scope (0.6.0.rc)
actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
heroku-deflater (0.5.2)
rack (>= 1.4.5)
hike (1.2.3)
i18n (0.6.5)
inherited_resources (1.4.1)
has_scope (~> 0.6.0.rc)
responders (~> 1.0.0.rc)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.1.0)
railties (>= 3.1.0)
json (1.8.1)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
listen (2.2.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lockfile (2.1.0)
lumberjack (1.0.4)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_request (0.2.8)
callsite
rack-contrib
railties
method_source (0.8.2)
mime-types (1.25)
mini_magick (3.6.0)
subexec (~> 0.2.1)
mini_portile (0.5.2)
minitest (4.7.5)
money (6.0.0)
i18n (~> 0.6.4)
multi_json (1.8.2)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
orm_adapter (0.5.0)
pg (0.17.0)
polyamorous (0.6.4)
activerecord (>= 3.0)
polyglot (0.3.3)
pry (0.9.12.3)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
pry-rails (0.3.2)
pry (>= 0.9.10)
puma (2.6.0)
rack (>= 1.1, < 2.0)
rack (1.5.2)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-protection (1.5.1)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.1)
actionmailer (= 4.0.1)
actionpack (= 4.0.1)
activerecord (= 4.0.1)
activesupport (= 4.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.1)
sprockets-rails (~> 2.0.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.1)
rails_stdout_logging (0.0.3)
railties (4.0.1)
actionpack (= 4.0.1)
activesupport (= 4.0.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
ransack (1.1.0)
actionpack (>= 3.0)
activerecord (>= 3.0)
polyamorous (~> 0.6.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
ffi (>= 0.5.0)
rb-readline (0.5.0)
rdoc (3.12.2)
json (~> 1.4)
redis (3.0.6)
redis-namespace (1.3.2)
redis (~> 3.0.4)
responders (1.0.0)
railties (>= 3.2, < 5)
rest-client (1.6.7)
mime-types (>= 1.16)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.7)
rspec-expectations (2.14.4)
diff-lcs (>= 1.1.3, < 2.0)
rspec-instafail (0.2.4)
rspec-mocks (2.14.4)
rspec-rails (2.14.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
ruby-hmac (0.4.0)
ruby-progressbar (1.2.0)
safe_yaml (0.9.7)
sass (3.2.12)
sass-rails (4.0.1)
railties (>= 4.0.0, < 5.0)
sass (>= 3.1.10)
sprockets-rails (~> 2.0.0)
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
sidekiq (2.16.1)
celluloid (>= 0.15.2)
connection_pool (>= 1.0.0)
json
redis (>= 3.0.4)
redis-namespace (>= 1.3.1)
sidekiq-failures (0.2.2)
sidekiq (>= 2.9.0)
simple_form (3.0.0)
actionpack (>= 4.0.0, < 4.1)
activemodel (>= 4.0.0, < 4.1)
simplecov (0.8.1)
docile (~> 1.1.0)
lockfile (>= 2.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
sinatra (1.4.4)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
slim (2.0.2)
temple (~> 0.6.6)
tilt (>= 1.3.3, < 2.1)
slim-rails (2.0.3)
actionpack (>= 3.0, < 4.1)
activesupport (>= 3.0, < 4.1)
railties (>= 3.0, < 4.1)
slim (~> 2.0)
slop (3.4.7)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.8)
subexec (0.2.3)
temple (0.6.7)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
timers (1.1.0)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (1.3.1)
coffee-rails
tzinfo (0.3.38)
uglifier (2.3.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
unf (0.1.3)
unf_ext
unf_ext (0.0.6)
vcr (2.7.0)
warden (1.2.3)
rack (>= 1.0)
webmock (1.16.0)
addressable (>= 2.2.7)
crack (>= 0.3.2)
PLATFORMS
ruby
DEPENDENCIES
activeadmin!
api!
asset_sync
better_errors
binding_of_caller
charlock_holmes
coderay (~> 1.1.0)
dalli
data_models!
factory_girl_rails
figaro
foreman
fuubar
growl
guard
guard-rspec
jquery-rails
meta_request
pg
pry-rails
puma
rails (= 4.0.1)
rails_12factor
rb-readline (~> 0.5.0)
redis
rspec-rails
sdoc
sidekiq
simplecov
sqlite3
store!
uglifier (>= 1.3.0)
vcr
webmock
Any Help?
If you're like me and want to keep using pry, changing your Gemfile to have the following fixes this issue.
gem "pry", "0.9.12.2"
Try removing pry from your Gemfile.
I removed any CodeRay related code from my .pryrc and it works again.
Related
I am trying to bundle update. I am using ruby 2.2.3p173. This is my Gemfile:
source 'https://rubygems.org'
gem 'rails', '~> 4.2.4'
gem 'pg', '~> 0.18.3'
gem 'sass-rails', '~> 5.0.4'
gem 'uglifier', '~> 2.7.2'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails', '~> 4.0.5'
gem 'jscrollpane-rails', '~> 2.0.22'
gem 'jquery-mousewheel-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'paperclip', '~> 4.3.1'
gem 'RedCloth'
gem 'bower-rails', '~> 0.7.3'
gem 'dependor'
gem 'active_model_serializers', '~> 0.9.3'
gem 'pg_search', '~> 0.7.3'
gem 'select2-rails', '~> 4.0.0'
gem 'dotenv-rails', '~> 2.0.2'
gem 'newrelic_rpm', '~> 3.14.0.305'
group :development, :test do
gem 'byebug'
gem 'spring'
gem 'letter_opener'
gem 'pry'
gem 'web-console', '~> 2.2'
end
group :development do
gem 'capistrano-rvm', '~> 0.1', require: false
gem 'capistrano', '~> 3.4.0', require: false
gem 'capistrano-rails', '~> 1.1', require: false
gem 'capistrano-bundler', '~> 1.1', require: false
gem 'capistrano-passenger', '~> 0.1.1', require: false
end
group :test do
gem "codeclimate-test-reporter", require: nil
gem 'rake', '~> 10.4.2'
gem 'rspec-rails', '~> 3.1'
gem "factory_girl_rails", "~> 4.0"
gem 'json_spec'
end
I get this in return (all red):
bundle update
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies......
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
actionpack (= 4.2.11.3)
rspec-rails (~> 3.1) was resolved to 3.9.1, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
active_model_serializers (~> 0.9.3) was resolved to 0.9.8, which depends on
activemodel (>= 3.2)
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
activemodel (>= 3.2.0)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activemodel (= 4.2.11.3)
web-console (~> 2.2) was resolved to 2.3.0, which depends on
activemodel (>= 4.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
pg_search (~> 0.7.3) was resolved to 0.7.9, which depends on
activerecord (>= 3.1)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activerecord (= 4.2.11.3)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
factory_girl_rails (~> 4.0) was resolved to 4.9.0, which depends on
factory_girl (~> 4.9.0) was resolved to 4.9.0, which depends on
activesupport (>= 3.0.0)
jbuilder (~> 2.0) was resolved to 2.9.1, which depends on
activesupport (>= 4.2.0)
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
activesupport (>= 3.2.0)
pg_search (~> 0.7.3) was resolved to 0.7.9, which depends on
activesupport (>= 3.1)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activesupport (= 4.2.11.3)
rspec-rails (~> 3.1) was resolved to 3.9.1, which depends on
activesupport (>= 3.0)
spring was resolved to 2.0.2, which depends on
activesupport (>= 4.2)
Bundler could not find compatible versions for gem "arel":
In Gemfile:
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activerecord (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
arel (~> 6.0)
pg_search (~> 0.7.3) was resolved to 0.7.9, which depends on
arel
Bundler could not find compatible versions for gem "capistrano":
In Gemfile:
capistrano (~> 3.4.0)
capistrano-passenger (~> 0.1.1) was resolved to 0.1.1, which depends on
capistrano (~> 3.0)
capistrano-rails (~> 1.1) was resolved to 1.6.2, which depends on
capistrano (~> 3.1)
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activesupport (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
i18n (~> 0.7)
capistrano (~> 3.4.0) was resolved to 3.4.1, which depends on
i18n
Bundler could not find compatible versions for gem "json":
In Gemfile:
codeclimate-test-reporter was resolved to 1.0.9, which depends on
simplecov (<= 0.13) was resolved to 0.13.0, which depends on
json (< 3, >= 1.8)
uglifier (~> 2.7.2) was resolved to 2.7.2, which depends on
json (>= 1.8.0)
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
mimemagic (= 0.3.0)
Could not find gem 'mimemagic (= 0.3.0)', which is required by gem 'paperclip (~> 4.3.1)', in any of the sources.
Bundler could not find compatible versions for gem "net-ssh":
In Gemfile:
capistrano (~> 3.4.0) was resolved to 3.4.1, which depends on
sshkit (~> 1.3) was resolved to 1.21.3, which depends on
net-scp (>= 1.1.2) was resolved to 3.0.0, which depends on
net-ssh (< 7.0.0, >= 2.6.5)
capistrano (~> 3.4.0) was resolved to 3.4.1, which depends on
sshkit (~> 1.3) was resolved to 1.21.3, which depends on
net-ssh (>= 2.8.0)
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
actionpack (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
rack (~> 1.6)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
actionpack (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
rack-test (~> 0.6.2) was resolved to 0.6.3, which depends on
rack (>= 1.0)
sass-rails (~> 5.0.4) was resolved to 5.0.7, which depends on
sprockets (< 4.0, >= 2.8) was resolved to 3.7.2, which depends on
rack (< 3, > 1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.0.0) was resolved to 4.0.1, which depends on
railties (< 5.0, >= 4.0.0)
dotenv-rails (~> 2.0.2) was resolved to 2.0.2, which depends on
railties (~> 4.0)
factory_girl_rails (~> 4.0) was resolved to 4.9.0, which depends on
railties (>= 3.0.0)
jquery-rails (~> 4.0.5) was resolved to 4.0.5, which depends on
railties (>= 4.2.0)
jscrollpane-rails (~> 2.0.22) was resolved to 2.0.23, which depends on
railties (>= 3.1)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
railties (= 4.2.11.3)
rspec-rails (~> 3.1) was resolved to 3.9.1, which depends on
railties (>= 3.0)
sass-rails (~> 5.0.4) was resolved to 5.0.7, which depends on
railties (< 6, >= 4.0.0)
web-console (~> 2.2) was resolved to 2.3.0, which depends on
railties (>= 4.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 10.4.2)
capistrano (~> 3.4.0) was resolved to 3.4.1, which depends on
rake (>= 10.0.0)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
railties (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
rake (>= 0.8.7)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby
byebug was resolved to 10.0.2, which depends on
ruby (>= 2.2.0)
codeclimate-test-reporter was resolved to 1.0.9, which depends on
ruby (>= 1.9)
pry was resolved to 0.14.1, which depends on
coderay (~> 1.1) was resolved to 1.1.3, which depends on
ruby (>= 1.8.6)
active_model_serializers (~> 0.9.3) was resolved to 0.9.8, which depends on
concurrent-ruby (~> 1.0) was resolved to 1.1.10, which depends on
ruby (>= 2.2)
uglifier (~> 2.7.2) was resolved to 2.7.2, which depends on
json (>= 1.8.0) was resolved to 2.5.1, which depends on
ruby (>= 2.0)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
activesupport (= 4.2.11.3) was resolved to 4.2.11.3, which depends on
minitest (~> 5.1) was resolved to 5.15.0, which depends on
ruby (< 4.0, >= 2.2)
newrelic_rpm (~> 3.14.0.305) was resolved to 3.14.0.305, which depends on
ruby (>= 1.8.7)
paperclip (~> 4.3.1) was resolved to 4.3.7, which depends on
ruby (>= 1.9.2)
letter_opener was resolved to 1.8.1, which depends on
launchy (< 3, >= 2.2) was resolved to 2.4.3, which depends on
addressable (~> 2.3) was resolved to 2.8.1, which depends on
public_suffix (< 6.0, >= 2.0.2) was resolved to 4.0.7, which depends on
ruby (>= 2.3)
rails (~> 4.2.4) was resolved to 4.2.11.3, which depends on
ruby (>= 1.9.3)
sass-rails (~> 5.0.4) was resolved to 5.0.7, which depends on
sass (~> 3.1) was resolved to 3.7.4, which depends on
ruby (>= 2.0.0)
If I delete the Gemfile.lock and run bundle install I get the same result.
How can I fix that ?
My Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
actionmailer (4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.4)
actionview (= 4.2.4)
activesupport (= 4.2.4)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
active_model_serializers (0.9.3)
activemodel (>= 3.2)
activejob (4.2.4)
activesupport (= 4.2.4)
globalid (>= 0.3.0)
activemodel (4.2.4)
activesupport (= 4.2.4)
builder (~> 3.1)
activerecord (4.2.4)
activemodel (= 4.2.4)
activesupport (= 4.2.4)
arel (~> 6.0)
activesupport (4.2.4)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.3.6)
arel (6.0.3)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bower-rails (0.7.3)
builder (3.2.2)
byebug (6.0.2)
capistrano (3.4.0)
i18n
rake (>= 10.0.0)
sshkit (~> 1.3)
capistrano-bundler (1.1.4)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-passenger (0.1.1)
capistrano (~> 3.0)
capistrano-rails (1.1.5)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.7)
climate_control (>= 0.0.3, < 1.0)
codeclimate-test-reporter (0.4.8)
simplecov (>= 0.7.1, < 1.0.0)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
colorize (0.7.7)
debug_inspector (0.0.2)
dependor (1.0.1)
diff-lcs (1.2.5)
docile (1.1.5)
dotenv (2.0.2)
dotenv-rails (2.0.2)
dotenv (= 2.0.2)
railties (~> 4.0)
erubis (2.7.0)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.3.2)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-mousewheel-rails (0.0.9)
railties (>= 3.1)
jquery-rails (4.0.5)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jscrollpane-rails (2.0.22)
railties (>= 3.1)
json (1.8.3)
json_spec (1.1.4)
multi_json (~> 1.0)
rspec (>= 2.0, < 4.0)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.3.0)
launchy (~> 2.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
method_source (0.8.2)
mime-types (2.6.2)
mimemagic (0.3.0)
mini_portile (0.6.2)
minitest (5.8.2)
multi_json (1.11.2)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (3.0.1)
newrelic_rpm (3.14.0.305)
nokogiri (1.6.6.4)
mini_portile (~> 0.6.0)
paperclip (4.3.1)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
pg (0.18.3)
pg_search (0.7.9)
activerecord (>= 3.1)
activesupport (>= 3.1)
arel
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.4)
actionmailer (= 4.2.4)
actionpack (= 4.2.4)
actionview (= 4.2.4)
activejob (= 4.2.4)
activemodel (= 4.2.4)
activerecord (= 4.2.4)
activesupport (= 4.2.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.4)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.4)
actionpack (= 4.2.4)
activesupport (= 4.2.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rspec (3.3.0)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-mocks (3.3.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-rails (3.3.3)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
sass (3.4.19)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
select2-rails (4.0.0)
thor (~> 0.14)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slop (3.6.0)
spring (1.2.0)
sprockets (3.4.0)
rack (> 1, < 3)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sshkit (1.7.1)
colorize (>= 0.7.0)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
web-console (2.2.1)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
PLATFORMS
ruby
DEPENDENCIES
RedCloth
active_model_serializers (~> 0.9.3)
bower-rails (~> 0.7.3)
byebug
capistrano (~> 3.4.0)
capistrano-bundler (~> 1.1)
capistrano-passenger (~> 0.1.1)
capistrano-rails (~> 1.1)
capistrano-rvm (~> 0.1)
codeclimate-test-reporter
coffee-rails (~> 4.0.0)
dependor
dotenv-rails (~> 2.0.2)
factory_girl_rails (~> 4.0)
jbuilder (~> 2.0)
jquery-mousewheel-rails
jquery-rails (~> 4.0.5)
jscrollpane-rails (~> 2.0.22)
json_spec
letter_opener
newrelic_rpm (~> 3.14.0.305)
paperclip (~> 4.3.1)
pg (~> 0.18.3)
pg_search (~> 0.7.3)
pry
rails (~> 4.2.4)
rake (~> 10.4.2)
rspec-rails (~> 3.1)
sass-rails (~> 5.0.4)
select2-rails (~> 4.0.0)
spring
turbolinks
uglifier (~> 2.7.2)
web-console (~> 2.2)
BUNDLED WITH
1.10.6
Not sure if this will solve your problem, but try installing the last 1.x bundler version
gem install bundler -v 1.17.3
which still should work with ruby 2.2/rails 4.2, also upgrade to 2.2.10, the last ruby 2.2 patch version.
The only fixable conflict I could see is where paperclip can't find the mimemagic version as 0.3.0 was removed. There's a fix to relax that restriction, but you won't see that up to paperclip 5.0.0.beta1, so consider to upgrade to paperclip 5.x as it seems there are no breaking changes for that version.
Finally, I have the feeling you should try bundle install first, then move to update anything later.
recently I've tryed to clone the repository of my agency, and I got this error on ActiveAdmin and Ransack.
I tryed to clean the cache, change activeadmin version on Gemfile, delete the revision... and I can't found a solution to this problem:
➜ bundle
The git source `git://github.com/activeadmin/activeadmin.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/activerecord-hackery/ransack.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/...........
Fetching git://github.com/activerecord-hackery/ransack.git
fatal: Could not parse object '742425ade4bb66db573dc13bf436a8f3c87b733b'.
Git error: command `git reset --hard 742425ade4bb66db573dc13bf436a8f3c87b733b` in directory /Users/web01/.rvm/gems/ruby-2.1.3#atua/bundler/gems/ransack-742425ade4bb has failed.
If this error persists you could try removing the cache directory '/Users/web01/.rvm/gems/ruby-2.1.3#atua/cache/bundler/git/ransack-ed28102a2b46bd0d8ac98ce8cee4fd3d73f75680'
If I can't solve this, I will not be able to do some changes on the agency website..
Gemfile.lock
GIT
remote: git://github.com/activeadmin/activeadmin.git
revision: ffa68b335c87dcf485aab0107c245565f4d2dbd8
specs:
activeadmin (1.0.0.pre)
arbre (~> 1.0)
bourbon
coffee-rails
formtastic (~> 2.3.0.rc3)
inherited_resources (~> 1.4.1)
jquery-rails
jquery-ui-rails (~> 5.0)
kaminari (~> 0.15)
rails (>= 3.2, < 4.2)
ransack (~> 1.0)
sass-rails
GIT
remote: git://github.com/activerecord-hackery/ransack.git
revision: 742425ade4bb66db573dc13bf436a8f3c87b733b
branch: rails-4.1
specs:
ransack (1.2.4)
actionpack (>= 4.0)
activerecord (>= 4.0)
activesupport (>= 4.0)
i18n
polyamorous (~> 1.1)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.1.5)
actionpack (= 4.1.5)
actionview (= 4.1.5)
mail (~> 2.5.4)
actionpack (4.1.5)
actionview (= 4.1.5)
activesupport (= 4.1.5)
rack (~> 1.5.3)
rack-test (~> 0.6.2)
actionview (4.1.5)
activesupport (= 4.1.5)
builder (~> 3.1)
erubis (~> 2.7.0)
active_skin (0.0.9)
activemodel (4.1.5)
activesupport (= 4.1.5)
builder (~> 3.1)
activerecord (4.1.5)
activemodel (= 4.1.5)
activesupport (= 4.1.5)
arel (~> 5.0.0)
activesupport (4.1.5)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (5.0.1.20140414130214)
bcrypt (3.1.7)
better_errors (2.1.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
rack (>= 0.9.0)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bourbon (3.2.3)
sass (~> 3.2)
thor
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.4)
climate_control (>= 0.0.3, < 1.0)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.7.1)
connection_pool (2.2.0)
daemons (1.2.4)
debug_inspector (0.0.2)
devise (3.3.0)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
erubis (2.7.0)
eventmachine (1.2.3)
execjs (2.2.1)
formtastic (2.3.0.rc4)
actionpack (>= 3.0)
has_scope (0.6.0.rc)
actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
hike (1.2.3)
hitimes (1.2.2)
httparty (0.14.0)
multi_xml (>= 0.5.2)
i18n (0.6.11)
inherited_resources (1.4.1)
has_scope (~> 0.6.0.rc)
responders (~> 1.0.0.rc)
jbuilder (2.1.3)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.0)
railties (>= 3.2.16)
json (1.8.1)
kaminari (0.16.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.10.0)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.25.1)
mina (0.3.0)
open4
rake
minitest (5.4.0)
multi_json (1.10.1)
multi_xml (0.6.0)
mysql2 (0.3.18)
open4 (1.3.4)
orm_adapter (0.5.0)
paperclip (4.2.0)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
polyamorous (1.1.0)
activerecord (>= 3.0)
polyglot (0.3.5)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-nav (0.2.4)
pry (>= 0.9.10, < 0.11.0)
rack (1.5.3)
rack-protection (1.5.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.5)
actionmailer (= 4.1.5)
actionpack (= 4.1.5)
actionview (= 4.1.5)
activemodel (= 4.1.5)
activerecord (= 4.1.5)
activesupport (= 4.1.5)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.5)
sprockets-rails (~> 2.0)
railties (4.1.5)
actionpack (= 4.1.5)
activesupport (= 4.1.5)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
raindrops (0.16.0)
rake (10.3.2)
redis (3.2.1)
redis-namespace (1.5.2)
redis (~> 3.0, >= 3.0.4)
responders (1.0.0)
railties (>= 3.2, < 5)
sass (3.2.19)
sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
sidekiq (2.14.1)
celluloid (>= 0.14.1)
connection_pool (>= 1.0.0)
json
redis (>= 3.0.4)
redis-namespace (>= 1.3.1)
sinatra (1.4.6)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
slim (3.0.3)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.1.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
temple (0.7.5)
thin (1.7.1)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0, >= 1.0.4)
rack (>= 1, < 3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
timers (4.0.1)
hitimes
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (2.2.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
unicorn (5.0.1)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
unicorn-rails (2.2.0)
rack
unicorn
warden (1.2.3)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
active_skin
activeadmin!
better_errors
binding_of_caller
coffee-rails (~> 4.0.0)
devise (~> 3.3.0)
formtastic (~> 2.3.0.rc3)
httparty
jbuilder (~> 2.0)
jquery-rails
mina
mysql2 (~> 0.3.17)
paperclip (~> 4.2.0)
polyamorous (~> 1.1.0)
pry
pry-nav
rails (= 4.1.5)
ransack!
sass-rails (~> 4.0.3)
sidekiq (~> 2.14.0)
sinatra
slim
thin
turbolinks
uglifier (>= 1.3.0)
unicorn-rails
Gemfile
source 'https://rubygems.org'
gem 'unicorn-rails', group: :production
gem 'rails', '4.1.5'
gem 'mysql2', "~> 0.3.17"
# assets group
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sidekiq', '~> 2.14.0'
gem 'sinatra', require: false
gem 'slim'
gem 'httparty'
# gem 'therubyracer', platforms: :ruby
# development group
gem 'thin', group: :development
gem 'better_errors', group: :development
gem 'binding_of_caller', group: :development
# custom gems
gem 'activeadmin', github: 'activeadmin'
gem 'paperclip', '~> 4.2.0'
gem 'mina'
# active admin dependencies
gem 'devise', '~> 3.3.0'
gem 'polyamorous', '~> 1.1.0'
gem 'formtastic', '~> 2.3.0.rc3' # change to 2.3 when stable is released
gem 'ransack', github: 'activerecord-hackery/ransack', branch: 'rails-4.1'
gem 'active_skin'
# debugger gem
gem 'pry', group: :development
gem 'pry-nav', group: :development
The commit still exists in the ransack repo. Try gem pristine --all to reset all gems to their downloaded version.
I'm in the process of upgrading a rails project from rails 3.0 to 4.1.8. I've just done my first migration since upgrading and after running it a number of tables were missing from the schema.rb, with the following message.
Could not dump table "accounts" because of following NoMethodError
undefined method `default_string' for #ActiveRecord::SchemaDumper:0x007fcf024c7b00>
The missing tables all have columns with default values.
I've seen similar issues reported here
https://github.com/rails/rails/issues/11995
and here
https://github.com/rsim/oracle-enhanced/issues/221
but my project doesn't match these in terms of gem or database.
I've created a new project under rails 4.1.8, created a migration to create one of the tables that fails to dump, in a MySQL db and this runs successfully and generates the schema file complete with default values.
Has anyone come across a similar issue? Any suggestions of where to look?
Gemfile.lock when it works:
specs:
actionmailer (4.1.8)
actionpack (= 4.1.8)
actionview (= 4.1.8)
mail (~> 2.5, >= 2.5.4)
actionpack (4.1.8)
actionview (= 4.1.8)
activesupport (= 4.1.8)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.8)
activesupport (= 4.1.8)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.8)
activesupport (= 4.1.8)
builder (~> 3.1)
activerecord (4.1.8)
activemodel (= 4.1.8)
activesupport (= 4.1.8)
arel (~> 5.0.0)
activesupport (4.1.8)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
builder (3.2.2)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
erubis (2.7.0)
execjs (2.2.2)
formtastic (3.1.2)
actionpack (>= 3.2.13)
hike (1.2.3)
i18n (0.6.11)
jbuilder (2.2.5)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (3.1.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.4.3)
minitest (5.4.3)
multi_json (1.10.1)
mysql2 (0.3.17)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.8)
actionmailer (= 4.1.8)
actionpack (= 4.1.8)
actionview (= 4.1.8)
activemodel (= 4.1.8)
activerecord (= 4.1.8)
activesupport (= 4.1.8)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.8)
sprockets-rails (~> 2.0)
railties (4.1.8)
actionpack (= 4.1.8)
activesupport (= 4.1.8)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rdoc (4.1.2)
json (~> 1.4)
sass (3.2.19)
sass-rails (4.0.5)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.2)
sprockets (~> 2.8, < 3.0)
sprockets-rails (~> 2.0)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
spring (1.2.0)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
turbolinks (2.5.2)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
Gemfile.lock when it doesn't:
specs:
actionmailer (4.1.8)
actionpack (= 4.1.8)
actionview (= 4.1.8)
mail (~> 2.5, >= 2.5.4)
actionpack (4.1.8)
actionview (= 4.1.8)
activesupport (= 4.1.8)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.8)
activesupport (= 4.1.8)
builder (~> 3.1)
erubis (~> 2.7.0)
active_utils (2.2.3)
activesupport (>= 2.3.11)
i18n
activemerchant (1.45.0)
active_utils (~> 2.2.0)
activesupport (>= 3.2.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0)
i18n (>= 0.6.9)
json (~> 1.7)
nokogiri (~> 1.4)
offsite_payments (~> 2.0.0)
activemodel (4.1.8)
activesupport (= 4.1.8)
builder (~> 3.1)
activerecord (4.1.8)
activemodel (= 4.1.8)
activesupport (= 4.1.8)
arel (~> 5.0.0)
activeresource (4.0.0)
activemodel (~> 4.0)
activesupport (~> 4.0)
rails-observers (~> 0.1.1)
activesupport (4.1.8)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
addressable (2.3.6)
airbrake (4.1.0)
builder
multi_json
arel (5.0.1.20140414130214)
authlogic (3.4.3)
activerecord (>= 3.2)
activesupport (>= 3.2)
request_store (~> 1.0)
scrypt (~> 1.2)
awesome_print (1.2.0)
aws-sdk (1.59.1)
aws-sdk-v1 (= 1.59.1)
aws-sdk-v1 (1.59.1)
json (~> 1.4)
nokogiri (>= 1.4.4)
axlsx (2.0.1)
htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1)
rubyzip (~> 1.0.0)
braintree (2.37.0)
builder (>= 2.0.0)
builder (3.2.2)
cancan (1.6.10)
capybara (2.4.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
chargify_api_ares (1.3.0)
activeresource (>= 3.2.16)
childprocess (0.5.5)
ffi (~> 1.0, >= 1.0.11)
climate_control (0.0.3)
activesupport (>= 3.0)
cobravsmongoose (0.0.2)
cocaine (0.5.4)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
crack (0.4.2)
safe_yaml (~> 1.0.0)
crass (0.2.1)
cucumber (1.3.17)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12)
multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.1)
cucumber-rails (1.4.2)
capybara (>= 1.1.2, < 3)
cucumber (>= 1.3.8, < 2)
mime-types (>= 1.16, < 3)
nokogiri (~> 1.5)
rails (>= 3, < 5)
daemons (1.1.9)
database_cleaner (1.3.0)
diff-lcs (1.2.5)
doc_raptor (0.3.2)
httparty (>= 0.7.0)
domain_name (0.5.22)
unf (>= 0.0.5, < 1.0.0)
engineyard (3.0.1)
engineyard-cloud-client (~> 2.1.1)
engineyard-serverside-adapter (= 2.2.0)
escape (~> 0.0.4)
highline (~> 1.6.1)
launchy (~> 2.1)
net-ssh (~> 2.7)
engineyard-cloud-client (2.1.1)
multi_json (~> 1.6)
rest-client (~> 1.7)
engineyard-serverside-adapter (2.2.0)
escape (~> 0.0.4)
multi_json (~> 1.6)
erector (0.10.0)
treetop (>= 1.2.3)
erubis (2.7.0)
escape (0.0.4)
eventmachine (1.0.3)
execjs (2.2.2)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
ffaker (1.25.0)
ffi (1.9.6)
ffi-compiler (0.1.3)
ffi (>= 1.0.0)
rake
formtastic (3.1.2)
actionpack (>= 3.2.13)
fuubar (2.0.0)
rspec (~> 3.0)
ruby-progressbar (~> 1.4)
fuubar-cucumber (0.0.22)
cucumber (~> 1.3.0)
ruby-progressbar (~> 1.2)
gherkin (2.12.2)
multi_json (~> 1.3)
gibbon (1.1.4)
httparty
multi_json (>= 1.3.4)
googlecharts (1.6.8)
haml (4.0.6)
tilt
hashie (3.3.1)
highline (1.6.21)
hike (1.2.3)
htmlentities (4.3.2)
http-cookie (1.0.2)
domain_name (~> 0.5)
http_logger (0.5.1)
httparty (0.13.3)
json (~> 1.8)
multi_xml (>= 0.5.2)
i18n (0.6.11)
jbuilder (2.2.5)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-datatables-rails (3.1.1)
actionpack (>= 3.1)
jquery-rails
railties (>= 3.1)
sass-rails
jquery-minicolors-rails (2.1.4.0)
jquery-rails
rails (>= 3.2.8)
jquery-rails (3.1.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.3)
railties (>= 3.2.16)
json (1.8.1)
json_spec (1.1.4)
multi_json (~> 1.0)
rspec (>= 2.0, < 4.0)
launchy (2.4.3)
addressable (~> 2.3)
livequery-rails (0.0.1)
railties (>= 3.0)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mechanize (2.7.3)
domain_name (~> 0.5, >= 0.5.1)
http-cookie (~> 1.0)
mime-types (~> 2.0)
net-http-digest_auth (~> 1.1, >= 1.1.1)
net-http-persistent (~> 2.5, >= 2.5.2)
nokogiri (~> 1.4)
ntlm-http (~> 0.1, >= 0.1.1)
webrobots (>= 0.0.9, < 0.2)
metaclass (0.0.4)
mime-types (2.4.3)
mini_portile (0.6.1)
minitest (5.4.3)
mocha (1.1.0)
metaclass (~> 0.0.1)
money (6.4.0)
i18n (>= 0.6.4, <= 0.7.0.beta1)
mono_logger (1.1.0)
multi_json (1.10.1)
multi_test (0.1.1)
multi_xml (0.5.5)
mysql2 (0.3.17)
net-http-digest_auth (1.4)
net-http-persistent (2.9.4)
net-ssh (2.9.1)
netrc (0.9.0)
nokogiri (1.6.5)
mini_portile (~> 0.6.0)
nokogumbo (1.1.12)
nokogiri
ntlm-http (0.1.1)
offsite_payments (2.0.1)
active_utils (~> 2.2.0)
activesupport (>= 3.2.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0)
i18n (~> 0.5)
json (~> 1.7)
money (< 7.0.0)
nokogiri (~> 1.4)
orderedhash (0.0.6)
paperclip (4.2.0)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
paranoia (2.0.4)
activerecord (~> 4.0)
polyglot (0.3.5)
rack (1.5.2)
rack-protection (1.5.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.8)
actionmailer (= 4.1.8)
actionpack (= 4.1.8)
actionview (= 4.1.8)
activemodel (= 4.1.8)
activerecord (= 4.1.8)
activesupport (= 4.1.8)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.8)
sprockets-rails (~> 2.0)
rails-observers (0.1.2)
activemodel (~> 4.0)
railties (4.1.8)
actionpack (= 4.1.8)
activesupport (= 4.1.8)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rdoc (4.1.2)
json (~> 1.4)
redcarpet (3.2.1)
redis (3.1.0)
redis-namespace (1.5.1)
redis (~> 3.0, >= 3.0.4)
request_store (1.1.0)
resque (1.25.2)
mono_logger (~> 1.0)
multi_json (~> 1.0)
redis-namespace (~> 1.3)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
rest-client (1.7.2)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
right_aws (3.1.0)
right_http_connection (>= 1.2.5)
right_http_connection (1.5.0)
rspec (3.1.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-activemodel-mocks (1.0.1)
activemodel (>= 3.0)
activesupport (>= 3.0)
rspec-mocks (>= 2.99, < 4.0)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-rails (3.1.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
rturk (2.12.1)
erector
nokogiri
rest-client
ruby-ole (1.2.11.7)
ruby-progressbar (1.7.0)
rubyXL (3.0.0)
nokogiri (>= 1.4.4)
rubyzip (>= 1.0.0)
rubyzip (1.0.0)
safe_yaml (1.0.4)
sanitize (3.0.3)
crass (~> 0.2.0)
nokogiri (>= 1.4.4)
nokogumbo (= 1.1.12)
sass (3.2.19)
sass-rails (4.0.5)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.2)
sprockets (~> 2.8, < 3.0)
sprockets-rails (~> 2.0)
scrypt (1.2.1)
ffi-compiler (>= 0.0.2)
rake
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
selenium-webdriver (2.44.0)
childprocess (~> 0.5)
multi_json (~> 1.0)
rubyzip (~> 1.0)
websocket (~> 1.0)
shoulda-context (1.2.1)
simple-navigation (3.13.0)
activesupport (>= 2.3.2)
simple_xurrency (1.1.2)
crack (>= 0.1.8)
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
spreadsheet (1.0.0)
ruby-ole (>= 1.0)
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.2.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
symbolize (4.5.1)
activemodel (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
thin (1.6.3)
daemons (~> 1.0, >= 1.0.9)
eventmachine (~> 1.0)
rack (~> 1.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
transitions (0.1.13)
treetop (1.5.3)
polyglot (~> 0.3)
turbolinks (2.5.2)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.6)
uuidtools (2.1.5)
vegas (0.1.11)
rack (>= 1.0.0)
webmock (1.20.4)
addressable (>= 2.3.6)
crack (>= 0.3.2)
webrobots (0.1.1)
websocket (1.2.1)
will_paginate (3.0.7)
writeexcel (1.0.4)
xpath (2.0.0)
nokogiri (~> 1.3)
I'm working around the problem at the moment by having restored my old schema file and manually editing it, but obviously this isn't ideal.
There is a huge diff between those two with lots of potential candidates. First thing I'd recommend is just trying a blanket upgrade to all gems keeping your fingers crossed that the bug has been fixed, and then start with the Gemfile that works and add each of the gems back in one-by-one to find the culprit.
I would start with paranoia and authlogic because they each have activerecord dependency which makes them more likely to be the problem gems.
I'm trying to install the latest ruby and latest rails in latest gem version
I have rvm installed and created a new gemset named hotel
~$ rvm use ruby-2.0.0-p247#hotel
Using /home/circar/.rvm/gems/ruby-2.0.0-p247 with gemset hotel
~$ gem list
*** LOCAL GEMS ***
actionmailer (4.0.0)
actionpack (4.0.0)
activemodel (4.0.0)
activerecord (4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
arel (4.0.0)
atomic (1.1.14)
builder (3.1.4)
bundler (1.3.5)
coffee-rails (4.0.0)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
erubis (2.7.0)
execjs (2.0.1)
hike (1.2.3)
i18n (0.6.5)
jbuilder (1.5.1)
mail (2.5.4)
mime-types (1.25)
minitest (4.7.5)
multi_json (1.8.0)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rails (4.0.0)
railties (4.0.0)
rake (10.1.0)
rubygems-update (2.1.1)
rvm (1.11.3.8)
sprockets (2.10.0)
sprockets-rails (2.0.0)
thor (0.18.1)
thread_safe (0.1.3)
tilt (1.4.1)
treetop (1.4.15)
tzinfo (0.3.37)
~$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
~$ rails -v
Rails 4.0.0
~$ gem -v
2.1.1
But when I'm trying to install
jquery-rails
as
~$ sudo gem install jquery-rails
It shows Error as
ERROR: Error installing jquery-rails:
activesupport requires Ruby version >= 1.9.3.
Anyone please help me to install the jquery-rails gem with the latest update environment.
The gem is also pointing the current rvm
$ which gem
/home/circar/.rvm/rubies/ruby-2.0.0-p247/bin/gem
I googled it, but i dont know why i stumble in this place? I am unable to find any problem in my process, as stated everywhere.
Any help highly appreciated.
Thanks in advance.
sudo gem install jquery-rails is probably using your system's built-in Ruby (which is likely 1.8, or 1.9.2). This is because you're using sudo.
With RVM, get rid of the sudo and it'll use RVM instead:
gem install jquery-rails
I have Rails 4.0.0 app. When I run bundle install command there is no problem. This is my GemFile.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
gem 'mysql2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0.rc2'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
gem 'pry'
gem 'devise', git: "https://github.com/plataformatec/devise.git", branch: 'rails4'
gem 'bcrypt-ruby'
gem 'simple_form'
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
gem 'simple_form'
gem 'jquery-ui-rails'
group :development, :test do
gem 'rspec-rails', '~> 2.0'
gem 'cucumber-rails', :git => "https://github.com/cucumber/cucumber-rails.git", :branch => "master_rails4_test", :require => false
gem 'database_cleaner'
gem 'factory_girl'
gem "factory_girl_rails", "~> 4.0"
gem "database_cleaner"
gem "awesome_print"
end
And this is my Gemfile.lock
GIT
remote: https://github.com/cucumber/cucumber-rails.git
revision: 5fa9da37ab05213d2f46029ea476e09104ffe281
branch: master_rails4_test
specs:
cucumber-rails (1.3.1)
capybara (>= 1.1.2)
cucumber (>= 1.2.0)
nokogiri (>= 1.5.0)
rails (>= 3.0.0)
GIT
remote: https://github.com/plataformatec/devise.git
revision: 6b5988d756d780903bf8c9ccb3e2b3b724ccebe8
branch: rails4
specs:
devise (2.2.4)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
warden (~> 1.2.1)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
actionpack (= 4.0.0)
mail (~> 2.5.3)
actionpack (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.0)
atomic (1.1.10)
awesome_print (1.1.0)
bcrypt-ruby (3.1.1)
builder (3.1.4)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
coderay (1.0.9)
coffee-rails (4.0.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0.beta, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
commonjs (0.2.6)
cucumber (1.3.4)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.12.0)
multi_json (~> 1.7.5)
multi_test (~> 0.0.1)
database_cleaner (1.0.1)
diff-lcs (1.2.4)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
factory_girl (4.2.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.2.1)
factory_girl (~> 4.2.0)
railties (>= 3.0.0)
gherkin (2.12.0)
multi_json (~> 1.3)
hike (1.2.3)
i18n (0.6.4)
jbuilder (1.4.2)
activesupport (>= 3.0.0)
multi_json (>= 1.2.0)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.0.3)
jquery-rails
railties (>= 3.1.0)
json (1.8.0)
less (2.3.2)
commonjs (~> 0.2.6)
less-rails (2.3.3)
actionpack (>= 3.1)
less (~> 2.3.1)
libv8 (3.11.8.17)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.1)
mime-types (1.23)
mini_portile (0.5.1)
minitest (4.7.5)
multi_json (1.7.7)
multi_test (0.0.1)
mysql2 (0.3.13)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
orm_adapter (0.4.0)
polyglot (0.3.3)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.0)
actionmailer (= 4.0.0)
actionpack (= 4.0.0)
activerecord (= 4.0.0)
activesupport (= 4.0.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.0)
sprockets-rails (~> 2.0.0)
railties (4.0.0)
actionpack (= 4.0.0)
activesupport (= 4.0.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.5)
rspec-core (2.14.3)
rspec-expectations (2.14.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.1)
rspec-rails (2.14.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
sass (3.2.9)
sass-rails (4.0.0)
railties (>= 4.0.0.beta, < 5.0)
sass (>= 3.1.10)
sprockets-rails (~> 2.0.0)
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
simple_form (1.4.1)
slop (3.4.5)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
therubyracer (0.11.4)
libv8 (~> 3.11.8.12)
ref
thor (0.18.1)
thread_safe (0.1.0)
atomic
tilt (1.4.1)
treetop (1.4.14)
polyglot
polyglot (>= 0.3.1)
turbolinks (1.3.0)
coffee-rails
twitter-bootstrap-rails (2.2.7)
actionpack (>= 3.1)
execjs
rails (>= 3.1)
railties (>= 3.1)
tzinfo (0.3.37)
uglifier (2.1.2)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
warden (1.2.3)
rack (>= 1.0)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
awesome_print
bcrypt-ruby
coffee-rails (~> 4.0.0)
cucumber-rails!
database_cleaner
devise!
factory_girl
factory_girl_rails (~> 4.0)
jbuilder (~> 1.2)
jquery-rails
jquery-ui-rails
less-rails
mysql2
pry
rails (= 4.0.0)
rspec-rails (~> 2.0)
sass-rails (~> 4.0.0.rc2)
sdoc
simple_form
therubyracer
turbolinks
twitter-bootstrap-rails
uglifier (>= 1.3.0)
When I run rake sometask , I faced with this problem,
You don't have bcrypt-ruby installed in your application. Please add it to your Gemfile and run bundle install
rake aborted!
can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1. Make sure all dependencies are added to Gemfile.
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:224:in `block in replace_gem'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activemodel-4.0.0/lib/active_model/secure_password.rb:47:in `has_secure_password'
/Users/apple/Projects/YH/multi-domains/app/models/super_admin_user.rb:2:in `<class:SuperAdminUser>'
/Users/apple/Projects/YH/multi-domains/app/models/super_admin_user.rb:1:in `<top (required)>'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:423:in `load'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:423:in `block in load_file'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:615:in `new_constants_in'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:422:in `load_file'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:323:in `require_or_load'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:462:in `load_missing_constant'
/Users/apple/.rvm/gems/ruby-2.0.0-p0#rails4/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:183:in `const_missing'
/Users/apple/Projects/YH/multi-domains/lib/tasks/generate_new_data.rake:3:in `block in <top (required)>'
How should I fix this?
In your gemfile, you aren't specifying the version, so you're installing the latest version of bcrypt-ruby which is 3.1.1, but what you need is any version from 3.0.0 to 3.0.9. You can get this by adding a version constraint like so:
gem 'bcrypt-ruby', '~> 3.0.0'
The version requirement comes from ActiveModel's SecurePassword which currently has an explicit dependency on bcrypt-ruby (~> 3.0.0). You can see the dependency on github. When this code is executed, it looks for a version 3.0.0 through 3.0.9 which is not installed and so it throws an error.
This dependency was just updated to '~> 3.1.0' a couple of days ago, but has not made its way into the rails activemodel gem yet. When it does, you'll have to update your version accordingly. Here's the commit if you're curious.
Install both 3.0.1 and 3.1.2 bcrypt version
go to "\Ruby200\lib\ruby\gems\2.0.0\gems\bcrypt-ruby-3.1.2-x86-mingw32\lib"
copy the '2.0' folder
paste into "Ruby200\lib\ruby\gems\2.0.0\gems\bcrypt-ruby-3.0.1-x86-mingw32\lib"
include gem 'bcrypt-ruby' in your Gemfile
bundle install
I had the same problem. Add
gem 'bcrypt-ruby', '~> 3.0.0'
then run
bundle install and the restart the server. Worked for me
Remove Gemfile.lock and specify the gem 'bcrypt-ruby', '3.0.0'. Run bundle install. Actually, in local gem file bcrypt-ruby should be uninstalled.
I had the same issue, but the current approach provided gem 'bcrypt-ruby', '~> 3.0.0' didn't work so I actually installed version 3.0.0
adding the line gem 'bcrypt-ruby', '3.0.0' to Gemfile and installing specific version 3.0.0 (although it should work up to version 3.0.9)
gem install --version='3.0.0' bcrypt-ruby After this, just verify your bundle install, you can run bundle show bcrypt-ruby and then you should have the path where this gem was installed, something like %RUBY_PATH%/lib/ruby/gems/2.0.0/gems/bcrypt-ruby-3.0.0
after these steps I was able to use the bcrypt without problems... just posting this in the event someone still encounters this issue.
Use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'
Had the same issue. Removing the comment # from above line resolved my issue, as jconley mentioned.
For me it worked by just deleting the dependency for version of bycript in the /active_model/secure_password.rb for development test environment.
I always made sure to add it in production just to 100% safe
In console:
$ gem install bundler
$ gem install bcrypt
$ bundle update bcrypt
Add; gem 'bcrypt-ruby', '~> 3.1.1' to your gemfile
Or if you specifically want 3.0.0, follow Maximus's advice and add: gem 'bcrypt-ruby', '3.0.0'
Then bundle update bcrypt-ruby.
You might also want to try deleting your gemfile.lock and re-running bundle install.