Add provision for creating jruby-compatible gem

This commit is contained in:
PJ Hyett 2010-04-03 22:42:25 -07:00
Родитель bf343621a3
Коммит 5d55823429
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -11,9 +11,14 @@ begin
gem.homepage = "http://github.com/mojombo/bert"
gem.authors = ["Tom Preston-Werner"]
gem.add_development_dependency("thoughtbot-shoulda")
gem.require_paths = ["lib", "ext"]
gem.files.include("ext")
gem.extensions << 'ext/bert/c/extconf.rb'
if ENV["JAVA"]
gem.extensions = nil
gem.platform = 'java'
else
gem.require_paths = ["lib", "ext"]
gem.files.include("ext")
gem.extensions << 'ext/bert/c/extconf.rb'
end
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
rescue LoadError