Properly include hermann_jars.rb in the built gem but exclude from the tree

This commit is contained in:
R. Tyler Croy 2015-09-23 13:19:18 -07:00
parent ecae27dd65
commit 9d5b773542
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ tmp/
Gemfile.lock
Jarfile.lock
.jbundler/
lib/hermann_jars.rb

View File

@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.homepage = 'https://github.com/lookout/Hermann'
s.licenses = ['MIT']
s.files = [ "Rakefile"]
s.files = ['Rakefile']
s.files += `git ls-files -- lib`.split($\)
s.files += `git ls-files -- ext`.split($\)
@ -28,6 +28,7 @@ Gem::Specification.new do |s|
s.add_dependency 'thread_safe', '~> 0.3.4'
if RUBY_PLATFORM == "java"
s.files << 'lib/hermann_jars.rb'
s.add_dependency 'concurrent-ruby', '~> 0.7.0'
# IMPORTANT: make sure that jar-dependencies is only a development