active_admin_scoped_collection_actions 0.4.0 → 1.0.1

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: f9192c809349fab7e5444cea16d61270bd75e2a113c8cc79d1567ebea4c1dd75
4
- data.tar.gz: f6fd7507751f7c7297f861fce239fb42a055703c619bea1292d0d98deb6ece6d
3
+ metadata.gz: 0f4cfa1626f8c35e683c20d35f7594f5fc2e69e698b7f306ca86912525b272eb
4
+ data.tar.gz: ebb1cf80d7894879aa5a3f2556e83b8f837c3d8621ad6137d7795fe2249d20d1
5
5
  SHA512:
6
- metadata.gz: a46f91dd43671741a6491ba4e8c5188094bb803f2df0c0a8821d4b0a900b26dd75acf5e2d7c86534b9c03b5ae80a9b472482bf5b1998d61112de01117b255e6c
7
- data.tar.gz: 234f4d2c251e0d48c3db9b1241c5628e32d2a57bf817e4b3884a41a5e150e5f06273aedd0a0ec999d5ba6d669f34caba9d12d0723cbf063a9f540942bdf4855d
6
+ metadata.gz: b2dd83b556c2734c8eda0afe354cb3c93c7610fe6354f922595ad6c6c890a3d1ec7dcf320c92597fe10ad2754fde45b0da83e2575eb0ae911da01c92314290df
7
+ data.tar.gz: ef7839e57ec7b247dc1952ee47c0ffb121042b1952949655d01b0a36ae1339c2b2cf24414c7ab3e007b994fb3ef45a87c4ecdef7e35c1431319712d8ac443cf9
@@ -0,0 +1,44 @@
1
+ name: CI
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - master
7
+ jobs:
8
+ test:
9
+ name: Tests with Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} Active Admin ${{ matrix.activeadmin }}
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby:
14
+ - '3.0.0'
15
+ - '3.1.0'
16
+ - '3.2.0'
17
+ - '3.3.0'
18
+ rails:
19
+ - '6.1.0'
20
+ - '7.0.0'
21
+ - '7.1.0'
22
+ activeadmin:
23
+ - '2.14.0'
24
+ - '3.0.0'
25
+ - '3.1.0'
26
+ - '3.2.0'
27
+ exclude:
28
+ - rails: '7.1.0'
29
+ activeadmin: '2.14.0'
30
+ - rails: '7.1.0'
31
+ activeadmin: '3.0.0'
32
+ env:
33
+ RAILS: ${{ matrix.rails }}
34
+ AA: ${{ matrix.activeadmin }}
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+ - uses: ruby/setup-ruby@v1
38
+ with:
39
+ ruby-version: ${{ matrix.ruby }}
40
+ - name: Run tests
41
+ run: |
42
+ gem install bundler -v '< 2'
43
+ bundle install
44
+ bundle exec rspec spec
data/.gitignore CHANGED
@@ -11,3 +11,5 @@
11
11
  .DS_Store
12
12
  /spec/rails
13
13
  .versions.conf
14
+ vendor/bundle
15
+ bin
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## ActiveAdmin Scoped Collection Actions 1.0.1 (March 02, 2024) ##
2
+
3
+ * compatibility with ActiveAdmin 3.x (@oskarpearson #43)
4
+
1
5
  ## ActiveAdmin Scoped Collection Actions 0.3.5 (November 22, 2017) ##
2
6
 
3
7
  * compatibility with Decorators, fix is intended for old ActiveAdmin (@Zamyatin-AA #30)
data/Gemfile CHANGED
@@ -3,17 +3,22 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'activeadmin', "~> #{ENV['AA'] || '2.0.0'}"
7
- gem 'rails', "~> #{ENV['RAILS'] || '5.2.0'}"
6
+ default_rails_version = '7.1.0'
7
+ default_activeadmin_version = '3.2.0'
8
8
 
9
- gem 'capybara'
10
- gem 'chromedriver-helper'
11
- gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
12
- gem 'database_cleaner'
13
- gem 'draper'
14
- gem 'launchy'
9
+ gem 'rails', "~> #{ENV['RAILS'] || default_rails_version}"
10
+ gem 'activeadmin', "~> #{ENV['AA'] || default_activeadmin_version}"
11
+
12
+ gem 'sprockets-rails'
15
13
  gem 'rspec-rails'
14
+ gem 'coveralls_reborn', require: false
16
15
  gem 'sass-rails'
17
- gem 'selenium-webdriver'
18
- gem 'sqlite3', '~> 1.3.6'
16
+ gem 'sqlite3', '~> 1.4.0'
17
+ gem 'launchy'
18
+ gem 'database_cleaner'
19
+ gem 'capybara'
20
+ gem 'webdrivers'
21
+ gem 'byebug'
22
+ gem 'draper'
23
+ gem 'webrick', require: false
19
24
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "activeadmin", ">= 1.1", "< 3.a"
20
+ spec.add_dependency "activeadmin", ">= 1.1", "< 4.0"
21
21
  end
@@ -0,0 +1,11 @@
1
+ de:
2
+ active_admin_scoped_collection_actions:
3
+ sidebar_msg: 'Diese Aktion betrifft alle ausgewählten Datensätze. Wenn keine ausgewählt sind, betrifft sie alle gefilterten Datensätze.'
4
+ confirm_action_message: 'Sind Sie sicher?'
5
+ actions:
6
+ delete: 'Löschen'
7
+ update: 'Aktualisieren'
8
+ no_permissions_msg: 'Zugriff verweigert'
9
+ batch_update_status_msg: 'Aktualisiert'
10
+ batch_destroy_status_msg: 'Gelöscht'
11
+ fail_on_destroy_msg: 'Kann nicht gelöscht werden'
@@ -3,7 +3,6 @@ sv:
3
3
  sidebar_msg: 'Den här bulkoperationen påverkar markerade poster. Eller om inget är markerat så kommer det påverka alla poster i nuvarande filter och scope.'
4
4
  confirm_action_message: 'Är du säker?'
5
5
  actions:
6
- delete: 'Ta bort batch'
7
6
  delete: 'Ta bort batch'
8
7
  update: 'Uppdatera batch'
9
8
  no_permissions_msg: 'Tillträde beviljas ej'
@@ -56,7 +56,7 @@ module ActiveAdminScopedCollectionActions
56
56
  errors = []
57
57
  scoped_collection_records.find_each do |record|
58
58
  unless destroy_resource(record)
59
- errors << "#{record.attributes[resource_class.primary_key]} | #{I18n.t('active_admin_scoped_collection_actions.fail_on_destroy_msg')}}"
59
+ errors << "#{record.attributes[resource_class.primary_key]} | #{I18n.t('active_admin_scoped_collection_actions.fail_on_destroy_msg')}"
60
60
  end
61
61
  end
62
62
  if errors.empty?
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminScopedCollectionActions
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -1,5 +1,5 @@
1
1
  ActiveAdmin.dialogMassFieldsUpdate = function(message, inputs, callback){
2
- let html = `<form id="dialog_confirm" title="${message}"><div stype="padding-right:4px;padding-left:1px;margin-right:2px"><ul>`;
2
+ let html = `<form id="dialog_confirm" title="${message}"><div style="padding-right:4px;padding-left:1px;margin-right:2px"><ul>`;
3
3
  for (let name in inputs) {
4
4
  var elem, opts, wrapper;
5
5
  let type = inputs[name];
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_scoped_collection_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gena M.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2024-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 3.a
22
+ version: '4.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 3.a
32
+ version: '4.0'
33
33
  description: Plugin for ActiveAdmin. Provides batch Update and Delete for scoped_collection
34
34
  (Filters + Scope) across all pages.
35
35
  email:
@@ -38,8 +38,8 @@ executables: []
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
+ - ".github/workflows/ci.yml"
41
42
  - ".gitignore"
42
- - ".travis.yml"
43
43
  - CHANGELOG.md
44
44
  - CODE_OF_CONDUCT.md
45
45
  - Gemfile
@@ -47,6 +47,7 @@ files:
47
47
  - README.md
48
48
  - Rakefile
49
49
  - active_admin_scoped_collection_actions.gemspec
50
+ - config/locales/de.yml
50
51
  - config/locales/en.yml
51
52
  - config/locales/es.yml
52
53
  - config/locales/sv.yml
@@ -67,7 +68,7 @@ homepage: https://github.com/activeadmin-plugins/active_admin_scoped_collection_
67
68
  licenses:
68
69
  - MIT
69
70
  metadata: {}
70
- post_install_message:
71
+ post_install_message:
71
72
  rdoc_options: []
72
73
  require_paths:
73
74
  - lib
@@ -82,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  requirements: []
85
- rubygems_version: 3.0.2
86
- signing_key:
86
+ rubygems_version: 3.5.6
87
+ signing_key:
87
88
  specification_version: 4
88
89
  summary: scoped_collection actions extension for ActiveAdmin
89
90
  test_files: []
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- sudo: required
2
-
3
- language: ruby
4
-
5
- addons:
6
- chrome: stable
7
-
8
- before_install:
9
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
10
- - gem install bundler -v '< 2'
11
-
12
- script: bundle exec rspec spec
13
-
14
- env:
15
- matrix:
16
- - RAILS=4.2.0 AA=1.1.0
17
- - RAILS=5.2.0 AA=1.4.0
18
- - RAILS=5.2.0 AA=2.0.0
19
-
20
- rvm:
21
- - 2.4.6
22
- - 2.6.3