I am new on RoR and created a new project with all configurations of ruby and rails.
I have
mac version 12.4 Monterey
rails 6.0.5
ruby 2.7.2
postgresql
I configured these using rbnev from this tutorial https://gorails.com/setup/osx/12-monterey and https://collectionbuilder.github.io/cb-docs/docs/software/ruby_mac/
I created new app using rails new myapp -d postgresql. It's showing this error while building the project:
/Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/message_encryptor.rb:173:in `auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError)
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/message_encryptor.rb:173:in `_encrypt'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/message_encryptor.rb:151:in `encrypt_and_sign'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/encrypted_file.rb:76:in `encrypt'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/encrypted_file.rb:50:in `write'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.0.5/lib/active_support/encrypted_configuration.rb:29:in `write'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/generators/rails/credentials/credentials_generator.rb:30:in `add_credentials_file_silently'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/generators/rails/app/app_generator.rb:177:in `credentials'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/generators/app_base.rb:155:in `build'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/generators/rails/app/app_generator.rb:332:in `create_credentials'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `block in invoke_all'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `each'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `map'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:134:in `invoke_all'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/group.rb:232:in `dispatch'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/commands/application/application_command.rb:26:in `perform'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from /Library/Ruby/Gems/2.6.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/command/base.rb:69:in `perform'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/command.rb:46:in `invoke'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/lib/rails/cli.rb:18:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in `require'
from /Library/Ruby/Gems/2.6.0/gems/railties-6.0.5/exe/rails:10:in `<top (required)>'
from /usr/bin/rails:22:in `load'
from /usr/bin/rails:22:in `<main>'
According to your issues on MAC device for ROR, You might be facing the issues because of versioning system and rbnev, and I got an article over the internet that described the same issue with some solutions.
Maybe this article will help you to fix that problem
If you can fix the issue from the article then let me know here too.
Related
I have created project in path: D:\Сайты\ruby\lr5. When I am trying to launch it by command rails server it throws this error:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch': No such file or directory - bs_fetch:open_current_file:open (Errno::ENOENT)
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/compile_cache/iseq.rb:85:in `load_iseq'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:137:in `block in perform'
from <internal:kernel>:90:in `tap'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:134:in `perform'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from bin/rails:4:in `<main>'
I was trying to uninstall bootsnap, which has been download automatically with gem install rails, and install it manually, but it didn't give any positive result.
My OS is Windows 10 Home
My Ruby version is 3.1.0
I have downloaded Ruby from official by executable file (name is 'rubyinstaller-devkit-3.1.3-1-x64.exe'). Then I have installed gems MySQL and rails.
P.s Sorry for my english <3
I found a solution!
First problem: You can't use russian symbols in your path.
Second problem: In your Gemfile, it must be written this gem "tzinfo-data" (without requirements).
I made a ActiveJob class for a background work collecting some data from the server and storing the data to my DB.
To make the job working, I added some trigger code as
# in config/environment.rb
MyJob.perform_later
# the perform method
def perform(*args)
update_db
MyJob.set(wait: 1.minutes).perform_later
end
But, after that suddenly, bin/rails console stoped working.
My rails version is '7.0.4' and ruby version is '3.1.2'
The error log is following:
$ ./bin/rails console
.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-7.0.4/lib/active_record/base.rb:282:in `<module:ActiveRecord>': No live threads left. Deadlock? (fatal)
3 threads, 3 sleeps current:0x000000010b0e22b0 main thread:0x0000000139e04610
* #<Thread:0x0000000100fa4d48 sleep_forever>
rb_thread_t:0x0000000139e04610 native:0x000000010103c580 int:0
* #<Thread:0x0000000106403e48#DEBUGGER__::SESSION#server .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/debug-1.6.2/lib/debug/session.rb:154 sleep_forever>
rb_thread_t:0x000000010a6b9190 native:0x000000016f1b7000 int:0
* #<Thread:0x00000001065f1b60#worker-1 .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:332 sleep_forever>
rb_thread_t:0x000000010b0e22b0 native:0x000000016f3c3000 int:0
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-7.0.4/lib/active_record/base.rb:15:in `<main>'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/kernel.rb:35:in `require'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/activerecord-7.0.4/lib/active_record/railtie.rb:62:in `block in <class:Railtie>'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/railtie.rb:273:in `block in run_console_blocks'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/railtie.rb:298:in `each'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/railtie.rb:298:in `each_registered_block'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/railtie.rb:273:in `run_console_blocks'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:526:in `block in run_console_blocks'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine/railties.rb:15:in `each'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine/railties.rb:15:in `each'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:526:in `run_console_blocks'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/engine.rb:449:in `load_console'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/console/console_command.rb:35:in `initialize'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/console/console_command.rb:19:in `new'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/console/console_command.rb:19:in `start'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands/console/console_command.rb:102:in `perform'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from .asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
from ./bin/rails:4:in `<main>'
I have searched any way to solve this problem but, I couldn't.
I just guess this problem is about the thread of ActiveJob or updating ActiveRecord(DB).
Please give me some help.
Thanks in advance!
The problem is caused by "MyJob.perform_later" in the "environment.rb" file. After I move the line to "config.after_initialize" block in "config/application.rb" file, I can use the console.
I've installed ruby-rubocop for VSCode, and gem installed rubocop, but every time I save a file, this error is thrown:
cannot load such file -- rubocop/rspec/focused
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_loader_resolver.rb:15:in `block in resolve_requires'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_loader_resolver.rb:11:in `each'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_loader_resolver.rb:11:in `resolve_requires'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_loader.rb:45:in `load_file'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_loader.rb:90:in `configuration_from_file'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_store.rb:54:in `for_dir'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/config_store.rb:44:in `for'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:180:in `block in process_explicit_path'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:179:in `reject'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:179:in `process_explicit_path'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:39:in `block in find'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:35:in `each'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/target_finder.rb:35:in `find'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/runner.rb:69:in `find_target_files'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/runner.rb:34:in `run'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli/command/execute_runner.rb:21:in `execute_runner'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli/command/execute_runner.rb:13:in `run'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli/command.rb:10:in `run'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli/environment.rb:17:in `run'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli.rb:65:in `run_command'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli.rb:72:in `execute_runners'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/lib/rubocop/cli.rb:41:in `run'
/Library/Ruby/Gems/2.6.0/gems/rubocop-0.85.0/exe/rubocop:13:in `block in <top (required)>'
Please help! I've been trying to make this work, and scouring the internet for solutions, but haven't had any luck yet.
That cop is part of the rubocop-rspec plug-in, so you may also have to run gem install rubocop-rspec.
Found and fixed the issue.
As it turns out, the culprits are:
rubocop -v 0.85.0
rubocop-rspec
The fix was just to downgrade both since our organization is using the older versions. So now I installed:
rubocop -v 0.75.1
rubocop-rspec-focused
I've just tried installing Ruby on Rails via the RailsInstaller for Windows. All went absolutely fine, until I tried creating my first app. Basically I run
rails new 'first_app'
and it creates all the appropriate files but throws up this error message when trying to run 'bundle install'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require': 193: %1 is not a valid Win32 application. - C:/RailsInstaller
/Ruby1.9.3/lib/ruby/1.9.1/i386-mingw32/openssl.so (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl.rb:17:in `<top (
required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:316:in `connection_for'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:368:in `request'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:203:in `fetch_http'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:213:in `fetch_http'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:231:in `fetch_path'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:265:in `load_specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:231:in `block in list'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:227:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:227:in `list'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:150:in `find_matching_with_errors'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:89:in `fetch_with_errors'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:110:in `find_gems_with_sources'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:228:in `find_spec_by_name_and_version'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:259:in `install'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:121:in `block in execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:115:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:115:in `execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd.rb:278:in `invoke'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd_manager.rb:147:in `process_args'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd_manager.rb:117:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/gem_r
unner.rb:65:in `run'
from C:/RailsInstaller/Ruby1.9.3/bin/gem:21:in `<main>'
I've tried re-installing but it still pulls up that error.
The relevant error message here is 193: %1 is not a valid Win32 application.
Checkout this answer for a previous question about the same; it explains why the problem happens, and provides suggestions as to how to fix it.
The person who provided the answer - Luis Lavena - has worked extensively to make ruby work well on windows, and is the creator of Ruby Installer for Windows.
Due to an issue in Sprockets that fails in Ruby 2.0, I need to update my Rails version to the latest version. As a result, my Gemfile looks like this:
gem 'rails', git: 'git://github.com/rails/rails.git', branch: "3-2-stable"
which then results in the stack trace shown below. Rails edge also shows the same problem, though they are running their test suite against Ruby 2.0 so it must be compatible.
So I'm guessing there may be dependent libraries that either Rails or Ruby were built against that aren't playing nice with Ruby 2.0-preview1
> bundle
Updating git://github.com/rails/rails.git
Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
.rvm/rubies/ruby-2.0.0-preview1/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): mapping values are not allowed in this context at line 8 column 35 (Psych::SyntaxError)
from .rvm/rubies/ruby-2.0.0-preview1/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from .rvm/rubies/ruby-2.0.0-preview1/lib/ruby/2.0.0/psych.rb:153:in `parse'
from .rvm/rubies/ruby-2.0.0-preview1/lib/ruby/2.0.0/psych.rb:129:in `load'
from .rvm/rubies/ruby-2.0.0-preview1/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:491:in `from_yaml'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler.rb:294:in `block in load_gemspec_uncached'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler.rb:291:in `chdir'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler.rb:291:in `load_gemspec_uncached'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler.rb:282:in `load_gemspec'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:411:in `block in load_spec_files'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:410:in `each'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:410:in `load_spec_files'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:799:in `load_spec_files'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:381:in `local_specs'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/source.rb:774:in `specs'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:491:in `block in converge_locked_specs'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:480:in `each'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:480:in `converge_locked_specs'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:166:in `resolve'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from .rvm/gems/ruby-2.0.0-preview1#global/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from .rvm/gems/ruby-2.0.0-preview1#global/bin/bundle:19:in `load'
from .rvm/gems/ruby-2.0.0-preview1#global/bin/bundle:19:in `<main>'
from .rvm/gems/ruby-2.0.0-preview1#album_releases/bin/ruby_noexec_wrapper:14:in `eval'
from .rvm/gems/ruby-2.0.0-preview1#album_releases/bin/ruby_noexec_wrapper:14:in `<main>'
This was a bug in Bundler, as described here: https://github.com/rails/rails/issues/8136
It has since been fixed.
I had this issue. It was caused by psych seeing code like "this:" in a heredoc within a gemspec (Prawn, in my case), and thinking it was a hash. I believe it's a regression in 2.0.0-preview1, because i had had ruby-head prior, and did not hit this issue.