diff options
author | John Mair <jrmair@gmail.com> | 2011-04-11 17:48:51 +1200 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2011-04-11 17:48:51 +1200 |
commit | 5df1cdaf6f7b5ce4406bca382b3bc048c796fd97 (patch) | |
tree | 8d86cb83bc0d589d19e567eab74dc8c1daf8b99a | |
parent | 67675b4bb5fe837968c582a18a12cc4cc0ca802f (diff) | |
download | method_source-5df1cdaf6f7b5ce4406bca382b3bc048c796fd97.tar.gz |
defaults to RubyParser on all 1.9 implementations except MRI
-rw-r--r-- | lib/method_source.rb | 2 | ||||
-rw-r--r-- | lib/method_source/version.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/method_source.rb b/lib/method_source.rb index ef2193c..5461a52 100644 --- a/lib/method_source.rb +++ b/lib/method_source.rb @@ -8,7 +8,7 @@ require "#{direc}/method_source/source_location" module MethodSource - if RUBY_VERSION =~ /1.9/ + if RUBY_VERSION =~ /1.9/ && RUBY_ENGINE == "ruby" require 'ripper' # Determine if a string of code is a valid Ruby expression. diff --git a/lib/method_source/version.rb b/lib/method_source/version.rb index 56956e7..e4ddb1e 100644 --- a/lib/method_source/version.rb +++ b/lib/method_source/version.rb @@ -1,3 +1,3 @@ module MethodSource - VERSION = "0.4.0" + VERSION = "0.4.1" end |