action_args 2.7.2 → 2.7.3
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 +4 -4
- data/.github/workflows/main.yml +9 -4
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/lib/action_args/abstract_controller.rb +9 -1
- data/lib/action_args/params_handler.rb +2 -0
- data/lib/action_args/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64423c6ed81fa656828710aa765b9e434226bad08103bbdb6359f5dc94a7039d
|
|
4
|
+
data.tar.gz: f5d0630db055169bb86a1cff64640e225440f516bdce1082912675b7cd8f6b6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96def3bb5f6cb866492f61377fec76df9ba1a0cbad0f2836107672083a036d0f99a360f277353f916e39318104d9c5fad7a0a7ea16d8b10102a79cc56609ab24
|
|
7
|
+
data.tar.gz: a18c64b3d4321cd5fcd96ded285ef80cdced877a55a4302881a96f71081690b2b5fd5a396f3baaf0d39a630c0569c1f0c6c135e982c771b82578f606805d4eab
|
data/.github/workflows/main.yml
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
name: build
|
|
2
2
|
|
|
3
|
-
on:
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: '22 22 * * *'
|
|
4
8
|
|
|
5
9
|
jobs:
|
|
6
10
|
build:
|
|
7
11
|
strategy:
|
|
8
12
|
matrix:
|
|
9
|
-
ruby_version: [ruby-head, '3.1', '3.0', '2.7', 'jruby']
|
|
13
|
+
ruby_version: [ruby-head, '3.2', '3.1', '3.0', '2.7', 'jruby']
|
|
10
14
|
rails_version: [edge, '7.0', '6.1', '6.0']
|
|
11
15
|
|
|
12
16
|
include:
|
|
@@ -40,17 +44,18 @@ jobs:
|
|
|
40
44
|
- ruby_version: '2.1'
|
|
41
45
|
rails_version: '4.2'
|
|
42
46
|
|
|
43
|
-
runs-on: ubuntu-
|
|
47
|
+
runs-on: ubuntu-20.04
|
|
44
48
|
|
|
45
49
|
env:
|
|
46
50
|
RAILS_VERSION: ${{ matrix.rails_version }}
|
|
47
51
|
|
|
48
52
|
steps:
|
|
49
|
-
- uses: actions/checkout@
|
|
53
|
+
- uses: actions/checkout@v3
|
|
50
54
|
|
|
51
55
|
- uses: ruby/setup-ruby@v1
|
|
52
56
|
with:
|
|
53
57
|
ruby-version: ${{ matrix.ruby_version }}
|
|
58
|
+
rubygems: ${{ matrix.ruby_version < '2.6' && 'default' || 'latest' }}
|
|
54
59
|
bundler-cache: true
|
|
55
60
|
continue-on-error: ${{ (matrix.ruby_version == 'ruby-head') || (matrix.ruby_version == 'jruby') || (matrix.rails_version == 'edge') }}
|
|
56
61
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -247,7 +247,7 @@ You may notice that
|
|
|
247
247
|
|
|
248
248
|
## Supported Versions
|
|
249
249
|
|
|
250
|
-
* Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, 3.1 (trunk), JRuby, & Rubinius with 2.0+ mode
|
|
250
|
+
* Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, 3.1.x, 3.2.x, 3.3 (trunk), JRuby, & Rubinius with 2.0+ mode
|
|
251
251
|
|
|
252
252
|
* Rails 4.1.x, 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1, 7.0, 7.1 (edge)
|
|
253
253
|
|
|
@@ -6,7 +6,15 @@ using ActionArgs::ParamsHandler
|
|
|
6
6
|
module ActionArgs
|
|
7
7
|
module AbstractControllerMethods
|
|
8
8
|
def send_action(method_name, *args)
|
|
9
|
-
|
|
9
|
+
unless args.empty?
|
|
10
|
+
kwargs = args.extract_options!
|
|
11
|
+
if kwargs.any?
|
|
12
|
+
return super(method_name, *args, **kwargs)
|
|
13
|
+
else
|
|
14
|
+
return super
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
10
18
|
return super if !defined?(params) || params.nil?
|
|
11
19
|
|
|
12
20
|
strengthen_params! method_name
|
data/lib/action_args/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_args
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.7.
|
|
4
|
+
version: 2.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Akira Matsuda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-06-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
requirements: []
|
|
98
|
-
rubygems_version: 3.
|
|
98
|
+
rubygems_version: 3.5.0.dev
|
|
99
99
|
signing_key:
|
|
100
100
|
specification_version: 4
|
|
101
101
|
summary: Controller action arguments parameterizer for Rails 4+ & Ruby 2.0+
|