зеркало из https://github.com/github/bert.git
Add provision for creating jruby-compatible gem
This commit is contained in:
Родитель
bf343621a3
Коммит
5d55823429
5
Rakefile
5
Rakefile
|
@ -11,9 +11,14 @@ begin
|
|||
gem.homepage = "http://github.com/mojombo/bert"
|
||||
gem.authors = ["Tom Preston-Werner"]
|
||||
gem.add_development_dependency("thoughtbot-shoulda")
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче