guise 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92fede678e19b46a4368edd684d4878caa140c5ebb037be1f731b570e7b8fdf7
4
- data.tar.gz: 8a12c58c706ec21d7fffba967c36475dc1017b24a423be595f1ce53fc8a82dcb
3
+ metadata.gz: d2ee97110ee1b7da2070d12aaf29ca76dd5c6163e55f9ff217a05fc70ed3d3a4
4
+ data.tar.gz: d8f2bcb062c300ef1d5c52417bac84dfd0c0f3d2036596197c00ccd6335f2c75
5
5
  SHA512:
6
- metadata.gz: e50f9af77388bebc9270fa71dfcac0452b2c34ee0543d1cbfbb4e07259cddeb68e1db189b997bbf1692af61c0e6222fe61aa8da9c2a0c6e58cc6ab7763ce7bcb
7
- data.tar.gz: c65be86108f09ea7675563fe486c2a9b828f89904a8b2ca4062f26c9050bf04fc5cd059951b284cb8cfa2d082c3d2c9f9c7c4139353c80a7ad94b363b5c0d38c
6
+ metadata.gz: 8ae904406e4f820ce02c121733a4741b4321f364b5ee134f93075d052cd393ac39da2dcd5231bbde86e920a188216137395985554da7150fe5cf875f57c2b910
7
+ data.tar.gz: 01a58667b199ef476a9b5450bcd6d39ecd1e237dfd5b075c705bdd29321282c24c518246de11ad22527fdd6d5a75b70a3835d9d3f3719816ccad4e585da96c50
@@ -0,0 +1,109 @@
1
+ version: v1.0
2
+ name: guise tests
3
+ agent:
4
+ machine:
5
+ type: e1-standard-2
6
+ os_image: ubuntu1804
7
+
8
+ blocks:
9
+ - name: Rails < 5.0
10
+ task:
11
+ jobs:
12
+ - name: rspec
13
+ matrix:
14
+ - env_var: RUBY_VERSION
15
+ values:
16
+ - "2.5.9"
17
+ - "2.6.10"
18
+
19
+ - env_var: RAILS_VERSION
20
+ values:
21
+ - "4.2"
22
+
23
+ commands:
24
+ - export BUNDLE_GEMFILE=gemfiles/$RAILS_VERSION.gemfile
25
+
26
+ - checkout
27
+
28
+ - sem-version ruby $RUBY_VERSION
29
+
30
+ - gem install bundler
31
+
32
+ - bundle config set path vendor/bundle
33
+ - mkdir -p vendor/bundle
34
+
35
+ - cache restore
36
+ - bundle install --jobs 4 --retry 3
37
+ - cache store
38
+
39
+ - bundle exec rspec
40
+
41
+ - name: Ruby < 3.0
42
+ task:
43
+ jobs:
44
+ - name: rspec
45
+ matrix:
46
+ - env_var: RUBY_VERSION
47
+ values:
48
+ - "2.5.9"
49
+ - "2.6.10"
50
+ - "2.7.6"
51
+
52
+ - env_var: RAILS_VERSION
53
+ values:
54
+ - "5.0"
55
+ - "5.1"
56
+ - "5.2"
57
+ - "6.0"
58
+ - "6.1"
59
+
60
+ commands:
61
+ - export BUNDLE_GEMFILE=gemfiles/$RAILS_VERSION.gemfile
62
+
63
+ - checkout
64
+
65
+ - sem-version ruby $RUBY_VERSION
66
+
67
+ - gem install bundler
68
+
69
+ - bundle config set path vendor/bundle
70
+ - mkdir -p vendor/bundle
71
+
72
+ - cache restore
73
+ - bundle install --jobs 4 --retry 3
74
+ - cache store
75
+
76
+ - bundle exec rspec
77
+
78
+ - name: Ruby >= 3.0
79
+ task:
80
+ jobs:
81
+ - name: rspec
82
+ matrix:
83
+ - env_var: RUBY_VERSION
84
+ values:
85
+ - "3.0.4"
86
+ - "3.1.2"
87
+
88
+ - env_var: RAILS_VERSION
89
+ values:
90
+ - "6.0"
91
+ - "6.1"
92
+
93
+ commands:
94
+ - export BUNDLE_GEMFILE=gemfiles/$RAILS_VERSION.gemfile
95
+
96
+ - checkout
97
+
98
+ - sem-version ruby $RUBY_VERSION
99
+
100
+ - gem install bundler
101
+
102
+ - bundle config set path vendor/bundle
103
+ - mkdir -p vendor/bundle
104
+
105
+ - cache restore
106
+ - bundle install --jobs 4 --retry 3
107
+ - cache store
108
+
109
+ - bundle exec rspec
data/Appraisals CHANGED
@@ -26,3 +26,8 @@ appraise '6.0' do
26
26
  gem 'activerecord', '~> 6.0.0'
27
27
  gem 'activesupport', '~> 6.0.0'
28
28
  end
29
+
30
+ appraise '6.1' do
31
+ gem 'activerecord', '~> 6.1.0'
32
+ gem 'activesupport', '~> 6.1.0'
33
+ end
data/CHANGELOG.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## [0.9.0]
4
+ ### Added
5
+ * Support for ruby 3.0 and 3.1
6
+ * Test on Rails 4.2 again
4
7
 
5
8
  ## [0.8.0]
6
- ## Added
9
+ ### Added
7
10
  * Rails 6 support
8
11
  * Testing on ruby 2.6
9
12
 
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # guise
2
2
 
3
- [![Build Status](https://travis-ci.org/ecbypi/guise.png?branch=master)](https://travis-ci.org/ecbypi/guise)
4
- [![Code Climate](https://codeclimate.com/github/ecbypi/guise.png)](https://codeclimate.com/github/ecbypi/guise)
5
3
 
6
4
  A typical, quick-and-easy role management system involves `users` and `roles`
7
5
  tables with a join table between them to determine membership to a role:
@@ -8,59 +8,61 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.2.11.1)
12
- activesupport (= 4.2.11.1)
11
+ activemodel (4.2.11.3)
12
+ activesupport (= 4.2.11.3)
13
13
  builder (~> 3.1)
14
- activerecord (4.2.11.1)
15
- activemodel (= 4.2.11.1)
16
- activesupport (= 4.2.11.1)
14
+ activerecord (4.2.11.3)
15
+ activemodel (= 4.2.11.3)
16
+ activesupport (= 4.2.11.3)
17
17
  arel (~> 6.0)
18
- activesupport (4.2.11.1)
18
+ activesupport (4.2.11.3)
19
19
  i18n (~> 0.7)
20
20
  minitest (~> 5.1)
21
21
  thread_safe (~> 0.3, >= 0.3.4)
22
22
  tzinfo (~> 1.1)
23
- appraisal (2.2.0)
23
+ appraisal (2.4.1)
24
24
  bundler
25
25
  rake
26
26
  thor (>= 0.14.0)
27
27
  arel (6.0.4)
28
- builder (3.2.3)
28
+ builder (3.2.4)
29
29
  byebug (10.0.2)
30
- coderay (1.1.2)
31
- concurrent-ruby (1.1.5)
32
- diff-lcs (1.3)
30
+ coderay (1.1.3)
31
+ concurrent-ruby (1.1.10)
32
+ diff-lcs (1.5.0)
33
33
  i18n (0.9.5)
34
34
  concurrent-ruby (~> 1.0)
35
- method_source (0.9.2)
36
- minitest (5.11.3)
37
- pry (0.12.2)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
35
+ method_source (1.0.0)
36
+ minitest (5.15.0)
37
+ pry (0.14.1)
38
+ coderay (~> 1.1)
39
+ method_source (~> 1.0)
40
40
  rake (12.3.3)
41
- redcarpet (3.5.0)
42
- rspec (3.8.0)
43
- rspec-core (~> 3.8.0)
44
- rspec-expectations (~> 3.8.0)
45
- rspec-mocks (~> 3.8.0)
46
- rspec-core (3.8.2)
47
- rspec-support (~> 3.8.0)
48
- rspec-expectations (3.8.4)
41
+ redcarpet (3.5.1)
42
+ rspec (3.11.0)
43
+ rspec-core (~> 3.11.0)
44
+ rspec-expectations (~> 3.11.0)
45
+ rspec-mocks (~> 3.11.0)
46
+ rspec-core (3.11.0)
47
+ rspec-support (~> 3.11.0)
48
+ rspec-expectations (3.11.0)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-mocks (3.8.1)
50
+ rspec-support (~> 3.11.0)
51
+ rspec-mocks (3.11.1)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.8.0)
54
- rspec-support (3.8.2)
53
+ rspec-support (~> 3.11.0)
54
+ rspec-support (3.11.0)
55
55
  sqlite3 (1.3.13)
56
- thor (0.20.3)
56
+ thor (1.2.1)
57
57
  thread_safe (0.3.6)
58
- tzinfo (1.2.5)
58
+ tzinfo (1.2.9)
59
59
  thread_safe (~> 0.1)
60
- yard (0.9.20)
60
+ webrick (1.7.0)
61
+ yard (0.9.27)
62
+ webrick (~> 1.7.0)
61
63
 
62
64
  PLATFORMS
63
- ruby
65
+ x86_64-darwin-21
64
66
 
65
67
  DEPENDENCIES
66
68
  activerecord (~> 4.2.0)
@@ -76,4 +78,4 @@ DEPENDENCIES
76
78
  yard (>= 0.9.20)
77
79
 
78
80
  BUNDLED WITH
79
- 1.17.2
81
+ 2.3.7
@@ -19,43 +19,43 @@ GEM
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
21
21
  tzinfo (~> 1.1)
22
- appraisal (2.2.0)
22
+ appraisal (2.4.1)
23
23
  bundler
24
24
  rake
25
25
  thor (>= 0.14.0)
26
26
  arel (7.1.4)
27
27
  byebug (10.0.2)
28
- coderay (1.1.2)
29
- concurrent-ruby (1.1.5)
30
- diff-lcs (1.3)
31
- i18n (1.6.0)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.9)
30
+ diff-lcs (1.4.4)
31
+ i18n (1.8.10)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.2)
34
- minitest (5.11.3)
35
- pry (0.12.2)
36
- coderay (~> 1.1.0)
37
- method_source (~> 0.9.0)
33
+ method_source (1.0.0)
34
+ minitest (5.14.4)
35
+ pry (0.14.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
38
  rake (12.3.3)
39
- redcarpet (3.5.0)
40
- rspec (3.8.0)
41
- rspec-core (~> 3.8.0)
42
- rspec-expectations (~> 3.8.0)
43
- rspec-mocks (~> 3.8.0)
44
- rspec-core (3.8.2)
45
- rspec-support (~> 3.8.0)
46
- rspec-expectations (3.8.4)
39
+ redcarpet (3.5.1)
40
+ rspec (3.10.0)
41
+ rspec-core (~> 3.10.0)
42
+ rspec-expectations (~> 3.10.0)
43
+ rspec-mocks (~> 3.10.0)
44
+ rspec-core (3.10.1)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-expectations (3.10.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.8.0)
49
- rspec-mocks (3.8.1)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-mocks (3.10.2)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.8.0)
52
- rspec-support (3.8.2)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-support (3.10.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.3)
54
+ thor (1.1.0)
55
55
  thread_safe (0.3.6)
56
- tzinfo (1.2.5)
56
+ tzinfo (1.2.9)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.20)
58
+ yard (0.9.26)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.17.2
77
+ 2.1.4
@@ -19,43 +19,43 @@ GEM
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
21
21
  tzinfo (~> 1.1)
22
- appraisal (2.2.0)
22
+ appraisal (2.4.1)
23
23
  bundler
24
24
  rake
25
25
  thor (>= 0.14.0)
26
26
  arel (8.0.0)
27
27
  byebug (10.0.2)
28
- coderay (1.1.2)
29
- concurrent-ruby (1.1.5)
30
- diff-lcs (1.3)
31
- i18n (1.6.0)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.9)
30
+ diff-lcs (1.4.4)
31
+ i18n (1.8.10)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.2)
34
- minitest (5.11.3)
35
- pry (0.12.2)
36
- coderay (~> 1.1.0)
37
- method_source (~> 0.9.0)
33
+ method_source (1.0.0)
34
+ minitest (5.14.4)
35
+ pry (0.14.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
38
  rake (12.3.3)
39
- redcarpet (3.5.0)
40
- rspec (3.8.0)
41
- rspec-core (~> 3.8.0)
42
- rspec-expectations (~> 3.8.0)
43
- rspec-mocks (~> 3.8.0)
44
- rspec-core (3.8.2)
45
- rspec-support (~> 3.8.0)
46
- rspec-expectations (3.8.4)
39
+ redcarpet (3.5.1)
40
+ rspec (3.10.0)
41
+ rspec-core (~> 3.10.0)
42
+ rspec-expectations (~> 3.10.0)
43
+ rspec-mocks (~> 3.10.0)
44
+ rspec-core (3.10.1)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-expectations (3.10.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.8.0)
49
- rspec-mocks (3.8.1)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-mocks (3.10.2)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.8.0)
52
- rspec-support (3.8.2)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-support (3.10.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.3)
54
+ thor (1.1.0)
55
55
  thread_safe (0.3.6)
56
- tzinfo (1.2.5)
56
+ tzinfo (1.2.9)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.20)
58
+ yard (0.9.26)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.17.2
77
+ 2.1.4
@@ -8,54 +8,54 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (5.2.3)
12
- activesupport (= 5.2.3)
13
- activerecord (5.2.3)
14
- activemodel (= 5.2.3)
15
- activesupport (= 5.2.3)
11
+ activemodel (5.2.6)
12
+ activesupport (= 5.2.6)
13
+ activerecord (5.2.6)
14
+ activemodel (= 5.2.6)
15
+ activesupport (= 5.2.6)
16
16
  arel (>= 9.0)
17
- activesupport (5.2.3)
17
+ activesupport (5.2.6)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
21
21
  tzinfo (~> 1.1)
22
- appraisal (2.2.0)
22
+ appraisal (2.4.1)
23
23
  bundler
24
24
  rake
25
25
  thor (>= 0.14.0)
26
26
  arel (9.0.0)
27
27
  byebug (10.0.2)
28
- coderay (1.1.2)
29
- concurrent-ruby (1.1.5)
30
- diff-lcs (1.3)
31
- i18n (1.6.0)
28
+ coderay (1.1.3)
29
+ concurrent-ruby (1.1.9)
30
+ diff-lcs (1.4.4)
31
+ i18n (1.8.10)
32
32
  concurrent-ruby (~> 1.0)
33
- method_source (0.9.2)
34
- minitest (5.11.3)
35
- pry (0.12.2)
36
- coderay (~> 1.1.0)
37
- method_source (~> 0.9.0)
33
+ method_source (1.0.0)
34
+ minitest (5.14.4)
35
+ pry (0.14.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
38
  rake (12.3.3)
39
- redcarpet (3.5.0)
40
- rspec (3.8.0)
41
- rspec-core (~> 3.8.0)
42
- rspec-expectations (~> 3.8.0)
43
- rspec-mocks (~> 3.8.0)
44
- rspec-core (3.8.2)
45
- rspec-support (~> 3.8.0)
46
- rspec-expectations (3.8.4)
39
+ redcarpet (3.5.1)
40
+ rspec (3.10.0)
41
+ rspec-core (~> 3.10.0)
42
+ rspec-expectations (~> 3.10.0)
43
+ rspec-mocks (~> 3.10.0)
44
+ rspec-core (3.10.1)
45
+ rspec-support (~> 3.10.0)
46
+ rspec-expectations (3.10.1)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.8.0)
49
- rspec-mocks (3.8.1)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-mocks (3.10.2)
50
50
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.8.0)
52
- rspec-support (3.8.2)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-support (3.10.2)
53
53
  sqlite3 (1.3.13)
54
- thor (0.20.3)
54
+ thor (1.1.0)
55
55
  thread_safe (0.3.6)
56
- tzinfo (1.2.5)
56
+ tzinfo (1.2.9)
57
57
  thread_safe (~> 0.1)
58
- yard (0.9.20)
58
+ yard (0.9.26)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.17.2
77
+ 2.1.4
@@ -8,54 +8,54 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (6.0.0)
12
- activesupport (= 6.0.0)
13
- activerecord (6.0.0)
14
- activemodel (= 6.0.0)
15
- activesupport (= 6.0.0)
16
- activesupport (6.0.0)
11
+ activemodel (6.0.4.1)
12
+ activesupport (= 6.0.4.1)
13
+ activerecord (6.0.4.1)
14
+ activemodel (= 6.0.4.1)
15
+ activesupport (= 6.0.4.1)
16
+ activesupport (6.0.4.1)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
18
  i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- zeitwerk (~> 2.1, >= 2.1.8)
22
- appraisal (2.2.0)
21
+ zeitwerk (~> 2.2, >= 2.2.2)
22
+ appraisal (2.4.1)
23
23
  bundler
24
24
  rake
25
25
  thor (>= 0.14.0)
26
26
  byebug (10.0.2)
27
- coderay (1.1.2)
28
- concurrent-ruby (1.1.5)
29
- diff-lcs (1.3)
30
- i18n (1.6.0)
27
+ coderay (1.1.3)
28
+ concurrent-ruby (1.1.9)
29
+ diff-lcs (1.4.4)
30
+ i18n (1.8.10)
31
31
  concurrent-ruby (~> 1.0)
32
- method_source (0.9.2)
33
- minitest (5.11.3)
34
- pry (0.12.2)
35
- coderay (~> 1.1.0)
36
- method_source (~> 0.9.0)
32
+ method_source (1.0.0)
33
+ minitest (5.14.4)
34
+ pry (0.14.1)
35
+ coderay (~> 1.1)
36
+ method_source (~> 1.0)
37
37
  rake (12.3.3)
38
- redcarpet (3.5.0)
39
- rspec (3.8.0)
40
- rspec-core (~> 3.8.0)
41
- rspec-expectations (~> 3.8.0)
42
- rspec-mocks (~> 3.8.0)
43
- rspec-core (3.8.2)
44
- rspec-support (~> 3.8.0)
45
- rspec-expectations (3.8.4)
38
+ redcarpet (3.5.1)
39
+ rspec (3.10.0)
40
+ rspec-core (~> 3.10.0)
41
+ rspec-expectations (~> 3.10.0)
42
+ rspec-mocks (~> 3.10.0)
43
+ rspec-core (3.10.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-expectations (3.10.1)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-mocks (3.8.1)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-mocks (3.10.2)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-support (3.8.2)
52
- sqlite3 (1.4.1)
53
- thor (0.20.3)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-support (3.10.2)
52
+ sqlite3 (1.4.2)
53
+ thor (1.1.0)
54
54
  thread_safe (0.3.6)
55
- tzinfo (1.2.5)
55
+ tzinfo (1.2.9)
56
56
  thread_safe (~> 0.1)
57
- yard (0.9.20)
58
- zeitwerk (2.1.9)
57
+ yard (0.9.26)
58
+ zeitwerk (2.5.1)
59
59
 
60
60
  PLATFORMS
61
61
  ruby
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  yard (>= 0.9.20)
75
75
 
76
76
  BUNDLED WITH
77
- 1.17.2
77
+ 2.1.4
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 4.1.0"
6
- gem "activesupport", "~> 4.1.0"
5
+ gem "activerecord", "~> 6.1.0"
6
+ gem "activesupport", "~> 6.1.0"
7
7
 
8
8
  gemspec path: "../"
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ guise (0.8.0)
5
+ activerecord (>= 4.2)
6
+ activesupport (>= 4.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (6.1.4.1)
12
+ activesupport (= 6.1.4.1)
13
+ activerecord (6.1.4.1)
14
+ activemodel (= 6.1.4.1)
15
+ activesupport (= 6.1.4.1)
16
+ activesupport (6.1.4.1)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 1.6, < 2)
19
+ minitest (>= 5.1)
20
+ tzinfo (~> 2.0)
21
+ zeitwerk (~> 2.3)
22
+ appraisal (2.4.1)
23
+ bundler
24
+ rake
25
+ thor (>= 0.14.0)
26
+ byebug (10.0.2)
27
+ coderay (1.1.3)
28
+ concurrent-ruby (1.1.9)
29
+ diff-lcs (1.4.4)
30
+ i18n (1.8.10)
31
+ concurrent-ruby (~> 1.0)
32
+ method_source (1.0.0)
33
+ minitest (5.14.4)
34
+ pry (0.14.1)
35
+ coderay (~> 1.1)
36
+ method_source (~> 1.0)
37
+ rake (12.3.3)
38
+ redcarpet (3.5.1)
39
+ rspec (3.10.0)
40
+ rspec-core (~> 3.10.0)
41
+ rspec-expectations (~> 3.10.0)
42
+ rspec-mocks (~> 3.10.0)
43
+ rspec-core (3.10.1)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-expectations (3.10.1)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-mocks (3.10.2)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.10.0)
51
+ rspec-support (3.10.2)
52
+ sqlite3 (1.4.2)
53
+ thor (1.1.0)
54
+ tzinfo (2.0.4)
55
+ concurrent-ruby (~> 1.0)
56
+ yard (0.9.26)
57
+ zeitwerk (2.5.1)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ activerecord (~> 6.1.0)
64
+ activesupport (~> 6.1.0)
65
+ appraisal (>= 1.0)
66
+ byebug (~> 10.0)
67
+ guise!
68
+ pry (~> 0.9)
69
+ rake (~> 12.3)
70
+ redcarpet (~> 3.2)
71
+ rspec (~> 3.0)
72
+ sqlite3 (~> 1.3)
73
+ yard (>= 0.9.20)
74
+
75
+ BUNDLED WITH
76
+ 2.1.4
@@ -27,7 +27,7 @@ module Guise
27
27
  end
28
28
 
29
29
  def define_association!
30
- source_class.has_many(@options.association_name, @options.association_options)
30
+ source_class.has_many(@options.association_name, **@options.association_options)
31
31
  end
32
32
 
33
33
  def define_scopes!
@@ -113,7 +113,7 @@ module Guise
113
113
  end
114
114
 
115
115
  def define_association!
116
- @association_class.belongs_to(@options.source_association_name, @association_options)
116
+ @association_class.belongs_to(@options.source_association_name, **@association_options)
117
117
  end
118
118
 
119
119
  def define_scopes!
data/lib/guise/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Guise
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Gutierrez
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-17 00:00:00.000000000 Z
11
+ date: 2022-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.9.20
153
153
  description: " Flexible roles system for any context "
154
- email:
154
+ email:
155
155
  executables: []
156
156
  extensions: []
157
157
  extra_rdoc_files: []
@@ -160,7 +160,7 @@ files:
160
160
  - ".gitignore"
161
161
  - ".rspec"
162
162
  - ".rubocop.yml"
163
- - ".travis.yml"
163
+ - ".semaphore/semaphore.yml"
164
164
  - ".yardopts"
165
165
  - Appraisals
166
166
  - CHANGELOG.md
@@ -168,10 +168,6 @@ files:
168
168
  - LICENSE
169
169
  - README.md
170
170
  - Rakefile
171
- - gemfiles/3.1.gemfile
172
- - gemfiles/3.2.gemfile
173
- - gemfiles/4.0.gemfile
174
- - gemfiles/4.1.gemfile
175
171
  - gemfiles/4.2.gemfile
176
172
  - gemfiles/4.2.gemfile.lock
177
173
  - gemfiles/5.0.gemfile
@@ -182,6 +178,8 @@ files:
182
178
  - gemfiles/5.2.gemfile.lock
183
179
  - gemfiles/6.0.gemfile
184
180
  - gemfiles/6.0.gemfile.lock
181
+ - gemfiles/6.1.gemfile
182
+ - gemfiles/6.1.gemfile.lock
185
183
  - guise.gemspec
186
184
  - lib/guise.rb
187
185
  - lib/guise/builders.rb
@@ -199,7 +197,7 @@ homepage: https://github.com/ecbypi/guise
199
197
  licenses:
200
198
  - MIT
201
199
  metadata: {}
202
- post_install_message:
200
+ post_install_message:
203
201
  rdoc_options: []
204
202
  require_paths:
205
203
  - lib
@@ -214,8 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
212
  - !ruby/object:Gem::Version
215
213
  version: '0'
216
214
  requirements: []
217
- rubygems_version: 3.0.3
218
- signing_key:
215
+ rubygems_version: 3.3.7
216
+ signing_key:
219
217
  specification_version: 4
220
218
  summary: Guise manages roles without having to define them in as records in the database.
221
219
  Also works as multi-table inheritance.
data/.travis.yml DELETED
@@ -1,28 +0,0 @@
1
- sudo: false
2
- cache: bundler
3
-
4
- rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
-
10
- gemfile:
11
- - gemfiles/4.2.gemfile
12
- - gemfiles/5.0.gemfile
13
- - gemfiles/5.1.gemfile
14
- - gemfiles/5.2.gemfile
15
- - gemfiles/6.0.gemfile
16
-
17
- before_install:
18
- - gem update --system
19
- - gem install bundler
20
-
21
- script: 'bundle exec rake'
22
-
23
- matrix:
24
- exclude:
25
- - rvm: 2.3
26
- gemfile: gemfiles/6.0.gemfile
27
- - rvm: 2.4
28
- gemfile: gemfiles/6.0.gemfile
data/gemfiles/3.1.gemfile DELETED
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 3.1.0"
6
- gem "activesupport", "~> 3.1.0"
7
-
8
- gemspec path: "../"
data/gemfiles/3.2.gemfile DELETED
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 3.2.0"
6
- gem "activesupport", "~> 3.2.0"
7
-
8
- gemspec path: "../"
data/gemfiles/4.0.gemfile DELETED
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 4.0.0"
6
- gem "activesupport", "~> 4.0.0"
7
-
8
- gemspec path: "../"