Skip to content

Commit

Permalink
Make the gemspec compatible with JRuby and enable spec runs under JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein committed Apr 29, 2014
1 parent 832272c commit 6eae879
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ matrix:
gemfile: test/gemfiles/Gemfile.rails-4.1.x
- rvm: ree
gemfile: test/gemfiles/Gemfile.rails-4.1.x
- rvm: 1.9.3
gemfile: test/gemfiles/Gemfile.rails-4.1.x
allow_failures:
- gemfile: test/gemfiles/Gemfile.rails-4.1.x
fast_finish: true
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
source "https://rubygems.org"
gemspec
gemspec

gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
gem 'sqlite3', :platforms => :ruby
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ PLATFORMS
ruby

DEPENDENCIES
activerecord-jdbcsqlite3-adapter
authlogic!
bcrypt-ruby (~> 3.1)
scrypt (~> 1.2)
sqlite3 (~> 1.3)
sqlite3
timecop (~> 0.7)
1 change: 0 additions & 1 deletion authlogic.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Gem::Specification.new do |s|
s.add_dependency 'request_store', '~> 1.0'
s.add_development_dependency 'bcrypt-ruby', '~> 3.1'
s.add_development_dependency 'scrypt', '~> 1.2'
s.add_development_dependency 'sqlite3', '~> 1.3'
s.add_development_dependency 'timecop', '~> 0.7'

s.files = `git ls-files`.split("\n")
Expand Down
2 changes: 2 additions & 0 deletions test/gemfiles/Gemfile.rails-3.2.x
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ gemspec :path => "./../.."

gem "activerecord", "3.2.17"
gem "activesupport", "3.2.17"
gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
gem 'sqlite3', :platforms => :ruby
6 changes: 4 additions & 2 deletions test/gemfiles/Gemfile.rails-4.0.x
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source "https://rubygems.org"
gemspec :path => "./../.."

gem "activerecord", "4.0.3"
gem "activesupport", "4.0.3"
gem "activerecord", "~> 4.0.3"
gem "activesupport", "~> 4.0.3"
gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
gem 'sqlite3', :platforms => :ruby
6 changes: 4 additions & 2 deletions test/gemfiles/Gemfile.rails-4.1.x
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source "https://rubygems.org"
gemspec :path => "./../.."

gem "activerecord", "4.1.0.rc1"
gem "activesupport", "4.1.0.rc1"
gem "activerecord", "~> 4.1.0"
gem "activesupport", "~> 4.1.0"
gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
gem 'sqlite3', :platforms => :ruby

0 comments on commit 6eae879

Please sign in to comment.