Skip to content

Commit

Permalink
normalize platform names
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jan 23, 2012
1 parent f60c4cb commit 6c8c848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jruby.rake
@@ -1,5 +1,5 @@
file pkg("foreman-#{version}-jruby.gem") => distribution_files do |t|
sh "env PLATFORM=jruby gem build foreman.gemspec"
sh "env PLATFORM=java gem build foreman.gemspec"
sh "mv foreman-#{version}-java.gem #{t.name}"
end

Expand Down
2 changes: 1 addition & 1 deletion foreman.gemspec
Expand Up @@ -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["PLATFORM"] == "jruby"
if ENV["PLATFORM"] == "java"
gem.add_dependency "posix-spawn", "~> 0.3.6"
gem.platform = Gem::Platform.new("java")
end
Expand Down

0 comments on commit 6c8c848

Please sign in to comment.