consul 0.14.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of consul might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0c42a9a9684010d1fcd680da678ea97753a939de594896a266998c6c5cb9a89
4
- data.tar.gz: f709cf39da16e75cca2ac91b5a02b96c4c8bd390bed2c9ef09ed5a198bc532bd
3
+ metadata.gz: d8813ddd163ea3311ae0e4c9e950cf8e137dda6895716b9b6310f8a5a473f878
4
+ data.tar.gz: 21b2326f340de4b564cd21bb85fbb119cc7725117ffbe89e35b16b0cfd14710f
5
5
  SHA512:
6
- metadata.gz: e466ada94582cb6355859b0ee38c3a31c3d30a15d8116f4226757723692b8ddd9425362617b82b433e6e312b88f710451ff4cff0714a2b92025597ebcfe8280c
7
- data.tar.gz: 0b4ae948652757242a9e9b67a90e033b720b3020dc43297eb1932602ece00dcd8ef838605c98e9e752accbbdccd979f7191345620804e1781450ca15d5fa42cb
6
+ metadata.gz: 55901b69063d2f73f1b592e2cc23ec5265554190271c2c36b622d203531191a17b7c2a97023cff855da2004c37d956a354f97bf62753dce83c9ec2c731c17159
7
+ data.tar.gz: 45678b4b38406f39124d1f18ec9d7b76fdfc268113d10565fa0b41d4cfc4d43d6f0c923fc834ee850fbc2e96035e03939cf56c39b3921590f860dc19df9a2bd7
@@ -1 +1 @@
1
- 2.1.8
1
+ 2.3.8
@@ -5,26 +5,23 @@ sudo: false
5
5
  cache: bundler
6
6
 
7
7
  rvm:
8
- - 1.8.7
9
- - 2.1.8
10
- - 2.4.1
8
+ - 2.3.8
9
+ - 2.4.5
10
+ - 2.5.3
11
11
 
12
12
  gemfile:
13
- - gemfiles/Gemfile.3-2
14
- - gemfiles/Gemfile.4-2
15
- - gemfiles/Gemfile.5-2
13
+ - Gemfile.3-2
14
+ - Gemfile.4-2
15
+ - Gemfile.5-2
16
16
 
17
17
  matrix:
18
18
  exclude:
19
- - gemfile: gemfiles/Gemfile.3-2
20
- rvm: 2.4.1
21
- - gemfile: gemfiles/Gemfile.4-2
22
- rvm: 1.8.7
23
- - gemfile: gemfiles/Gemfile.5-2
24
- rvm: 1.8.7
25
- - gemfile: gemfiles/Gemfile.5-2
26
- rvm: 2.1.8
27
-
19
+ - gemfile: Gemfile.3-2
20
+ rvm: 2.4.5
21
+ - gemfile: Gemfile.3-2
22
+ rvm: 2.5.3
23
+ - gemfile: Gemfile.4-2
24
+ rvm: 2.5.3
28
25
 
29
26
  install:
30
27
  # Replace default Travis CI bundler script with a version that doesn't
@@ -13,13 +13,23 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
13
13
 
14
14
  -
15
15
 
16
- ## 0.14.1 - 2017-11-13
16
+ ## 1.0.0 - 2019-02-15
17
+
18
+ ### Breaking changes
19
+
20
+ - Removed `Power.for_record(record)`. Use `Power.for_model(record.class)` instead.
21
+ - Removed `Power#for_record(record)`. Use `Power#for_model(record.class)` instead.
22
+ - Removed `Power#name_for_record(record)`. Use `Power#name_for_model(record.class)` instead.
23
+
24
+
25
+
26
+ ## 0.14.1 - 2018-11-13
17
27
 
18
28
  ### Compatible changes
19
29
 
20
30
  - inherit power guards upon controller inheritance (fixes #40)
21
31
 
22
- ## 0.14.0 - 2017-10-09
32
+ ## 0.14.0 - 2018-10-09
23
33
 
24
34
  ### Breaking changes
25
35
 
@@ -29,7 +39,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
29
39
 
30
40
  - migrate tests to Gemika
31
41
 
32
- ## 0.13.2 - 2017-10-02
42
+ ## 0.13.2 - 2018-10-02
33
43
 
34
44
  ### Compatible changes
35
45
 
data/Gemfile CHANGED
@@ -1 +1 @@
1
- ./gemfiles/Gemfile.4-2
1
+ ./Gemfile.5-2
@@ -2,13 +2,14 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
4
  gem 'assignable_values'
5
- gem 'rails', '~>3.2.0'
5
+ gem 'rails', '~> 3.2.22.5'
6
6
  gem 'rake', '~>10.5.0'
7
7
  gem 'rack-cache', '~>1.2.0'
8
8
 
9
9
  # Development dependencies
10
10
  gem 'rspec', '~>3.4'
11
11
  gem 'rspec-rails'
12
+ gem 'test-unit', '~> 3.0'
12
13
  gem 'shoulda-matchers', '<2'
13
14
  gem 'sqlite3'
14
15
  gem 'rspec_candy'
@@ -16,4 +17,4 @@ gem 'database_cleaner', '~>1.4.1'
16
17
  gem 'gemika'
17
18
 
18
19
  # Gem under test
19
- gem 'consul', :path => '..'
20
+ gem 'consul', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- consul (0.14.1)
4
+ consul (1.0.0)
5
5
  edge_rider (>= 0.3.0)
6
6
  memoizer
7
7
  rails (>= 3.2)
@@ -9,12 +9,12 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (3.2.13)
13
- actionpack (= 3.2.13)
14
- mail (~> 2.5.3)
15
- actionpack (3.2.13)
16
- activemodel (= 3.2.13)
17
- activesupport (= 3.2.13)
12
+ actionmailer (3.2.22.5)
13
+ actionpack (= 3.2.22.5)
14
+ mail (~> 2.5.4)
15
+ actionpack (3.2.22.5)
16
+ activemodel (= 3.2.22.5)
17
+ activesupport (= 3.2.22.5)
18
18
  builder (~> 3.0.0)
19
19
  erubis (~> 2.7.0)
20
20
  journey (~> 1.0.4)
@@ -22,26 +22,27 @@ GEM
22
22
  rack-cache (~> 1.2)
23
23
  rack-test (~> 0.6.1)
24
24
  sprockets (~> 2.2.1)
25
- activemodel (3.2.13)
26
- activesupport (= 3.2.13)
25
+ activemodel (3.2.22.5)
26
+ activesupport (= 3.2.22.5)
27
27
  builder (~> 3.0.0)
28
- activerecord (3.2.13)
29
- activemodel (= 3.2.13)
30
- activesupport (= 3.2.13)
28
+ activerecord (3.2.22.5)
29
+ activemodel (= 3.2.22.5)
30
+ activesupport (= 3.2.22.5)
31
31
  arel (~> 3.0.2)
32
32
  tzinfo (~> 0.3.29)
33
- activeresource (3.2.13)
34
- activemodel (= 3.2.13)
35
- activesupport (= 3.2.13)
36
- activesupport (3.2.13)
37
- i18n (= 0.6.1)
33
+ activeresource (3.2.22.5)
34
+ activemodel (= 3.2.22.5)
35
+ activesupport (= 3.2.22.5)
36
+ activesupport (3.2.22.5)
37
+ i18n (~> 0.6, >= 0.6.4)
38
38
  multi_json (~> 1.0)
39
- arel (3.0.2)
39
+ arel (3.0.3)
40
40
  assignable_values (0.7.1)
41
41
  activerecord
42
42
  bourne (1.4.0)
43
43
  mocha (~> 0.13.2)
44
44
  builder (3.0.4)
45
+ concurrent-ruby (1.1.4)
45
46
  database_cleaner (1.4.1)
46
47
  diff-lcs (1.3)
47
48
  edge_rider (0.3.3)
@@ -49,19 +50,21 @@ GEM
49
50
  erubis (2.7.0)
50
51
  gemika (0.3.4)
51
52
  hike (1.2.3)
52
- i18n (0.6.1)
53
+ i18n (0.9.5)
54
+ concurrent-ruby (~> 1.0)
53
55
  journey (1.0.4)
54
56
  json (1.8.6)
55
- mail (2.5.4)
57
+ mail (2.5.5)
56
58
  mime-types (~> 1.16)
57
59
  treetop (~> 1.4.8)
58
60
  memoizer (1.0.3)
59
61
  metaclass (0.0.1)
60
- mime-types (1.23)
62
+ mime-types (1.25.1)
61
63
  mocha (0.13.3)
62
64
  metaclass (~> 0.0.1)
63
65
  multi_json (1.13.1)
64
- polyglot (0.3.3)
66
+ polyglot (0.3.5)
67
+ power_assert (1.1.3)
65
68
  rack (1.4.7)
66
69
  rack-cache (1.2)
67
70
  rack (>= 0.4)
@@ -69,17 +72,17 @@ GEM
69
72
  rack
70
73
  rack-test (0.6.3)
71
74
  rack (>= 1.0)
72
- rails (3.2.13)
73
- actionmailer (= 3.2.13)
74
- actionpack (= 3.2.13)
75
- activerecord (= 3.2.13)
76
- activeresource (= 3.2.13)
77
- activesupport (= 3.2.13)
75
+ rails (3.2.22.5)
76
+ actionmailer (= 3.2.22.5)
77
+ actionpack (= 3.2.22.5)
78
+ activerecord (= 3.2.22.5)
79
+ activeresource (= 3.2.22.5)
80
+ activesupport (= 3.2.22.5)
78
81
  bundler (~> 1.0)
79
- railties (= 3.2.13)
80
- railties (3.2.13)
81
- actionpack (= 3.2.13)
82
- activesupport (= 3.2.13)
82
+ railties (= 3.2.22.5)
83
+ railties (3.2.22.5)
84
+ actionpack (= 3.2.22.5)
85
+ activesupport (= 3.2.22.5)
83
86
  rack-ssl (~> 1.3.2)
84
87
  rake (>= 0.8.7)
85
88
  rdoc (~> 3.4)
@@ -122,12 +125,14 @@ GEM
122
125
  rack (~> 1.0)
123
126
  tilt (~> 1.1, != 1.3.0)
124
127
  sqlite3 (1.3.13)
125
- thor (0.20.0)
128
+ test-unit (3.3.0)
129
+ power_assert
130
+ thor (0.20.3)
126
131
  tilt (1.4.1)
127
- treetop (1.4.12)
132
+ treetop (1.4.15)
128
133
  polyglot
129
134
  polyglot (>= 0.3.1)
130
- tzinfo (0.3.37)
135
+ tzinfo (0.3.55)
131
136
 
132
137
  PLATFORMS
133
138
  ruby
@@ -138,13 +143,14 @@ DEPENDENCIES
138
143
  database_cleaner (~> 1.4.1)
139
144
  gemika
140
145
  rack-cache (~> 1.2.0)
141
- rails (~> 3.2.0)
146
+ rails (~> 3.2.22.5)
142
147
  rake (~> 10.5.0)
143
148
  rspec (~> 3.4)
144
149
  rspec-rails
145
150
  rspec_candy
146
151
  shoulda-matchers (< 2)
147
152
  sqlite3
153
+ test-unit (~> 3.0)
148
154
 
149
155
  BUNDLED WITH
150
- 1.16.2
156
+ 1.16.3
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'rails', '4.2.7.1'
4
+ gem 'rails', '~> 4.2.7'
5
5
  gem 'assignable_values'
6
6
 
7
7
  # Development dependencies
@@ -14,4 +14,4 @@ gem 'database_cleaner'
14
14
  gem 'gemika'
15
15
 
16
16
  # Gem under test
17
- gem 'consul', :path => '..'
17
+ gem 'consul', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- consul (0.14.1)
4
+ consul (1.0.0)
5
5
  edge_rider (>= 0.3.0)
6
6
  memoizer
7
7
  rails (>= 3.2)
@@ -9,96 +9,95 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionmailer (4.2.7.1)
13
- actionpack (= 4.2.7.1)
14
- actionview (= 4.2.7.1)
15
- activejob (= 4.2.7.1)
12
+ actionmailer (4.2.11)
13
+ actionpack (= 4.2.11)
14
+ actionview (= 4.2.11)
15
+ activejob (= 4.2.11)
16
16
  mail (~> 2.5, >= 2.5.4)
17
17
  rails-dom-testing (~> 1.0, >= 1.0.5)
18
- actionpack (4.2.7.1)
19
- actionview (= 4.2.7.1)
20
- activesupport (= 4.2.7.1)
18
+ actionpack (4.2.11)
19
+ actionview (= 4.2.11)
20
+ activesupport (= 4.2.11)
21
21
  rack (~> 1.6)
22
22
  rack-test (~> 0.6.2)
23
23
  rails-dom-testing (~> 1.0, >= 1.0.5)
24
24
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
25
- actionview (4.2.7.1)
26
- activesupport (= 4.2.7.1)
25
+ actionview (4.2.11)
26
+ activesupport (= 4.2.11)
27
27
  builder (~> 3.1)
28
28
  erubis (~> 2.7.0)
29
29
  rails-dom-testing (~> 1.0, >= 1.0.5)
30
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
31
- activejob (4.2.7.1)
32
- activesupport (= 4.2.7.1)
30
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
31
+ activejob (4.2.11)
32
+ activesupport (= 4.2.11)
33
33
  globalid (>= 0.3.0)
34
- activemodel (4.2.7.1)
35
- activesupport (= 4.2.7.1)
34
+ activemodel (4.2.11)
35
+ activesupport (= 4.2.11)
36
36
  builder (~> 3.1)
37
- activerecord (4.2.7.1)
38
- activemodel (= 4.2.7.1)
39
- activesupport (= 4.2.7.1)
37
+ activerecord (4.2.11)
38
+ activemodel (= 4.2.11)
39
+ activesupport (= 4.2.11)
40
40
  arel (~> 6.0)
41
- activesupport (4.2.7.1)
41
+ activesupport (4.2.11)
42
42
  i18n (~> 0.7)
43
- json (~> 1.7, >= 1.7.7)
44
43
  minitest (~> 5.1)
45
44
  thread_safe (~> 0.3, >= 0.3.4)
46
45
  tzinfo (~> 1.1)
47
46
  arel (6.0.4)
48
47
  assignable_values (0.12.1)
49
48
  activerecord (>= 2.3)
50
- builder (3.2.2)
51
- concurrent-ruby (1.0.4)
49
+ builder (3.2.3)
50
+ concurrent-ruby (1.1.4)
51
+ crass (1.0.4)
52
52
  database_cleaner (1.7.0)
53
53
  diff-lcs (1.2.5)
54
54
  edge_rider (0.3.3)
55
55
  activerecord
56
56
  erubis (2.7.0)
57
57
  gemika (0.3.4)
58
- globalid (0.3.7)
59
- activesupport (>= 4.1.0)
60
- i18n (0.7.0)
61
- json (1.8.6)
62
- loofah (2.0.3)
58
+ globalid (0.4.2)
59
+ activesupport (>= 4.2.0)
60
+ i18n (0.9.5)
61
+ concurrent-ruby (~> 1.0)
62
+ loofah (2.2.3)
63
+ crass (~> 1.0.2)
63
64
  nokogiri (>= 1.5.9)
64
- mail (2.6.4)
65
- mime-types (>= 1.16, < 4)
65
+ mail (2.7.1)
66
+ mini_mime (>= 0.1.1)
66
67
  memoizer (1.0.3)
67
- mime-types (3.1)
68
- mime-types-data (~> 3.2015)
69
- mime-types-data (3.2016.0521)
70
- mini_portile2 (2.1.0)
71
- minitest (5.10.1)
72
- nokogiri (1.7.0)
73
- mini_portile2 (~> 2.1.0)
74
- rack (1.6.5)
68
+ mini_mime (1.0.1)
69
+ mini_portile2 (2.4.0)
70
+ minitest (5.11.3)
71
+ nokogiri (1.10.1)
72
+ mini_portile2 (~> 2.4.0)
73
+ rack (1.6.11)
75
74
  rack-test (0.6.3)
76
75
  rack (>= 1.0)
77
- rails (4.2.7.1)
78
- actionmailer (= 4.2.7.1)
79
- actionpack (= 4.2.7.1)
80
- actionview (= 4.2.7.1)
81
- activejob (= 4.2.7.1)
82
- activemodel (= 4.2.7.1)
83
- activerecord (= 4.2.7.1)
84
- activesupport (= 4.2.7.1)
76
+ rails (4.2.11)
77
+ actionmailer (= 4.2.11)
78
+ actionpack (= 4.2.11)
79
+ actionview (= 4.2.11)
80
+ activejob (= 4.2.11)
81
+ activemodel (= 4.2.11)
82
+ activerecord (= 4.2.11)
83
+ activesupport (= 4.2.11)
85
84
  bundler (>= 1.3.0, < 2.0)
86
- railties (= 4.2.7.1)
85
+ railties (= 4.2.11)
87
86
  sprockets-rails
88
87
  rails-deprecated_sanitizer (1.0.3)
89
88
  activesupport (>= 4.2.0.alpha)
90
- rails-dom-testing (1.0.8)
91
- activesupport (>= 4.2.0.beta, < 5.0)
89
+ rails-dom-testing (1.0.9)
90
+ activesupport (>= 4.2.0, < 5.0)
92
91
  nokogiri (~> 1.6)
93
92
  rails-deprecated_sanitizer (>= 1.0.1)
94
- rails-html-sanitizer (1.0.3)
95
- loofah (~> 2.0)
96
- railties (4.2.7.1)
97
- actionpack (= 4.2.7.1)
98
- activesupport (= 4.2.7.1)
93
+ rails-html-sanitizer (1.0.4)
94
+ loofah (~> 2.2, >= 2.2.2)
95
+ railties (4.2.11)
96
+ actionpack (= 4.2.11)
97
+ activesupport (= 4.2.11)
99
98
  rake (>= 0.8.7)
100
99
  thor (>= 0.18.1, < 2.0)
101
- rake (12.0.0)
100
+ rake (12.3.2)
102
101
  rspec (3.5.0)
103
102
  rspec-core (~> 3.5.0)
104
103
  rspec-expectations (~> 3.5.0)
@@ -127,17 +126,17 @@ GEM
127
126
  activesupport (>= 4.0.0)
128
127
  sneaky-save (0.1.2)
129
128
  activerecord (>= 3.2.0)
130
- sprockets (3.7.1)
129
+ sprockets (3.7.2)
131
130
  concurrent-ruby (~> 1.0)
132
131
  rack (> 1, < 3)
133
- sprockets-rails (3.2.0)
132
+ sprockets-rails (3.2.1)
134
133
  actionpack (>= 4.0)
135
134
  activesupport (>= 4.0)
136
135
  sprockets (>= 3.0.0)
137
136
  sqlite3 (1.3.12)
138
- thor (0.19.4)
139
- thread_safe (0.3.5)
140
- tzinfo (1.2.2)
137
+ thor (0.20.3)
138
+ thread_safe (0.3.6)
139
+ tzinfo (1.2.5)
141
140
  thread_safe (~> 0.1)
142
141
 
143
142
  PLATFORMS
@@ -148,7 +147,7 @@ DEPENDENCIES
148
147
  consul!
149
148
  database_cleaner
150
149
  gemika
151
- rails (= 4.2.7.1)
150
+ rails (~> 4.2.7)
152
151
  rspec
153
152
  rspec-rails
154
153
  rspec_candy
@@ -156,4 +155,4 @@ DEPENDENCIES
156
155
  sqlite3
157
156
 
158
157
  BUNDLED WITH
159
- 1.16.1
158
+ 1.16.3
@@ -14,4 +14,4 @@ gem 'database_cleaner'
14
14
  gem 'gemika'
15
15
 
16
16
  # Gem under test
17
- gem 'consul', :path => '..'
17
+ gem 'consul', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- consul (0.14.1)
4
+ consul (1.0.0)
5
5
  edge_rider (>= 0.3.0)
6
6
  memoizer
7
7
  rails (>= 3.2)
@@ -9,43 +9,43 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (5.2.1)
13
- actionpack (= 5.2.1)
12
+ actioncable (5.2.2)
13
+ actionpack (= 5.2.2)
14
14
  nio4r (~> 2.0)
15
15
  websocket-driver (>= 0.6.1)
16
- actionmailer (5.2.1)
17
- actionpack (= 5.2.1)
18
- actionview (= 5.2.1)
19
- activejob (= 5.2.1)
16
+ actionmailer (5.2.2)
17
+ actionpack (= 5.2.2)
18
+ actionview (= 5.2.2)
19
+ activejob (= 5.2.2)
20
20
  mail (~> 2.5, >= 2.5.4)
21
21
  rails-dom-testing (~> 2.0)
22
- actionpack (5.2.1)
23
- actionview (= 5.2.1)
24
- activesupport (= 5.2.1)
22
+ actionpack (5.2.2)
23
+ actionview (= 5.2.2)
24
+ activesupport (= 5.2.2)
25
25
  rack (~> 2.0)
26
26
  rack-test (>= 0.6.3)
27
27
  rails-dom-testing (~> 2.0)
28
28
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
- actionview (5.2.1)
30
- activesupport (= 5.2.1)
29
+ actionview (5.2.2)
30
+ activesupport (= 5.2.2)
31
31
  builder (~> 3.1)
32
32
  erubi (~> 1.4)
33
33
  rails-dom-testing (~> 2.0)
34
34
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
- activejob (5.2.1)
36
- activesupport (= 5.2.1)
35
+ activejob (5.2.2)
36
+ activesupport (= 5.2.2)
37
37
  globalid (>= 0.3.6)
38
- activemodel (5.2.1)
39
- activesupport (= 5.2.1)
40
- activerecord (5.2.1)
41
- activemodel (= 5.2.1)
42
- activesupport (= 5.2.1)
38
+ activemodel (5.2.2)
39
+ activesupport (= 5.2.2)
40
+ activerecord (5.2.2)
41
+ activemodel (= 5.2.2)
42
+ activesupport (= 5.2.2)
43
43
  arel (>= 9.0)
44
- activestorage (5.2.1)
45
- actionpack (= 5.2.1)
46
- activerecord (= 5.2.1)
44
+ activestorage (5.2.2)
45
+ actionpack (= 5.2.2)
46
+ activerecord (= 5.2.2)
47
47
  marcel (~> 0.3.1)
48
- activesupport (5.2.1)
48
+ activesupport (5.2.2)
49
49
  concurrent-ruby (~> 1.0, >= 1.0.2)
50
50
  i18n (>= 0.7, < 2)
51
51
  minitest (~> 5.1)
@@ -54,62 +54,62 @@ GEM
54
54
  assignable_values (0.12.1)
55
55
  activerecord (>= 2.3)
56
56
  builder (3.2.3)
57
- concurrent-ruby (1.0.5)
57
+ concurrent-ruby (1.1.4)
58
58
  crass (1.0.4)
59
59
  database_cleaner (1.7.0)
60
60
  diff-lcs (1.3)
61
61
  edge_rider (0.3.3)
62
62
  activerecord
63
- erubi (1.7.1)
63
+ erubi (1.8.0)
64
64
  gemika (0.3.4)
65
- globalid (0.4.1)
65
+ globalid (0.4.2)
66
66
  activesupport (>= 4.2.0)
67
- i18n (1.1.0)
67
+ i18n (1.5.3)
68
68
  concurrent-ruby (~> 1.0)
69
- loofah (2.2.2)
69
+ loofah (2.2.3)
70
70
  crass (~> 1.0.2)
71
71
  nokogiri (>= 1.5.9)
72
- mail (2.7.0)
72
+ mail (2.7.1)
73
73
  mini_mime (>= 0.1.1)
74
74
  marcel (0.3.3)
75
75
  mimemagic (~> 0.3.2)
76
76
  memoizer (1.0.3)
77
- method_source (0.9.0)
78
- mimemagic (0.3.2)
77
+ method_source (0.9.2)
78
+ mimemagic (0.3.3)
79
79
  mini_mime (1.0.1)
80
- mini_portile2 (2.3.0)
80
+ mini_portile2 (2.4.0)
81
81
  minitest (5.11.3)
82
82
  nio4r (2.3.1)
83
- nokogiri (1.8.5)
84
- mini_portile2 (~> 2.3.0)
85
- rack (2.0.5)
83
+ nokogiri (1.10.1)
84
+ mini_portile2 (~> 2.4.0)
85
+ rack (2.0.6)
86
86
  rack-test (1.1.0)
87
87
  rack (>= 1.0, < 3)
88
- rails (5.2.1)
89
- actioncable (= 5.2.1)
90
- actionmailer (= 5.2.1)
91
- actionpack (= 5.2.1)
92
- actionview (= 5.2.1)
93
- activejob (= 5.2.1)
94
- activemodel (= 5.2.1)
95
- activerecord (= 5.2.1)
96
- activestorage (= 5.2.1)
97
- activesupport (= 5.2.1)
88
+ rails (5.2.2)
89
+ actioncable (= 5.2.2)
90
+ actionmailer (= 5.2.2)
91
+ actionpack (= 5.2.2)
92
+ actionview (= 5.2.2)
93
+ activejob (= 5.2.2)
94
+ activemodel (= 5.2.2)
95
+ activerecord (= 5.2.2)
96
+ activestorage (= 5.2.2)
97
+ activesupport (= 5.2.2)
98
98
  bundler (>= 1.3.0)
99
- railties (= 5.2.1)
99
+ railties (= 5.2.2)
100
100
  sprockets-rails (>= 2.0.0)
101
101
  rails-dom-testing (2.0.3)
102
102
  activesupport (>= 4.2.0)
103
103
  nokogiri (>= 1.6)
104
104
  rails-html-sanitizer (1.0.4)
105
105
  loofah (~> 2.2, >= 2.2.2)
106
- railties (5.2.1)
107
- actionpack (= 5.2.1)
108
- activesupport (= 5.2.1)
106
+ railties (5.2.2)
107
+ actionpack (= 5.2.2)
108
+ activesupport (= 5.2.2)
109
109
  method_source
110
110
  rake (>= 0.8.7)
111
111
  thor (>= 0.19.0, < 2.0)
112
- rake (12.3.1)
112
+ rake (12.3.2)
113
113
  rspec (3.6.0)
114
114
  rspec-core (~> 3.6.0)
115
115
  rspec-expectations (~> 3.6.0)
@@ -146,7 +146,7 @@ GEM
146
146
  activesupport (>= 4.0)
147
147
  sprockets (>= 3.0.0)
148
148
  sqlite3 (1.3.13)
149
- thor (0.20.0)
149
+ thor (0.20.3)
150
150
  thread_safe (0.3.6)
151
151
  tzinfo (1.2.5)
152
152
  thread_safe (~> 0.1)
@@ -170,4 +170,4 @@ DEPENDENCIES
170
170
  sqlite3
171
171
 
172
172
  BUNDLED WITH
173
- 1.16.1
173
+ 1.16.3
@@ -1 +1 @@
1
- ./gemfiles/Gemfile.4-2.lock
1
+ ./Gemfile.5-2.lock
data/README.md CHANGED
@@ -675,8 +675,6 @@ You can find a full list of available dynamic calls below:
675
675
  | `Power.current.include_power!(:notes)` | `Power.current.notes!` |
676
676
  | `Power.current.include_object?(:notes, Note.last)` | `Power.current.note?(Note.last)` |
677
677
  | `Power.current.include_object!(:notes, Note.last)` | `Power.current.note!(Note.last)` |
678
- | `Power.current.for_record(Note.last)` | `Power.current.notes` |
679
- | `Power.current.for_record(:updatable, Note.last)` | `Power.current.updatable_notes` |
680
678
  | `Power.current.for_model(Note)` | `Power.current.notes` |
681
679
  | `Power.current.for_model(:updatable, Note)` | `Power.current.updatable_notes` |
682
680
  | `Power.current.include_model?(Note)` | `Power.current.notes?` |
@@ -689,8 +687,6 @@ You can find a full list of available dynamic calls below:
689
687
  | `Power.current.include_record!(:updatable, Note.last)` | `Power.current.updatable_note!(Note.last)` |
690
688
  | `Power.current.name_for_model(Note)` | `:notes` |
691
689
  | `Power.current.name_for_model(:updatable, Note)` | `:updatable_notes` |
692
- | `Power.current.name_for_record(Note.last)` | `:notes` |
693
- | `Power.current.name_for_record(:updatable, Note.last)` | `:updatable_notes` |
694
690
 
695
691
 
696
692
 
@@ -753,8 +749,6 @@ There is a long selection of class methods that behave neutrally in case `Power.
753
749
  | `Power.include_model?(:updatable, Note)` | `Power.current.present? ? Power.updatable_notes? : true` |
754
750
  | `Power.include_model!(Note)` | `Power.notes! if Power.current.present?` |
755
751
  | `Power.include_model!(:updatable, Note)` | `Power.updatable_notes! if Power.current.present?` |
756
- | `Power.for_record(Note.last)` | `Power.current.present? ? Power.current.notes : Note` |
757
- | `Power.for_record(:updatable, Note.last)` | `Power.current.present? ? Power.current.updatable_notes : Note` |
758
752
  | `Power.include_record?(Note.last)` | `Power.current.present? ? Power.note?(Note.last) : true` |
759
753
  | `Power.include_record?(:updatable, Note.last)` | `Power.current.present? ? Power.updatable_note?(Note.last?) : true` |
760
754
  | `Power.include_record!(Note.last)` | `Power.note!(Note.last) if Power.current.present?` |
@@ -40,18 +40,14 @@ module Consul
40
40
  send("#{singularize_power_name(power_name)}!", *context_and_object)
41
41
  end
42
42
 
43
- def for_record(*args)
44
- send(name_for_record(*args))
45
- end
46
-
47
43
  def include_record?(*args)
48
44
  adjective, record = Util.adjective_and_argument(*args)
49
- include_object?(name_for_record(*args), record)
45
+ include_object?(name_for_model(adjective, record.class), record)
50
46
  end
51
47
 
52
48
  def include_record!(*args)
53
49
  adjective, record = Util.adjective_and_argument(*args)
54
- include_object!(name_for_record(*args), record)
50
+ include_object!(name_for_model(adjective, record.class), record)
55
51
  end
56
52
 
57
53
  def name_for_model(*args)
@@ -72,11 +68,6 @@ module Consul
72
68
  include_power!(name_for_model(*args))
73
69
  end
74
70
 
75
- def name_for_record(*args)
76
- adjective, record = Util.adjective_and_argument(*args)
77
- name_for_model(adjective, record.class)
78
- end
79
-
80
71
  end
81
72
 
82
73
  module ClassMethods
@@ -106,15 +97,6 @@ module Consul
106
97
  end
107
98
  end
108
99
 
109
- def for_record(*args)
110
- if current
111
- current.for_record(*args)
112
- else
113
- adjective, record = Util.adjective_and_argument(*args)
114
- record.class
115
- end
116
- end
117
-
118
100
  def include_record?(*args)
119
101
  if current
120
102
  current.include_record?(*args)
@@ -135,4 +117,4 @@ module Consul
135
117
 
136
118
  end
137
119
  end
138
- end
120
+ end
@@ -1,3 +1,3 @@
1
1
  module Consul
2
- VERSION = '0.14.1'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-13 00:00:00.000000000 Z
11
+ date: 2019-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoizer
@@ -63,17 +63,17 @@ files:
63
63
  - ".travis.yml"
64
64
  - CHANGELOG.md
65
65
  - Gemfile
66
+ - Gemfile.3-2
67
+ - Gemfile.3-2.lock
68
+ - Gemfile.4-2
69
+ - Gemfile.4-2.lock
70
+ - Gemfile.5-2
71
+ - Gemfile.5-2.lock
66
72
  - Gemfile.lock
67
73
  - LICENSE
68
74
  - README.md
69
75
  - Rakefile
70
76
  - consul.gemspec
71
- - gemfiles/Gemfile.3-2
72
- - gemfiles/Gemfile.3-2.lock
73
- - gemfiles/Gemfile.4-2
74
- - gemfiles/Gemfile.4-2.lock
75
- - gemfiles/Gemfile.5-2
76
- - gemfiles/Gemfile.5-2.lock
77
77
  - lib/consul.rb
78
78
  - lib/consul/active_record.rb
79
79
  - lib/consul/controller.rb
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.7.6
109
+ rubygems_version: 2.7.7
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: A scope-based authorization solution for Ruby on Rails.