How to solve the the Curl's "Couldn't connect to server" - ruby

I'm using Rspec with Capybara with WebMock for my tests (also I'm using Charles proxy), Getting the following error, never in a specific test.
I've had this happen once in a while, using rspec-retry mostly to deal with it, but now I've noticed it take allot of time on each encounter with this error.
Any ideas?
Curl::Err::ConnectionFailedError: Couldn't connect to server
/home/user/.rvm/gems/ruby-2.2.4/gems/curb-0.8.8/lib/curl/easy.rb:72:in `perform'
/home/user/.rvm/gems/ruby-2.2.4/gems/curb-0.8.8/lib/curl/easy.rb:294:in `http'
/home/user/.rvm/gems/ruby-2.2.4/gems/curb-0.8.8/lib/curl/easy.rb:294:in `http_get'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/curb.rb:63:in `request'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:59:in `call'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:649:in `raw_execute'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:627:in `execute'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:576:in `isElementDisplayed'
/home/user/.rvm/gems/ruby-2.2.4/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/common/element.rb:190:in `displayed?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/selenium/node.rb:126:in `visible?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/element.rb:252:in `block in visible?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/base.rb:81:in `synchronize'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/element.rb:252:in `visible?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/queries/selector_query.rb:49:in `matches_filters?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/result.rb:28:in `block in initialize'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/result.rb:28:in `select'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/result.rb:28:in `initialize'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/queries/selector_query.rb:120:in `new'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/queries/selector_query.rb:120:in `block in resolve_for'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/base.rb:81:in `synchronize'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/queries/selector_query.rb:108:in `resolve_for'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/matchers.rb:125:in `block in assert_selector'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/base.rb:85:in `synchronize'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/matchers.rb:124:in `assert_selector'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/matchers.rb:40:in `has_selector?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/node/matchers.rb:271:in `has_css?'
/home/user/.rvm/gems/ruby-2.2.4/gems/capybara-2.7.1/lib/capybara/session.rb:699:in `block (2 levels) in <class:Session>'
./spec/charts/charts_dialog_spec.rb:203:in `block in simple_chart_breakdown_initial'
./spec/charts/charts_dialog_spec.rb:201:in `times'
./spec/charts/charts_dialog_spec.rb:201:in `simple_chart_breakdown_initial'
./spec/charts/charts_dialog_spec.rb:1113:in `block (7 levels) in <top (required)>'
/home/user/.rvm/gems/ruby-2.2.4/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:98:in `block in run'
/home/user/.rvm/gems/ruby-2.2.4/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:88:in `loop'
/home/user/.rvm/gems/ruby-2.2.4/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:88:in `run'
/home/user/.rvm/gems/ruby-2.2.4/gems/rspec-retry-0.4.5/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
/home/user/.rvm/gems/ruby-2.2.4/gems/rspec-retry-0.4.5/lib/rspec/retry.rb:22:in `block (2 levels) in setup'
-e:1:in `load'
-e:1:in `<main>'
origianl Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.5)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
archive-zip (0.7.0)
io-like (~> 0.3.0)
backports (3.6.8)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.2.2)
capybara (2.7.1)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.5.9)
ffi (~> 1.0, >= 1.0.11)
chromedriver-helper (1.0.0)
archive-zip (~> 0.7.0)
nokogiri (~> 1.6)
ci_reporter (2.0.0)
builder (>= 2.1.2)
ci_reporter_rspec (1.0.0)
ci_reporter (~> 2.0)
rspec (>= 2.14, < 4)
coderay (1.1.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
curb (0.8.8)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
ffi (1.9.14)
ffi (1.9.14-x64-mingw32)
hashdiff (0.2.3)
i18n (0.7.0)
interception (0.5)
io-like (0.3.0)
json (1.8.3)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.8.3)
multi_json (1.12.1)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
nokogiri (1.6.8-x64-mingw32)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
parallel (1.6.1)
parallel_tests (2.2.1)
parallel
pkg-config (1.1.7)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
pry-rescue (1.4.2)
interception (>= 0.5)
pry
pry-stack_explorer (0.4.9.2)
binding_of_caller (>= 0.7)
pry (>= 0.9.11)
puma (2.15.3)
rack (1.6.4)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
rack (>= 1.0)
rake (10.4.2)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-retry (0.4.5)
rspec-core
rspec-support (3.4.1)
rubyzip (1.2.0)
safe_yaml (1.0.4)
selenium-webdriver (2.53.4)
childprocess (~> 0.5)
rubyzip (~> 1.0)
websocket (~> 1.0)
sinatra (1.4.7)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
sinatra-contrib (1.4.7)
backports (>= 2.0)
multi_json
rack-protection
rack-test
sinatra (~> 1.4.0)
tilt (>= 1.3, < 3)
slop (3.6.0)
thread_safe (0.3.5)
tilt (2.0.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
webmock (1.22.3)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
websocket (1.2.3)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
x64-mingw32
DEPENDENCIES
capybara
chromedriver-helper
ci_reporter_rspec
curb
factory_girl
parallel_tests
pry-rescue
pry-stack_explorer
puma
rake
rspec
rspec-retry
selenium-webdriver
sinatra
sinatra-contrib
webmock
BUNDLED WITH
1.11.2
diff of new Gemfile, still "Couldn't connect to server" error:
capybara (2.14.0)
rspec (>= 2.2.0, < 4)
selenium-webdriver (3.4.0)

Related

Rails 3.1: Could not find generator foundation:install

Rails is unable to find the generator foundation:install. It is very strange.
Attempting to run the foundation:install generator:
macbook$ rails g foundation:install
Could not find generator foundation:install.
Listing the available generators: macbook$ rails g --help
Usage: rails generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
Please choose a generator below.
Rails:
assets
controller
generator
helper
integration_test
mailer
migration
model
observer
performance_test
plugin
resource
scaffold
scaffold_controller
session_migration
ActiveRecord:
active_record:devise
Coffee:
coffee:assets
Devise:
devise
devise:install
devise:views
FactoryGirl:
factory_girl:model
Gmaps4rails:
gmaps4rails:install
Jquery:
jquery:install
Js:
js:assets
Mongoid:
mongoid:devise
NestedForm:
nested_form:install
Rspec:
rspec:install
TestUnit:
test_unit:controller
test_unit:helper
test_unit:integration
test_unit:mailer
test_unit:model
test_unit:observer
test_unit:performance
test_unit:plugin
test_unit:scaffold
Huh. No Foundation listed.
Previously I had added 'zurb-foundation' to my gemfile:
source 'http://rubygems.org'
gem 'rails', '3.1.1'
gem 'rake', '10.0.3'
gem 'sqlite3'
gem 'gmaps4rails', '1.4.8'
gem 'devise'
gem 'nested_form'
gem 'timezone'
gem 'rspec-rails', :group => [:test, :development]
group :test do
gem 'rb-fsevent'
gem 'factory_girl_rails'
gem 'capybara'
gem 'guard-rspec'
end
group :assets do
gem 'sass', '>= 3.2.0'
gem 'sass-rails', '>= 3.1.4'
gem 'coffee-rails', '>= 3.1.1'
gem 'uglifier', '>= 1.0.3'
gem 'zurb-foundation', '> 4.0.0'
end
gem 'jquery-rails'
Then I ran bundle install:
Fetching gem metadata from http://rubygems.org/.........
Fetching gem metadata from http://rubygems.org/..
Using rake (10.0.3)
Using multi_json (1.7.9)
Using activesupport (3.1.1)
Using builder (3.0.4)
Using i18n (0.6.5)
Using activemodel (3.1.1)
Using erubis (2.7.0)
Using rack (1.3.10)
Using rack-cache (1.2)
Using rack-mount (0.8.3)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.3.7)
Using sprockets (2.0.4)
Using actionpack (3.1.1)
Using mime-types (1.24)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.3.3)
Using actionmailer (3.1.1)
Using arel (2.2.3)
Using tzinfo (0.3.37)
Using activerecord (3.1.1)
Using activeresource (3.1.1)
Using ansi (1.4.3)
Using bcrypt-ruby (3.1.2)
Using bundler (1.2.3)
Using mini_portile (0.5.1)
Using nokogiri (1.6.0)
Using xpath (2.0.0)
Using capybara (2.1.0)
Using coderay (1.0.9)
Using coffee-script-source (1.6.3)
Using execjs (2.0.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.0)
Using rdoc (3.12.2)
Using thor (0.14.6)
Using railties (3.1.1)
Using coffee-rails (3.1.1)
Using columnize (0.3.6)
Using debugger-linecache (1.2.0)
Using debugger-ruby_core_source (1.2.3)
Using debugger (1.6.1)
Using orm_adapter (0.4.0)
Using warden (1.2.3)
Using devise (2.2.7)
Using diff-lcs (1.2.4)
Using factory_girl (4.2.0)
Using factory_girl_rails (4.2.1)
Using ffi (1.9.0)
Using formatador (0.2.4)
Using gmaps4rails (1.4.8)
Using rb-fsevent (0.9.3)
Using rb-inotify (0.9.1)
Using rb-kqueue (0.2.0)
Using listen (1.3.0)
Using lumberjack (1.0.4)
Using method_source (0.8.2)
Using slop (3.4.6)
Using pry (0.9.12.2)
Using guard (1.8.2)
Using rspec-core (2.14.5)
Using rspec-expectations (2.14.2)
Using rspec-mocks (2.14.3)
Using rspec (2.14.1)
Using guard-rspec (3.0.2)
Using jquery-rails (3.0.4)
Using nested_form (0.3.2)
Using rails (3.1.1)
Using rspec-rails (2.14.0)
Using sass (3.2.10)
Using sass-rails (3.1.7)
Using sqlite3 (1.3.8)
Using timezone (0.2.1)
Using turn (0.9.6)
Using uglifier (2.2.0)
Using zurb-foundation (4.3.1)
Your bundle is complete! It was installed into ./devise
And my Gemfile.lock looks like this:
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.1)
actionpack (= 3.1.1)
mail (~> 2.3.0)
actionpack (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.2)
rack-cache (~> 1.1)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.2)
activemodel (3.1.1)
activesupport (= 3.1.1)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activeresource (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
activesupport (3.1.1)
multi_json (~> 1.0)
ansi (1.4.3)
arel (2.2.3)
bcrypt-ruby (3.1.2)
builder (3.0.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 (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
columnize (0.3.6)
debugger (1.6.1)
columnize (>= 0.3.1)
debugger-linecache (~> 1.2.0)
debugger-ruby_core_source (~> 1.2.3)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.2.3)
devise (2.2.7)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)
warden (~> 1.2.1)
diff-lcs (1.2.4)
erubis (2.7.0)
execjs (2.0.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)
ffi (1.9.0)
formatador (0.2.4)
gmaps4rails (1.4.8)
json
guard (1.8.2)
formatador (>= 0.2.4)
listen (>= 1.0.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-rspec (3.0.2)
guard (>= 1.8)
rspec (~> 2.13)
hike (1.2.3)
i18n (0.6.5)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.0)
listen (1.3.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
lumberjack (1.0.4)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.8.2)
mime-types (1.24)
mini_portile (0.5.1)
multi_json (1.7.9)
nested_form (0.3.2)
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.3.10)
rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.1.1)
actionmailer (= 3.1.1)
actionpack (= 3.1.1)
activerecord (= 3.1.1)
activeresource (= 3.1.1)
activesupport (= 3.1.1)
bundler (~> 1.0)
railties (= 3.1.1)
railties (3.1.1)
actionpack (= 3.1.1)
activesupport (= 3.1.1)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (10.0.3)
rb-fsevent (0.9.3)
rb-inotify (0.9.1)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.5)
rspec-expectations (2.14.2)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.3)
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.10)
sass-rails (3.1.7)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (>= 3.1.10)
tilt (~> 1.3.2)
slop (3.4.6)
sprockets (2.0.4)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.8)
thor (0.14.6)
tilt (1.3.7)
timezone (0.2.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turn (0.9.6)
ansi
tzinfo (0.3.37)
uglifier (2.2.0)
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)
zurb-foundation (4.3.1)
sass (>= 3.2.0)
PLATFORMS
ruby
DEPENDENCIES
capybara
coffee-rails (>= 3.1.1)
debugger
devise
factory_girl_rails
gmaps4rails (= 1.4.8)
guard-rspec
jquery-rails
nested_form
rails (= 3.1.1)
rake (= 10.0.3)
rb-fsevent
rspec-rails
sass (>= 3.2.0)
sass-rails (>= 3.1.4)
sqlite3
timezone
turn
uglifier (>= 1.0.3)
zurb-foundation (> 4.0.0)
I've tried redoing it from scratch with the same results.
Totally stuck. Any ideas?
Okay. Solved. Problem of my own making.
I have RVM on this machine. In my .rvmrc file, I was forcing Rails to version 3.1.1 which was messing with bundler and breaking things. Clear that file, problems evaporate.
smacks head

Rails3.1.10 + asset compile on local machine gives me an error

I am working on a rails 3.1.10 application and have the following error when I execute "rake assets:precompile RAILS_ENV=production"
rake version is 10.1.0 and I can execute rake db:reset without an error.
Many thank in advance
/Users/username/.rvm/rubies/ruby-1.9.2-p320/bin/ruby /Users/username/.rvm/gems/ruby-1.9.2-p320/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Application has been already initialized.
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.1.10/lib/rails/application.rb:95:in `initialize!'
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.1.10/lib/sprockets/assets.rake:91:in `block (2 levels) in <top (required)>'
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.1.10/lib/sprockets/assets.rake:56:in `block (3 levels) in <top (required)>'
Tasks: TOP => assets:precompile:primary => assets:environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/username/.rvm/rubies/ruby-1.9.2-p320/...]
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.1.10/lib/sprockets/assets.rake:9:in `ruby_rake_task'
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.1.10/lib/sprockets/assets.rake:17:in `invoke_or_reboot_rake_task'
/Users/username/.rvm/gems/ruby-1.9.2-p320/gems/actionpack-3.1.10/lib/sprockets/assets.rake:25:in `block (2 levels) in <top (required)>'
/Users/username/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `eval'
/Users/username/.rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.10)
actionpack (= 3.1.10)
mail (~> 2.3.3)
actionpack (3.1.10)
activemodel (= 3.1.10)
activesupport (= 3.1.10)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.6)
rack-cache (~> 1.2)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.4)
activemodel (3.1.10)
activesupport (= 3.1.10)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.10)
activemodel (= 3.1.10)
activesupport (= 3.1.10)
arel (~> 2.2.3)
tzinfo (~> 0.3.29)
activerecord-import (0.3.1)
activerecord (~> 3.0)
activerecord (~> 3.0)
activeresource (3.1.10)
activemodel (= 3.1.10)
activesupport (= 3.1.10)
activesupport (3.1.10)
multi_json (>= 1.0, < 1.3)
ansi (1.4.3)
arel (2.2.3)
attr_required (0.0.5)
aws-s3 (0.6.3)
builder
mime-types
xml-simple
aws-sdk (1.11.1)
json (~> 1.4)
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
bcrypt-ruby (3.1.0)
better_errors (0.9.0)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.0.4)
callsite (0.0.11)
capybara (1.0.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 0.2.0)
xpath (~> 0.1.4)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
cloudfront-signer (2.1.0)
cocaine (0.3.2)
coderay (1.0.9)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
daemons (1.1.9)
dalli (2.6.4)
debug_inspector (0.0.2)
delayed_job (3.0.5)
activesupport (~> 3.0)
delayed_job_active_record (0.4.4)
activerecord (>= 2.1.0, < 4)
delayed_job (~> 3.0)
diff-lcs (1.2.4)
erubis (2.7.0)
eventmachine (1.0.3)
exception_notification (4.0.0)
actionmailer (>= 3.0.4)
activesupport (>= 3.0.4)
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)
faraday (0.8.7)
multipart-post (~> 1.1)
fb_graph (2.6.0)
httpclient (>= 2.2.0.2)
multi_json
rack-oauth2 (>= 0.14.4)
tzinfo
ffi (1.9.0)
formatador (0.2.4)
guard (1.8.1)
formatador (>= 0.2.4)
listen (>= 1.0.0)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-rspec (3.0.2)
guard (>= 1.8)
rspec (~> 2.13)
hashie (2.0.5)
hike (1.2.3)
httpauth (0.2.0)
httpclient (2.3.3)
i18n (0.6.4)
jpmobile (2.0.11)
jquery-rails (3.0.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.0)
json_pure (1.8.0)
jsonschema (2.0.2)
jwt (0.1.6)
multi_json (>= 1.0)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
kgio (2.8.0)
listen (1.2.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
lumberjack (1.0.4)
mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_request (0.2.7)
callsite
rack-contrib
railties
method_source (0.8.1)
mime-types (1.23)
mini_portile (0.5.1)
multi_json (1.2.0)
multipart-post (1.2.0)
newrelic_rpm (3.6.5.130)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
oauth2 (0.8.1)
faraday (~> 0.8)
httpauth (~> 0.1)
jwt (~> 0.1.4)
multi_json (~> 1.0)
rack (~> 1.2)
omniauth (1.1.4)
hashie (>= 1.2, < 3)
rack
omniauth-facebook (1.4.1)
omniauth-oauth2 (~> 1.1.0)
omniauth-oauth2 (1.1.1)
oauth2 (~> 0.8.0)
omniauth (~> 1.0)
paperclip (3.0.2)
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (>= 0.0.2)
mime-types
paypal_adaptive (0.3.6)
json (~> 1.0)
jsonschema (~> 2.0.0)
pg (0.15.1)
pg_search (0.7.0)
activerecord (>= 3.1)
activesupport (>= 3.1)
arel
polyglot (0.3.3)
pry (0.9.12.2)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.4)
pusher (0.11.3)
multi_json (~> 1.0)
signature (~> 0.1.6)
rack (1.3.10)
rack-cache (1.2)
rack (>= 0.4)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-oauth2 (0.14.8)
activesupport (>= 2.3)
attr_required (>= 0.0.5)
httpclient (>= 2.2.0.2)
i18n
json (>= 1.4.3)
rack (>= 1.1)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.1.10)
actionmailer (= 3.1.10)
actionpack (= 3.1.10)
activerecord (= 3.1.10)
activeresource (= 3.1.10)
activesupport (= 3.1.10)
bundler (~> 1.0)
railties (= 3.1.10)
railties (3.1.10)
actionpack (= 3.1.10)
activesupport (= 3.1.10)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
raindrops (0.11.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.0)
ffi (>= 0.5.0)
rb-kqueue (0.2.0)
ffi (>= 0.5.0)
rdoc (3.12.2)
json (~> 1.4)
rspec (2.14.0)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.2)
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)
rubyzip (0.9.9)
sass (3.2.9)
sass-rails (3.1.7)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (>= 3.1.10)
tilt (~> 1.3.2)
selenium-webdriver (0.2.2)
childprocess (>= 0.1.9)
ffi (>= 1.0.7)
json_pure
rubyzip
signature (0.1.7)
slop (3.4.5)
sprockets (2.0.4)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.14.6)
tilt (1.3.7)
treetop (1.4.14)
polyglot
polyglot (>= 0.3.1)
turn (0.8.2)
ansi (>= 1.2.2)
tzinfo (0.3.37)
uglifier (2.1.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
unicorn (4.6.3)
kgio (~> 2.6)
rack
raindrops (~> 0.7)
uuidtools (2.1.4)
xml-simple (1.1.2)
xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
activerecord-import
aws-s3
aws-sdk
bcrypt-ruby
better_errors
binding_of_caller
capybara (= 1.0.0)
cloudfront-signer
cocaine (= 0.3.2)
coffee-rails (~> 3.1.1)
dalli
delayed_job_active_record
exception_notification (~> 4.0.0.rc1)
factory_girl_rails
fb_graph
guard-rspec
jpmobile (~> 2.0.5)
jquery-rails
kaminari
meta_request
newrelic_rpm
omniauth
omniauth-facebook
paperclip (= 3.0.2)
paypal_adaptive
pg
pg_search
pusher
rails (= 3.1.10)
rake
rb-fsevent (~> 0.9)
rspec-rails
sass-rails (~> 3.1.5)
thin
turn (= 0.8.2)
uglifier (>= 1.0.3)
unicorn

NokoGiri Error trying to use MiniTest-Rails-capybara

when trying to run
rake minitest:features
for the first time in my rails 3 app on my osx 10.8.4 machine i get a nokogiri error
/Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle, 9): Library not loaded:
/Users/willbarker/.bundler/tmp/60826/gems/nokogiri-1.6.0/ports/i686-apple-darwin11/libxml2/2.8.0/lib/libxml2.2.dylib (LoadError)
Referenced from: /Users/willbarker/.rvm/gems/ruby-2.0.0-p195/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle
Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0
Is there a way to resolve that? Is it an issue with the gem or my underlying system?(which seems to find a way to trip over nokogiri faily often)
UPDATE - The lock file
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.13)
actionpack (= 3.2.13)
mail (~> 2.5.3)
actionpack (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
active_admin_editor (1.1.0)
activeadmin (>= 0.4.0)
ejs
rails (>= 3.0.0)
activeadmin (0.6.0)
arbre (>= 1.0.1)
bourbon (>= 1.0.0)
devise (>= 1.1.2)
fastercsv
formtastic (>= 2.0.0)
inherited_resources (>= 1.3.1)
jquery-rails (>= 1.0.0)
kaminari (>= 0.13.0)
meta_search (>= 0.9.2)
rails (>= 3.0.0)
sass (>= 3.1.0)
activemodel (3.2.13)
activesupport (= 3.2.13)
builder (~> 3.0.0)
activerecord (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.13)
activemodel (= 3.2.13)
activesupport (= 3.2.13)
activesupport (3.2.13)
i18n (= 0.6.1)
multi_json (~> 1.0)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (3.0.2)
bcrypt-ruby (3.1.1)
better_errors (0.9.0)
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.0.4)
callsite (0.0.11)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
chunky_png (1.2.8)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.1)
climate_control (>= 0.0.3, < 1.0)
coderay (1.0.9)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.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-rails (1.0.3)
compass (>= 0.12.2, < 0.14)
daemons (1.1.9)
debug_inspector (0.0.2)
devise (3.0.0)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
warden (~> 1.2.3)
ejs (1.1.1)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (1.4.0)
multi_json (~> 1.0)
fastercsv (1.5.5)
formtastic (2.2.1)
actionpack (>= 3.0)
fssm (0.2.10)
has_scope (0.5.1)
hashie (1.2.0)
high_voltage (1.2.4)
hike (1.2.3)
httparty (0.11.0)
multi_json (~> 1.0)
multi_xml (>= 0.5.2)
i18n (0.6.1)
inherited_resources (1.4.0)
has_scope (~> 0.5.0)
responders (~> 0.9)
journey (1.0.4)
jquery-rails (2.3.0)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.0)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_request (0.2.7)
callsite
rack-contrib
railties
meta_search (1.1.3)
actionpack (~> 3.1)
activerecord (~> 3.1)
activesupport (~> 3.1)
polyamorous (~> 0.5.0)
mime-types (1.23)
mini_portile (0.5.1)
minitest (4.7.5)
minitest-capybara (0.4.1)
capybara (~> 2.0)
minitest (~> 4.0)
rake
minitest-metadata (0.4.0)
minitest (~> 4.7)
minitest-rails (0.9.2)
minitest (~> 4.7)
rails (>= 3.0)
minitest-rails-capybara (0.10.0)
capybara (~> 2.0)
minitest-capybara (~> 0.4)
minitest-metadata (~> 0.4)
minitest-rails (~> 0.9.1)
multi_json (1.7.7)
multi_xml (0.5.4)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
orm_adapter (0.4.0)
paperclip (3.5.0)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.0)
mime-types
pg (0.16.0)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.13)
actionmailer (= 3.2.13)
actionpack (= 3.2.13)
activerecord (= 3.2.13)
activeresource (= 3.2.13)
activesupport (= 3.2.13)
bundler (~> 1.0)
railties (= 3.2.13)
railties (3.2.13)
actionpack (= 3.2.13)
activesupport (= 3.2.13)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.1.0)
rb_wunderground (0.1.2)
hashie (~> 1.2)
httparty (~> 0.9)
json (~> 1.7)
rdoc (3.12.2)
json (~> 1.4)
responders (0.9.3)
railties (~> 3.1)
sass (3.2.9)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.14)
polyglot
polyglot (>= 0.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)
zurb-foundation (4.3.1)
sass (>= 3.2.0)
PLATFORMS
ruby
DEPENDENCIES
active_admin_editor
activeadmin
better_errors
binding_of_caller
coffee-rails (~> 3.2.1)
compass-rails
high_voltage
jquery-rails (= 2.3.0)
meta_request
minitest-rails
minitest-rails-capybara
paperclip (~> 3.0)
pg
rails (= 3.2.13)
rb_wunderground
sass-rails (~> 3.2.3)
thin
uglifier (>= 1.0.3)
zurb-foundation
You need to upgrade libxml2 and libxslt. If you are using Brew you can do the following:
$ brew install libxml2 libxslt
$ brew link libxml2 libxslt
See the Nokogiri documentation for more information.

Running Metrical with 1.9 Hash Syntax

I want to use Metrical with my brand-new Rails project using Ruby 1.9 hash syntax doing things like
before_filter :guest_user, only: [:new, :create]
before_filter :correct_user, only: :destroy
and I get this error:
/Users/xxx/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/racc/parser.rb:351:in `on_error': (Racc::ParseError)
parse error on value ":" (tCOLON)
I did a bit of investigation and found out that the ruby_parser gem does not support 1.9 hash syntax (see github issue) - not knowing which version that refers to I've tried to update the ruby_parser gem to 2.3.1 which doesn't work because some of the code quality tools included in metrical require 2.0 versions of ruby_parser.
Is there any way to solve this (besides rolling back to the old syntax)? I'm also a bit puzzled because a couple of the code quality tools seem rather outdated, checking on RubyToolBox confirmed this impression. Or am I missing something fundamental here?
(Here's my Gemfile.lock for reference):
GEM
remote: https://rubygems.org/
specs:
Saikuro (1.1.0)
actionmailer (3.2.6)
actionpack (= 3.2.6)
mail (~> 2.4.4)
actionpack (3.2.6)
activemodel (= 3.2.6)
activesupport (= 3.2.6)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.1.3)
activemodel (3.2.6)
activesupport (= 3.2.6)
builder (~> 3.0.0)
activerecord (3.2.6)
activemodel (= 3.2.6)
activesupport (= 3.2.6)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.6)
activemodel (= 3.2.6)
activesupport (= 3.2.6)
activesupport (3.2.6)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.8)
arel (3.0.2)
arrayfields (4.7.4)
awesome_print (1.0.2)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.0.4.0)
bootstrap-will_paginate (0.0.7)
will_paginate
builder (3.0.0)
capybara (1.1.2)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.3.4)
ffi (~> 1.0, >= 1.0.6)
chronic (0.3.0)
churn (0.0.13)
chronic (>= 0.2.3)
hirb
json_pure
main
ruby_parser (~> 2.0.4)
sexp_processor (~> 3.0.3)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.3.3)
colored (1.2)
cucumber (1.2.1)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.0)
json (>= 1.4.6)
cucumber-rails (1.3.0)
capybara (>= 1.1.2)
cucumber (>= 1.1.8)
nokogiri (>= 1.5.0)
database_cleaner (0.7.2)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
factory_girl (3.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (3.5.0)
factory_girl (~> 3.5.0)
railties (>= 3.0.0)
faker (1.0.1)
i18n (~> 0.4)
fattr (2.2.1)
ffi (1.1.0)
flay (1.4.3)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
flog (2.5.3)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
gherkin (2.11.1)
json (>= 1.4.6)
growl (1.0.3)
guard (1.2.3)
listen (>= 0.4.2)
thor (>= 0.14.6)
guard-rspec (1.2.0)
guard (>= 1.1)
guard-spork (1.1.0)
guard (>= 1.1)
spork (>= 0.8.4)
hike (1.2.1)
hirb (0.7.0)
i18n (0.6.0)
journey (1.0.4)
jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.7.3)
json_pure (1.7.3)
launchy (2.1.0)
addressable (~> 2.2.6)
libwebsocket (0.1.4)
addressable
listen (0.4.7)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
main (4.7.1)
map (6.2.0)
metric_fu (2.1.1)
Saikuro (>= 1.1.0)
activesupport (>= 2.0.0)
chronic (~> 0.3.0)
churn (>= 0.0.7)
flay (>= 1.2.1)
flog (>= 2.3.0)
rails_best_practices (>= 0.6.4)
rcov (>= 0.8.3.3)
reek (>= 1.2.6)
roodi (>= 2.1.0)
syntax
metrical (0.1.0)
metric_fu (~> 2.1.1)
rcov (~> 0.9)
mime-types (1.19)
multi_json (1.3.6)
nokogiri (1.5.5)
pg (0.14.0)
polyglot (0.3.3)
progressbar (0.11.0)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.6)
actionmailer (= 3.2.6)
actionpack (= 3.2.6)
activerecord (= 3.2.6)
activeresource (= 3.2.6)
activesupport (= 3.2.6)
bundler (~> 1.0)
railties (= 3.2.6)
rails_best_practices (1.10.1)
activesupport
awesome_print
colored
erubis
i18n
progressbar
sexp_processor
railties (3.2.6)
actionpack (= 3.2.6)
activesupport (= 3.2.6)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
rb-inotify (0.8.8)
ffi (>= 0.5.0)
rcov (0.9.11)
rdoc (3.12)
json (~> 1.4)
reek (1.2.12)
ripper_ruby_parser (~> 0.0.7)
ruby2ruby (~> 1.2.5)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
ripper_ruby_parser (0.0.8)
sexp_processor (~> 3.0)
roodi (2.1.0)
ruby_parser
rspec (2.11.0)
rspec-core (~> 2.11.0)
rspec-expectations (~> 2.11.0)
rspec-mocks (~> 2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.11.1)
rspec-rails (2.11.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.11.0)
ruby2ruby (1.2.5)
ruby_parser (~> 2.0)
sexp_processor (~> 3.0)
ruby_parser (2.0.6)
sexp_processor (~> 3.0)
rubyzip (0.9.9)
sass (3.1.20)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
selenium-webdriver (2.25.0)
childprocess (>= 0.2.5)
libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
sexp_processor (3.0.10)
simplecov (0.6.4)
multi_json (~> 1.0)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
spork (0.9.2)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.6)
syntax (1.0.0)
thor (0.15.4)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.33)
uglifier (1.2.6)
execjs (>= 0.3.0)
multi_json (~> 1.3)
will_paginate (3.0.3)
xpath (0.1.4)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
arrayfields
bcrypt-ruby
bootstrap-sass
bootstrap-will_paginate
capybara
coffee-rails
cucumber-rails
database_cleaner
factory_girl_rails
faker
fattr
growl
guard-rspec
guard-spork
jquery-rails
launchy
map
metrical
pg
rails (= 3.2.6)
rb-fsevent
rspec-rails
sass-rails
simplecov
spork
sqlite3
uglifier
will_paginate
After doing some more research on this issue and under the impression that ruby_parser wouldn't be updated for a while (watching https://github.com/seattlerb/ruby_parser though) I've decided to finally go for the nasty hack to replace my ruby hashes with the old syntax. I wrote a rake task for that such that it's easy to replace them all in one run, run metrical and then revert them back to their nice 1.9 hash syntax.
https://github.com/bkleinen/hash-reverter
Update: apparently, ruby_parser will be updated with version 3.0.0, but most of the tools depend on older versions.

Rails 3.1.3 with RefineryCMS with Sprockets 2.0.3

Above mentioned configuration works on development, but production makes me mad with this (after rake db:migrate, but also after regular request).
Forced to use edge versions of refinery engines, because 1.0.9 seems to be impossible to get installed without problems and with 3.1.x
+>> rake db:migrate RAILS_ENV=production --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't modify immutable index
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/sprockets-2.0.3/lib/sprockets/index.rb:59:in `expire_index!'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/sprockets-2.0.3/lib/sprockets/processing.rb:91:in `register_preprocessor'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/i18n-js-2.1.2/lib/i18n-js/engine.rb:12
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `instance_exec'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/initializable.rb:30:in `run'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/initializable.rb:55:in `run_initializers'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `each'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/initializable.rb:54:in `run_initializers'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/application.rb:96:in `initialize!'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `send'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/papricek/blogisek.patrikjira.com/releases/20111228135719/config/environment.rb:5
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/application.rb:83:in `require_environment!'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/railties-3.1.3/lib/rails/application.rb:193:in `initialize_tasks'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/home/papricek/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/home/papricek/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/gems/rake-0.9.2.2/bin/rake:33
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/bin/rake:19:in `load'
/home/papricek/.rvm/gems/ree-1.8.7-2011.03#refinery/bin/rake:19
Tasks: TOP => db:migrate => environment
Gemfile and Gemfile.lock:
source 'http://rubygems.org'
gem 'rails', '3.1.3'
# Bundle edge Rails instead:
#gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'json'
gem 'execjs'
gem 'therubyracer'
gem 'pg'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.1.5'
# gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
gem "refinerycms", :git => "git://github.com/resolve/refinerycms.git"
# group :development, :test do
# gem 'refinerycms-testing', '~> 2.0'
# end
group :development do
gem 'rails-dev-tweaks', '~> 0.5.2'
# see https://github.com/wavii/rails-dev-tweaks/issues/3
gem 'routing-filter', :git => 'git://github.com/nevir/routing-filter.git'
end
# USER DEFINED
# Add i18n support (optional, you can remove this if you really want to but it is advised to keep it).
gem 'refinerycms-i18n', '~> 2.0.0', :git => 'git://github.com/parndt/refinerycms-i18n.git'
# Specify additional Refinery CMS Engines here (all optional):
gem 'refinerycms-blog', :git => 'git://github.com/resolve/refinerycms-blog.git', :branch => 'rails-3-1'
# gem 'refinerycms-inquiries', :git => 'git://github.com/resolve/refinerycms-inquiries.git', :branch => 'rails-3-1'
# gem 'refinerycms-search', :git => 'git://github.com/resolve/refinerycms-search.git', :branch => 'rails-3-1'
# gem 'refinerycms-page-images', :git => 'git://github.com/resolve/refinerycms-page-images.git', :branch => 'rails-3-1'
# END USER DEFINED
GIT
remote: git://github.com/nevir/routing-filter.git
revision: 1049885b01f5cfb09cee8ec7aad66abedaeb6847
specs:
routing-filter (0.2.4)
actionpack
GIT
remote: git://github.com/parndt/refinerycms-i18n.git
revision: 859388f33017591a176788f48975ce7fcb67eee1
specs:
refinerycms-i18n (2.0.0)
i18n-js (~> 2.1.2)
refinerycms-core (~> 2.0.0)
routing-filter (>= 0.2.3)
GIT
remote: git://github.com/resolve/refinerycms-blog.git
revision: 26243ddade61e5bbad8f07e14b0475000da58b51
branch: rails-3-1
specs:
refinerycms-blog (2.0.0)
acts-as-taggable-on
filters_spam (~> 0.2)
rails_autolink
refinerycms-core (~> 2.0.0)
seo_meta (~> 1.2.0.rc1)
GIT
remote: git://github.com/resolve/refinerycms.git
revision: 713e8bc79d7c4c44dc43ce579040956e24f90011
specs:
refinerycms (2.0.0)
bundler (~> 1.0)
refinerycms-authentication (= 2.0.0)
refinerycms-core (= 2.0.0)
refinerycms-dashboard (= 2.0.0)
refinerycms-images (= 2.0.0)
refinerycms-pages (= 2.0.0)
refinerycms-resources (= 2.0.0)
refinerycms-settings (= 2.0.0)
refinerycms-authentication (2.0.0)
devise (~> 1.4.0)
friendly_id_globalize3 (~> 3.2.1)
refinerycms-core (= 2.0.0)
refinerycms-core (2.0.0)
acts_as_indexed (~> 0.7)
awesome_nested_set (~> 2.0)
coffee-rails (~> 3.1.1)
friendly_id_globalize3 (~> 3.2.1)
globalize3 (~> 0.2.0.beta3)
jquery-rails (~> 1.0.19)
rails (>= 3.1.3)
refinerycms-settings (= 2.0.0)
sass-rails (~> 3.1.5)
truncate_html (~> 0.5)
uglifier
will_paginate (~> 3.0.2)
refinerycms-dashboard (2.0.0)
refinerycms-core (= 2.0.0)
refinerycms-images (2.0.0)
dragonfly (~> 0.9.8)
rack-cache (>= 0.5.3)
refinerycms-core (= 2.0.0)
refinerycms-pages (2.0.0)
awesome_nested_set (~> 2.0)
friendly_id_globalize3 (~> 3.2.1)
refinerycms-core (= 2.0.0)
seo_meta (>= 1.2.0.rc2)
refinerycms-resources (2.0.0)
dragonfly (~> 0.9.8)
rack-cache (>= 0.5.3)
refinerycms-core (= 2.0.0)
refinerycms-settings (2.0.0)
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.3)
actionpack (= 3.1.3)
mail (~> 2.3.0)
actionpack (3.1.3)
activemodel (= 3.1.3)
activesupport (= 3.1.3)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.5)
rack-cache (~> 1.1)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.3)
activemodel (3.1.3)
activesupport (= 3.1.3)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.3)
activemodel (= 3.1.3)
activesupport (= 3.1.3)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activeresource (3.1.3)
activemodel (= 3.1.3)
activesupport (= 3.1.3)
activesupport (3.1.3)
multi_json (~> 1.0)
acts-as-taggable-on (2.2.1)
rails (~> 3.1)
acts_as_indexed (0.7.7)
arel (2.2.1)
awesome_nested_set (2.0.2)
activerecord (>= 3.0.0)
babosa (0.3.5)
bcrypt-ruby (3.0.1)
builder (3.0.0)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.2.0)
devise (1.4.9)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
warden (~> 1.0.3)
dragonfly (0.9.8)
rack
erubis (2.7.0)
execjs (1.2.13)
multi_json (~> 1.0)
filters_spam (0.3)
friendly_id_globalize3 (3.2.1.5)
babosa (~> 0.3.0)
globalize3 (0.2.0.beta4)
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
paper_trail (~> 2)
hike (1.2.1)
i18n (0.6.0)
i18n-js (2.1.2)
i18n
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.4)
libv8 (3.3.10.4)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.17.2)
multi_json (1.0.4)
orm_adapter (0.0.5)
paper_trail (2.5.0)
rails (~> 3)
pg (0.12.0)
rake-compiler (~> 0.7)
polyglot (0.3.3)
rack (1.3.6)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.3)
actionmailer (= 3.1.3)
actionpack (= 3.1.3)
activerecord (= 3.1.3)
activeresource (= 3.1.3)
activesupport (= 3.1.3)
bundler (~> 1.0)
railties (= 3.1.3)
rails-dev-tweaks (0.5.2)
rails (~> 3.1.0)
rails_autolink (1.0.4)
rails (>= 3.1.0)
railties (3.1.3)
actionpack (= 3.1.3)
activesupport (= 3.1.3)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rake-compiler (0.7.9)
rake
rdoc (3.12)
json (~> 1.4)
sass (3.1.12)
sass-rails (3.1.5)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (~> 3.1.10)
tilt (~> 1.3.2)
seo_meta (1.2.0.rc2)
rails (>= 3.0.0)
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (!= 1.3.0, ~> 1.1)
sqlite3 (1.3.5)
therubyracer (0.9.9)
libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
truncate_html (0.5.1)
tzinfo (0.3.31)
uglifier (1.2.1)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
warden (1.0.6)
rack (>= 1.0)
will_paginate (3.0.2)
PLATFORMS
ruby
DEPENDENCIES
execjs
jquery-rails
json
pg
rails (= 3.1.3)
rails-dev-tweaks (~> 0.5.2)
refinerycms!
refinerycms-blog!
refinerycms-i18n (~> 2.0.0)!
routing-filter!
sass-rails (~> 3.1.5)
sqlite3
therubyracer
uglifier (>= 1.0.3)
Adding the following to the Gemfile fixed my issues:
gem 'i18n-js', :git => 'git://github.com/fnando/i18n-js.git'

Resources