params_keeper_rails 1.2.0 → 1.2.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 +42 -0
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails61.gemfile +5 -0
- data/lib/params_keeper/helper.rb +1 -1
- data/lib/params_keeper/version.rb +1 -1
- metadata +4 -3
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbfc02008104f20c4213f259cf2ba429cf259f407e580ffe717ec8f8031c1cad
|
4
|
+
data.tar.gz: 50ec13a553a8a94a534f21622c728de197fcc492bfc34cbab98a7209534540ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81446f14b629abffbb74e55949cd2dbe0e11c2e5941604a68e3ff1a05d668bcffe396497ccb58d13b0da0287de28f6b416481285d013b75df92af67fe5e62451
|
7
|
+
data.tar.gz: abb1b559084ffba8fd1a9bab5ba238416fe10e8148603bce8178be53d86054e683fe0af7fb9813e767e6baf13eb88a6708de9eea59b88bea65a075ee63ea1cba
|
@@ -0,0 +1,42 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
runs-on: ubuntu-16.04
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
|
12
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61']
|
13
|
+
exclude:
|
14
|
+
- ruby: 2.3
|
15
|
+
gemfile: rails60
|
16
|
+
- ruby: 2.3
|
17
|
+
gemfile: rails61
|
18
|
+
- ruby: 2.4
|
19
|
+
gemfile: rails60
|
20
|
+
- ruby: 2.4
|
21
|
+
gemfile: rails61
|
22
|
+
- ruby: 3.0
|
23
|
+
gemfile: rails50
|
24
|
+
- ruby: 3.0
|
25
|
+
gemfile: rails51
|
26
|
+
- ruby: 3.0
|
27
|
+
gemfile: rails52
|
28
|
+
|
29
|
+
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
30
|
+
|
31
|
+
env:
|
32
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
33
|
+
|
34
|
+
steps:
|
35
|
+
- uses: actions/checkout@v2
|
36
|
+
- uses: ruby/setup-ruby@v1
|
37
|
+
with:
|
38
|
+
ruby-version: ${{ matrix.ruby }}
|
39
|
+
bundler-cache: true
|
40
|
+
- name: Run test
|
41
|
+
run: |
|
42
|
+
bundle exec rspec
|
data/CHANGELOG.md
CHANGED
data/lib/params_keeper/helper.rb
CHANGED
@@ -11,7 +11,7 @@ module ParamsKeeper
|
|
11
11
|
return super if options[:method].to_s.downcase != 'get'
|
12
12
|
|
13
13
|
html = super
|
14
|
-
url_options = options[:
|
14
|
+
url_options = options[:url] || options[:model]
|
15
15
|
hidden_fields = ParamsKeeper::HiddenFields.new(controller, url_options).call
|
16
16
|
if hidden_fields.present?
|
17
17
|
html.sub('</form>') { "#{hidden_fields}</form>" }.html_safe
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: params_keeper_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshikazu Kaneta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -88,9 +88,9 @@ executables: []
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- ".github/workflows/ci.yml"
|
91
92
|
- ".gitignore"
|
92
93
|
- ".rspec"
|
93
|
-
- ".travis.yml"
|
94
94
|
- CHANGELOG.md
|
95
95
|
- CODE_OF_CONDUCT.md
|
96
96
|
- Gemfile
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- gemfiles/rails51.gemfile
|
102
102
|
- gemfiles/rails52.gemfile
|
103
103
|
- gemfiles/rails60.gemfile
|
104
|
+
- gemfiles/rails61.gemfile
|
104
105
|
- lib/params_keeper/config.rb
|
105
106
|
- lib/params_keeper/controller.rb
|
106
107
|
- lib/params_keeper/helper.rb
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.3
|
4
|
-
- 2.4
|
5
|
-
- 2.5
|
6
|
-
- 2.6
|
7
|
-
- 2.7
|
8
|
-
gemfile:
|
9
|
-
- gemfiles/rails50.gemfile
|
10
|
-
- gemfiles/rails51.gemfile
|
11
|
-
- gemfiles/rails52.gemfile
|
12
|
-
- gemfiles/rails60.gemfile
|
13
|
-
matrix:
|
14
|
-
exclude:
|
15
|
-
- rvm: 2.3
|
16
|
-
gemfile: gemfiles/rails60.gemfile
|
17
|
-
- rvm: 2.4
|
18
|
-
gemfile: gemfiles/rails60.gemfile
|
19
|
-
script:
|
20
|
-
- bundle exec rspec
|