From 7ed6c17ebc98ef60bf425bf5a2dd1f0f776e109d Mon Sep 17 00:00:00 2001 From: John Mair Date: Wed, 2 Mar 2011 02:14:38 +1300 Subject: [PATCH] version 0.6.6, building separate jruby gem since it breaks with the recent version of method_source --- README.markdown | 1 + Rakefile | 20 +++++++++++++++++--- lib/pry/version.rb | 2 +- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 78082c43..6fc89e34 100644 --- a/README.markdown +++ b/README.markdown @@ -186,6 +186,7 @@ invoke any of these methods directly depending on exactly what aspect of the fun ###Limitations: * Some Pry commands (e.g `show-command`) do not work in Ruby 1.8. +* `method_source` functionality does not work in JRuby. * 1.9 support requires `Ripper` - some implementations may not support this. Commands diff --git a/Rakefile b/Rakefile index 38d280a0..fc03a910 100644 --- a/Rakefile +++ b/Rakefile @@ -20,7 +20,6 @@ def apply_spec_defaults(s) s.description = s.summary s.require_path = 'lib' s.add_dependency("ruby_parser",">=2.0.5") - s.add_dependency("method_source",">=0.3.4") s.add_development_dependency("bacon",">=1.1.0") s.homepage = "http://banisterfiend.wordpress.com" s.has_rdoc = 'yard' @@ -46,7 +45,8 @@ end namespace :ruby do spec = Gem::Specification.new do |s| - apply_spec_defaults(s) + apply_spec_defaults(s) + s.add_dependency("method_source",">=0.3.4") s.platform = Gem::Platform::RUBY end @@ -56,8 +56,22 @@ namespace :ruby do end end +namespace :jruby do + spec = Gem::Specification.new do |s| + apply_spec_defaults(s) + s.add_dependency("method_source","=0.2.0") + s.platform = "java" + end + + Rake::GemPackageTask.new(spec) do |pkg| + pkg.need_zip = false + pkg.need_tar = false + end +end + + desc "build all platform gems at once" -task :gems => [:rmgems, "ruby:gem"] +task :gems => [:rmgems, "ruby:gem", "jruby:gem"] desc "remove all platform gems" task :rmgems => ["ruby:clobber_package"] diff --git a/lib/pry/version.rb b/lib/pry/version.rb index f57109fd..1c90fc4b 100644 --- a/lib/pry/version.rb +++ b/lib/pry/version.rb @@ -1,3 +1,3 @@ class Pry - VERSION = "0.6.5" + VERSION = "0.6.6" end