Skip to content

Commit

Permalink
use PLATFORM=jruby instead of JRUBY=true
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jan 22, 2012

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 3e98170 commit 8a8d31e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jruby.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
file pkg("foreman-#{version}-jruby.gem") => distribution_files do |t|
sh "env JRUBY=true gem build foreman.gemspec"
sh "env PLATFORM=jruby gem build foreman.gemspec"
sh "mv foreman-#{version}-java.gem #{t.name}"
end

2 changes: 1 addition & 1 deletion foreman.gemspec
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
gem.add_dependency 'term-ansicolor', '~> 1.0.7'
gem.add_dependency 'thor', '>= 0.13.6'

if ENV["JRUBY"]
if ENV["PLATFORM"] == "jruby"
gem.add_dependency "posix-spawn", "~> 0.3.6"
gem.platform = Gem::Platform.new("java")
end

0 comments on commit 8a8d31e

Please sign in to comment.