watir - You are using an old or stdlib version of json gem -


i've seen following issue mentioned in thread few days ago amongst other problems, solution issue (to me) didn't seem addressed.

i ran test on ruby 1.9.2-p290 environment , presented following error when ran test script:

you using old or stdlib version of json gem please upgrade recent version adding gemfile:  gem 'json', '~> 1.7.7' 

this issue continued when created fresh ruby 1.9.3-p392 environment, running on windows xp (don't ask). confuses me when have json 1.7.7 or 1.8.0 installed (gem list pasted below), still message when run test. it's not affecting test results, warning rather annoying see each time.

which gemfile need add version into, , located?

gem list: bigdecimal (1.1.0) childprocess (0.3.9) commonwatir (4.0.0) ffi (1.8.1 x86-mingw32) io-console (0.4.2, 0.3) json (1.8.0, 1.7.7, 1.5.5) mini_portile (0.5.0) minitest (5.0.0, 2.5.1) multi_json (1.7.3) rake (10.1.0.beta.3, 10.0.4, 0.9.2.2) rdoc (4.0.1, 3.9.5) rubygems-update (2.0.3) rubyzip (0.9.9) selenium-webdriver (2.32.1) watir-webdriver (0.6.4) websocket (1.0.7) win32-api (1.4.8 x86-mingw32) win32-process (0.7.2) windows-api (0.4.2) windows-pr (1.2.2) 

the message coming multi_json gem, , seems bug. i suggest keeping eye on github ticket.

if message distressing, can downgrade multi_json version 1.6.1 rid of it. (at least works me.)

update:

it looks me root of problem while multi_json wants limit use of json , json_pure gems specific versions, author of multi_json isn't using gem method in code activate these versions. (it sounds thinks bundler way specify versions of gems; isn't.)

since multi_json try oj , yajl-ruby gems before tries json, using 1 of may best workaround of all. can install latest multi_json , install either oj or yajl-ruby along it.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -