version 0.6.6, building separate jruby gem since it breaks with the recent version of method_source

This commit is contained in:
John Mair 2011-03-02 02:14:38 +13:00
parent 801a71b4a5
commit 7ed6c17ebc
3 changed files with 19 additions and 4 deletions

View File

@ -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

View File

@ -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"]

View File

@ -1,3 +1,3 @@
class Pry
VERSION = "0.6.5"
VERSION = "0.6.6"
end