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
============
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.