From 8adf1e1d09bf168e65436fab822db5b00b03c614 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Sun, 20 May 2012 14:30:36 -0500 Subject: [PATCH] Deprecate Johnson --- Gemfile | 3 --- README.md | 2 -- lib/execjs/johnson_runtime.rb | 4 ++++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index d479ee2..264d795 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,6 @@ gemspec group :test do gem 'json' - # see https://github.com/jbarnette/johnson/issues/21 - gem 'johnson', :platform => :mri_18 - # disabled for rbx, because of https://github.com/cowboyd/therubyracer/issues/157 gem 'therubyracer', :platform => :mri gem 'therubyrhino', ">=1.73.3", :platform => :jruby end diff --git a/README.md b/README.md index 41fbde9..85151cb 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ ExecJS supports these runtimes: embedded within Ruby * [therubyrhino](https://github.com/cowboyd/therubyrhino) - Mozilla Rhino embedded within JRuby -* [Johnson](https://github.com/jbarnette/johnson) - Mozilla - SpiderMonkey embedded within Ruby * [Node.js](http://nodejs.org/) * Apple JavaScriptCore - Included with Mac OS X * [Microsoft Windows Script Host](http://msdn.microsoft.com/en-us/library/9bbdkx3k.aspx) (JScript) diff --git a/lib/execjs/johnson_runtime.rb b/lib/execjs/johnson_runtime.rb index 4beb954..4c42cd3 100644 --- a/lib/execjs/johnson_runtime.rb +++ b/lib/execjs/johnson_runtime.rb @@ -98,5 +98,9 @@ module ExecJS rescue LoadError false end + + def deprecated? + true + end end end