Commit bbc41bbe authored by John E. Vincent's avatar John E. Vincent

self detection of platform

parent fa278898
...@@ -2,10 +2,20 @@ ...@@ -2,10 +2,20 @@
$:.push File.expand_path("../lib", __FILE__) $:.push File.expand_path("../lib", __FILE__)
require "noah/version" require "noah/version"
begin
platform = RUBY_ENGINE
rescue
case RUBY_PLATFORM
when "java"
platform = 'jruby'
else
platform = 'ruby'
end
end
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "noah" s.name = "noah"
s.version = Noah::VERSION s.version = Noah::VERSION
s.platform = RUBY_ENGINE s.platform = platform
s.authors = ["lusis"] s.authors = ["lusis"]
s.email = ["lusis.org+rubygems.org@gmail.com"] s.email = ["lusis.org+rubygems.org@gmail.com"]
s.homepage = "https://github.com/lusis/noah" s.homepage = "https://github.com/lusis/noah"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment