activeadmin-async_panel 0.2.4 → 0.3.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: 1de7dc1392bab5f26eeeb20bc8ad71f5be255b52d4bb9f7df693b21c90d8b8bc
4
- data.tar.gz: da2fc1afcfe72ac62136f80a8d4e177af353f69eb78163e80b476ea0c96bf76c
3
+ metadata.gz: 814391c3ccd4a39908474ecdfbb2c998aee4fa3af7d3c6de5d28bdb1b1bb7f97
4
+ data.tar.gz: f830e3938c42d6e3e32c093736994e6cc662d3790a127bb059f21e1bce319330
5
5
  SHA512:
6
- metadata.gz: fcce241dec8e39f2c99c84757dacf4c44fc51a93d97b49ce4dc3b369fbabea55df653d3675571aaffb80a917c08fdfcbb2fc805667385d2d908905b844d03c1b
7
- data.tar.gz: 3b2b5447fbb9a758d5ab3b6e7510e4e507dea92befb43c88aff4d348262c8f713b763b1dbe2dbbae2724835e9e165a53e8f6386ed87d3bad68c5a133606fdd82
6
+ metadata.gz: 555880259651982b866f29a8189cf90814c08b8a0e3f240a7eee77188279a78de3b8a4194f81de5c2c9cc4628273c52a650568ebb7f10dc7c850b6a53612b7bf
7
+ data.tar.gz: 5113ba295ed63527b949d7e2ce053384800530c988de8d9ec2d2ba4f0ff6ce14280a0069cb81330e293d0c3e7104b10ea25a69498dd85410807f29034432b239
@@ -0,0 +1,29 @@
1
+ name: Tests
2
+ on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+ branches:
8
+ - master
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ ruby-version: ['2.7', '3.0', '3.1']
18
+
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby ${{ matrix.ruby-version }}
22
+ uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
23
+ with:
24
+ ruby-version: ${{ matrix.ruby-version }}
25
+ bundler-cache: true
26
+
27
+ - run: bundle install --retry=3
28
+ - run: 'bundle exec rake dummy:prepare'
29
+ - run: bundle exec rspec
data/.gitignore CHANGED
@@ -11,3 +11,4 @@
11
11
  /spec/dummy/log/*.log
12
12
  /tmp/
13
13
  *.sqlite3
14
+ .DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.2
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem 'rails', '>= 4.2.11'
7
+ gem 'sprockets-rails'
8
+ gem 'listen'
data/Gemfile.lock CHANGED
@@ -1,257 +1,325 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-async_panel (0.2.4)
4
+ activeadmin-async_panel (0.3.0)
5
5
  activeadmin (>= 1.0)
6
6
  coffee-rails (>= 4.1)
7
+ rails (>= 7.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
11
- actionmailer (4.2.11)
12
- actionpack (= 4.2.11)
13
- actionview (= 4.2.11)
14
- activejob (= 4.2.11)
12
+ actioncable (7.0.4.3)
13
+ actionpack (= 7.0.4.3)
14
+ activesupport (= 7.0.4.3)
15
+ nio4r (~> 2.0)
16
+ websocket-driver (>= 0.6.1)
17
+ actionmailbox (7.0.4.3)
18
+ actionpack (= 7.0.4.3)
19
+ activejob (= 7.0.4.3)
20
+ activerecord (= 7.0.4.3)
21
+ activestorage (= 7.0.4.3)
22
+ activesupport (= 7.0.4.3)
23
+ mail (>= 2.7.1)
24
+ net-imap
25
+ net-pop
26
+ net-smtp
27
+ actionmailer (7.0.4.3)
28
+ actionpack (= 7.0.4.3)
29
+ actionview (= 7.0.4.3)
30
+ activejob (= 7.0.4.3)
31
+ activesupport (= 7.0.4.3)
15
32
  mail (~> 2.5, >= 2.5.4)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.11)
18
- actionview (= 4.2.11)
19
- activesupport (= 4.2.11)
20
- rack (~> 1.6)
21
- rack-test (~> 0.6.2)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.11)
25
- activesupport (= 4.2.11)
33
+ net-imap
34
+ net-pop
35
+ net-smtp
36
+ rails-dom-testing (~> 2.0)
37
+ actionpack (7.0.4.3)
38
+ actionview (= 7.0.4.3)
39
+ activesupport (= 7.0.4.3)
40
+ rack (~> 2.0, >= 2.2.0)
41
+ rack-test (>= 0.6.3)
42
+ rails-dom-testing (~> 2.0)
43
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
44
+ actiontext (7.0.4.3)
45
+ actionpack (= 7.0.4.3)
46
+ activerecord (= 7.0.4.3)
47
+ activestorage (= 7.0.4.3)
48
+ activesupport (= 7.0.4.3)
49
+ globalid (>= 0.6.0)
50
+ nokogiri (>= 1.8.5)
51
+ actionview (7.0.4.3)
52
+ activesupport (= 7.0.4.3)
26
53
  builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
30
- activeadmin (1.4.3)
31
- arbre (>= 1.1.1)
32
- coffee-rails
33
- formtastic (~> 3.1)
34
- formtastic_i18n
35
- inherited_resources (>= 1.9.0)
36
- jquery-rails (>= 4.2.0)
37
- kaminari (>= 0.15)
38
- railties (>= 4.2, < 5.3)
39
- ransack (>= 1.8.7)
40
- sass (~> 3.1)
41
- sprockets (< 4.1)
42
- activejob (4.2.11)
43
- activesupport (= 4.2.11)
44
- globalid (>= 0.3.0)
45
- activemodel (4.2.11)
46
- activesupport (= 4.2.11)
47
- builder (~> 3.1)
48
- activerecord (4.2.11)
49
- activemodel (= 4.2.11)
50
- activesupport (= 4.2.11)
51
- arel (~> 6.0)
52
- activesupport (4.2.11)
53
- i18n (~> 0.7)
54
- minitest (~> 5.1)
55
- thread_safe (~> 0.3, >= 0.3.4)
56
- tzinfo (~> 1.1)
57
- addressable (2.4.0)
58
- arbre (1.2.1)
59
- activesupport (>= 3.0.0)
60
- arel (6.0.4)
61
- builder (3.2.3)
62
- capybara (2.7.1)
54
+ erubi (~> 1.4)
55
+ rails-dom-testing (~> 2.0)
56
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
+ activeadmin (2.13.1)
58
+ arbre (~> 1.2, >= 1.2.1)
59
+ formtastic (>= 3.1, < 5.0)
60
+ formtastic_i18n (~> 0.4)
61
+ inherited_resources (~> 1.7)
62
+ jquery-rails (~> 4.2)
63
+ kaminari (~> 1.0, >= 1.2.1)
64
+ railties (>= 6.1, < 7.1)
65
+ ransack (>= 2.1.1, < 4)
66
+ activejob (7.0.4.3)
67
+ activesupport (= 7.0.4.3)
68
+ globalid (>= 0.3.6)
69
+ activemodel (7.0.4.3)
70
+ activesupport (= 7.0.4.3)
71
+ activerecord (7.0.4.3)
72
+ activemodel (= 7.0.4.3)
73
+ activesupport (= 7.0.4.3)
74
+ activestorage (7.0.4.3)
75
+ actionpack (= 7.0.4.3)
76
+ activejob (= 7.0.4.3)
77
+ activerecord (= 7.0.4.3)
78
+ activesupport (= 7.0.4.3)
79
+ marcel (~> 1.0)
80
+ mini_mime (>= 1.1.0)
81
+ activesupport (7.0.4.3)
82
+ concurrent-ruby (~> 1.0, >= 1.0.2)
83
+ i18n (>= 1.6, < 2)
84
+ minitest (>= 5.1)
85
+ tzinfo (~> 2.0)
86
+ addressable (2.8.4)
87
+ public_suffix (>= 2.0.2, < 6.0)
88
+ arbre (1.5.0)
89
+ activesupport (>= 3.0.0, < 7.1)
90
+ ruby2_keywords (>= 0.0.2, < 1.0)
91
+ builder (3.2.4)
92
+ capybara (3.39.0)
63
93
  addressable
64
- mime-types (>= 1.16)
65
- nokogiri (>= 1.3.3)
66
- rack (>= 1.0.0)
67
- rack-test (>= 0.5.4)
68
- xpath (~> 2.0)
94
+ matrix
95
+ mini_mime (>= 0.1.3)
96
+ nokogiri (~> 1.8)
97
+ rack (>= 1.6.0)
98
+ rack-test (>= 0.6.3)
99
+ regexp_parser (>= 1.5, < 3.0)
100
+ xpath (~> 3.2)
69
101
  cliver (0.3.2)
70
102
  codeclimate-test-reporter (0.4.8)
71
103
  simplecov (>= 0.7.1, < 1.0.0)
72
- coffee-rails (4.2.2)
104
+ coffee-rails (5.0.0)
73
105
  coffee-script (>= 2.2.0)
74
- railties (>= 4.0.0)
106
+ railties (>= 5.2.0)
75
107
  coffee-script (2.4.1)
76
108
  coffee-script-source
77
109
  execjs
78
110
  coffee-script-source (1.12.2)
79
- concurrent-ruby (1.1.4)
80
- crass (1.0.5)
81
- database_cleaner (1.5.3)
82
- diff-lcs (1.2.5)
83
- docile (1.1.5)
84
- erubis (2.7.0)
85
- execjs (2.7.0)
111
+ concurrent-ruby (1.2.2)
112
+ crass (1.0.6)
113
+ database_cleaner (1.99.0)
114
+ date (3.3.3)
115
+ diff-lcs (1.3)
116
+ docile (1.4.0)
117
+ erubi (1.12.0)
118
+ execjs (2.8.1)
86
119
  factory_girl (4.5.0)
87
120
  activesupport (>= 3.0.0)
88
121
  factory_girl_rails (4.5.0)
89
122
  factory_girl (~> 4.5.0)
90
123
  railties (>= 3.0.0)
91
- ffi (1.11.2)
92
- formtastic (3.1.5)
93
- actionpack (>= 3.2.13)
94
- formtastic_i18n (0.6.0)
95
- globalid (0.4.2)
96
- activesupport (>= 4.2.0)
97
- has_scope (0.7.2)
98
- actionpack (>= 4.1)
99
- activesupport (>= 4.1)
100
- i18n (0.9.5)
124
+ ffi (1.15.5)
125
+ formtastic (4.0.0)
126
+ actionpack (>= 5.2.0)
127
+ formtastic_i18n (0.7.0)
128
+ globalid (1.1.0)
129
+ activesupport (>= 5.0)
130
+ has_scope (0.8.1)
131
+ actionpack (>= 5.2)
132
+ activesupport (>= 5.2)
133
+ i18n (1.13.0)
101
134
  concurrent-ruby (~> 1.0)
102
- inherited_resources (1.9.0)
103
- actionpack (>= 4.2, < 5.3)
135
+ inherited_resources (1.13.1)
136
+ actionpack (>= 5.2, < 7.1)
104
137
  has_scope (~> 0.6)
105
- railties (>= 4.2, < 5.3)
106
- responders
107
- jquery-rails (4.3.5)
138
+ railties (>= 5.2, < 7.1)
139
+ responders (>= 2, < 4)
140
+ jquery-rails (4.5.1)
108
141
  rails-dom-testing (>= 1, < 3)
109
142
  railties (>= 4.2.0)
110
143
  thor (>= 0.14, < 2.0)
111
144
  jquery-ui-rails (5.0.5)
112
145
  railties (>= 3.2.16)
113
- json (1.8.6)
114
- kaminari (1.1.1)
146
+ kaminari (1.2.2)
115
147
  activesupport (>= 4.1.0)
116
- kaminari-actionview (= 1.1.1)
117
- kaminari-activerecord (= 1.1.1)
118
- kaminari-core (= 1.1.1)
119
- kaminari-actionview (1.1.1)
148
+ kaminari-actionview (= 1.2.2)
149
+ kaminari-activerecord (= 1.2.2)
150
+ kaminari-core (= 1.2.2)
151
+ kaminari-actionview (1.2.2)
120
152
  actionview
121
- kaminari-core (= 1.1.1)
122
- kaminari-activerecord (1.1.1)
153
+ kaminari-core (= 1.2.2)
154
+ kaminari-activerecord (1.2.2)
123
155
  activerecord
124
- kaminari-core (= 1.1.1)
125
- kaminari-core (1.1.1)
156
+ kaminari-core (= 1.2.2)
157
+ kaminari-core (1.2.2)
126
158
  launchy (2.4.3)
127
159
  addressable (~> 2.3)
128
- loofah (2.3.1)
160
+ listen (3.8.0)
161
+ rb-fsevent (~> 0.10, >= 0.10.3)
162
+ rb-inotify (~> 0.9, >= 0.9.10)
163
+ loofah (2.20.0)
129
164
  crass (~> 1.0.2)
130
165
  nokogiri (>= 1.5.9)
131
- mail (2.7.1)
166
+ mail (2.8.1)
132
167
  mini_mime (>= 0.1.1)
133
- mime-types (2.99.1)
134
- mini_mime (1.0.1)
135
- mini_portile2 (2.4.0)
136
- minitest (5.11.3)
137
- nokogiri (1.10.5)
138
- mini_portile2 (~> 2.4.0)
168
+ net-imap
169
+ net-pop
170
+ net-smtp
171
+ marcel (1.0.2)
172
+ matrix (0.4.2)
173
+ method_source (1.0.0)
174
+ mini_mime (1.1.2)
175
+ mini_portile2 (2.8.2)
176
+ minitest (5.18.0)
177
+ net-imap (0.3.4)
178
+ date
179
+ net-protocol
180
+ net-pop (0.1.2)
181
+ net-protocol
182
+ net-protocol (0.2.1)
183
+ timeout
184
+ net-smtp (0.3.3)
185
+ net-protocol
186
+ nio4r (2.5.9)
187
+ nokogiri (1.14.3)
188
+ mini_portile2 (~> 2.8.0)
189
+ racc (~> 1.4)
139
190
  phantomjs (2.1.1.0)
140
- poltergeist (1.10.0)
141
- capybara (~> 2.1)
191
+ poltergeist (1.18.1)
192
+ capybara (>= 2.1, < 4)
142
193
  cliver (~> 0.3.1)
143
194
  websocket-driver (>= 0.2.0)
144
- rack (1.6.11)
145
- rack-test (0.6.3)
146
- rack (>= 1.0)
147
- rails (4.2.11)
148
- actionmailer (= 4.2.11)
149
- actionpack (= 4.2.11)
150
- actionview (= 4.2.11)
151
- activejob (= 4.2.11)
152
- activemodel (= 4.2.11)
153
- activerecord (= 4.2.11)
154
- activesupport (= 4.2.11)
155
- bundler (>= 1.3.0, < 2.0)
156
- railties (= 4.2.11)
157
- sprockets-rails
158
- rails-deprecated_sanitizer (1.0.3)
159
- activesupport (>= 4.2.0.alpha)
160
- rails-dom-testing (1.0.9)
161
- activesupport (>= 4.2.0, < 5.0)
162
- nokogiri (~> 1.6)
163
- rails-deprecated_sanitizer (>= 1.0.1)
164
- rails-html-sanitizer (1.0.4)
165
- loofah (~> 2.2, >= 2.2.2)
166
- railties (4.2.11)
167
- actionpack (= 4.2.11)
168
- activesupport (= 4.2.11)
169
- rake (>= 0.8.7)
170
- thor (>= 0.18.1, < 2.0)
171
- rake (10.5.0)
172
- ransack (1.8.10)
173
- actionpack (>= 3.0, < 5.2)
174
- activerecord (>= 3.0, < 5.2)
175
- activesupport (>= 3.0, < 5.2)
195
+ public_suffix (5.0.1)
196
+ racc (1.6.2)
197
+ rack (2.2.7)
198
+ rack-test (2.1.0)
199
+ rack (>= 1.3)
200
+ rails (7.0.4.3)
201
+ actioncable (= 7.0.4.3)
202
+ actionmailbox (= 7.0.4.3)
203
+ actionmailer (= 7.0.4.3)
204
+ actionpack (= 7.0.4.3)
205
+ actiontext (= 7.0.4.3)
206
+ actionview (= 7.0.4.3)
207
+ activejob (= 7.0.4.3)
208
+ activemodel (= 7.0.4.3)
209
+ activerecord (= 7.0.4.3)
210
+ activestorage (= 7.0.4.3)
211
+ activesupport (= 7.0.4.3)
212
+ bundler (>= 1.15.0)
213
+ railties (= 7.0.4.3)
214
+ rails-dom-testing (2.0.3)
215
+ activesupport (>= 4.2.0)
216
+ nokogiri (>= 1.6)
217
+ rails-html-sanitizer (1.5.0)
218
+ loofah (~> 2.19, >= 2.19.1)
219
+ railties (7.0.4.3)
220
+ actionpack (= 7.0.4.3)
221
+ activesupport (= 7.0.4.3)
222
+ method_source
223
+ rake (>= 12.2)
224
+ thor (~> 1.0)
225
+ zeitwerk (~> 2.5)
226
+ rake (12.3.3)
227
+ ransack (3.2.1)
228
+ activerecord (>= 6.1.5)
229
+ activesupport (>= 6.1.5)
176
230
  i18n
177
- rb-fsevent (0.10.3)
178
- rb-inotify (0.10.0)
231
+ rb-fsevent (0.11.2)
232
+ rb-inotify (0.10.1)
179
233
  ffi (~> 1.0)
180
- responders (2.4.1)
181
- actionpack (>= 4.2.0, < 6.0)
182
- railties (>= 4.2.0, < 6.0)
183
- rspec (3.3.0)
184
- rspec-core (~> 3.3.0)
185
- rspec-expectations (~> 3.3.0)
186
- rspec-mocks (~> 3.3.0)
187
- rspec-core (3.3.2)
188
- rspec-support (~> 3.3.0)
189
- rspec-expectations (3.3.1)
234
+ regexp_parser (2.8.0)
235
+ responders (3.1.0)
236
+ actionpack (>= 5.2)
237
+ railties (>= 5.2)
238
+ rspec (3.9.0)
239
+ rspec-core (~> 3.9.0)
240
+ rspec-expectations (~> 3.9.0)
241
+ rspec-mocks (~> 3.9.0)
242
+ rspec-core (3.9.1)
243
+ rspec-support (~> 3.9.1)
244
+ rspec-expectations (3.9.1)
190
245
  diff-lcs (>= 1.2.0, < 2.0)
191
- rspec-support (~> 3.3.0)
192
- rspec-mocks (3.3.2)
246
+ rspec-support (~> 3.9.0)
247
+ rspec-mocks (3.9.1)
193
248
  diff-lcs (>= 1.2.0, < 2.0)
194
- rspec-support (~> 3.3.0)
195
- rspec-rails (3.3.3)
196
- actionpack (>= 3.0, < 4.3)
197
- activesupport (>= 3.0, < 4.3)
198
- railties (>= 3.0, < 4.3)
199
- rspec-core (~> 3.3.0)
200
- rspec-expectations (~> 3.3.0)
201
- rspec-mocks (~> 3.3.0)
202
- rspec-support (~> 3.3.0)
203
- rspec-support (3.3.0)
204
- sass (3.7.4)
205
- sass-listen (~> 4.0.0)
206
- sass-listen (4.0.0)
207
- rb-fsevent (~> 0.9, >= 0.9.4)
208
- rb-inotify (~> 0.9, >= 0.9.7)
209
- simplecov (0.11.1)
210
- docile (~> 1.1.0)
211
- json (~> 1.8)
212
- simplecov-html (~> 0.10.0)
213
- simplecov-html (0.10.0)
214
- sprockets (3.7.2)
249
+ rspec-support (~> 3.9.0)
250
+ rspec-rails (3.9.1)
251
+ actionpack (>= 3.0)
252
+ activesupport (>= 3.0)
253
+ railties (>= 3.0)
254
+ rspec-core (~> 3.9.0)
255
+ rspec-expectations (~> 3.9.0)
256
+ rspec-mocks (~> 3.9.0)
257
+ rspec-support (~> 3.9.0)
258
+ rspec-support (3.9.2)
259
+ ruby2_keywords (0.0.5)
260
+ sassc (2.4.0)
261
+ ffi (~> 1.9)
262
+ sassc-rails (2.1.2)
263
+ railties (>= 4.0.0)
264
+ sassc (>= 2.0)
265
+ sprockets (> 3.0)
266
+ sprockets-rails
267
+ tilt
268
+ simplecov (0.22.0)
269
+ docile (~> 1.1)
270
+ simplecov-html (~> 0.11)
271
+ simplecov_json_formatter (~> 0.1)
272
+ simplecov-html (0.12.3)
273
+ simplecov_json_formatter (0.1.4)
274
+ sprockets (4.2.0)
215
275
  concurrent-ruby (~> 1.0)
216
- rack (> 1, < 3)
217
- sprockets-rails (3.2.1)
218
- actionpack (>= 4.0)
219
- activesupport (>= 4.0)
276
+ rack (>= 2.2.4, < 4)
277
+ sprockets-rails (3.4.2)
278
+ actionpack (>= 5.2)
279
+ activesupport (>= 5.2)
220
280
  sprockets (>= 3.0.0)
221
- sqlite3 (1.3.11)
281
+ sqlite3 (1.6.2)
282
+ mini_portile2 (~> 2.8.0)
222
283
  temping (3.3.0)
223
284
  activerecord (>= 3.1)
224
285
  activesupport (>= 3.1)
225
- thor (0.20.3)
226
- thread_safe (0.3.6)
227
- tzinfo (1.2.5)
228
- thread_safe (~> 0.1)
229
- websocket-driver (0.6.4)
286
+ thor (1.2.1)
287
+ tilt (2.0.10)
288
+ timeout (0.3.2)
289
+ tzinfo (2.0.6)
290
+ concurrent-ruby (~> 1.0)
291
+ webrick (1.8.1)
292
+ websocket-driver (0.7.5)
230
293
  websocket-extensions (>= 0.1.0)
231
- websocket-extensions (0.1.2)
232
- xpath (2.0.0)
233
- nokogiri (~> 1.3)
294
+ websocket-extensions (0.1.5)
295
+ xpath (3.2.0)
296
+ nokogiri (~> 1.8)
297
+ zeitwerk (2.6.8)
234
298
 
235
299
  PLATFORMS
236
300
  ruby
237
301
 
238
302
  DEPENDENCIES
239
303
  activeadmin-async_panel!
240
- bundler (~> 1.10)
241
- capybara (~> 2.1)
304
+ bundler (~> 2.1)
305
+ capybara (~> 3.39)
242
306
  codeclimate-test-reporter (~> 0.4)
243
- database_cleaner (~> 1.5.0)
307
+ database_cleaner (~> 1.5)
244
308
  factory_girl_rails
245
309
  jquery-ui-rails (~> 5.0.5)
246
310
  launchy (~> 2.4.3)
311
+ listen
247
312
  phantomjs (~> 2.1.1)
248
- poltergeist (~> 1.10.0)
313
+ poltergeist
249
314
  rails (>= 4.2.11)
250
- rake (~> 10.0)
251
- rspec (~> 3.3, >= 3.3.0)
252
- rspec-rails (~> 3.3)
253
- sqlite3 (~> 1.3, >= 1.3.11)
315
+ rake (~> 12.3)
316
+ rspec (~> 3.9, >= 3.3.0)
317
+ rspec-rails (~> 3.9)
318
+ sassc-rails
319
+ sprockets-rails
320
+ sqlite3 (~> 1.4)
254
321
  temping (~> 3.3, >= 3.3.0)
322
+ webrick
255
323
 
256
324
  BUNDLED WITH
257
- 1.17.2
325
+ 2.2.15
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/activeadmin-async_panel.svg)](https://badge.fury.io/rb/activeadmin-async_panel)
2
- [![Build Status](https://travis-ci.org/holyketzer/activeadmin-async_panel.svg?branch=master)](https://travis-ci.org/holyketzer/activeadmin-async_panel)
2
+ [![Build Status](https://github.com/holyketzer/activeadmin-async_panel/actions/workflows/main.yaml/badge.svg)](https://github.com/holyketzer/activeadmin-async_panel/actions)
3
3
  [![Code Climate](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/badges/gpa.svg)](https://codeclimate.com/github/holyketzer/activeadmin-async_panel)
4
- [![Test Coverage](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/badges/coverage.svg)](https://codeclimate.com/github/holyketzer/activeadmin-async_panel/coverage)
5
4
 
6
5
  # ActiveAdmin::AsyncPanel
7
6
 
@@ -11,6 +10,9 @@ This gem allows you to create ActiveAdmin panels with content loaded dynamically
11
10
 
12
11
  ## Prerequisites
13
12
 
13
+ Minimum Ruby version `2.7`
14
+ Rails 7
15
+
14
16
  This extension assumes that you're using [Active Admin](https://github.com/activeadmin/activeadmin)
15
17
 
16
18
  ## Installation
@@ -31,10 +33,10 @@ Or install it yourself as:
31
33
 
32
34
  ## Usage
33
35
 
34
- Include this line in your JavaScript code (active_admin.js.coffee)
36
+ Include this line in your JavaScript code (active_admin.js)
35
37
 
36
- ```coffeescript
37
- #= require activeadmin-async_panel
38
+ ```js
39
+ //= require activeadmin-async_panel
38
40
  ```
39
41
 
40
42
  Include this line in your CSS code (active_admin.scss)
@@ -59,7 +61,7 @@ If you set `data-clickable` to a truthy value, the panel will not be loaded upon
59
61
  panel 'Name', class: 'async-panel', 'data-url' => some_action_admin_resources_path, 'data-clickable' => 1
60
62
  ```
61
63
 
62
- ### Step 2. Define action
64
+ ### Step 2. Define action
63
65
 
64
66
  Define `member_action` or `collection_action` to handle request specified by path helper
65
67
 
@@ -70,7 +72,7 @@ collection_action :some_action do
70
72
  end
71
73
  ```
72
74
 
73
- ### Step 3. Define view
75
+ ### Step 3. Define view
74
76
 
75
77
  Define you view template to render action above in file `views/admin/resources/some_action.html.arb`can also be (slim, erb), for e.g. `arb` template:
76
78
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.name = 'activeadmin-async_panel'
8
8
  gem.version = ActiveAdmin::AsyncPanel::VERSION
9
9
  gem.authors = ['Alex Emelyanov']
10
- gem.email = ['aemelyanov@spbtv.com']
10
+ gem.email = ['holyketzer@gmail.com']
11
11
 
12
12
  gem.summary = 'AJAX-powered async panels for ActiveAdmin'
13
13
  gem.description = 'Allows to define special attributes for ActiveAdmin panel to make it AJAX loadable and auto-updatable'
@@ -20,19 +20,22 @@ Gem::Specification.new do |gem|
20
20
  gem.require_paths = ['lib']
21
21
 
22
22
  gem.add_dependency 'activeadmin', '>= 1.0'
23
+ gem.add_dependency 'rails', '>= 7.0'
23
24
  gem.add_dependency 'coffee-rails', '>= 4.1'
24
- gem.add_development_dependency 'bundler', '~> 1.10'
25
- gem.add_development_dependency 'rake', '~> 10.0'
26
- gem.add_development_dependency 'rspec', '~> 3.3', '>= 3.3.0'
27
- gem.add_development_dependency 'rspec-rails', '~> 3.3'
25
+ gem.add_development_dependency 'sassc-rails'
26
+ gem.add_development_dependency 'bundler', '~> 2.1'
27
+ gem.add_development_dependency 'rake', '~> 12.3'
28
+ gem.add_development_dependency 'rspec', '~> 3.9', '>= 3.3.0'
29
+ gem.add_development_dependency 'rspec-rails', '~> 3.9'
28
30
  gem.add_development_dependency 'factory_girl_rails'
29
- gem.add_development_dependency 'sqlite3', '~> 1.3', '>= 1.3.11'
31
+ gem.add_development_dependency 'sqlite3', '~> 1.4'
30
32
  gem.add_development_dependency 'temping', '~> 3.3', '>= 3.3.0'
31
33
  gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
32
- gem.add_development_dependency 'capybara', '~> 2.1'
34
+ gem.add_development_dependency 'capybara', '~> 3.39'
33
35
  gem.add_development_dependency 'phantomjs', '~> 2.1.1'
34
- gem.add_development_dependency 'poltergeist', '~> 1.10.0'
35
- gem.add_development_dependency 'database_cleaner', '~> 1.5.0'
36
+ gem.add_development_dependency 'database_cleaner', '~> 1.5'
36
37
  gem.add_development_dependency 'launchy', '~> 2.4.3'
37
38
  gem.add_development_dependency 'jquery-ui-rails', '~> 5.0.5'
39
+ gem.add_development_dependency 'poltergeist'
40
+ gem.add_development_dependency 'webrick'
38
41
  end
@@ -16,7 +16,7 @@
16
16
  # column :calue2
17
17
  # end
18
18
 
19
- $ ->
19
+ setAsyncPanelHook = ->
20
20
  $('.async-panel').each (index, item) ->
21
21
  item = $(item)
22
22
  requiresClick = !!item.data('clickable')
@@ -41,9 +41,17 @@ $ ->
41
41
  registerHandler = ->
42
42
  item.addClass('clickable')
43
43
  $('h3', item).on 'click', ->
44
+ $('h3', item).off('click')
45
+ item.removeClass('clickable')
44
46
  worker()
45
47
 
46
48
  if requiresClick
47
49
  registerHandler()
48
50
  else
49
51
  worker()
52
+
53
+ $ ->
54
+ setAsyncPanelHook()
55
+
56
+ $(document).on "page:load turbolinks:load turbo:load", ->
57
+ setAsyncPanelHook()
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module AsyncPanel
3
- VERSION = '0.2.4'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-async_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Emelyanov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2023-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '7.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: coffee-rails
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -38,68 +52,82 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '4.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sassc-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: bundler
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '1.10'
75
+ version: '2.1'
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '1.10'
82
+ version: '2.1'
55
83
  - !ruby/object:Gem::Dependency
56
84
  name: rake
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '10.0'
89
+ version: '12.3'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '10.0'
96
+ version: '12.3'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: rspec
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.9'
73
104
  - - ">="
74
105
  - !ruby/object:Gem::Version
75
106
  version: 3.3.0
76
- - - "~>"
77
- - !ruby/object:Gem::Version
78
- version: '3.3'
79
107
  type: :development
80
108
  prerelease: false
81
109
  version_requirements: !ruby/object:Gem::Requirement
82
110
  requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '3.9'
83
114
  - - ">="
84
115
  - !ruby/object:Gem::Version
85
116
  version: 3.3.0
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '3.3'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rspec-rails
91
119
  requirement: !ruby/object:Gem::Requirement
92
120
  requirements:
93
121
  - - "~>"
94
122
  - !ruby/object:Gem::Version
95
- version: '3.3'
123
+ version: '3.9'
96
124
  type: :development
97
125
  prerelease: false
98
126
  version_requirements: !ruby/object:Gem::Requirement
99
127
  requirements:
100
128
  - - "~>"
101
129
  - !ruby/object:Gem::Version
102
- version: '3.3'
130
+ version: '3.9'
103
131
  - !ruby/object:Gem::Dependency
104
132
  name: factory_girl_rails
105
133
  requirement: !ruby/object:Gem::Requirement
@@ -120,40 +148,34 @@ dependencies:
120
148
  requirements:
121
149
  - - "~>"
122
150
  - !ruby/object:Gem::Version
123
- version: '1.3'
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- version: 1.3.11
151
+ version: '1.4'
127
152
  type: :development
128
153
  prerelease: false
129
154
  version_requirements: !ruby/object:Gem::Requirement
130
155
  requirements:
131
156
  - - "~>"
132
157
  - !ruby/object:Gem::Version
133
- version: '1.3'
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: 1.3.11
158
+ version: '1.4'
137
159
  - !ruby/object:Gem::Dependency
138
160
  name: temping
139
161
  requirement: !ruby/object:Gem::Requirement
140
162
  requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- version: 3.3.0
144
163
  - - "~>"
145
164
  - !ruby/object:Gem::Version
146
165
  version: '3.3'
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ version: 3.3.0
147
169
  type: :development
148
170
  prerelease: false
149
171
  version_requirements: !ruby/object:Gem::Requirement
150
172
  requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: 3.3.0
154
173
  - - "~>"
155
174
  - !ruby/object:Gem::Version
156
175
  version: '3.3'
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 3.3.0
157
179
  - !ruby/object:Gem::Dependency
158
180
  name: codeclimate-test-reporter
159
181
  requirement: !ruby/object:Gem::Requirement
@@ -174,14 +196,14 @@ dependencies:
174
196
  requirements:
175
197
  - - "~>"
176
198
  - !ruby/object:Gem::Version
177
- version: '2.1'
199
+ version: '3.39'
178
200
  type: :development
179
201
  prerelease: false
180
202
  version_requirements: !ruby/object:Gem::Requirement
181
203
  requirements:
182
204
  - - "~>"
183
205
  - !ruby/object:Gem::Version
184
- version: '2.1'
206
+ version: '3.39'
185
207
  - !ruby/object:Gem::Dependency
186
208
  name: phantomjs
187
209
  requirement: !ruby/object:Gem::Requirement
@@ -197,73 +219,87 @@ dependencies:
197
219
  - !ruby/object:Gem::Version
198
220
  version: 2.1.1
199
221
  - !ruby/object:Gem::Dependency
200
- name: poltergeist
222
+ name: database_cleaner
201
223
  requirement: !ruby/object:Gem::Requirement
202
224
  requirements:
203
225
  - - "~>"
204
226
  - !ruby/object:Gem::Version
205
- version: 1.10.0
227
+ version: '1.5'
206
228
  type: :development
207
229
  prerelease: false
208
230
  version_requirements: !ruby/object:Gem::Requirement
209
231
  requirements:
210
232
  - - "~>"
211
233
  - !ruby/object:Gem::Version
212
- version: 1.10.0
234
+ version: '1.5'
213
235
  - !ruby/object:Gem::Dependency
214
- name: database_cleaner
236
+ name: launchy
215
237
  requirement: !ruby/object:Gem::Requirement
216
238
  requirements:
217
239
  - - "~>"
218
240
  - !ruby/object:Gem::Version
219
- version: 1.5.0
241
+ version: 2.4.3
220
242
  type: :development
221
243
  prerelease: false
222
244
  version_requirements: !ruby/object:Gem::Requirement
223
245
  requirements:
224
246
  - - "~>"
225
247
  - !ruby/object:Gem::Version
226
- version: 1.5.0
248
+ version: 2.4.3
227
249
  - !ruby/object:Gem::Dependency
228
- name: launchy
250
+ name: jquery-ui-rails
229
251
  requirement: !ruby/object:Gem::Requirement
230
252
  requirements:
231
253
  - - "~>"
232
254
  - !ruby/object:Gem::Version
233
- version: 2.4.3
255
+ version: 5.0.5
234
256
  type: :development
235
257
  prerelease: false
236
258
  version_requirements: !ruby/object:Gem::Requirement
237
259
  requirements:
238
260
  - - "~>"
239
261
  - !ruby/object:Gem::Version
240
- version: 2.4.3
262
+ version: 5.0.5
241
263
  - !ruby/object:Gem::Dependency
242
- name: jquery-ui-rails
264
+ name: poltergeist
243
265
  requirement: !ruby/object:Gem::Requirement
244
266
  requirements:
245
- - - "~>"
267
+ - - ">="
246
268
  - !ruby/object:Gem::Version
247
- version: 5.0.5
269
+ version: '0'
248
270
  type: :development
249
271
  prerelease: false
250
272
  version_requirements: !ruby/object:Gem::Requirement
251
273
  requirements:
252
- - - "~>"
274
+ - - ">="
253
275
  - !ruby/object:Gem::Version
254
- version: 5.0.5
276
+ version: '0'
277
+ - !ruby/object:Gem::Dependency
278
+ name: webrick
279
+ requirement: !ruby/object:Gem::Requirement
280
+ requirements:
281
+ - - ">="
282
+ - !ruby/object:Gem::Version
283
+ version: '0'
284
+ type: :development
285
+ prerelease: false
286
+ version_requirements: !ruby/object:Gem::Requirement
287
+ requirements:
288
+ - - ">="
289
+ - !ruby/object:Gem::Version
290
+ version: '0'
255
291
  description: Allows to define special attributes for ActiveAdmin panel to make it
256
292
  AJAX loadable and auto-updatable
257
293
  email:
258
- - aemelyanov@spbtv.com
294
+ - holyketzer@gmail.com
259
295
  executables: []
260
296
  extensions: []
261
297
  extra_rdoc_files: []
262
298
  files:
299
+ - ".github/workflows/main.yaml"
263
300
  - ".gitignore"
264
301
  - ".rspec"
265
302
  - ".ruby-version"
266
- - ".travis.yml"
267
303
  - CODE_OF_CONDUCT.md
268
304
  - Gemfile
269
305
  - Gemfile.lock
@@ -284,7 +320,7 @@ homepage: https://github.com/holyketzer/activeadmin-async_panel
284
320
  licenses:
285
321
  - MIT
286
322
  metadata: {}
287
- post_install_message:
323
+ post_install_message:
288
324
  rdoc_options: []
289
325
  require_paths:
290
326
  - lib
@@ -299,8 +335,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
335
  - !ruby/object:Gem::Version
300
336
  version: '0'
301
337
  requirements: []
302
- rubygems_version: 3.0.3
303
- signing_key:
338
+ rubygems_version: 3.1.4
339
+ signing_key:
304
340
  specification_version: 4
305
341
  summary: AJAX-powered async panels for ActiveAdmin
306
342
  test_files: []
data/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- - ruby-head
10
-
11
- matrix:
12
- allow_failures:
13
- - rvm: ruby-head
14
- fast_finish: true
15
-
16
- before_install: gem update --remote bundler
17
- install:
18
- - bundle install --retry=3
19
- script:
20
- - bundle exec rake dummy:prepare
21
- - bundle exec rspec
22
-
23
- addons:
24
- code_climate:
25
- repo_token: 2446d680d10249420b115f02c97395570e666b3b2e07d7832182b53c52bd4f38