Gemfile in jsonapi-authorization-0.6.0 vs Gemfile in jsonapi-authorization-0.6.1
- old
+ new
@@ -2,16 +2,26 @@
gemspec
gem 'sqlite3', '1.3.10'
-version = ENV['RAILS_VERSION'] || 'default'
+rails_version = ENV['RAILS_VERSION'] || 'default'
+jsonapi_resources_version = ENV['JSONAPI_RESOURCES_VERSION'] || 'default'
-case version
+case rails_version
when 'master'
gem 'rails', git: 'https://github.com/rails/rails.git'
gem 'arel', git: 'https://github.com/rails/arel.git'
when 'default'
gem 'rails', '>= 4.2'
else
- gem 'rails', "~> #{version}"
+ gem 'rails', "~> #{rails_version}"
+end
+
+case jsonapi_resources_version
+when 'master'
+ gem 'jsonapi-resources', git: 'https://github.com/cerebris/jsonapi-resources.git'
+when 'default'
+ gem 'jsonapi-resources', '0.7.0'
+else
+ gem 'jsonapi-resources', jsonapi_resources_version
end