cm-admin 3.0.1 → 3.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6090c01fd1da2dcb938d36bdaddc8ec28b47379092b96bdd455f8cc36f06e08b
4
- data.tar.gz: 110e87eadfebb684c650e5e80ed955c173369895f219cfd9f887887f75214cee
3
+ metadata.gz: 744c9c62946497a8d3f3922c00fcaa52f3a7cf998c663e92fe7df035080dc935
4
+ data.tar.gz: 12263f4983919eb0d98261f2cfdbaf2a5635adbc2025935573412b3500066e8c
5
5
  SHA512:
6
- metadata.gz: b41a13562211711b6409bbfdae8e033a6dfe6de1978be096a65681870d2cba3f21048422a76f3d8d335507545710085ea29cfa9189cf6865d198f81781e8910e
7
- data.tar.gz: b08b437deadaaf911dcd2af141a30986c58f4705bbe0b8f6591dc663c44c0f321c82c58253a4de89bf55e926fb3194043bc8ee768d9808f2a3718dce8c90bb56
6
+ metadata.gz: 0d6c1f9bdfa8a45877fcad5d74d9601c5bbca37250b060f3ceeb813f226ad479bc03725eaf54c07a9cd6faaf73e45cff32272591116391ec872706ee9f6ce203
7
+ data.tar.gz: 2eeab319058f317693036819a37ca88432049f224a07784f822956b65723ad95083b4950a221390127bf86c7df884ba3040f933f0733a57283938a8d00c06918
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cm-admin (3.0.1)
4
+ cm-admin (3.0.2)
5
5
  caxlsx_rails
6
6
  cocoon (~> 1.2.15)
7
7
  csv-importer (~> 0.8.2)
8
8
  importmap-rails
9
- local_time (~> 2.1.0)
9
+ local_time (~> 3.0.2)
10
10
  pagy (~> 4.11.0)
11
11
  pundit (~> 2.2.0)
12
12
  rails (>= 6.0)
@@ -16,110 +16,127 @@ PATH
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- actioncable (7.0.5.1)
20
- actionpack (= 7.0.5.1)
21
- activesupport (= 7.0.5.1)
19
+ actioncable (7.1.4.1)
20
+ actionpack (= 7.1.4.1)
21
+ activesupport (= 7.1.4.1)
22
22
  nio4r (~> 2.0)
23
23
  websocket-driver (>= 0.6.1)
24
- actionmailbox (7.0.5.1)
25
- actionpack (= 7.0.5.1)
26
- activejob (= 7.0.5.1)
27
- activerecord (= 7.0.5.1)
28
- activestorage (= 7.0.5.1)
29
- activesupport (= 7.0.5.1)
24
+ zeitwerk (~> 2.6)
25
+ actionmailbox (7.1.4.1)
26
+ actionpack (= 7.1.4.1)
27
+ activejob (= 7.1.4.1)
28
+ activerecord (= 7.1.4.1)
29
+ activestorage (= 7.1.4.1)
30
+ activesupport (= 7.1.4.1)
30
31
  mail (>= 2.7.1)
31
32
  net-imap
32
33
  net-pop
33
34
  net-smtp
34
- actionmailer (7.0.5.1)
35
- actionpack (= 7.0.5.1)
36
- actionview (= 7.0.5.1)
37
- activejob (= 7.0.5.1)
38
- activesupport (= 7.0.5.1)
35
+ actionmailer (7.1.4.1)
36
+ actionpack (= 7.1.4.1)
37
+ actionview (= 7.1.4.1)
38
+ activejob (= 7.1.4.1)
39
+ activesupport (= 7.1.4.1)
39
40
  mail (~> 2.5, >= 2.5.4)
40
41
  net-imap
41
42
  net-pop
42
43
  net-smtp
43
- rails-dom-testing (~> 2.0)
44
- actionpack (7.0.5.1)
45
- actionview (= 7.0.5.1)
46
- activesupport (= 7.0.5.1)
47
- rack (~> 2.0, >= 2.2.4)
44
+ rails-dom-testing (~> 2.2)
45
+ actionpack (7.1.4.1)
46
+ actionview (= 7.1.4.1)
47
+ activesupport (= 7.1.4.1)
48
+ nokogiri (>= 1.8.5)
49
+ racc
50
+ rack (>= 2.2.4)
51
+ rack-session (>= 1.0.1)
48
52
  rack-test (>= 0.6.3)
49
- rails-dom-testing (~> 2.0)
50
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
51
- actiontext (7.0.5.1)
52
- actionpack (= 7.0.5.1)
53
- activerecord (= 7.0.5.1)
54
- activestorage (= 7.0.5.1)
55
- activesupport (= 7.0.5.1)
53
+ rails-dom-testing (~> 2.2)
54
+ rails-html-sanitizer (~> 1.6)
55
+ actiontext (7.1.4.1)
56
+ actionpack (= 7.1.4.1)
57
+ activerecord (= 7.1.4.1)
58
+ activestorage (= 7.1.4.1)
59
+ activesupport (= 7.1.4.1)
56
60
  globalid (>= 0.6.0)
57
61
  nokogiri (>= 1.8.5)
58
- actionview (7.0.5.1)
59
- activesupport (= 7.0.5.1)
62
+ actionview (7.1.4.1)
63
+ activesupport (= 7.1.4.1)
60
64
  builder (~> 3.1)
61
- erubi (~> 1.4)
62
- rails-dom-testing (~> 2.0)
63
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
64
- activejob (7.0.5.1)
65
- activesupport (= 7.0.5.1)
65
+ erubi (~> 1.11)
66
+ rails-dom-testing (~> 2.2)
67
+ rails-html-sanitizer (~> 1.6)
68
+ activejob (7.1.4.1)
69
+ activesupport (= 7.1.4.1)
66
70
  globalid (>= 0.3.6)
67
- activemodel (7.0.5.1)
68
- activesupport (= 7.0.5.1)
69
- activerecord (7.0.5.1)
70
- activemodel (= 7.0.5.1)
71
- activesupport (= 7.0.5.1)
72
- activestorage (7.0.5.1)
73
- actionpack (= 7.0.5.1)
74
- activejob (= 7.0.5.1)
75
- activerecord (= 7.0.5.1)
76
- activesupport (= 7.0.5.1)
71
+ activemodel (7.1.4.1)
72
+ activesupport (= 7.1.4.1)
73
+ activerecord (7.1.4.1)
74
+ activemodel (= 7.1.4.1)
75
+ activesupport (= 7.1.4.1)
76
+ timeout (>= 0.4.0)
77
+ activestorage (7.1.4.1)
78
+ actionpack (= 7.1.4.1)
79
+ activejob (= 7.1.4.1)
80
+ activerecord (= 7.1.4.1)
81
+ activesupport (= 7.1.4.1)
77
82
  marcel (~> 1.0)
78
- mini_mime (>= 1.1.0)
79
- activesupport (7.0.5.1)
83
+ activesupport (7.1.4.1)
84
+ base64
85
+ bigdecimal
80
86
  concurrent-ruby (~> 1.0, >= 1.0.2)
87
+ connection_pool (>= 2.2.5)
88
+ drb
81
89
  i18n (>= 1.6, < 2)
82
90
  minitest (>= 5.1)
91
+ mutex_m
83
92
  tzinfo (~> 2.0)
84
93
  ast (2.4.2)
85
94
  axiom-types (0.1.1)
86
95
  descendants_tracker (~> 0.0.4)
87
96
  ice_nine (~> 0.11.0)
88
97
  thread_safe (~> 0.3, >= 0.3.1)
98
+ base64 (0.2.0)
99
+ bigdecimal (3.1.8)
89
100
  builder (3.3.0)
90
101
  caxlsx (4.1.0)
91
102
  htmlentities (~> 4.3, >= 4.3.4)
92
103
  marcel (~> 1.0)
93
104
  nokogiri (~> 1.10, >= 1.10.4)
94
105
  rubyzip (>= 1.3.0, < 3)
95
- caxlsx_rails (0.6.3)
106
+ caxlsx_rails (0.6.4)
96
107
  actionpack (>= 3.1)
97
108
  caxlsx (>= 3.0)
98
109
  cocoon (1.2.15)
99
110
  coercible (1.0.0)
100
111
  descendants_tracker (~> 0.0.1)
101
112
  concurrent-ruby (1.3.4)
113
+ connection_pool (2.4.1)
102
114
  crass (1.0.6)
103
115
  csv-importer (0.8.2)
104
116
  virtus
105
117
  date (3.3.4)
106
118
  descendants_tracker (0.0.4)
107
119
  thread_safe (~> 0.3, >= 0.3.1)
108
- diff-lcs (1.4.4)
109
- erubi (1.12.0)
120
+ diff-lcs (1.5.1)
121
+ drb (2.2.1)
122
+ erubi (1.13.0)
110
123
  globalid (1.2.1)
111
124
  activesupport (>= 6.1)
112
125
  htmlentities (4.3.4)
113
126
  i18n (1.14.6)
114
127
  concurrent-ruby (~> 1.0)
115
128
  ice_nine (0.11.2)
116
- importmap-rails (2.0.1)
129
+ importmap-rails (2.0.3)
117
130
  actionpack (>= 6.0.0)
118
131
  activesupport (>= 6.0.0)
119
132
  railties (>= 6.0.0)
133
+ io-console (0.7.2)
134
+ irb (1.14.1)
135
+ rdoc (>= 4.0.0)
136
+ reline (>= 0.4.2)
120
137
  json (2.7.2)
121
138
  language_server-protocol (3.17.0.3)
122
- local_time (2.1.0)
139
+ local_time (3.0.2)
123
140
  loofah (2.22.0)
124
141
  crass (~> 1.0.2)
125
142
  nokogiri (>= 1.12.0)
@@ -129,11 +146,11 @@ GEM
129
146
  net-pop
130
147
  net-smtp
131
148
  marcel (1.0.4)
132
- method_source (1.1.0)
133
149
  mini_mime (1.1.5)
134
150
  mini_portile2 (2.8.7)
135
151
  minitest (5.25.1)
136
- net-imap (0.4.12)
152
+ mutex_m (0.2.0)
153
+ net-imap (0.4.17)
137
154
  date
138
155
  net-protocol
139
156
  net-pop (0.1.2)
@@ -143,40 +160,47 @@ GEM
143
160
  net-smtp (0.5.0)
144
161
  net-protocol
145
162
  nio4r (2.7.3)
146
- nokogiri (1.16.5)
163
+ nokogiri (1.16.7)
147
164
  mini_portile2 (~> 2.8.2)
148
165
  racc (~> 1.4)
149
- nokogiri (1.16.5-arm64-darwin)
166
+ nokogiri (1.16.7-arm64-darwin)
150
167
  racc (~> 1.4)
151
- nokogiri (1.16.5-x86_64-linux)
168
+ nokogiri (1.16.7-x86_64-linux)
152
169
  racc (~> 1.4)
153
170
  pagy (4.11.0)
154
171
  parallel (1.26.3)
155
172
  parser (3.3.5.0)
156
173
  ast (~> 2.4.1)
157
174
  racc
175
+ psych (5.1.2)
176
+ stringio
158
177
  pundit (2.2.0)
159
178
  activesupport (>= 3.0.0)
160
179
  racc (1.8.1)
161
- rack (2.2.9)
180
+ rack (3.1.8)
162
181
  rack-proxy (0.7.7)
163
182
  rack
183
+ rack-session (2.0.0)
184
+ rack (>= 3.0.0)
164
185
  rack-test (2.1.0)
165
186
  rack (>= 1.3)
166
- rails (7.0.5.1)
167
- actioncable (= 7.0.5.1)
168
- actionmailbox (= 7.0.5.1)
169
- actionmailer (= 7.0.5.1)
170
- actionpack (= 7.0.5.1)
171
- actiontext (= 7.0.5.1)
172
- actionview (= 7.0.5.1)
173
- activejob (= 7.0.5.1)
174
- activemodel (= 7.0.5.1)
175
- activerecord (= 7.0.5.1)
176
- activestorage (= 7.0.5.1)
177
- activesupport (= 7.0.5.1)
187
+ rackup (2.1.0)
188
+ rack (>= 3)
189
+ webrick (~> 1.8)
190
+ rails (7.1.4.1)
191
+ actioncable (= 7.1.4.1)
192
+ actionmailbox (= 7.1.4.1)
193
+ actionmailer (= 7.1.4.1)
194
+ actionpack (= 7.1.4.1)
195
+ actiontext (= 7.1.4.1)
196
+ actionview (= 7.1.4.1)
197
+ activejob (= 7.1.4.1)
198
+ activemodel (= 7.1.4.1)
199
+ activerecord (= 7.1.4.1)
200
+ activestorage (= 7.1.4.1)
201
+ activesupport (= 7.1.4.1)
178
202
  bundler (>= 1.15.0)
179
- railties (= 7.0.5.1)
203
+ railties (= 7.1.4.1)
180
204
  rails-dom-testing (2.2.0)
181
205
  activesupport (>= 5.0.0)
182
206
  minitest
@@ -184,30 +208,35 @@ GEM
184
208
  rails-html-sanitizer (1.6.0)
185
209
  loofah (~> 2.21)
186
210
  nokogiri (~> 1.14)
187
- railties (7.0.5.1)
188
- actionpack (= 7.0.5.1)
189
- activesupport (= 7.0.5.1)
190
- method_source
211
+ railties (7.1.4.1)
212
+ actionpack (= 7.1.4.1)
213
+ activesupport (= 7.1.4.1)
214
+ irb
215
+ rackup (>= 1.0.0)
191
216
  rake (>= 12.2)
192
- thor (~> 1.0)
193
- zeitwerk (~> 2.5)
217
+ thor (~> 1.0, >= 1.2.2)
218
+ zeitwerk (~> 2.6)
194
219
  rainbow (3.1.1)
195
220
  rake (12.3.3)
221
+ rdoc (6.7.0)
222
+ psych (>= 4.0.0)
196
223
  regexp_parser (2.9.2)
197
- rspec (3.10.0)
198
- rspec-core (~> 3.10.0)
199
- rspec-expectations (~> 3.10.0)
200
- rspec-mocks (~> 3.10.0)
201
- rspec-core (3.10.1)
202
- rspec-support (~> 3.10.0)
203
- rspec-expectations (3.10.1)
224
+ reline (0.5.10)
225
+ io-console (~> 0.5)
226
+ rspec (3.13.0)
227
+ rspec-core (~> 3.13.0)
228
+ rspec-expectations (~> 3.13.0)
229
+ rspec-mocks (~> 3.13.0)
230
+ rspec-core (3.13.2)
231
+ rspec-support (~> 3.13.0)
232
+ rspec-expectations (3.13.3)
204
233
  diff-lcs (>= 1.2.0, < 2.0)
205
- rspec-support (~> 3.10.0)
206
- rspec-mocks (3.10.2)
234
+ rspec-support (~> 3.13.0)
235
+ rspec-mocks (3.13.2)
207
236
  diff-lcs (>= 1.2.0, < 2.0)
208
- rspec-support (~> 3.10.0)
209
- rspec-support (3.10.2)
210
- rubocop (1.66.1)
237
+ rspec-support (~> 3.13.0)
238
+ rspec-support (3.13.1)
239
+ rubocop (1.67.0)
211
240
  json (~> 2.3)
212
241
  language_server-protocol (>= 3.17.0)
213
242
  parallel (~> 1.10)
@@ -219,7 +248,7 @@ GEM
219
248
  unicode-display_width (>= 2.4.0, < 3.0)
220
249
  rubocop-ast (1.32.3)
221
250
  parser (>= 3.3.1.0)
222
- rubocop-performance (1.21.1)
251
+ rubocop-performance (1.22.1)
223
252
  rubocop (>= 1.48.1, < 2.0)
224
253
  rubocop-ast (>= 1.31.1, < 2.0)
225
254
  rubocop-rails (2.26.2)
@@ -233,10 +262,11 @@ GEM
233
262
  slim (4.1.0)
234
263
  temple (>= 0.7.6, < 0.9)
235
264
  tilt (>= 2.0.6, < 2.1)
265
+ stringio (3.1.1)
236
266
  temple (0.8.2)
237
- thor (1.3.1)
267
+ thor (1.3.2)
238
268
  thread_safe (0.3.6)
239
- tilt (2.0.10)
269
+ tilt (2.0.11)
240
270
  timeout (0.4.1)
241
271
  tzinfo (2.0.6)
242
272
  concurrent-ruby (~> 1.0)
@@ -250,10 +280,11 @@ GEM
250
280
  rack-proxy (>= 0.6.1)
251
281
  railties (>= 5.2)
252
282
  semantic_range (>= 2.3.0)
283
+ webrick (1.8.2)
253
284
  websocket-driver (0.7.6)
254
285
  websocket-extensions (>= 0.1.0)
255
286
  websocket-extensions (0.1.5)
256
- zeitwerk (2.6.15)
287
+ zeitwerk (2.6.18)
257
288
 
258
289
  PLATFORMS
259
290
  arm64-darwin-20
@@ -18,6 +18,7 @@ import "flatpickr";
18
18
  import "trix";
19
19
  import "@rails/actiontext";
20
20
  import Select2 from "select2";
21
+ import LocalTime from "local-time"
21
22
  Select2();
22
23
 
23
24
  // import '@nathanvda/cocoon'
@@ -36,7 +37,10 @@ document.addEventListener("turbo:load", function () {
36
37
  $(".select-2").select2({
37
38
  theme: "bootstrap-5",
38
39
  });
40
+ LocalTime.start()
41
+
39
42
  setup_select_2_ajax();
43
+
40
44
  const bsToast = $('[data-behaviour="toast"]')[0];
41
45
  if (bsToast) {
42
46
  const toast = new bootstrap.Toast(bsToast);
@@ -245,4 +245,6 @@ export function initializeComponents() {
245
245
  var headerElemHeight = $(".page-top-bar").height() + 64;
246
246
  var calculatedHeight = "calc(100vh - " + headerElemHeight + "px" + ")";
247
247
  $(".table-wrapper").css("maxHeight", calculatedHeight);
248
+
249
+ LocalTime.start()
248
250
  }
data/cm_admin.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_runtime_dependency 'caxlsx_rails'
32
32
  spec.add_runtime_dependency 'cocoon', '~> 1.2.15'
33
33
  spec.add_runtime_dependency 'csv-importer', '~> 0.8.2'
34
- spec.add_runtime_dependency 'local_time', '~> 2.1.0'
34
+ spec.add_runtime_dependency 'local_time', '~> 3.0.2'
35
35
  spec.add_runtime_dependency 'pagy', '~> 4.11.0'
36
36
  spec.add_runtime_dependency 'pundit', '~> 2.2.0'
37
37
  spec.add_runtime_dependency('rails', '>= 6.0')
data/config/importmap.rb CHANGED
@@ -9,3 +9,4 @@ pin '@rails/actiontext', to: 'https://ga.jspm.io/npm:@rails/actiontext@7.1.3-4/a
9
9
  pin 'daterangepicker', to: 'https://ga.jspm.io/npm:daterangepicker@3.1.0/daterangepicker.js'
10
10
  pin '@nathanvda/cocoon', to: 'https://ga.jspm.io/npm:@nathanvda/cocoon@1.2.14/cocoon.js'
11
11
  pin 'select2', to: 'https://ga.jspm.io/npm:select2@4.1.0-rc.0/dist/js/select2.js'
12
+ pin "local-time" # @3.0.2
@@ -1,3 +1,3 @@
1
1
  module CmAdmin
2
- VERSION = '3.0.1'
2
+ VERSION = '3.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cm-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: exe
16
16
  cert_chain: []
17
- date: 2024-10-22 00:00:00.000000000 Z
17
+ date: 2024-10-23 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: caxlsx_rails
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: 2.1.0
67
+ version: 3.0.2
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: 2.1.0
74
+ version: 3.0.2
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: pagy
77
77
  requirement: !ruby/object:Gem::Requirement