jsonapi-authorization 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -0
- data/.travis.yml +9 -7
- data/Appraisals +47 -0
- data/Gemfile +0 -20
- data/gemfiles/rails_4_2_pundit_1.gemfile +9 -0
- data/gemfiles/rails_4_2_pundit_2.gemfile +9 -0
- data/gemfiles/rails_5_0_pundit_1.gemfile +9 -0
- data/gemfiles/rails_5_0_pundit_2.gemfile +9 -0
- data/gemfiles/rails_5_1_pundit_1.gemfile +9 -0
- data/gemfiles/rails_5_1_pundit_2.gemfile +9 -0
- data/gemfiles/rails_5_2_pundit_1.gemfile +9 -0
- data/gemfiles/rails_5_2_pundit_2.gemfile +9 -0
- data/jsonapi-authorization.gemspec +4 -3
- data/lib/jsonapi/authorization/version.rb +1 -1
- metadata +39 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f32047cadad73b90dc534757f5a52157ccc820d1
|
4
|
+
data.tar.gz: 6d24b873a8824e6f1cfc36005581bad049d76ab5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e78386a41b746194ed22be6b3125dbe3f223e81067c43a6e5e642629cdc9f9c1061eb7f27516dd68e9c4a4cb1691f608af7a980f4c1d9ef3cebb6aa001631d
|
7
|
+
data.tar.gz: a90a591c7e57d1727c1b1ab4d8313de0a9f1d9f273d3e7022b43d1090c2d3d674134337bd1688060ef2d09157f1ce8d84f08285e6dc29af266a6696c43801c09
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
-
env:
|
3
|
-
- JSONAPI_RESOURCES_VERSION=0.9 RAILS_VERSION=4.2.0
|
4
|
-
- JSONAPI_RESOURCES_VERSION=0.9 RAILS_VERSION=5.0.0
|
5
|
-
- JSONAPI_RESOURCES_VERSION=0.9 RAILS_VERSION=5.1.0
|
6
|
-
- JSONAPI_RESOURCES_VERSION=0.9 RAILS_VERSION=5.2.0
|
7
|
-
install:
|
8
|
-
- bundle install
|
9
2
|
rvm:
|
10
3
|
- 2.3
|
4
|
+
gemfile:
|
5
|
+
- gemfiles/rails_4_2_pundit_1.gemfile
|
6
|
+
- gemfiles/rails_5_0_pundit_1.gemfile
|
7
|
+
- gemfiles/rails_5_1_pundit_1.gemfile
|
8
|
+
- gemfiles/rails_5_2_pundit_1.gemfile
|
9
|
+
- gemfiles/rails_4_2_pundit_2.gemfile
|
10
|
+
- gemfiles/rails_5_0_pundit_2.gemfile
|
11
|
+
- gemfiles/rails_5_1_pundit_2.gemfile
|
12
|
+
- gemfiles/rails_5_2_pundit_2.gemfile
|
11
13
|
before_install: gem install bundler -v 1.16.2
|
12
14
|
notifications:
|
13
15
|
email: false
|
data/Appraisals
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
appraise 'rails-4-2 pundit-1' do
|
2
|
+
gem 'rails', '4.2.0'
|
3
|
+
gem 'jsonapi-resources', '0.9'
|
4
|
+
gem 'pundit', '~> 1.0'
|
5
|
+
end
|
6
|
+
|
7
|
+
appraise 'rails-5-0 pundit-1' do
|
8
|
+
gem 'rails', '5.0.0'
|
9
|
+
gem 'jsonapi-resources', '0.9'
|
10
|
+
gem 'pundit', '~> 1.0'
|
11
|
+
end
|
12
|
+
|
13
|
+
appraise 'rails-5-1 pundit-1' do
|
14
|
+
gem "rails", "5.1.0"
|
15
|
+
gem 'jsonapi-resources', '0.9'
|
16
|
+
gem 'pundit', '~> 1.0'
|
17
|
+
end
|
18
|
+
|
19
|
+
appraise 'rails-5-2 pundit-1' do
|
20
|
+
gem 'rails', '5.2.0'
|
21
|
+
gem 'jsonapi-resources', '0.9'
|
22
|
+
gem 'pundit', '~> 1.0'
|
23
|
+
end
|
24
|
+
|
25
|
+
appraise 'rails-4-2 pundit-2' do
|
26
|
+
gem 'rails', '4.2.0'
|
27
|
+
gem 'jsonapi-resources', '0.9'
|
28
|
+
gem 'pundit', '~> 2.0'
|
29
|
+
end
|
30
|
+
|
31
|
+
appraise 'rails-5-0 pundit-2' do
|
32
|
+
gem 'rails', '5.0.0'
|
33
|
+
gem 'jsonapi-resources', '0.9'
|
34
|
+
gem 'pundit', '~> 2.0'
|
35
|
+
end
|
36
|
+
|
37
|
+
appraise 'rails-5-1 pundit-2' do
|
38
|
+
gem 'rails', '5.1.0'
|
39
|
+
gem 'jsonapi-resources', '0.9'
|
40
|
+
gem 'pundit', '~> 2.0'
|
41
|
+
end
|
42
|
+
|
43
|
+
appraise 'rails-5-2 pundit-2' do
|
44
|
+
gem 'rails', '5.2.0'
|
45
|
+
gem 'jsonapi-resources', '0.9'
|
46
|
+
gem 'pundit', '~> 2.0'
|
47
|
+
end
|
data/Gemfile
CHANGED
@@ -1,23 +1,3 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
|
-
|
5
|
-
rails_version = ENV['RAILS_VERSION'] || 'default'
|
6
|
-
jsonapi_resources_version = ENV['JSONAPI_RESOURCES_VERSION'] || 'default'
|
7
|
-
|
8
|
-
case rails_version
|
9
|
-
when 'master'
|
10
|
-
gem 'rails', git: 'https://github.com/rails/rails.git'
|
11
|
-
gem 'arel', git: 'https://github.com/rails/arel.git'
|
12
|
-
when 'default'
|
13
|
-
gem 'rails', '>= 4.2'
|
14
|
-
else
|
15
|
-
gem 'rails', "~> #{rails_version}"
|
16
|
-
end
|
17
|
-
|
18
|
-
case jsonapi_resources_version
|
19
|
-
when 'default'
|
20
|
-
gem 'jsonapi-resources', '0.9'
|
21
|
-
else
|
22
|
-
gem 'jsonapi-resources', jsonapi_resources_version
|
23
|
-
end
|
@@ -18,12 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "jsonapi-resources", "~> 0.9"
|
21
|
-
spec.add_dependency "pundit", "
|
21
|
+
spec.add_dependency "pundit", ">= 1.0.0", "< 3.0.0"
|
22
22
|
|
23
|
+
spec.add_development_dependency "appraisal"
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.11"
|
24
25
|
spec.add_development_dependency "rake", "~> 12.0"
|
25
|
-
spec.add_development_dependency "rspec", "~> 3.
|
26
|
-
spec.add_development_dependency "rspec-rails", "~> 3.
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.8"
|
27
|
+
spec.add_development_dependency "rspec-rails", "~> 3.8"
|
27
28
|
spec.add_development_dependency "pry"
|
28
29
|
spec.add_development_dependency "pry-byebug"
|
29
30
|
spec.add_development_dependency "pry-doc"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-authorization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vesa Laakso
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jsonapi-resources
|
@@ -29,16 +29,36 @@ dependencies:
|
|
29
29
|
name: pundit
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.0.0
|
35
|
+
- - "<"
|
33
36
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
37
|
+
version: 3.0.0
|
35
38
|
type: :runtime
|
36
39
|
prerelease: false
|
37
40
|
version_requirements: !ruby/object:Gem::Requirement
|
38
41
|
requirements:
|
39
|
-
- - "
|
42
|
+
- - ">="
|
40
43
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
44
|
+
version: 1.0.0
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.0.0
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: appraisal
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
42
62
|
- !ruby/object:Gem::Dependency
|
43
63
|
name: bundler
|
44
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,28 +93,28 @@ dependencies:
|
|
73
93
|
requirements:
|
74
94
|
- - "~>"
|
75
95
|
- !ruby/object:Gem::Version
|
76
|
-
version: '3.
|
96
|
+
version: '3.8'
|
77
97
|
type: :development
|
78
98
|
prerelease: false
|
79
99
|
version_requirements: !ruby/object:Gem::Requirement
|
80
100
|
requirements:
|
81
101
|
- - "~>"
|
82
102
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
103
|
+
version: '3.8'
|
84
104
|
- !ruby/object:Gem::Dependency
|
85
105
|
name: rspec-rails
|
86
106
|
requirement: !ruby/object:Gem::Requirement
|
87
107
|
requirements:
|
88
108
|
- - "~>"
|
89
109
|
- !ruby/object:Gem::Version
|
90
|
-
version: '3.
|
110
|
+
version: '3.8'
|
91
111
|
type: :development
|
92
112
|
prerelease: false
|
93
113
|
version_requirements: !ruby/object:Gem::Requirement
|
94
114
|
requirements:
|
95
115
|
- - "~>"
|
96
116
|
- !ruby/object:Gem::Version
|
97
|
-
version: '3.
|
117
|
+
version: '3.8'
|
98
118
|
- !ruby/object:Gem::Dependency
|
99
119
|
name: pry
|
100
120
|
requirement: !ruby/object:Gem::Requirement
|
@@ -207,6 +227,7 @@ files:
|
|
207
227
|
- ".rspec"
|
208
228
|
- ".rubocop.yml"
|
209
229
|
- ".travis.yml"
|
230
|
+
- Appraisals
|
210
231
|
- Gemfile
|
211
232
|
- LICENSE.txt
|
212
233
|
- README.md
|
@@ -216,6 +237,14 @@ files:
|
|
216
237
|
- bin/rubocop
|
217
238
|
- bin/setup
|
218
239
|
- docs/relationship-authorization.md
|
240
|
+
- gemfiles/rails_4_2_pundit_1.gemfile
|
241
|
+
- gemfiles/rails_4_2_pundit_2.gemfile
|
242
|
+
- gemfiles/rails_5_0_pundit_1.gemfile
|
243
|
+
- gemfiles/rails_5_0_pundit_2.gemfile
|
244
|
+
- gemfiles/rails_5_1_pundit_1.gemfile
|
245
|
+
- gemfiles/rails_5_1_pundit_2.gemfile
|
246
|
+
- gemfiles/rails_5_2_pundit_1.gemfile
|
247
|
+
- gemfiles/rails_5_2_pundit_2.gemfile
|
219
248
|
- jsonapi-authorization.gemspec
|
220
249
|
- lib/jsonapi-authorization.rb
|
221
250
|
- lib/jsonapi/authorization.rb
|