consul 2.0.0 → 2.0.1
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/Gemfile.7-2 +1 -1
- data/Gemfile.7-2.lock +6 -6
- data/Gemfile.8-0 +5 -1
- data/Gemfile.8-0.lock +12 -7
- data/{Gemfile.6-1 → Gemfile.8-1} +6 -2
- data/{Gemfile.7-1.lock → Gemfile.8-1.lock} +69 -51
- data/README.md +42 -19
- data/consul.gemspec +15 -15
- data/lib/consul/version.rb +1 -1
- metadata +12 -23
- data/.github/workflows/test.yml +0 -47
- data/Gemfile +0 -1
- data/Gemfile.6-1.lock +0 -127
- data/Gemfile.7-1 +0 -17
- data/Gemfile.lock +0 -1
- data/media/logo.dark.shapes.svg +0 -125
- data/media/logo.dark.text.svg +0 -107
- data/media/logo.light.shapes.svg +0 -89
- data/media/logo.light.text.svg +0 -108
- data/media/makandra-with-bottom-margin.dark.svg +0 -180
- data/media/makandra-with-bottom-margin.light.svg +0 -180
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83b46cb9f270989be4731e734fd1604a37f0865e92bdc87114299205532251c5
|
|
4
|
+
data.tar.gz: 1ee9488c0f3720eb543fb2584a2249de3690a3b6d59af23954cacb51fa5f0a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bc8ee435ad18470cea75fcf4251359c85a963256e59d3db8e917216a1da2b6ecce9a5ba1e5c9358ff6ec6f1eed7c20926328b284ae3b627bb8de6feae111828
|
|
7
|
+
data.tar.gz: ee30a15ae3917da733f0c62dc4fa9a19c12dc199352501f113c11eec01974f1d4691f5fbb1a1182441d55cbc2bdcf69cfbaacb3ba97f5d8104e391675cb52699
|
data/CHANGELOG.md
CHANGED
|
@@ -13,9 +13,15 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
13
13
|
|
|
14
14
|
-
|
|
15
15
|
|
|
16
|
+
## 2.0.1 - 2026-03-10
|
|
16
17
|
|
|
18
|
+
### Compatible changes
|
|
19
|
+
|
|
20
|
+
- Add tests for Ruby 4.0 and Rails 8.1
|
|
21
|
+
- Introduce `required_ruby_version` in gemspec so people on legacy Ruby versions don't receive future upgrades
|
|
22
|
+
- Drop tests and support for Ruby < 3 and Rails < 7.2
|
|
17
23
|
|
|
18
|
-
##
|
|
24
|
+
## 2.0.0 - 2025-01-22
|
|
19
25
|
|
|
20
26
|
### Breaking changes
|
|
21
27
|
|
data/Gemfile.7-2
CHANGED
data/Gemfile.7-2.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
consul (2.0.
|
|
5
|
-
activerecord (>=
|
|
6
|
-
activesupport (>=
|
|
4
|
+
consul (2.0.1)
|
|
5
|
+
activerecord (>= 7.2)
|
|
6
|
+
activesupport (>= 7.2)
|
|
7
7
|
edge_rider (>= 0.3.0)
|
|
8
8
|
memoized (>= 1.0.2)
|
|
9
|
-
railties (>=
|
|
9
|
+
railties (>= 7.2)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
@@ -66,7 +66,7 @@ GEM
|
|
|
66
66
|
edge_rider (2.3.0)
|
|
67
67
|
activerecord (>= 3.2)
|
|
68
68
|
erubi (1.13.0)
|
|
69
|
-
gemika (0.
|
|
69
|
+
gemika (2.0.0)
|
|
70
70
|
i18n (1.14.5)
|
|
71
71
|
concurrent-ruby (~> 1.0)
|
|
72
72
|
io-console (0.7.2)
|
|
@@ -159,7 +159,7 @@ DEPENDENCIES
|
|
|
159
159
|
assignable_values
|
|
160
160
|
consul!
|
|
161
161
|
database_cleaner
|
|
162
|
-
gemika (>= 0.
|
|
162
|
+
gemika (>= 2.0.0)
|
|
163
163
|
railties (~> 7.2)
|
|
164
164
|
rspec
|
|
165
165
|
rspec-rails
|
data/Gemfile.8-0
CHANGED
|
@@ -11,7 +11,11 @@ gem 'rspec_candy'
|
|
|
11
11
|
gem 'shoulda-matchers'
|
|
12
12
|
gem 'sqlite3'
|
|
13
13
|
gem 'database_cleaner'
|
|
14
|
-
gem 'gemika', '>= 0.
|
|
14
|
+
gem 'gemika', '>= 2.0.0'
|
|
15
|
+
gem 'actionpack'
|
|
16
|
+
|
|
17
|
+
# Previous default gems
|
|
18
|
+
gem 'cgi'
|
|
15
19
|
|
|
16
20
|
# Gem under test
|
|
17
21
|
gem 'consul', :path => '.'
|
data/Gemfile.8-0.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
consul (2.0.
|
|
5
|
-
activerecord (>=
|
|
6
|
-
activesupport (>=
|
|
4
|
+
consul (2.0.1)
|
|
5
|
+
activerecord (>= 7.2)
|
|
6
|
+
activesupport (>= 7.2)
|
|
7
7
|
edge_rider (>= 0.3.0)
|
|
8
8
|
memoized (>= 1.0.2)
|
|
9
|
-
railties (>=
|
|
9
|
+
railties (>= 7.2)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
@@ -52,6 +52,7 @@ GEM
|
|
|
52
52
|
benchmark (0.4.0)
|
|
53
53
|
bigdecimal (3.1.8)
|
|
54
54
|
builder (3.3.0)
|
|
55
|
+
cgi (0.3.6)
|
|
55
56
|
concurrent-ruby (1.3.3)
|
|
56
57
|
connection_pool (2.4.1)
|
|
57
58
|
crass (1.0.6)
|
|
@@ -67,7 +68,7 @@ GEM
|
|
|
67
68
|
edge_rider (2.3.0)
|
|
68
69
|
activerecord (>= 3.2)
|
|
69
70
|
erubi (1.13.0)
|
|
70
|
-
gemika (0.
|
|
71
|
+
gemika (2.0.0)
|
|
71
72
|
i18n (1.14.5)
|
|
72
73
|
concurrent-ruby (~> 1.0)
|
|
73
74
|
io-console (0.8.0)
|
|
@@ -80,10 +81,12 @@ GEM
|
|
|
80
81
|
nokogiri (>= 1.12.0)
|
|
81
82
|
memoized (1.1.1)
|
|
82
83
|
mini_portile2 (2.8.8)
|
|
83
|
-
minitest (
|
|
84
|
+
minitest (6.0.1)
|
|
85
|
+
prism (~> 1.5)
|
|
84
86
|
nokogiri (1.16.6)
|
|
85
87
|
mini_portile2 (~> 2.8.2)
|
|
86
88
|
racc (~> 1.4)
|
|
89
|
+
prism (1.9.0)
|
|
87
90
|
psych (5.2.2)
|
|
88
91
|
date
|
|
89
92
|
stringio
|
|
@@ -159,10 +162,12 @@ PLATFORMS
|
|
|
159
162
|
ruby
|
|
160
163
|
|
|
161
164
|
DEPENDENCIES
|
|
165
|
+
actionpack
|
|
162
166
|
assignable_values
|
|
167
|
+
cgi
|
|
163
168
|
consul!
|
|
164
169
|
database_cleaner
|
|
165
|
-
gemika (>= 0.
|
|
170
|
+
gemika (>= 2.0.0)
|
|
166
171
|
railties (~> 8.0)
|
|
167
172
|
rspec
|
|
168
173
|
rspec-rails
|
data/{Gemfile.6-1 → Gemfile.8-1}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
3
|
# Runtime dependencies
|
|
4
|
-
gem 'railties', '~>
|
|
4
|
+
gem 'railties', '~> 8.1'
|
|
5
5
|
gem 'assignable_values'
|
|
6
6
|
|
|
7
7
|
# Development dependencies
|
|
@@ -11,7 +11,11 @@ gem 'rspec_candy'
|
|
|
11
11
|
gem 'shoulda-matchers'
|
|
12
12
|
gem 'sqlite3'
|
|
13
13
|
gem 'database_cleaner'
|
|
14
|
-
gem 'gemika', '>= 0.
|
|
14
|
+
gem 'gemika', '>= 2.0.0'
|
|
15
|
+
gem 'actionpack'
|
|
16
|
+
|
|
17
|
+
# Previous default gems
|
|
18
|
+
gem 'cgi'
|
|
15
19
|
|
|
16
20
|
# Gem under test
|
|
17
21
|
gem 'consul', :path => '.'
|
|
@@ -1,53 +1,57 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
consul (2.0.
|
|
5
|
-
activerecord (>=
|
|
6
|
-
activesupport (>=
|
|
4
|
+
consul (2.0.1)
|
|
5
|
+
activerecord (>= 7.2)
|
|
6
|
+
activesupport (>= 7.2)
|
|
7
7
|
edge_rider (>= 0.3.0)
|
|
8
8
|
memoized (>= 1.0.2)
|
|
9
|
-
railties (>=
|
|
9
|
+
railties (>= 7.2)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
actionpack (
|
|
15
|
-
actionview (=
|
|
16
|
-
activesupport (=
|
|
14
|
+
actionpack (8.1.2)
|
|
15
|
+
actionview (= 8.1.2)
|
|
16
|
+
activesupport (= 8.1.2)
|
|
17
17
|
nokogiri (>= 1.8.5)
|
|
18
|
-
racc
|
|
19
18
|
rack (>= 2.2.4)
|
|
20
19
|
rack-session (>= 1.0.1)
|
|
21
20
|
rack-test (>= 0.6.3)
|
|
22
21
|
rails-dom-testing (~> 2.2)
|
|
23
22
|
rails-html-sanitizer (~> 1.6)
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
useragent (~> 0.16)
|
|
24
|
+
actionview (8.1.2)
|
|
25
|
+
activesupport (= 8.1.2)
|
|
26
26
|
builder (~> 3.1)
|
|
27
27
|
erubi (~> 1.11)
|
|
28
28
|
rails-dom-testing (~> 2.2)
|
|
29
29
|
rails-html-sanitizer (~> 1.6)
|
|
30
|
-
activemodel (
|
|
31
|
-
activesupport (=
|
|
32
|
-
activerecord (
|
|
33
|
-
activemodel (=
|
|
34
|
-
activesupport (=
|
|
30
|
+
activemodel (8.1.2)
|
|
31
|
+
activesupport (= 8.1.2)
|
|
32
|
+
activerecord (8.1.2)
|
|
33
|
+
activemodel (= 8.1.2)
|
|
34
|
+
activesupport (= 8.1.2)
|
|
35
35
|
timeout (>= 0.4.0)
|
|
36
|
-
activesupport (
|
|
36
|
+
activesupport (8.1.2)
|
|
37
37
|
base64
|
|
38
38
|
bigdecimal
|
|
39
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
39
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
40
40
|
connection_pool (>= 2.2.5)
|
|
41
41
|
drb
|
|
42
42
|
i18n (>= 1.6, < 2)
|
|
43
|
+
json
|
|
44
|
+
logger (>= 1.4.2)
|
|
43
45
|
minitest (>= 5.1)
|
|
44
|
-
|
|
45
|
-
tzinfo (~> 2.0)
|
|
46
|
-
|
|
46
|
+
securerandom (>= 0.3)
|
|
47
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
48
|
+
uri (>= 0.13.1)
|
|
49
|
+
assignable_values (1.0.0)
|
|
47
50
|
activerecord (>= 2.3)
|
|
48
51
|
base64 (0.2.0)
|
|
49
52
|
bigdecimal (3.1.8)
|
|
50
53
|
builder (3.3.0)
|
|
54
|
+
cgi (0.3.6)
|
|
51
55
|
concurrent-ruby (1.3.3)
|
|
52
56
|
connection_pool (2.4.1)
|
|
53
57
|
crass (1.0.6)
|
|
@@ -57,34 +61,39 @@ GEM
|
|
|
57
61
|
activerecord (>= 5.a)
|
|
58
62
|
database_cleaner-core (~> 2.0.0)
|
|
59
63
|
database_cleaner-core (2.0.1)
|
|
60
|
-
date (3.
|
|
64
|
+
date (3.5.1)
|
|
61
65
|
diff-lcs (1.5.1)
|
|
62
66
|
drb (2.2.1)
|
|
63
67
|
edge_rider (2.3.0)
|
|
64
68
|
activerecord (>= 3.2)
|
|
69
|
+
erb (6.0.1)
|
|
65
70
|
erubi (1.13.0)
|
|
66
|
-
gemika (0.
|
|
71
|
+
gemika (2.0.0)
|
|
67
72
|
i18n (1.14.5)
|
|
68
73
|
concurrent-ruby (~> 1.0)
|
|
69
|
-
io-console (0.8.
|
|
70
|
-
irb (1.
|
|
74
|
+
io-console (0.8.2)
|
|
75
|
+
irb (1.17.0)
|
|
71
76
|
pp (>= 0.6.0)
|
|
77
|
+
prism (>= 1.3.0)
|
|
72
78
|
rdoc (>= 4.0.0)
|
|
73
79
|
reline (>= 0.4.2)
|
|
80
|
+
json (2.18.1)
|
|
81
|
+
logger (1.6.1)
|
|
74
82
|
loofah (2.22.0)
|
|
75
83
|
crass (~> 1.0.2)
|
|
76
84
|
nokogiri (>= 1.12.0)
|
|
77
85
|
memoized (1.1.1)
|
|
78
|
-
mini_portile2 (2.8.
|
|
79
|
-
minitest (
|
|
80
|
-
|
|
81
|
-
nokogiri (1.
|
|
86
|
+
mini_portile2 (2.8.8)
|
|
87
|
+
minitest (6.0.1)
|
|
88
|
+
prism (~> 1.5)
|
|
89
|
+
nokogiri (1.16.6)
|
|
82
90
|
mini_portile2 (~> 2.8.2)
|
|
83
91
|
racc (~> 1.4)
|
|
84
|
-
pp (0.6.
|
|
92
|
+
pp (0.6.3)
|
|
85
93
|
prettyprint
|
|
86
94
|
prettyprint (0.2.0)
|
|
87
|
-
|
|
95
|
+
prism (1.9.0)
|
|
96
|
+
psych (5.3.1)
|
|
88
97
|
date
|
|
89
98
|
stringio
|
|
90
99
|
racc (1.8.0)
|
|
@@ -93,7 +102,7 @@ GEM
|
|
|
93
102
|
rack (>= 3.0.0)
|
|
94
103
|
rack-test (2.1.0)
|
|
95
104
|
rack (>= 1.3)
|
|
96
|
-
rackup (2.
|
|
105
|
+
rackup (2.3.1)
|
|
97
106
|
rack (>= 3)
|
|
98
107
|
rails-dom-testing (2.2.0)
|
|
99
108
|
activesupport (>= 5.0.0)
|
|
@@ -102,18 +111,21 @@ GEM
|
|
|
102
111
|
rails-html-sanitizer (1.6.0)
|
|
103
112
|
loofah (~> 2.21)
|
|
104
113
|
nokogiri (~> 1.14)
|
|
105
|
-
railties (
|
|
106
|
-
actionpack (=
|
|
107
|
-
activesupport (=
|
|
108
|
-
irb
|
|
114
|
+
railties (8.1.2)
|
|
115
|
+
actionpack (= 8.1.2)
|
|
116
|
+
activesupport (= 8.1.2)
|
|
117
|
+
irb (~> 1.13)
|
|
109
118
|
rackup (>= 1.0.0)
|
|
110
119
|
rake (>= 12.2)
|
|
111
120
|
thor (~> 1.0, >= 1.2.2)
|
|
121
|
+
tsort (>= 0.2)
|
|
112
122
|
zeitwerk (~> 2.6)
|
|
113
|
-
rake (13.
|
|
114
|
-
rdoc (
|
|
123
|
+
rake (13.3.1)
|
|
124
|
+
rdoc (7.2.0)
|
|
125
|
+
erb
|
|
115
126
|
psych (>= 4.0.0)
|
|
116
|
-
|
|
127
|
+
tsort
|
|
128
|
+
reline (0.6.3)
|
|
117
129
|
io-console (~> 0.5)
|
|
118
130
|
rspec (3.13.0)
|
|
119
131
|
rspec-core (~> 3.13.0)
|
|
@@ -127,10 +139,10 @@ GEM
|
|
|
127
139
|
rspec-mocks (3.13.1)
|
|
128
140
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
129
141
|
rspec-support (~> 3.13.0)
|
|
130
|
-
rspec-rails (
|
|
131
|
-
actionpack (>=
|
|
132
|
-
activesupport (>=
|
|
133
|
-
railties (>=
|
|
142
|
+
rspec-rails (6.1.3)
|
|
143
|
+
actionpack (>= 6.1)
|
|
144
|
+
activesupport (>= 6.1)
|
|
145
|
+
railties (>= 6.1)
|
|
134
146
|
rspec-core (~> 3.13)
|
|
135
147
|
rspec-expectations (~> 3.13)
|
|
136
148
|
rspec-mocks (~> 3.13)
|
|
@@ -139,33 +151,39 @@ GEM
|
|
|
139
151
|
rspec_candy (0.5.1)
|
|
140
152
|
rspec
|
|
141
153
|
sneaky-save
|
|
142
|
-
|
|
154
|
+
securerandom (0.3.2)
|
|
155
|
+
shoulda-matchers (6.2.0)
|
|
143
156
|
activesupport (>= 5.2.0)
|
|
144
157
|
sneaky-save (0.1.3)
|
|
145
158
|
activerecord (>= 3.2.0)
|
|
146
|
-
sqlite3 (
|
|
159
|
+
sqlite3 (2.4.1)
|
|
147
160
|
mini_portile2 (~> 2.8.0)
|
|
148
|
-
stringio (3.
|
|
149
|
-
thor (1.
|
|
161
|
+
stringio (3.2.0)
|
|
162
|
+
thor (1.5.0)
|
|
150
163
|
timeout (0.4.1)
|
|
164
|
+
tsort (0.2.0)
|
|
151
165
|
tzinfo (2.0.6)
|
|
152
166
|
concurrent-ruby (~> 1.0)
|
|
153
|
-
|
|
167
|
+
uri (1.0.2)
|
|
168
|
+
useragent (0.16.10)
|
|
169
|
+
zeitwerk (2.7.4)
|
|
154
170
|
|
|
155
171
|
PLATFORMS
|
|
156
172
|
ruby
|
|
157
173
|
|
|
158
174
|
DEPENDENCIES
|
|
175
|
+
actionpack
|
|
159
176
|
assignable_values
|
|
177
|
+
cgi
|
|
160
178
|
consul!
|
|
161
179
|
database_cleaner
|
|
162
|
-
gemika (>= 0.
|
|
163
|
-
railties (~>
|
|
180
|
+
gemika (>= 2.0.0)
|
|
181
|
+
railties (~> 8.1)
|
|
164
182
|
rspec
|
|
165
183
|
rspec-rails
|
|
166
184
|
rspec_candy
|
|
167
185
|
shoulda-matchers
|
|
168
|
-
sqlite3
|
|
186
|
+
sqlite3
|
|
169
187
|
|
|
170
188
|
BUNDLED WITH
|
|
171
|
-
2.
|
|
189
|
+
2.5.15
|
data/README.md
CHANGED
|
@@ -738,18 +738,18 @@ end
|
|
|
738
738
|
|
|
739
739
|
There is a long selection of class methods that behave neutrally in case `Power.current` is `nil`:
|
|
740
740
|
|
|
741
|
-
| Call | Equivalent
|
|
742
|
-
| ---------------------------------------------- |
|
|
743
|
-
| `Power.for_model(Note)` | `Power.current
|
|
744
|
-
| `Power.for_model(:updatable, Note)` | `Power.current
|
|
745
|
-
| `Power.include_model?(Note)` | `Power.current
|
|
746
|
-
| `Power.include_model?(:updatable, Note)` | `Power.current
|
|
747
|
-
| `Power.include_model!(Note)` | `Power.notes! if Power.current
|
|
748
|
-
| `Power.include_model!(:updatable, Note)` | `Power.updatable_notes! if Power.current
|
|
749
|
-
| `Power.include_record?(Note.last)` | `Power.current
|
|
750
|
-
| `Power.include_record?(:updatable, Note.last)` | `Power.current
|
|
751
|
-
| `Power.include_record!(Note.last)` | `Power.note!(Note.last) if Power.current
|
|
752
|
-
| `Power.include_record!(:updatable, Note.last)` | `Power.updatable_note!(Note.last) if Power.current
|
|
741
|
+
| Call | Equivalent |
|
|
742
|
+
| ---------------------------------------------- | -----------------------------------------------------------|
|
|
743
|
+
| `Power.for_model(Note)` | `Power.current? ? Power.current.notes : Note` |
|
|
744
|
+
| `Power.for_model(:updatable, Note)` | `Power.current? ? Power.current.updatable_notes : Note` |
|
|
745
|
+
| `Power.include_model?(Note)` | `Power.current? ? Power.notes? : true` |
|
|
746
|
+
| `Power.include_model?(:updatable, Note)` | `Power.current? ? Power.updatable_notes? : true` |
|
|
747
|
+
| `Power.include_model!(Note)` | `Power.notes! if Power.current` |
|
|
748
|
+
| `Power.include_model!(:updatable, Note)` | `Power.current.updatable_notes! if Power.current` |
|
|
749
|
+
| `Power.include_record?(Note.last)` | `Power.current ? Power.current.note?(Note.last) : true` |
|
|
750
|
+
| `Power.include_record?(:updatable, Note.last)` | `Power.current? ? Power.current.updatable_note?(Note.last) : true` |
|
|
751
|
+
| `Power.include_record!(Note.last)` | `Power.current.note!(Note.last) if Power.current` |
|
|
752
|
+
| `Power.include_record!(:updatable, Note.last)` | `Power.updatable_note!(Note.last) if Power.current` |
|
|
753
753
|
|
|
754
754
|
## Testing
|
|
755
755
|
|
|
@@ -834,16 +834,39 @@ Now run `bundle install` to lock the gem into your project.
|
|
|
834
834
|
|
|
835
835
|
## Development
|
|
836
836
|
|
|
837
|
-
We currently develop using Ruby 3.4.1 (see `.ruby-version`) since that version works for current versions of ActiveRecord that we support. GitHub Actions will test additional Ruby versions (2.
|
|
837
|
+
We currently develop using Ruby 3.4.1 (see `.ruby-version`) since that version works for current versions of ActiveRecord that we support. GitHub Actions will test additional Ruby versions (3.2.0, 4.0.1).
|
|
838
838
|
|
|
839
839
|
There are tests in `spec`. We only accept PRs with tests. To run tests:
|
|
840
840
|
|
|
841
|
-
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
841
|
+
- First, put your database credentials into `spec/support/database.yml`. There's a `database.sample.yml` you can use as
|
|
842
|
+
a template.
|
|
843
|
+
|
|
844
|
+
Then, you have multiple options:
|
|
845
|
+
|
|
846
|
+
1. Running tests for a single set of dependencies
|
|
847
|
+
- Install and switch to a Ruby version
|
|
848
|
+
- run `BUNDLE_GEMFILE=... bundle install`
|
|
849
|
+
- run `BUNDLE_GEMFILE=... bundle exec rspec`
|
|
850
|
+
- NOTE:
|
|
851
|
+
- There are gem bundles in the project root for each rails version that we support.
|
|
852
|
+
- Refer to `.github/workflows/test.yml` to see which Gemfiles are supported for which Ruby version.
|
|
853
|
+
|
|
854
|
+
2. Run tests against a specific Ruby version and all Gemfiles for that version:
|
|
855
|
+
- Install and switch to the Ruby version
|
|
856
|
+
- Install development dependencies using `rake matrix:install`
|
|
857
|
+
- Run tests using `rake matrix:spec`
|
|
858
|
+
|
|
859
|
+
3. Run tests against all Ruby versions:
|
|
860
|
+
- Install all Ruby versions mentioned in `.github/workflows/test.yml`
|
|
861
|
+
- run `dev/matrix` (only supports `rbenv` for switching Ruby versions currently)
|
|
862
|
+
|
|
863
|
+
Hints:
|
|
864
|
+
|
|
865
|
+
- Check the [gemika](github.com/makandra/gemika) README for more detailed development instructions.
|
|
866
|
+
- We recommend to have sufficiently new versions of bundler (> 2.3.0) and rubygems (> 3.3.0) installed for each Ruby
|
|
867
|
+
version.
|
|
868
|
+
- The script `dev/matrix` will warn you, if that is not the case. For all other methods you need to ensure that
|
|
869
|
+
yourself.
|
|
847
870
|
|
|
848
871
|
If you would like to contribute:
|
|
849
872
|
|
data/consul.gemspec
CHANGED
|
@@ -10,24 +10,24 @@ Gem::Specification.new do |s|
|
|
|
10
10
|
s.summary = 'A scope-based authorization solution for Ruby on Rails.'
|
|
11
11
|
s.description = s.summary
|
|
12
12
|
s.license = 'MIT'
|
|
13
|
+
s.metadata = {
|
|
14
|
+
'source_code_uri' => s.homepage,
|
|
15
|
+
'bug_tracker_uri' => 'https://github.com/makandra/consul/issues',
|
|
16
|
+
'changelog_uri' => 'https://github.com/makandra/consul/blob/master/CHANGELOG.md',
|
|
17
|
+
'rubygems_mfa_required' => 'true',
|
|
18
|
+
}
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
s.metadata = {
|
|
16
|
-
'source_code_uri' => s.homepage,
|
|
17
|
-
'bug_tracker_uri' => 'https://github.com/makandra/consul/issues',
|
|
18
|
-
'changelog_uri' => 'https://github.com/makandra/consul/blob/master/CHANGELOG.md',
|
|
19
|
-
'rubygems_mfa_required' => 'true',
|
|
20
|
-
}
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
s.files = `git ls-files`.split("\n").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
24
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
25
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
20
|
+
s.files = `git ls-files`.split("\n").reject { |f| File.symlink?(f) }.reject { |f| f.match(%r{^(spec|dev|media|.github)/}) }
|
|
26
21
|
s.require_paths = ["lib"]
|
|
27
22
|
|
|
23
|
+
s.bindir = 'exe'
|
|
24
|
+
s.executables = []
|
|
25
|
+
|
|
26
|
+
s.required_ruby_version = '>= 3.0.0'
|
|
27
|
+
|
|
28
28
|
s.add_dependency('memoized', '>=1.0.2')
|
|
29
|
-
s.add_dependency('activerecord', '>=
|
|
30
|
-
s.add_dependency('activesupport', '>=
|
|
31
|
-
s.add_dependency('railties', '>=
|
|
29
|
+
s.add_dependency('activerecord', '>= 7.2')
|
|
30
|
+
s.add_dependency('activesupport', '>= 7.2')
|
|
31
|
+
s.add_dependency('railties', '>= 7.2')
|
|
32
32
|
s.add_dependency('edge_rider', '>= 0.3.0')
|
|
33
33
|
end
|
data/lib/consul/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: consul
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-03-10 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: memoized
|
|
@@ -29,42 +29,42 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '7.2'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
39
|
+
version: '7.2'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: activesupport
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '
|
|
46
|
+
version: '7.2'
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
53
|
+
version: '7.2'
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: railties
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - ">="
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
60
|
+
version: '7.2'
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - ">="
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
67
|
+
version: '7.2'
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: edge_rider
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -85,20 +85,15 @@ executables: []
|
|
|
85
85
|
extensions: []
|
|
86
86
|
extra_rdoc_files: []
|
|
87
87
|
files:
|
|
88
|
-
- ".github/workflows/test.yml"
|
|
89
88
|
- ".gitignore"
|
|
90
89
|
- ".ruby-version"
|
|
91
90
|
- CHANGELOG.md
|
|
92
|
-
- Gemfile
|
|
93
|
-
- Gemfile.6-1
|
|
94
|
-
- Gemfile.6-1.lock
|
|
95
|
-
- Gemfile.7-1
|
|
96
|
-
- Gemfile.7-1.lock
|
|
97
91
|
- Gemfile.7-2
|
|
98
92
|
- Gemfile.7-2.lock
|
|
99
93
|
- Gemfile.8-0
|
|
100
94
|
- Gemfile.8-0.lock
|
|
101
|
-
- Gemfile.
|
|
95
|
+
- Gemfile.8-1
|
|
96
|
+
- Gemfile.8-1.lock
|
|
102
97
|
- LICENSE
|
|
103
98
|
- README.md
|
|
104
99
|
- Rakefile
|
|
@@ -113,12 +108,6 @@ files:
|
|
|
113
108
|
- lib/consul/spec/matchers.rb
|
|
114
109
|
- lib/consul/util.rb
|
|
115
110
|
- lib/consul/version.rb
|
|
116
|
-
- media/logo.dark.shapes.svg
|
|
117
|
-
- media/logo.dark.text.svg
|
|
118
|
-
- media/logo.light.shapes.svg
|
|
119
|
-
- media/logo.light.text.svg
|
|
120
|
-
- media/makandra-with-bottom-margin.dark.svg
|
|
121
|
-
- media/makandra-with-bottom-margin.light.svg
|
|
122
111
|
homepage: https://github.com/makandra/consul
|
|
123
112
|
licenses:
|
|
124
113
|
- MIT
|
|
@@ -134,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
134
123
|
requirements:
|
|
135
124
|
- - ">="
|
|
136
125
|
- !ruby/object:Gem::Version
|
|
137
|
-
version:
|
|
126
|
+
version: 3.0.0
|
|
138
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
128
|
requirements:
|
|
140
129
|
- - ">="
|