-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow to use Pundit v2 * Use Appraisal to test Pundit v2 * Add more Rails versions to test Pundit v2
- Loading branch information
1 parent
a34dbe9
commit 5bece91
Showing
14 changed files
with
134 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
/spec/dummy/tmp/ | ||
*.orig | ||
.ruby-version | ||
/gemfiles/*.gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
appraise 'rails-4-2 pundit-1' do | ||
gem 'rails', '4.2.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-5-0 pundit-1' do | ||
gem 'rails', '5.0.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-5-1 pundit-1' do | ||
gem "rails", "5.1.0" | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-5-2 pundit-1' do | ||
gem 'rails', '5.2.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 1.0' | ||
end | ||
|
||
appraise 'rails-4-2 pundit-2' do | ||
gem 'rails', '4.2.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
|
||
appraise 'rails-5-0 pundit-2' do | ||
gem 'rails', '5.0.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
|
||
appraise 'rails-5-1 pundit-2' do | ||
gem 'rails', '5.1.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 2.0' | ||
end | ||
|
||
appraise 'rails-5-2 pundit-2' do | ||
gem 'rails', '5.2.0' | ||
gem 'jsonapi-resources', '0.9' | ||
gem 'pundit', '~> 2.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
rails_version = ENV['RAILS_VERSION'] || 'default' | ||
jsonapi_resources_version = ENV['JSONAPI_RESOURCES_VERSION'] || 'default' | ||
|
||
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', "~> #{rails_version}" | ||
end | ||
|
||
case jsonapi_resources_version | ||
when 'default' | ||
gem 'jsonapi-resources', '0.9' | ||
else | ||
gem 'jsonapi-resources', jsonapi_resources_version | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "4.2.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 1.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "4.2.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.0.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 1.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.0.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.1.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 1.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.1.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.2.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 1.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# This file was generated by Appraisal | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "rails", "5.2.0" | ||
gem "jsonapi-resources", "0.9" | ||
gem "pundit", "~> 2.0" | ||
|
||
gemspec path: "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters