From c2d1e7545b75bdc987034f48550ec48fbb3a96b9 Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Wed, 26 Dec 2012 13:33:40 +0000 Subject: [PATCH] Lock jRuby sqlite3 dependency --- Gemfile | 9 +++++++-- draper.gemspec | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 7956def..4f30d19 100644 --- a/Gemfile +++ b/Gemfile @@ -2,6 +2,11 @@ source :rubygems gemspec -gem "sqlite3", :platforms => :ruby +platforms :ruby do + gem "sqlite3" +end -gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby +platforms :jruby do + gem "minitest", ">= 3.0" + gem "activerecord-jdbcsqlite3-adapter", "~> 1.2.2.1" +end diff --git a/draper.gemspec b/draper.gemspec index 7a8abe8..eb262aa 100644 --- a/draper.gemspec +++ b/draper.gemspec @@ -26,6 +26,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'rspec-mocks', '>= 2.12.1' s.add_development_dependency 'yard' s.add_development_dependency 'minitest-rails', '~> 0.2' - s.add_development_dependency 'minitest', '~> 3.0' if RUBY_PLATFORM == "java" s.add_development_dependency 'capybara' end