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 +4 -4
- data/.github/workflows/ci.yml +44 -0
- data/.gitignore +2 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +15 -10
- data/active_admin_scoped_collection_actions.gemspec +1 -1
- data/config/locales/de.yml +11 -0
- data/config/locales/sv.yml +0 -1
- data/lib/active_admin_scoped_collection_actions/dsl.rb +1 -1
- data/lib/active_admin_scoped_collection_actions/version.rb +1 -1
- data/vendor/assets/javascripts/lib/dialog_mass_fields_update.js +1 -1
- metadata +10 -9
- data/.travis.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4cfa1626f8c35e683c20d35f7594f5fc2e69e698b7f306ca86912525b272eb
|
4
|
+
data.tar.gz: ebb1cf80d7894879aa5a3f2556e83b8f837c3d8621ad6137d7795fe2249d20d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
-
|
7
|
-
|
6
|
+
default_rails_version = '7.1.0'
|
7
|
+
default_activeadmin_version = '3.2.0'
|
8
8
|
|
9
|
-
gem '
|
10
|
-
gem '
|
11
|
-
|
12
|
-
gem '
|
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 '
|
18
|
-
gem '
|
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
|
@@ -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'
|
data/config/locales/sv.yml
CHANGED
@@ -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,5 +1,5 @@
|
|
1
1
|
ActiveAdmin.dialogMassFieldsUpdate = function(message, inputs, callback){
|
2
|
-
let html = `<form id="dialog_confirm" title="${message}"><div
|
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
|
+
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:
|
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:
|
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:
|
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.
|
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
|