Skip to content

Commit

Permalink
Handle a particular mime-types gem version depending on the ruby vers…
Browse files Browse the repository at this point in the history
…ion that is running
  • Loading branch information
cavi21 committed May 18, 2016
1 parent e9f8be6 commit a60b3e2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sunspot_rails/gemfiles/rails-4.0.0
@@ -1,6 +1,9 @@
source 'http://rubygems.org'

gem 'rails', '~> 4.0.0'
if SystemRubyVersion.new.to_s =~ /1.9/
gem 'mime-types', '~> 2.99.0'
end

gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
Expand All @@ -18,4 +21,4 @@ end

group :sqlite do
gem 'sqlite3', '~> 1.3.7'
end
end
3 changes: 3 additions & 0 deletions sunspot_rails/gemfiles/rails-4.1.0
@@ -1,6 +1,9 @@
source 'http://rubygems.org'

gem 'rails', '~> 4.1.0'
if SystemRubyVersion.new.to_s =~ /1.9/
gem 'mime-types', '~> 2.99.0'
end

gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
Expand Down
3 changes: 3 additions & 0 deletions sunspot_rails/gemfiles/rails-4.2.0
@@ -1,6 +1,9 @@
source 'http://rubygems.org'

gem 'rails', '~> 4.2.0'
if SystemRubyVersion.new.to_s =~ /1.9/
gem 'mime-types', '~> 2.99.0'
end

gem 'sunspot', :path => File.expand_path('../../../sunspot', __FILE__)
gem 'sunspot_solr', :path => File.expand_path('../../../sunspot_solr', __FILE__)
Expand Down

0 comments on commit a60b3e2

Please sign in to comment.