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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f39ce97090f0a421ac97075c9282d1dd644bd6bf3b065ac79ae5ad3c6900793
4
- data.tar.gz: 6ae6f79d371088a28d87e06ccf3ee5ef8c77e75e87f4ba81953f1c9c9f381d27
3
+ metadata.gz: 64423c6ed81fa656828710aa765b9e434226bad08103bbdb6359f5dc94a7039d
4
+ data.tar.gz: f5d0630db055169bb86a1cff64640e225440f516bdce1082912675b7cd8f6b6b
5
5
  SHA512:
6
- metadata.gz: 2e6b7373af88aea4dd76f04e97fdae2b84761d46a212f3738499beac00ccd1e24a1bf639a370c28381fa52ebf7d21d926088e2726a0ecb65ede0bb9d5823e512
7
- data.tar.gz: b310e7647093de316c5eeeee0464d29306531f1211eb14d79709b84a51da79ea953f02d234b2af8422026ce923868a54c710db5f4c618c553fd5e983c6b3fd58
6
+ metadata.gz: 96def3bb5f6cb866492f61377fec76df9ba1a0cbad0f2836107672083a036d0f99a360f277353f916e39318104d9c5fad7a0a7ea16d8b10102a79cc56609ab24
7
+ data.tar.gz: a18c64b3d4321cd5fcd96ded285ef80cdced877a55a4302881a96f71081690b2b5fd5a396f3baaf0d39a630c0569c1f0c6c135e982c771b82578f606805d4eab
@@ -1,12 +1,16 @@
1
1
  name: build
2
2
 
3
- on: [push, pull_request]
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-latest
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@v2
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
@@ -23,6 +23,7 @@ platforms :jruby do
23
23
  end
24
24
 
25
25
  gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
26
+ gem 'loofah', RUBY_VERSION < '2.5' ? '~> 2.20.0' : '>= 2.20'
26
27
 
27
28
  gem 'selenium-webdriver' if rails_version >= '6.1'
28
29
 
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
- return super unless args.empty?
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
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'abstract_controller'
4
+
3
5
  module ActionArgs
4
6
  module ParamsHandler
5
7
  refine AbstractController::Base do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionArgs
4
- VERSION = '2.7.2'
4
+ VERSION = '2.7.3'
5
5
  end
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.2
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: 2022-03-26 00:00:00.000000000 Z
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.4.0.dev
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+