Skip to content

Commit

Permalink
Trying to fix issue for jruby build of gem
Browse files Browse the repository at this point in the history
  • Loading branch information
spier committed May 6, 2012
1 parent d6199d4 commit 501591d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ rvm:

# turn off all notifications
notifications:
disabled: true
disabled: true
3 changes: 0 additions & 3 deletions spec/yql_simple_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# require all gems from Bundler (default and development)
Bundler.require(:default, :development)

# the gem itself is available by default
# require 'yql_simple'

# the number of core tables changes but it should be more than 100
YQL_CORE_TABLE_COUNT = 100

Expand Down
9 changes: 7 additions & 2 deletions yql_simple.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ Gem::Specification.new do |s|
s.rdoc_options << '--title' << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
#s.rubyforge_project = "yql_simple"

# Note: taken from https://github.com/apache/buildr/blob/trunk/buildr.gemspec
# Rakefile needs to create spec for both platforms (ruby and java), using the
# $platform global variable. In all other cases, we figure it out from RUBY_PLATFORM.
spec.platform = $platform || RUBY_PLATFORM[/java/] || 'ruby'

# all dependencies of this gem
# s.add_dependency "nokogiri"
s.add_dependency "json"
# s.add_dependency "curb"
s.add_dependency "httparty"
s.add_dependency "oauth"

s.add_dependency 'jruby-openssl' if spec.platform.to_s == 'jruby'

# dependencies when developing this gem
s.add_development_dependency "rspec"
s.add_development_dependency "rake"
Expand Down

0 comments on commit 501591d

Please sign in to comment.