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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bcd1ac1cfc1372b4ffeeabb8e1ae5bab6cf48da3
4
- data.tar.gz: 13de8f3337c711b0454b5f1ca953cf99bd77be8b
3
+ metadata.gz: f32047cadad73b90dc534757f5a52157ccc820d1
4
+ data.tar.gz: 6d24b873a8824e6f1cfc36005581bad049d76ab5
5
5
  SHA512:
6
- metadata.gz: ba7c459632d6809cc751358a1e2943e3ef7b03c646305133eb2e7129ae59b529edfc7ced44d3d6249c34f85f38f74e70ddb6ccfe96403d709cbf22f5ed8d5e55
7
- data.tar.gz: 76aa072e610ad4949ede3da5b9264bbc53a3e5c4527bf2078cf6cdd428d24dc1fb9229ed548fba7221d5cfd1b16a2b90c2cc38cbe2b21eb3a4f4c7d3e828be58
6
+ metadata.gz: 86e78386a41b746194ed22be6b3125dbe3f223e81067c43a6e5e642629cdc9f9c1061eb7f27516dd68e9c4a4cb1691f608af7a980f4c1d9ef3cebb6aa001631d
7
+ data.tar.gz: a90a591c7e57d1727c1b1ab4d8313de0a9f1d9f273d3e7022b43d1090c2d3d674134337bd1688060ef2d09157f1ce8d84f08285e6dc29af266a6696c43801c09
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  /spec/dummy/tmp/
11
11
  *.orig
12
12
  .ruby-version
13
+ /gemfiles/*.gemfile.lock
data/.rubocop.yml CHANGED
@@ -9,6 +9,7 @@ AllCops:
9
9
  Style/FileName:
10
10
  Exclude:
11
11
  - lib/jsonapi-authorization.rb
12
+ - Appraisals
12
13
 
13
14
  Metrics/LineLength:
14
15
  Enabled: true
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
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.2.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "4.2.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.0.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.0.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.1.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.1.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.2.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 1.0"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "5.2.0"
6
+ gem "jsonapi-resources", "0.9"
7
+ gem "pundit", "~> 2.0"
8
+
9
+ gemspec path: "../"
@@ -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", "~> 1.0"
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.0"
26
- spec.add_development_dependency "rspec-rails", "~> 3.7"
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"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module JSONAPI
3
3
  module Authorization
4
- VERSION = "1.0.0.beta1".freeze
4
+ VERSION = "1.0.0.beta2".freeze
5
5
  end
6
6
  end
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.beta1
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-07-02 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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.0'
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.0'
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.7'
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.7'
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