monarchy 2.4.0 → 2.5.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 +4 -4
- data/.github_changelog_generator +1 -1
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +13 -2
- data/Gemfile +6 -6
- data/Gemfile.lock +94 -97
- data/dummy/Rakefile +1 -1
- data/dummy/bin/bundle +1 -1
- data/dummy/bin/rails +1 -1
- data/dummy/bin/setup +1 -1
- data/dummy/config/application.rb +1 -1
- data/dummy/config/boot.rb +2 -2
- data/dummy/config/environment.rb +1 -1
- data/lib/generators/monarchy/resource_generator.rb +1 -1
- data/lib/generators/monarchy/setup_generator.rb +1 -1
- data/lib/monarchy/acts_as_role.rb +3 -0
- data/lib/monarchy/version.rb +1 -1
- data/monarchy.gemspec +4 -4
- metadata +21 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a80bd2e8d032b4834201948fb4135eaf256b141
|
|
4
|
+
data.tar.gz: 1a61890bfb9ea9ec1d0401d578baad846db6a452
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ee33caaa89899299d26e7d1e84c43c0ac5bfb1b2d050d086c6d40c7874393281ea0d1643d33ac0dcf9fc73c03130bcac9322ef5ddd7afa23254cdb950d97e59
|
|
7
|
+
data.tar.gz: 6194f5ea16ba70b1ef9adf245530b770ed071f4719defeb6a5b9fcf63d673c752c910877f3297f7a17d79de5ede614b97654958ee56f239e2d4c5693ff69e8c6
|
data/.github_changelog_generator
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
future-release=2.
|
|
1
|
+
future-release=2.5.0
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [2.
|
|
4
|
-
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.
|
|
3
|
+
## [2.5.0](https://github.com/Exelord/Monarchy/tree/2.5.0) (2018-03-25)
|
|
4
|
+
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.4.0...2.5.0)
|
|
5
|
+
|
|
6
|
+
**Fixed bugs:**
|
|
7
|
+
|
|
8
|
+
- Validate name and role level [\#80](https://github.com/Exelord/Monarchy/pull/80) ([Exelord](https://github.com/Exelord))
|
|
9
|
+
|
|
10
|
+
**Merged pull requests:**
|
|
11
|
+
|
|
12
|
+
- Feature upgrades [\#81](https://github.com/Exelord/Monarchy/pull/81) ([Exelord](https://github.com/Exelord))
|
|
13
|
+
|
|
14
|
+
## [v2.4.0](https://github.com/Exelord/Monarchy/tree/v2.4.0) (2017-10-03)
|
|
15
|
+
[Full Changelog](https://github.com/Exelord/Monarchy/compare/v2.3.0...v2.4.0)
|
|
5
16
|
|
|
6
17
|
**Merged pull requests:**
|
|
7
18
|
|
data/Gemfile
CHANGED
|
@@ -17,14 +17,14 @@ gemspec
|
|
|
17
17
|
# gem 'byebug', group: [:development, :test]
|
|
18
18
|
|
|
19
19
|
group :development, :test do
|
|
20
|
-
gem 'database_cleaner', '1.6.
|
|
20
|
+
gem 'database_cleaner', '1.6.2'
|
|
21
21
|
gem 'db-query-matchers', '0.9.0'
|
|
22
|
-
gem 'factory_girl_rails', '4.
|
|
23
|
-
gem 'ffaker', '2.
|
|
22
|
+
gem 'factory_girl_rails', '4.9.0'
|
|
23
|
+
gem 'ffaker', '2.8.1'
|
|
24
24
|
gem 'pry-rails', '0.3.6'
|
|
25
|
-
gem 'rails', '5.1.
|
|
26
|
-
gem 'rspec-rails', '3.
|
|
27
|
-
gem 'rubocop', '0.
|
|
25
|
+
gem 'rails', '5.1.5'
|
|
26
|
+
gem 'rspec-rails', '3.7.2'
|
|
27
|
+
gem 'rubocop', '0.54.0'
|
|
28
28
|
gem 'shoulda-matchers', '3.1.2'
|
|
29
29
|
gem 'sqlite3', '1.3.13'
|
|
30
30
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
monarchy (2.
|
|
5
|
-
active_record_union (= 1.
|
|
4
|
+
monarchy (2.5.0)
|
|
5
|
+
active_record_union (= 1.3.0)
|
|
6
6
|
activerecord (>= 4.2.7.1)
|
|
7
7
|
closure_tree (= 6.6.0)
|
|
8
8
|
configurations (= 2.2.2)
|
|
@@ -11,47 +11,47 @@ PATH
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
actioncable (5.1.
|
|
15
|
-
actionpack (= 5.1.
|
|
14
|
+
actioncable (5.1.5)
|
|
15
|
+
actionpack (= 5.1.5)
|
|
16
16
|
nio4r (~> 2.0)
|
|
17
17
|
websocket-driver (~> 0.6.1)
|
|
18
|
-
actionmailer (5.1.
|
|
19
|
-
actionpack (= 5.1.
|
|
20
|
-
actionview (= 5.1.
|
|
21
|
-
activejob (= 5.1.
|
|
18
|
+
actionmailer (5.1.5)
|
|
19
|
+
actionpack (= 5.1.5)
|
|
20
|
+
actionview (= 5.1.5)
|
|
21
|
+
activejob (= 5.1.5)
|
|
22
22
|
mail (~> 2.5, >= 2.5.4)
|
|
23
23
|
rails-dom-testing (~> 2.0)
|
|
24
|
-
actionpack (5.1.
|
|
25
|
-
actionview (= 5.1.
|
|
26
|
-
activesupport (= 5.1.
|
|
24
|
+
actionpack (5.1.5)
|
|
25
|
+
actionview (= 5.1.5)
|
|
26
|
+
activesupport (= 5.1.5)
|
|
27
27
|
rack (~> 2.0)
|
|
28
28
|
rack-test (>= 0.6.3)
|
|
29
29
|
rails-dom-testing (~> 2.0)
|
|
30
30
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
31
|
-
actionview (5.1.
|
|
32
|
-
activesupport (= 5.1.
|
|
31
|
+
actionview (5.1.5)
|
|
32
|
+
activesupport (= 5.1.5)
|
|
33
33
|
builder (~> 3.1)
|
|
34
34
|
erubi (~> 1.4)
|
|
35
35
|
rails-dom-testing (~> 2.0)
|
|
36
36
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
37
|
-
active_record_union (1.
|
|
37
|
+
active_record_union (1.3.0)
|
|
38
38
|
activerecord (>= 4.0)
|
|
39
|
-
activejob (5.1.
|
|
40
|
-
activesupport (= 5.1.
|
|
39
|
+
activejob (5.1.5)
|
|
40
|
+
activesupport (= 5.1.5)
|
|
41
41
|
globalid (>= 0.3.6)
|
|
42
|
-
activemodel (5.1.
|
|
43
|
-
activesupport (= 5.1.
|
|
44
|
-
activerecord (5.1.
|
|
45
|
-
activemodel (= 5.1.
|
|
46
|
-
activesupport (= 5.1.
|
|
42
|
+
activemodel (5.1.5)
|
|
43
|
+
activesupport (= 5.1.5)
|
|
44
|
+
activerecord (5.1.5)
|
|
45
|
+
activemodel (= 5.1.5)
|
|
46
|
+
activesupport (= 5.1.5)
|
|
47
47
|
arel (~> 8.0)
|
|
48
|
-
activesupport (5.1.
|
|
48
|
+
activesupport (5.1.5)
|
|
49
49
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
50
50
|
i18n (~> 0.7)
|
|
51
51
|
minitest (~> 5.1)
|
|
52
52
|
tzinfo (~> 1.1)
|
|
53
53
|
arel (8.0.0)
|
|
54
|
-
ast (2.
|
|
54
|
+
ast (2.4.0)
|
|
55
55
|
builder (3.2.3)
|
|
56
56
|
closure_tree (6.6.0)
|
|
57
57
|
activerecord (>= 4.1.0)
|
|
@@ -61,102 +61,100 @@ GEM
|
|
|
61
61
|
coderay (1.1.2)
|
|
62
62
|
concurrent-ruby (1.0.5)
|
|
63
63
|
configurations (2.2.2)
|
|
64
|
-
crass (1.0.
|
|
65
|
-
database_cleaner (1.6.
|
|
64
|
+
crass (1.0.3)
|
|
65
|
+
database_cleaner (1.6.2)
|
|
66
66
|
db-query-matchers (0.9.0)
|
|
67
67
|
activesupport (>= 4.0, <= 6.0)
|
|
68
68
|
rspec (~> 3.0)
|
|
69
69
|
diff-lcs (1.3)
|
|
70
70
|
docile (1.1.5)
|
|
71
|
-
erubi (1.
|
|
72
|
-
factory_girl (4.
|
|
71
|
+
erubi (1.7.1)
|
|
72
|
+
factory_girl (4.9.0)
|
|
73
73
|
activesupport (>= 3.0.0)
|
|
74
|
-
factory_girl_rails (4.
|
|
75
|
-
factory_girl (~> 4.
|
|
74
|
+
factory_girl_rails (4.9.0)
|
|
75
|
+
factory_girl (~> 4.9.0)
|
|
76
76
|
railties (>= 3.0.0)
|
|
77
|
-
ffaker (2.
|
|
78
|
-
globalid (0.4.
|
|
77
|
+
ffaker (2.8.1)
|
|
78
|
+
globalid (0.4.1)
|
|
79
79
|
activesupport (>= 4.2.0)
|
|
80
|
-
i18n (0.
|
|
80
|
+
i18n (0.9.5)
|
|
81
|
+
concurrent-ruby (~> 1.0)
|
|
81
82
|
json (2.1.0)
|
|
82
|
-
loofah (2.
|
|
83
|
+
loofah (2.2.2)
|
|
83
84
|
crass (~> 1.0.2)
|
|
84
85
|
nokogiri (>= 1.5.9)
|
|
85
|
-
mail (2.
|
|
86
|
-
|
|
86
|
+
mail (2.7.0)
|
|
87
|
+
mini_mime (>= 0.1.1)
|
|
87
88
|
method_source (0.9.0)
|
|
88
|
-
|
|
89
|
-
mime-types-data (~> 3.2015)
|
|
90
|
-
mime-types-data (3.2016.0521)
|
|
89
|
+
mini_mime (1.0.0)
|
|
91
90
|
mini_portile2 (2.3.0)
|
|
92
|
-
minitest (5.
|
|
93
|
-
nio4r (2.
|
|
94
|
-
nokogiri (1.8.
|
|
91
|
+
minitest (5.11.3)
|
|
92
|
+
nio4r (2.3.0)
|
|
93
|
+
nokogiri (1.8.2)
|
|
95
94
|
mini_portile2 (~> 2.3.0)
|
|
96
|
-
parallel (1.12.
|
|
97
|
-
parser (2.
|
|
98
|
-
ast (~> 2.
|
|
95
|
+
parallel (1.12.1)
|
|
96
|
+
parser (2.5.0.5)
|
|
97
|
+
ast (~> 2.4.0)
|
|
99
98
|
powerpack (0.1.1)
|
|
100
|
-
pry (0.11.
|
|
99
|
+
pry (0.11.3)
|
|
101
100
|
coderay (~> 1.1.0)
|
|
102
101
|
method_source (~> 0.9.0)
|
|
103
102
|
pry-rails (0.3.6)
|
|
104
103
|
pry (>= 0.10.4)
|
|
105
|
-
rack (2.0.
|
|
106
|
-
rack-test (0.
|
|
104
|
+
rack (2.0.4)
|
|
105
|
+
rack-test (0.8.3)
|
|
107
106
|
rack (>= 1.0, < 3)
|
|
108
|
-
rails (5.1.
|
|
109
|
-
actioncable (= 5.1.
|
|
110
|
-
actionmailer (= 5.1.
|
|
111
|
-
actionpack (= 5.1.
|
|
112
|
-
actionview (= 5.1.
|
|
113
|
-
activejob (= 5.1.
|
|
114
|
-
activemodel (= 5.1.
|
|
115
|
-
activerecord (= 5.1.
|
|
116
|
-
activesupport (= 5.1.
|
|
107
|
+
rails (5.1.5)
|
|
108
|
+
actioncable (= 5.1.5)
|
|
109
|
+
actionmailer (= 5.1.5)
|
|
110
|
+
actionpack (= 5.1.5)
|
|
111
|
+
actionview (= 5.1.5)
|
|
112
|
+
activejob (= 5.1.5)
|
|
113
|
+
activemodel (= 5.1.5)
|
|
114
|
+
activerecord (= 5.1.5)
|
|
115
|
+
activesupport (= 5.1.5)
|
|
117
116
|
bundler (>= 1.3.0)
|
|
118
|
-
railties (= 5.1.
|
|
117
|
+
railties (= 5.1.5)
|
|
119
118
|
sprockets-rails (>= 2.0.0)
|
|
120
119
|
rails-dom-testing (2.0.3)
|
|
121
120
|
activesupport (>= 4.2.0)
|
|
122
121
|
nokogiri (>= 1.6)
|
|
123
|
-
rails-html-sanitizer (1.0.
|
|
124
|
-
loofah (~> 2.
|
|
125
|
-
railties (5.1.
|
|
126
|
-
actionpack (= 5.1.
|
|
127
|
-
activesupport (= 5.1.
|
|
122
|
+
rails-html-sanitizer (1.0.4)
|
|
123
|
+
loofah (~> 2.2, >= 2.2.2)
|
|
124
|
+
railties (5.1.5)
|
|
125
|
+
actionpack (= 5.1.5)
|
|
126
|
+
activesupport (= 5.1.5)
|
|
128
127
|
method_source
|
|
129
128
|
rake (>= 0.8.7)
|
|
130
129
|
thor (>= 0.18.1, < 2.0)
|
|
131
|
-
rainbow (
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
rspec-
|
|
136
|
-
rspec-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
rspec-expectations (3.6.0)
|
|
130
|
+
rainbow (3.0.0)
|
|
131
|
+
rake (12.3.1)
|
|
132
|
+
rspec (3.7.0)
|
|
133
|
+
rspec-core (~> 3.7.0)
|
|
134
|
+
rspec-expectations (~> 3.7.0)
|
|
135
|
+
rspec-mocks (~> 3.7.0)
|
|
136
|
+
rspec-core (3.7.1)
|
|
137
|
+
rspec-support (~> 3.7.0)
|
|
138
|
+
rspec-expectations (3.7.0)
|
|
141
139
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
142
|
-
rspec-support (~> 3.
|
|
143
|
-
rspec-mocks (3.
|
|
140
|
+
rspec-support (~> 3.7.0)
|
|
141
|
+
rspec-mocks (3.7.0)
|
|
144
142
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
145
|
-
rspec-support (~> 3.
|
|
146
|
-
rspec-rails (3.
|
|
143
|
+
rspec-support (~> 3.7.0)
|
|
144
|
+
rspec-rails (3.7.2)
|
|
147
145
|
actionpack (>= 3.0)
|
|
148
146
|
activesupport (>= 3.0)
|
|
149
147
|
railties (>= 3.0)
|
|
150
|
-
rspec-core (~> 3.
|
|
151
|
-
rspec-expectations (~> 3.
|
|
152
|
-
rspec-mocks (~> 3.
|
|
153
|
-
rspec-support (~> 3.
|
|
154
|
-
rspec-support (3.
|
|
155
|
-
rubocop (0.
|
|
148
|
+
rspec-core (~> 3.7.0)
|
|
149
|
+
rspec-expectations (~> 3.7.0)
|
|
150
|
+
rspec-mocks (~> 3.7.0)
|
|
151
|
+
rspec-support (~> 3.7.0)
|
|
152
|
+
rspec-support (3.7.1)
|
|
153
|
+
rubocop (0.54.0)
|
|
156
154
|
parallel (~> 1.10)
|
|
157
|
-
parser (>= 2.
|
|
155
|
+
parser (>= 2.5)
|
|
158
156
|
powerpack (~> 0.1)
|
|
159
|
-
rainbow (>= 2.2.2, <
|
|
157
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
160
158
|
ruby-progressbar (~> 1.7)
|
|
161
159
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
162
160
|
ruby-progressbar (1.9.0)
|
|
@@ -178,15 +176,14 @@ GEM
|
|
|
178
176
|
thor (0.20.0)
|
|
179
177
|
thread_safe (0.3.6)
|
|
180
178
|
tqdm (0.3.0)
|
|
181
|
-
tzinfo (1.2.
|
|
179
|
+
tzinfo (1.2.5)
|
|
182
180
|
thread_safe (~> 0.1)
|
|
183
181
|
unicode-display_width (1.3.0)
|
|
184
182
|
websocket-driver (0.6.5)
|
|
185
183
|
websocket-extensions (>= 0.1.0)
|
|
186
|
-
websocket-extensions (0.1.
|
|
187
|
-
with_advisory_lock (3.
|
|
184
|
+
websocket-extensions (0.1.3)
|
|
185
|
+
with_advisory_lock (3.2.0)
|
|
188
186
|
activerecord (>= 3.2)
|
|
189
|
-
thread_safe
|
|
190
187
|
|
|
191
188
|
PLATFORMS
|
|
192
189
|
ruby
|
|
@@ -194,17 +191,17 @@ PLATFORMS
|
|
|
194
191
|
DEPENDENCIES
|
|
195
192
|
bundler (~> 1.12)
|
|
196
193
|
codeclimate-test-reporter (~> 1.0.8)
|
|
197
|
-
database_cleaner (= 1.6.
|
|
194
|
+
database_cleaner (= 1.6.2)
|
|
198
195
|
db-query-matchers (= 0.9.0)
|
|
199
|
-
factory_girl_rails (= 4.
|
|
200
|
-
ffaker (= 2.
|
|
196
|
+
factory_girl_rails (= 4.9.0)
|
|
197
|
+
ffaker (= 2.8.1)
|
|
201
198
|
monarchy!
|
|
202
199
|
pry-rails (= 0.3.6)
|
|
203
|
-
rails (= 5.1.
|
|
204
|
-
rake (~> 12.
|
|
205
|
-
rspec (= 3.
|
|
206
|
-
rspec-rails (= 3.
|
|
207
|
-
rubocop (= 0.
|
|
200
|
+
rails (= 5.1.5)
|
|
201
|
+
rake (~> 12.3.1)
|
|
202
|
+
rspec (= 3.7.0)
|
|
203
|
+
rspec-rails (= 3.7.2)
|
|
204
|
+
rubocop (= 0.54.0)
|
|
208
205
|
shoulda-matchers (= 3.1.2)
|
|
209
206
|
simplecov (= 0.13.0)
|
|
210
207
|
sqlite3 (= 1.3.13)
|
|
@@ -213,4 +210,4 @@ RUBY VERSION
|
|
|
213
210
|
ruby 2.4.2p198
|
|
214
211
|
|
|
215
212
|
BUNDLED WITH
|
|
216
|
-
1.
|
|
213
|
+
1.16.0
|
data/dummy/Rakefile
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
4
4
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
5
5
|
|
|
6
|
-
require File.expand_path('
|
|
6
|
+
require File.expand_path('config/application', __dir__)
|
|
7
7
|
|
|
8
8
|
Rails.application.load_tasks
|
data/dummy/bin/bundle
CHANGED
data/dummy/bin/rails
CHANGED
data/dummy/bin/setup
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
require 'pathname'
|
|
5
5
|
|
|
6
6
|
# path to your application root.
|
|
7
|
-
APP_ROOT = Pathname.new File.expand_path('
|
|
7
|
+
APP_ROOT = Pathname.new File.expand_path('..', __dir__)
|
|
8
8
|
|
|
9
9
|
Dir.chdir APP_ROOT do
|
|
10
10
|
# This script is a starting point to setup your application.
|
data/dummy/config/application.rb
CHANGED
data/dummy/config/boot.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Set up gems listed in the Gemfile.
|
|
4
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('
|
|
4
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
|
|
5
5
|
|
|
6
6
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
|
7
|
-
$LOAD_PATH.unshift File.expand_path('
|
|
7
|
+
$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
|
data/dummy/config/environment.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Monarchy
|
|
|
7
7
|
include Rails::Generators::Migration
|
|
8
8
|
|
|
9
9
|
desc 'This generator creates a resourcify model'
|
|
10
|
-
source_root File.expand_path('
|
|
10
|
+
source_root File.expand_path('../templates', __dir__)
|
|
11
11
|
|
|
12
12
|
def create_resource_file
|
|
13
13
|
template 'models/resource.rb', "app/models/#{file_name}.rb"
|
|
@@ -7,7 +7,7 @@ module Monarchy
|
|
|
7
7
|
include Rails::Generators::Migration
|
|
8
8
|
|
|
9
9
|
desc 'This generator setups Monarchy'
|
|
10
|
-
source_root File.expand_path('
|
|
10
|
+
source_root File.expand_path('../templates', __dir__)
|
|
11
11
|
|
|
12
12
|
def setup_monarchy
|
|
13
13
|
template 'config.rb', 'config/initializers/monarchy.rb'
|
|
@@ -14,6 +14,9 @@ module Monarchy
|
|
|
14
14
|
belongs_to :inherited_role, class_name: "::#{Monarchy.role_class}"
|
|
15
15
|
|
|
16
16
|
after_create :default_inherited_role
|
|
17
|
+
|
|
18
|
+
validates :name, presence: true
|
|
19
|
+
validates :level, presence: true
|
|
17
20
|
|
|
18
21
|
include Monarchy::ActsAsRole::InstanceMethods
|
|
19
22
|
end
|
data/lib/monarchy/version.rb
CHANGED
data/monarchy.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
lib = File.expand_path('
|
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'monarchy/version'
|
|
6
6
|
|
|
@@ -26,13 +26,13 @@ Gem::Specification.new do |s|
|
|
|
26
26
|
s.require_paths = ['lib']
|
|
27
27
|
s.required_ruby_version = '>= 2.3'
|
|
28
28
|
|
|
29
|
+
s.add_dependency 'active_record_union', '1.3.0'
|
|
29
30
|
s.add_dependency 'activerecord', '>=4.2.7.1'
|
|
30
31
|
s.add_dependency 'closure_tree', '6.6.0'
|
|
31
32
|
s.add_dependency 'configurations', '2.2.2'
|
|
32
|
-
s.add_dependency 'active_record_union', '1.2.0'
|
|
33
33
|
s.add_dependency 'tqdm', '0.3.0'
|
|
34
34
|
|
|
35
35
|
s.add_development_dependency 'bundler', '~> 1.12'
|
|
36
|
-
s.add_development_dependency 'rake', '~> 12.
|
|
37
|
-
s.add_development_dependency 'rspec', '3.
|
|
36
|
+
s.add_development_dependency 'rake', '~> 12.3.1'
|
|
37
|
+
s.add_development_dependency 'rspec', '3.7.0'
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monarchy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Exelord
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: active_record_union
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - '='
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 1.3.0
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - '='
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 1.3.0
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: activerecord
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,20 +66,6 @@ dependencies:
|
|
|
52
66
|
- - '='
|
|
53
67
|
- !ruby/object:Gem::Version
|
|
54
68
|
version: 2.2.2
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: active_record_union
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - '='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 1.2.0
|
|
62
|
-
type: :runtime
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - '='
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 1.2.0
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: tqdm
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -100,28 +100,28 @@ dependencies:
|
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version:
|
|
103
|
+
version: 12.3.1
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version:
|
|
110
|
+
version: 12.3.1
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: rspec
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - '='
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 3.
|
|
117
|
+
version: 3.7.0
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - '='
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 3.
|
|
124
|
+
version: 3.7.0
|
|
125
125
|
description: Hierarchical access management system with roles inheritance.
|
|
126
126
|
email:
|
|
127
127
|
- exelord@macsour.com
|
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
259
259
|
version: '0'
|
|
260
260
|
requirements: []
|
|
261
261
|
rubyforge_project:
|
|
262
|
-
rubygems_version: 2.6.
|
|
262
|
+
rubygems_version: 2.6.14
|
|
263
263
|
signing_key:
|
|
264
264
|
specification_version: 4
|
|
265
265
|
summary: Hierarchical access management system with roles inheritance.
|