Eachus Lonny
unread,May 15, 2013, 12:56:06 AM5/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to watir-...@googlegroups.com
I had an issue with Ruby 1.9.3 and the latest watir-webdriver.
Apparently watir-webdriver lists multi-json as a dependency, but without a version number, resulting in the installation of the latest multi_json version which at this time is 1.7.3.
(An alternative explanation is that watir-webdriver explicitly requires version 1.7.3, but I doubt that.)
With multi_json 1.7.3 and Ruby 1.9.3 (p374), the application bombs and I get the following error message:
You are using an old or stdlib version of json gem
Please upgrade to the recent version by adding this to your Gemfile:
gem 'json', '~> 1.7.7'
But there are problems with this, because (A) a standalone script does not normally have a Gemfile, and (B) I tried running the app using Bundler and a Gemfile with json 1.7.7, and got the same error anyway.
After visiting the multi_json site on github, it appears that this is supposed to be a "strong warning", but in fact it is an error that crashes your application.
The solution to this problem is to uninstall multi_json 1.7.3 and install version 1.7.2 instead. After that, my application ran with no issues.
I am not explicitly making use of the multi_json gem anywhere; perhaps watir-webdriver is (really) dependent on it somehow. If so, someone should check into this issue, because the multi_json folks say it is an indication of a real problem with the json 1.7.7 gem.
Lonny Eachus
============