administrate-base_controller 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +82 -66
- data/README.md +1 -1
- data/administrate-base_controller.gemspec +1 -1
- data/lib/administrate/base_controller.rb +4 -2
- data/lib/administrate/base_controller/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a59b44d341dd00fdde78e478a83a693adba95bc28d1270fb4ebd90b0fb90cbe
|
4
|
+
data.tar.gz: d45f05c9eaf7da4de6eea29a42c099b7d41dd4754db93419045632a6e46a1e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5c9b086f8ac35d8432f0178e58477b4d58895037ff77497018d6e6697bb6382763c19435a5969a3a9c5fae18b4ac9080c41b031dd269372703fea48811e7ad4
|
7
|
+
data.tar.gz: ab7dd56ee92e42df419fa82584f888ecbedd5dd4ea90528e5bd36d5cf1eec7803afdd8360cfafe607311a2d1b63c5ba692b35a609db90dd303e14b737d91eaba
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,52 +1,66 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
administrate-base_controller (0.
|
4
|
+
administrate-base_controller (0.6.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (
|
10
|
-
actionpack (=
|
9
|
+
actioncable (6.0.3.4)
|
10
|
+
actionpack (= 6.0.3.4)
|
11
11
|
nio4r (~> 2.0)
|
12
12
|
websocket-driver (>= 0.6.1)
|
13
|
-
|
14
|
-
actionpack (=
|
15
|
-
|
16
|
-
|
13
|
+
actionmailbox (6.0.3.4)
|
14
|
+
actionpack (= 6.0.3.4)
|
15
|
+
activejob (= 6.0.3.4)
|
16
|
+
activerecord (= 6.0.3.4)
|
17
|
+
activestorage (= 6.0.3.4)
|
18
|
+
activesupport (= 6.0.3.4)
|
19
|
+
mail (>= 2.7.1)
|
20
|
+
actionmailer (6.0.3.4)
|
21
|
+
actionpack (= 6.0.3.4)
|
22
|
+
actionview (= 6.0.3.4)
|
23
|
+
activejob (= 6.0.3.4)
|
17
24
|
mail (~> 2.5, >= 2.5.4)
|
18
25
|
rails-dom-testing (~> 2.0)
|
19
|
-
actionpack (
|
20
|
-
actionview (=
|
21
|
-
activesupport (=
|
26
|
+
actionpack (6.0.3.4)
|
27
|
+
actionview (= 6.0.3.4)
|
28
|
+
activesupport (= 6.0.3.4)
|
22
29
|
rack (~> 2.0, >= 2.0.8)
|
23
30
|
rack-test (>= 0.6.3)
|
24
31
|
rails-dom-testing (~> 2.0)
|
25
|
-
rails-html-sanitizer (~> 1.0, >= 1.0
|
26
|
-
|
27
|
-
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
33
|
+
actiontext (6.0.3.4)
|
34
|
+
actionpack (= 6.0.3.4)
|
35
|
+
activerecord (= 6.0.3.4)
|
36
|
+
activestorage (= 6.0.3.4)
|
37
|
+
activesupport (= 6.0.3.4)
|
38
|
+
nokogiri (>= 1.8.5)
|
39
|
+
actionview (6.0.3.4)
|
40
|
+
activesupport (= 6.0.3.4)
|
28
41
|
builder (~> 3.1)
|
29
42
|
erubi (~> 1.4)
|
30
43
|
rails-dom-testing (~> 2.0)
|
31
|
-
rails-html-sanitizer (~> 1.
|
32
|
-
activejob (
|
33
|
-
activesupport (=
|
44
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
45
|
+
activejob (6.0.3.4)
|
46
|
+
activesupport (= 6.0.3.4)
|
34
47
|
globalid (>= 0.3.6)
|
35
|
-
activemodel (
|
36
|
-
activesupport (=
|
37
|
-
activerecord (
|
38
|
-
activemodel (=
|
39
|
-
activesupport (=
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
activerecord (=
|
48
|
+
activemodel (6.0.3.4)
|
49
|
+
activesupport (= 6.0.3.4)
|
50
|
+
activerecord (6.0.3.4)
|
51
|
+
activemodel (= 6.0.3.4)
|
52
|
+
activesupport (= 6.0.3.4)
|
53
|
+
activestorage (6.0.3.4)
|
54
|
+
actionpack (= 6.0.3.4)
|
55
|
+
activejob (= 6.0.3.4)
|
56
|
+
activerecord (= 6.0.3.4)
|
44
57
|
marcel (~> 0.3.1)
|
45
|
-
activesupport (
|
58
|
+
activesupport (6.0.3.4)
|
46
59
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
60
|
i18n (>= 0.7, < 2)
|
48
61
|
minitest (~> 5.1)
|
49
62
|
tzinfo (~> 1.1)
|
63
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
50
64
|
administrate (0.13.0)
|
51
65
|
actionpack (>= 4.2)
|
52
66
|
actionview (>= 4.2)
|
@@ -58,11 +72,10 @@ GEM
|
|
58
72
|
momentjs-rails (~> 2.8)
|
59
73
|
sassc-rails (~> 2.1)
|
60
74
|
selectize-rails (~> 0.6)
|
61
|
-
arel (9.0.0)
|
62
75
|
autoprefixer-rails (9.7.5)
|
63
76
|
execjs
|
64
77
|
builder (3.2.4)
|
65
|
-
concurrent-ruby (1.1.
|
78
|
+
concurrent-ruby (1.1.7)
|
66
79
|
crass (1.0.6)
|
67
80
|
datetime_picker_rails (0.0.7)
|
68
81
|
momentjs-rails (>= 2.8.1)
|
@@ -72,25 +85,25 @@ GEM
|
|
72
85
|
ffi (1.12.2-x64-mingw32)
|
73
86
|
globalid (0.4.2)
|
74
87
|
activesupport (>= 4.2.0)
|
75
|
-
i18n (1.8.
|
88
|
+
i18n (1.8.5)
|
76
89
|
concurrent-ruby (~> 1.0)
|
77
90
|
jquery-rails (4.3.5)
|
78
91
|
rails-dom-testing (>= 1, < 3)
|
79
92
|
railties (>= 4.2.0)
|
80
93
|
thor (>= 0.14, < 2.0)
|
81
|
-
kaminari (1.2.
|
94
|
+
kaminari (1.2.1)
|
82
95
|
activesupport (>= 4.1.0)
|
83
|
-
kaminari-actionview (= 1.2.
|
84
|
-
kaminari-activerecord (= 1.2.
|
85
|
-
kaminari-core (= 1.2.
|
86
|
-
kaminari-actionview (1.2.
|
96
|
+
kaminari-actionview (= 1.2.1)
|
97
|
+
kaminari-activerecord (= 1.2.1)
|
98
|
+
kaminari-core (= 1.2.1)
|
99
|
+
kaminari-actionview (1.2.1)
|
87
100
|
actionview
|
88
|
-
kaminari-core (= 1.2.
|
89
|
-
kaminari-activerecord (1.2.
|
101
|
+
kaminari-core (= 1.2.1)
|
102
|
+
kaminari-activerecord (1.2.1)
|
90
103
|
activerecord
|
91
|
-
kaminari-core (= 1.2.
|
92
|
-
kaminari-core (1.2.
|
93
|
-
loofah (2.
|
104
|
+
kaminari-core (= 1.2.1)
|
105
|
+
kaminari-core (1.2.1)
|
106
|
+
loofah (2.7.0)
|
94
107
|
crass (~> 1.0.2)
|
95
108
|
nokogiri (>= 1.5.9)
|
96
109
|
mail (2.7.1)
|
@@ -98,44 +111,46 @@ GEM
|
|
98
111
|
marcel (0.3.3)
|
99
112
|
mimemagic (~> 0.3.2)
|
100
113
|
method_source (1.0.0)
|
101
|
-
mimemagic (0.3.
|
114
|
+
mimemagic (0.3.5)
|
102
115
|
mini_mime (1.0.2)
|
103
116
|
mini_portile2 (2.4.0)
|
104
|
-
minitest (5.14.
|
117
|
+
minitest (5.14.2)
|
105
118
|
momentjs-rails (2.20.1)
|
106
119
|
railties (>= 3.1)
|
107
|
-
nio4r (2.5.
|
108
|
-
nokogiri (1.10.
|
120
|
+
nio4r (2.5.4)
|
121
|
+
nokogiri (1.10.10)
|
109
122
|
mini_portile2 (~> 2.4.0)
|
110
|
-
nokogiri (1.10.
|
123
|
+
nokogiri (1.10.10-x64-mingw32)
|
111
124
|
mini_portile2 (~> 2.4.0)
|
112
|
-
rack (2.2.
|
125
|
+
rack (2.2.3)
|
113
126
|
rack-test (1.1.0)
|
114
127
|
rack (>= 1.0, < 3)
|
115
|
-
rails (
|
116
|
-
actioncable (=
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
128
|
+
rails (6.0.3.4)
|
129
|
+
actioncable (= 6.0.3.4)
|
130
|
+
actionmailbox (= 6.0.3.4)
|
131
|
+
actionmailer (= 6.0.3.4)
|
132
|
+
actionpack (= 6.0.3.4)
|
133
|
+
actiontext (= 6.0.3.4)
|
134
|
+
actionview (= 6.0.3.4)
|
135
|
+
activejob (= 6.0.3.4)
|
136
|
+
activemodel (= 6.0.3.4)
|
137
|
+
activerecord (= 6.0.3.4)
|
138
|
+
activestorage (= 6.0.3.4)
|
139
|
+
activesupport (= 6.0.3.4)
|
125
140
|
bundler (>= 1.3.0)
|
126
|
-
railties (=
|
141
|
+
railties (= 6.0.3.4)
|
127
142
|
sprockets-rails (>= 2.0.0)
|
128
143
|
rails-dom-testing (2.0.3)
|
129
144
|
activesupport (>= 4.2.0)
|
130
145
|
nokogiri (>= 1.6)
|
131
146
|
rails-html-sanitizer (1.3.0)
|
132
147
|
loofah (~> 2.3)
|
133
|
-
railties (
|
134
|
-
actionpack (=
|
135
|
-
activesupport (=
|
148
|
+
railties (6.0.3.4)
|
149
|
+
actionpack (= 6.0.3.4)
|
150
|
+
activesupport (= 6.0.3.4)
|
136
151
|
method_source
|
137
152
|
rake (>= 0.8.7)
|
138
|
-
thor (>= 0.
|
153
|
+
thor (>= 0.20.3, < 2.0)
|
139
154
|
rake (13.0.1)
|
140
155
|
sassc (2.2.1)
|
141
156
|
ffi (~> 1.9)
|
@@ -148,21 +163,22 @@ GEM
|
|
148
163
|
sprockets-rails
|
149
164
|
tilt
|
150
165
|
selectize-rails (0.12.6)
|
151
|
-
sprockets (4.0.
|
166
|
+
sprockets (4.0.2)
|
152
167
|
concurrent-ruby (~> 1.0)
|
153
168
|
rack (> 1, < 3)
|
154
|
-
sprockets-rails (3.2.
|
169
|
+
sprockets-rails (3.2.2)
|
155
170
|
actionpack (>= 4.0)
|
156
171
|
activesupport (>= 4.0)
|
157
172
|
sprockets (>= 3.0.0)
|
158
173
|
thor (1.0.1)
|
159
174
|
thread_safe (0.3.6)
|
160
175
|
tilt (2.0.10)
|
161
|
-
tzinfo (1.2.
|
176
|
+
tzinfo (1.2.8)
|
162
177
|
thread_safe (~> 0.1)
|
163
|
-
websocket-driver (0.7.
|
178
|
+
websocket-driver (0.7.3)
|
164
179
|
websocket-extensions (>= 0.1.0)
|
165
|
-
websocket-extensions (0.1.
|
180
|
+
websocket-extensions (0.1.5)
|
181
|
+
zeitwerk (2.4.1)
|
166
182
|
|
167
183
|
PLATFORMS
|
168
184
|
ruby
|
@@ -173,7 +189,7 @@ DEPENDENCIES
|
|
173
189
|
administrate-base_controller!
|
174
190
|
bundler (~> 2.0)
|
175
191
|
minitest (~> 5.0)
|
176
|
-
rails
|
192
|
+
rails (~> 6.0)
|
177
193
|
rake (~> 13.0)
|
178
194
|
|
179
195
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
When you require this gem, you can `include
|
27
|
+
When you require this gem, you can `include Administrate::BaseController` in your admin `ApplicationController`.
|
28
28
|
Alternatively require `administrate/base_controller/engine` instead (e.g. in your Gemfile). The base controller
|
29
29
|
functionality will be added to the `administrate/application_controller`.
|
30
30
|
|
@@ -38,5 +38,5 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
39
39
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
40
|
spec.add_development_dependency 'rake', '~> 13.0'
|
41
|
-
spec.add_development_dependency 'rails'
|
41
|
+
spec.add_development_dependency 'rails', '~> 6.0'
|
42
42
|
end
|
@@ -102,8 +102,10 @@ module Administrate
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def read_param(_, data)
|
105
|
-
if data.is_a?(
|
106
|
-
|
105
|
+
if data.is_a?(Hash) && data[:type]
|
106
|
+
if data[:type] == Administrate::Field::Polymorphic.to_s
|
107
|
+
return GlobalID::Locator.locate(data[:value])
|
108
|
+
end
|
107
109
|
end
|
108
110
|
|
109
111
|
data
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: administrate-base_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: administrate
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
75
|
+
version: '6.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
82
|
+
version: '6.0'
|
83
83
|
description:
|
84
84
|
email:
|
85
85
|
- derk-jan@xpbytes.com
|