activeadmin-ajax_filter 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yaml +29 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -1
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +175 -136
  7. data/README.md +14 -13
  8. data/activeadmin-ajax_filter.gemspec +5 -4
  9. data/app/assets/javascripts/activeadmin-ajax_filter.js.coffee +4 -0
  10. data/lib/active_admin/ajax_filter/version.rb +1 -1
  11. data/lib/active_admin/inputs/ajax_core.rb +10 -0
  12. data/test_app/blog/.gitattributes +7 -0
  13. data/test_app/blog/.gitignore +35 -0
  14. data/test_app/blog/.ruby-version +1 -0
  15. data/test_app/blog/Gemfile +83 -0
  16. data/test_app/blog/Gemfile.lock +345 -0
  17. data/test_app/blog/README.md +24 -0
  18. data/test_app/blog/Rakefile +6 -0
  19. data/test_app/blog/app/admin/admin_users.rb +28 -0
  20. data/test_app/blog/app/admin/categories.rb +7 -0
  21. data/test_app/blog/app/admin/dashboard.rb +32 -0
  22. data/test_app/blog/app/admin/items.rb +38 -0
  23. data/test_app/blog/app/admin/subcategories.rb +8 -0
  24. data/test_app/blog/app/admin/tags.rb +22 -0
  25. data/test_app/blog/app/assets/config/manifest.js +2 -0
  26. data/test_app/blog/app/assets/images/.keep +0 -0
  27. data/test_app/blog/app/assets/javascripts/active_admin.js +4 -0
  28. data/test_app/blog/app/assets/stylesheets/active_admin.scss +21 -0
  29. data/test_app/blog/app/assets/stylesheets/application.css +15 -0
  30. data/test_app/blog/app/channels/application_cable/channel.rb +4 -0
  31. data/test_app/blog/app/channels/application_cable/connection.rb +4 -0
  32. data/test_app/blog/app/controllers/application_controller.rb +2 -0
  33. data/test_app/blog/app/controllers/concerns/.keep +0 -0
  34. data/test_app/blog/app/decorators/subcategory_decorator.rb +5 -0
  35. data/test_app/blog/app/helpers/application_helper.rb +2 -0
  36. data/test_app/blog/app/jobs/application_job.rb +7 -0
  37. data/test_app/blog/app/mailers/application_mailer.rb +4 -0
  38. data/test_app/blog/app/models/admin_user.rb +6 -0
  39. data/test_app/blog/app/models/application_record.rb +3 -0
  40. data/test_app/blog/app/models/category.rb +6 -0
  41. data/test_app/blog/app/models/concerns/.keep +0 -0
  42. data/test_app/blog/app/models/item.rb +6 -0
  43. data/test_app/blog/app/models/subcategory.rb +8 -0
  44. data/test_app/blog/app/models/tag.rb +6 -0
  45. data/test_app/blog/app/views/layouts/application.html.erb +15 -0
  46. data/test_app/blog/app/views/layouts/mailer.html.erb +13 -0
  47. data/test_app/blog/app/views/layouts/mailer.text.erb +1 -0
  48. data/test_app/blog/bin/bundle +114 -0
  49. data/test_app/blog/bin/rails +4 -0
  50. data/test_app/blog/bin/rake +4 -0
  51. data/test_app/blog/bin/setup +33 -0
  52. data/test_app/blog/config/application.rb +22 -0
  53. data/test_app/blog/config/boot.rb +4 -0
  54. data/test_app/blog/config/cable.yml +10 -0
  55. data/test_app/blog/config/credentials.yml.enc +1 -0
  56. data/test_app/blog/config/database.yml +25 -0
  57. data/test_app/blog/config/environment.rb +5 -0
  58. data/test_app/blog/config/environments/development.rb +70 -0
  59. data/test_app/blog/config/environments/production.rb +93 -0
  60. data/test_app/blog/config/environments/test.rb +60 -0
  61. data/test_app/blog/config/initializers/active_admin.rb +335 -0
  62. data/test_app/blog/config/initializers/assets.rb +12 -0
  63. data/test_app/blog/config/initializers/content_security_policy.rb +25 -0
  64. data/test_app/blog/config/initializers/devise.rb +313 -0
  65. data/test_app/blog/config/initializers/filter_parameter_logging.rb +8 -0
  66. data/test_app/blog/config/initializers/inflections.rb +16 -0
  67. data/test_app/blog/config/initializers/permissions_policy.rb +11 -0
  68. data/test_app/blog/config/locales/devise.en.yml +65 -0
  69. data/test_app/blog/config/locales/en.yml +33 -0
  70. data/test_app/blog/config/puma.rb +43 -0
  71. data/test_app/blog/config/routes.rb +8 -0
  72. data/test_app/blog/config/storage.yml +34 -0
  73. data/test_app/blog/config.ru +6 -0
  74. data/test_app/blog/db/migrate/20230425060437_devise_create_admin_users.rb +44 -0
  75. data/test_app/blog/db/migrate/20230425060439_create_active_admin_comments.rb +16 -0
  76. data/test_app/blog/db/migrate/20230425060707_initial_schema.rb +17 -0
  77. data/test_app/blog/db/migrate/20230425060708_create_tags.rb +13 -0
  78. data/test_app/blog/db/schema.rb +69 -0
  79. data/test_app/blog/db/seeds.rb +33 -0
  80. data/test_app/blog/lib/assets/.keep +0 -0
  81. data/test_app/blog/lib/tasks/.keep +0 -0
  82. data/test_app/blog/log/.keep +0 -0
  83. data/test_app/blog/public/404.html +67 -0
  84. data/test_app/blog/public/422.html +67 -0
  85. data/test_app/blog/public/500.html +66 -0
  86. data/test_app/blog/public/apple-touch-icon-precomposed.png +0 -0
  87. data/test_app/blog/public/apple-touch-icon.png +0 -0
  88. data/test_app/blog/public/favicon.ico +0 -0
  89. data/test_app/blog/public/robots.txt +1 -0
  90. data/test_app/blog/storage/.keep +0 -0
  91. data/test_app/blog/test/application_system_test_case.rb +5 -0
  92. data/test_app/blog/test/channels/application_cable/connection_test.rb +11 -0
  93. data/test_app/blog/test/controllers/.keep +0 -0
  94. data/test_app/blog/test/fixtures/admin_users.yml +11 -0
  95. data/test_app/blog/test/fixtures/files/.keep +0 -0
  96. data/test_app/blog/test/helpers/.keep +0 -0
  97. data/test_app/blog/test/integration/.keep +0 -0
  98. data/test_app/blog/test/mailers/.keep +0 -0
  99. data/test_app/blog/test/models/.keep +0 -0
  100. data/test_app/blog/test/models/admin_user_test.rb +7 -0
  101. data/test_app/blog/test/system/.keep +0 -0
  102. data/test_app/blog/test/test_helper.rb +13 -0
  103. data/test_app/blog/tmp/.keep +0 -0
  104. data/test_app/blog/tmp/pids/.keep +0 -0
  105. data/test_app/blog/tmp/storage/.keep +0 -0
  106. data/test_app/blog/vendor/.keep +0 -0
  107. metadata +121 -32
  108. data/.travis.yml +0 -26
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the "{}" from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ require "test_helper"
2
+
3
+ class AdminUserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
File without changes
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require_relative "../config/environment"
3
+ require "rails/test_help"
4
+
5
+ class ActiveSupport::TestCase
6
+ # Run tests in parallel with specified workers
7
+ parallelize(workers: :number_of_processors)
8
+
9
+ # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-ajax_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.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: 2020-05-09 00:00:00.000000000 Z
11
+ date: 2023-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: '7.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '7.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: coffee-rails
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.12.6
69
- - !ruby/object:Gem::Dependency
70
- name: has_scope
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: 0.6.0
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 0.6.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: sassc-rails
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -176,20 +162,14 @@ dependencies:
176
162
  requirements:
177
163
  - - "~>"
178
164
  - !ruby/object:Gem::Version
179
- version: '1.3'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 1.3.11
165
+ version: '1.4'
183
166
  type: :development
184
167
  prerelease: false
185
168
  version_requirements: !ruby/object:Gem::Requirement
186
169
  requirements:
187
170
  - - "~>"
188
171
  - !ruby/object:Gem::Version
189
- version: '1.3'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 1.3.11
172
+ version: '1.4'
193
173
  - !ruby/object:Gem::Dependency
194
174
  name: temping
195
175
  requirement: !ruby/object:Gem::Requirement
@@ -322,19 +302,33 @@ dependencies:
322
302
  - - ">="
323
303
  - !ruby/object:Gem::Version
324
304
  version: '0'
305
+ - !ruby/object:Gem::Dependency
306
+ name: webrick
307
+ requirement: !ruby/object:Gem::Requirement
308
+ requirements:
309
+ - - ">="
310
+ - !ruby/object:Gem::Version
311
+ version: '0'
312
+ type: :development
313
+ prerelease: false
314
+ version_requirements: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
325
319
  description: Allows to define form inputs and filters by relation for ActiveAdmin
326
320
  resource pages using Ransacker to dynamicaly load items while user is typing symbols
327
321
  in filter
328
322
  email:
329
- - aemelyanov@spbtv.com
323
+ - holyketzer@gmail.com
330
324
  executables: []
331
325
  extensions: []
332
326
  extra_rdoc_files: []
333
327
  files:
328
+ - ".github/workflows/main.yaml"
334
329
  - ".gitignore"
335
330
  - ".rspec"
336
331
  - ".ruby-version"
337
- - ".travis.yml"
338
332
  - CODE_OF_CONDUCT.md
339
333
  - Gemfile
340
334
  - Gemfile.lock
@@ -353,11 +347,106 @@ files:
353
347
  - lib/active_admin/inputs/ajax_select_input.rb
354
348
  - lib/active_admin/inputs/filters/ajax_select_input.rb
355
349
  - lib/activeadmin-ajax_filter.rb
350
+ - test_app/blog/.gitattributes
351
+ - test_app/blog/.gitignore
352
+ - test_app/blog/.ruby-version
353
+ - test_app/blog/Gemfile
354
+ - test_app/blog/Gemfile.lock
355
+ - test_app/blog/README.md
356
+ - test_app/blog/Rakefile
357
+ - test_app/blog/app/admin/admin_users.rb
358
+ - test_app/blog/app/admin/categories.rb
359
+ - test_app/blog/app/admin/dashboard.rb
360
+ - test_app/blog/app/admin/items.rb
361
+ - test_app/blog/app/admin/subcategories.rb
362
+ - test_app/blog/app/admin/tags.rb
363
+ - test_app/blog/app/assets/config/manifest.js
364
+ - test_app/blog/app/assets/images/.keep
365
+ - test_app/blog/app/assets/javascripts/active_admin.js
366
+ - test_app/blog/app/assets/stylesheets/active_admin.scss
367
+ - test_app/blog/app/assets/stylesheets/application.css
368
+ - test_app/blog/app/channels/application_cable/channel.rb
369
+ - test_app/blog/app/channels/application_cable/connection.rb
370
+ - test_app/blog/app/controllers/application_controller.rb
371
+ - test_app/blog/app/controllers/concerns/.keep
372
+ - test_app/blog/app/decorators/subcategory_decorator.rb
373
+ - test_app/blog/app/helpers/application_helper.rb
374
+ - test_app/blog/app/jobs/application_job.rb
375
+ - test_app/blog/app/mailers/application_mailer.rb
376
+ - test_app/blog/app/models/admin_user.rb
377
+ - test_app/blog/app/models/application_record.rb
378
+ - test_app/blog/app/models/category.rb
379
+ - test_app/blog/app/models/concerns/.keep
380
+ - test_app/blog/app/models/item.rb
381
+ - test_app/blog/app/models/subcategory.rb
382
+ - test_app/blog/app/models/tag.rb
383
+ - test_app/blog/app/views/layouts/application.html.erb
384
+ - test_app/blog/app/views/layouts/mailer.html.erb
385
+ - test_app/blog/app/views/layouts/mailer.text.erb
386
+ - test_app/blog/bin/bundle
387
+ - test_app/blog/bin/rails
388
+ - test_app/blog/bin/rake
389
+ - test_app/blog/bin/setup
390
+ - test_app/blog/config.ru
391
+ - test_app/blog/config/application.rb
392
+ - test_app/blog/config/boot.rb
393
+ - test_app/blog/config/cable.yml
394
+ - test_app/blog/config/credentials.yml.enc
395
+ - test_app/blog/config/database.yml
396
+ - test_app/blog/config/environment.rb
397
+ - test_app/blog/config/environments/development.rb
398
+ - test_app/blog/config/environments/production.rb
399
+ - test_app/blog/config/environments/test.rb
400
+ - test_app/blog/config/initializers/active_admin.rb
401
+ - test_app/blog/config/initializers/assets.rb
402
+ - test_app/blog/config/initializers/content_security_policy.rb
403
+ - test_app/blog/config/initializers/devise.rb
404
+ - test_app/blog/config/initializers/filter_parameter_logging.rb
405
+ - test_app/blog/config/initializers/inflections.rb
406
+ - test_app/blog/config/initializers/permissions_policy.rb
407
+ - test_app/blog/config/locales/devise.en.yml
408
+ - test_app/blog/config/locales/en.yml
409
+ - test_app/blog/config/puma.rb
410
+ - test_app/blog/config/routes.rb
411
+ - test_app/blog/config/storage.yml
412
+ - test_app/blog/db/migrate/20230425060437_devise_create_admin_users.rb
413
+ - test_app/blog/db/migrate/20230425060439_create_active_admin_comments.rb
414
+ - test_app/blog/db/migrate/20230425060707_initial_schema.rb
415
+ - test_app/blog/db/migrate/20230425060708_create_tags.rb
416
+ - test_app/blog/db/schema.rb
417
+ - test_app/blog/db/seeds.rb
418
+ - test_app/blog/lib/assets/.keep
419
+ - test_app/blog/lib/tasks/.keep
420
+ - test_app/blog/log/.keep
421
+ - test_app/blog/public/404.html
422
+ - test_app/blog/public/422.html
423
+ - test_app/blog/public/500.html
424
+ - test_app/blog/public/apple-touch-icon-precomposed.png
425
+ - test_app/blog/public/apple-touch-icon.png
426
+ - test_app/blog/public/favicon.ico
427
+ - test_app/blog/public/robots.txt
428
+ - test_app/blog/storage/.keep
429
+ - test_app/blog/test/application_system_test_case.rb
430
+ - test_app/blog/test/channels/application_cable/connection_test.rb
431
+ - test_app/blog/test/controllers/.keep
432
+ - test_app/blog/test/fixtures/admin_users.yml
433
+ - test_app/blog/test/fixtures/files/.keep
434
+ - test_app/blog/test/helpers/.keep
435
+ - test_app/blog/test/integration/.keep
436
+ - test_app/blog/test/mailers/.keep
437
+ - test_app/blog/test/models/.keep
438
+ - test_app/blog/test/models/admin_user_test.rb
439
+ - test_app/blog/test/system/.keep
440
+ - test_app/blog/test/test_helper.rb
441
+ - test_app/blog/tmp/.keep
442
+ - test_app/blog/tmp/pids/.keep
443
+ - test_app/blog/tmp/storage/.keep
444
+ - test_app/blog/vendor/.keep
356
445
  homepage: https://github.com/holyketzer/activeadmin-ajax_filter
357
446
  licenses:
358
447
  - MIT
359
448
  metadata: {}
360
- post_install_message:
449
+ post_install_message:
361
450
  rdoc_options: []
362
451
  require_paths:
363
452
  - lib
@@ -372,8 +461,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
372
461
  - !ruby/object:Gem::Version
373
462
  version: '0'
374
463
  requirements: []
375
- rubygems_version: 3.1.3
376
- signing_key:
464
+ rubygems_version: 3.1.4
465
+ signing_key:
377
466
  specification_version: 4
378
467
  summary: AJAX filters for ActiveAdmin
379
468
  test_files: []
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- cache: bundler
4
-
5
- rvm:
6
- - 2.5
7
- - 2.6
8
- - 2.7
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
- - gem install bundler:1.17.2
19
- - bundle install --retry=3
20
- script:
21
- - bundle exec rake dummy:prepare
22
- - bundle exec rspec
23
-
24
- addons:
25
- code_climate:
26
- repo_token: 9c938a047651a943393f0f52bfc1d03d71fce0f19bf0f8c1265033af9b09a56e