From be93decd3b3dcdce7809a4c8a797d1fe77cba504 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 15 Sep 2016 16:53:32 +0900 Subject: [PATCH] mime-types 3 requires ruby 2 --- gemfiles/Gemfile-rails.4.0.x | 6 ++++++ gemfiles/Gemfile-rails.4.1.x | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gemfiles/Gemfile-rails.4.0.x b/gemfiles/Gemfile-rails.4.0.x index 6e4bc06..6e76078 100644 --- a/gemfiles/Gemfile-rails.4.0.x +++ b/gemfiles/Gemfile-rails.4.0.x @@ -8,6 +8,12 @@ gem "sqlite3" # jquery-rails is used by the dummy application gem "jquery-rails" +if RUBY_VERSION > '1.9.3' + gem 'mime-types' +else + gem 'mime-types', '2.99' +end + # Declare any dependencies that are still in development here instead of in # your gemspec. These might include edge Rails or gems from your path or # Git. Remember to move these dependencies to your gemspec before releasing diff --git a/gemfiles/Gemfile-rails.4.1.x b/gemfiles/Gemfile-rails.4.1.x index 0c78c88..224eb30 100644 --- a/gemfiles/Gemfile-rails.4.1.x +++ b/gemfiles/Gemfile-rails.4.1.x @@ -8,6 +8,12 @@ gem "sqlite3" # jquery-rails is used by the dummy application gem "jquery-rails" +if RUBY_VERSION > '1.9.3' + gem 'mime-types' +else + gem 'mime-types', '2.99' +end + # Declare any dependencies that are still in development here instead of in # your gemspec. These might include edge Rails or gems from your path or # Git. Remember to move these dependencies to your gemspec before releasing