params_keeper_rails 1.2.1 → 1.2.2
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 +17 -3
- data/.gitignore +6 -1
- data/CHANGELOG.md +4 -0
- data/gemfiles/rails60.gemfile +1 -0
- data/gemfiles/rails70.gemfile +5 -0
- data/lib/params_keeper/helper.rb +1 -1
- data/lib/params_keeper/version.rb +1 -1
- data/params_keeper_rails.gemspec +1 -0
- metadata +18 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e45dfc5db4050646b12ac16f67cd674add86504f033ea0e53994b70899fe965
|
4
|
+
data.tar.gz: ed817a1bea1033e7f72a6e606b886af52bdd4c0f7d408caf83dcec2837cfb93d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd080fe7ffe4708d8d79c2cbb0918b485d6f1fe5d437662a0b39935267264a23ce2edbad4f5128ab67526bb6054301ab27d7fcec67b4a15c7c37af8621d5ed80
|
7
|
+
data.tar.gz: 825ef3b8765a00fc087e6e0c989e86c0fb92953a04542bb3d6f489ec0effd4505bde9de6091eba58420cf99815632e3b5fb3dd29a1c9cc74869d8050917800aa
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,27 +4,41 @@ on: [push, pull_request]
|
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
test:
|
7
|
-
runs-on: ubuntu-
|
7
|
+
runs-on: ubuntu-20.04
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
|
12
|
-
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61']
|
11
|
+
ruby: [2.3, 2.4, 2.5, 2.6, 2.7, '3.0', 3.1]
|
12
|
+
gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
|
13
13
|
exclude:
|
14
14
|
- ruby: 2.3
|
15
15
|
gemfile: rails60
|
16
16
|
- ruby: 2.3
|
17
17
|
gemfile: rails61
|
18
|
+
- ruby: 2.3
|
19
|
+
gemfile: rails70
|
18
20
|
- ruby: 2.4
|
19
21
|
gemfile: rails60
|
20
22
|
- ruby: 2.4
|
21
23
|
gemfile: rails61
|
24
|
+
- ruby: 2.4
|
25
|
+
gemfile: rails70
|
26
|
+
- ruby: 2.5
|
27
|
+
gemfile: rails70
|
28
|
+
- ruby: 2.6
|
29
|
+
gemfile: rails70
|
22
30
|
- ruby: 3.0
|
23
31
|
gemfile: rails50
|
24
32
|
- ruby: 3.0
|
25
33
|
gemfile: rails51
|
26
34
|
- ruby: 3.0
|
27
35
|
gemfile: rails52
|
36
|
+
- ruby: 3.1
|
37
|
+
gemfile: rails50
|
38
|
+
- ruby: 3.1
|
39
|
+
gemfile: rails51
|
40
|
+
- ruby: 3.1
|
41
|
+
gemfile: rails52
|
28
42
|
|
29
43
|
name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
|
30
44
|
|
data/.gitignore
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
/.bundle/
|
2
|
-
/.project
|
3
2
|
/Gemfile.lock
|
4
3
|
/gemfiles/*gemfile.lock
|
5
4
|
/coverage/
|
6
5
|
/log/
|
7
6
|
/pkg/
|
7
|
+
/tmp/
|
8
8
|
/spec/dummy/log/
|
9
|
+
/spec/dummy/config/database.yml
|
10
|
+
/spec/dummy/db/schema*.rb
|
11
|
+
/spec/dummy/db/*.sqlite3
|
12
|
+
/spec/dummy/log/*.log
|
13
|
+
/spec/dummy/tmp/*
|
data/CHANGELOG.md
CHANGED
data/gemfiles/rails60.gemfile
CHANGED
data/lib/params_keeper/helper.rb
CHANGED
@@ -14,7 +14,7 @@ module ParamsKeeper
|
|
14
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
|
-
html.sub(
|
17
|
+
html.sub(/^(<form[^>]*>)/) { "#{$1}#{hidden_fields}" }.html_safe
|
18
18
|
else
|
19
19
|
html
|
20
20
|
end
|
data/params_keeper_rails.gemspec
CHANGED
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.2
|
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: 2022-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webrick
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: A rails controller extension for keeping specific parameters through
|
84
98
|
links.
|
85
99
|
email:
|
@@ -102,6 +116,7 @@ files:
|
|
102
116
|
- gemfiles/rails52.gemfile
|
103
117
|
- gemfiles/rails60.gemfile
|
104
118
|
- gemfiles/rails61.gemfile
|
119
|
+
- gemfiles/rails70.gemfile
|
105
120
|
- lib/params_keeper/config.rb
|
106
121
|
- lib/params_keeper/controller.rb
|
107
122
|
- lib/params_keeper/helper.rb
|
@@ -130,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
145
|
- !ruby/object:Gem::Version
|
131
146
|
version: '0'
|
132
147
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.3.3
|
134
149
|
signing_key:
|
135
150
|
specification_version: 4
|
136
151
|
summary: keep specific parameters through links.
|