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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 703aebd1a4a8e71301ccdd0a60dad73e53c799595f5aa046f531e84925e1494d
4
- data.tar.gz: 66e599b5cef42e46d491464177fee7cceeed6016fc2042d386afb1744bca877b
3
+ metadata.gz: 2a59b44d341dd00fdde78e478a83a693adba95bc28d1270fb4ebd90b0fb90cbe
4
+ data.tar.gz: d45f05c9eaf7da4de6eea29a42c099b7d41dd4754db93419045632a6e46a1e82
5
5
  SHA512:
6
- metadata.gz: 384e49e056e78baa05735bb413791c1f392e4b48c3614e0ba618ae18252bf5fda66f14b451993f45152bd9c843e198f906f35f91cc4e6ab72b46f1ef9328618e
7
- data.tar.gz: 6206f5d7fe1becb25ba3fa1b40d8a91492e6e7daa2d7f48c2be4ba69f6ab25e64fdb9a020e60d5c24a78b0d7f7d2a76628ebb0f92ba014b5daccd36662dcbf88
6
+ metadata.gz: e5c9b086f8ac35d8432f0178e58477b4d58895037ff77497018d6e6697bb6382763c19435a5969a3a9c5fae18b4ac9080c41b031dd269372703fea48811e7ad4
7
+ data.tar.gz: ab7dd56ee92e42df419fa82584f888ecbedd5dd4ea90528e5bd36d5cf1eec7803afdd8360cfafe607311a2d1b63c5ba692b35a609db90dd303e14b737d91eaba
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ - Fixes transforming polymorphic relations through `read_param`
6
+ - Update all dependencies
7
+
3
8
  ## 0.5.0
4
9
 
5
10
  - Update collection call in `index` and `administrate` dependency
@@ -1,52 +1,66 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- administrate-base_controller (0.5.0)
4
+ administrate-base_controller (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (5.2.4.2)
10
- actionpack (= 5.2.4.2)
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
- actionmailer (5.2.4.2)
14
- actionpack (= 5.2.4.2)
15
- actionview (= 5.2.4.2)
16
- activejob (= 5.2.4.2)
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 (5.2.4.2)
20
- actionview (= 5.2.4.2)
21
- activesupport (= 5.2.4.2)
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.2)
26
- actionview (5.2.4.2)
27
- activesupport (= 5.2.4.2)
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.0, >= 1.0.3)
32
- activejob (5.2.4.2)
33
- activesupport (= 5.2.4.2)
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 (5.2.4.2)
36
- activesupport (= 5.2.4.2)
37
- activerecord (5.2.4.2)
38
- activemodel (= 5.2.4.2)
39
- activesupport (= 5.2.4.2)
40
- arel (>= 9.0)
41
- activestorage (5.2.4.2)
42
- actionpack (= 5.2.4.2)
43
- activerecord (= 5.2.4.2)
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 (5.2.4.2)
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.6)
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.2)
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.0)
94
+ kaminari (1.2.1)
82
95
  activesupport (>= 4.1.0)
83
- kaminari-actionview (= 1.2.0)
84
- kaminari-activerecord (= 1.2.0)
85
- kaminari-core (= 1.2.0)
86
- kaminari-actionview (1.2.0)
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.0)
89
- kaminari-activerecord (1.2.0)
101
+ kaminari-core (= 1.2.1)
102
+ kaminari-activerecord (1.2.1)
90
103
  activerecord
91
- kaminari-core (= 1.2.0)
92
- kaminari-core (1.2.0)
93
- loofah (2.4.0)
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.4)
114
+ mimemagic (0.3.5)
102
115
  mini_mime (1.0.2)
103
116
  mini_portile2 (2.4.0)
104
- minitest (5.14.0)
117
+ minitest (5.14.2)
105
118
  momentjs-rails (2.20.1)
106
119
  railties (>= 3.1)
107
- nio4r (2.5.2)
108
- nokogiri (1.10.9)
120
+ nio4r (2.5.4)
121
+ nokogiri (1.10.10)
109
122
  mini_portile2 (~> 2.4.0)
110
- nokogiri (1.10.9-x64-mingw32)
123
+ nokogiri (1.10.10-x64-mingw32)
111
124
  mini_portile2 (~> 2.4.0)
112
- rack (2.2.2)
125
+ rack (2.2.3)
113
126
  rack-test (1.1.0)
114
127
  rack (>= 1.0, < 3)
115
- rails (5.2.4.2)
116
- actioncable (= 5.2.4.2)
117
- actionmailer (= 5.2.4.2)
118
- actionpack (= 5.2.4.2)
119
- actionview (= 5.2.4.2)
120
- activejob (= 5.2.4.2)
121
- activemodel (= 5.2.4.2)
122
- activerecord (= 5.2.4.2)
123
- activestorage (= 5.2.4.2)
124
- activesupport (= 5.2.4.2)
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 (= 5.2.4.2)
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 (5.2.4.2)
134
- actionpack (= 5.2.4.2)
135
- activesupport (= 5.2.4.2)
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.19.0, < 2.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.0)
166
+ sprockets (4.0.2)
152
167
  concurrent-ruby (~> 1.0)
153
168
  rack (> 1, < 3)
154
- sprockets-rails (3.2.1)
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.6)
176
+ tzinfo (1.2.8)
162
177
  thread_safe (~> 0.1)
163
- websocket-driver (0.7.1)
178
+ websocket-driver (0.7.3)
164
179
  websocket-extensions (>= 0.1.0)
165
- websocket-extensions (0.1.4)
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 Adminstrate::BaseControll` in your admin `ApplicationController`.
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?(ActionController::Parameters) && data[:type]
106
- return read_param_value(data)
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
@@ -1,5 +1,5 @@
1
1
  module Administrate
2
2
  module BaseController
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
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.5.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-04-17 00:00:00.000000000 Z
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