Permalink
Browse files

be able to pass in the core gemspec

  • Loading branch information...
1 parent 63680ee commit 45aa0fc2a3c028a10d713557c035ea48fba281c4 @copiousfreetime committed Feb 5, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 tasks/this.rb
View
@@ -137,17 +137,17 @@ def core_gemspec
end
# Internal: Return the gemspec for the ruby platform
- def ruby_gemspec(&block)
- yielding_gemspec('ruby',&block)
+ def ruby_gemspec( core = core_gemspec, &block )
+ yielding_gemspec( 'ruby', core, &block )
end
# Internal: Return the gemspec for the jruby platform
- def java_gemspec(&block)
- yielding_gemspec('java',&block)
+ def java_gemspec( core = core_gemspec, &block )
+ yielding_gemspec( 'java', core, &block )
end
- def yielding_gemspec( key )
- spec = gemspecs[key] ||= core_gemspec
+ def yielding_gemspec( key, core )
+ spec = gemspecs[key] ||= core.dup
yield spec if block_given?
return spec
end

0 comments on commit 45aa0fc

Please sign in to comment.