Gemfile in active_model_serializers-0.10.0.rc2 vs Gemfile in active_model_serializers-0.10.0.rc3
- old
+ new
@@ -1,17 +1,48 @@
source 'https://rubygems.org'
+#
+# Add a Gemfile.local to locally bundle gems outside of version control
+local_gemfile = File.join(File.expand_path('..', __FILE__), 'Gemfile.local')
+eval_gemfile local_gemfile if File.readable?(local_gemfile)
# Specify your gem's dependencies in active_model_serializers.gemspec
gemspec
-gem "minitest"
+version = ENV['RAILS_VERSION'] || '4.2'
-version = ENV["RAILS_VERSION"] || "4.2"
+if version == 'master'
+ gem 'rack', github: 'rack/rack'
+ git 'https://github.com/rails/rails.git' do
+ gem 'railties'
+ gem 'activesupport'
+ gem 'activemodel'
+ gem 'actionpack'
+ # Rails 5
+ gem 'actionview'
+ end
+ # Rails 5
+ gem 'rails-controller-testing', github: 'rails/rails-controller-testing'
+else
+ gem_version = "~> #{version}.0"
+ gem 'railties', gem_version
+ gem 'activesupport', gem_version
+ gem 'activemodel', gem_version
+ gem 'actionpack', gem_version
+end
-if version == "master"
- gem "rails", github: "rails/rails"
+group :test do
+ gem 'activerecord'
+ gem 'sqlite3', platform: [:ruby, :mingw, :x64_mingw, :mswin]
+ gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
+ gem 'codeclimate-test-reporter', require: false
+end
- # ugh https://github.com/rails/rails/issues/16063#issuecomment-48090125
- gem "arel", github: "rails/arel"
-else
- gem "rails", "~> #{version}.0"
+group :test, :development do
+ gem 'simplecov', '~> 0.10', require: false
+end
+
+# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
+
+group :development, :test do
+ gem 'rubocop', '~> 0.34.0', require: false
end