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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbfc02008104f20c4213f259cf2ba429cf259f407e580ffe717ec8f8031c1cad
4
- data.tar.gz: 50ec13a553a8a94a534f21622c728de197fcc492bfc34cbab98a7209534540ef
3
+ metadata.gz: 0e45dfc5db4050646b12ac16f67cd674add86504f033ea0e53994b70899fe965
4
+ data.tar.gz: ed817a1bea1033e7f72a6e606b886af52bdd4c0f7d408caf83dcec2837cfb93d
5
5
  SHA512:
6
- metadata.gz: 81446f14b629abffbb74e55949cd2dbe0e11c2e5941604a68e3ff1a05d668bcffe396497ccb58d13b0da0287de28f6b416481285d013b75df92af67fe5e62451
7
- data.tar.gz: abb1b559084ffba8fd1a9bab5ba238416fe10e8148603bce8178be53d86054e683fe0af7fb9813e767e6baf13eb88a6708de9eea59b88bea65a075ee63ea1cba
6
+ metadata.gz: dd080fe7ffe4708d8d79c2cbb0918b485d6f1fe5d437662a0b39935267264a23ce2edbad4f5128ab67526bb6054301ab27d7fcec67b4a15c7c37af8621d5ed80
7
+ data.tar.gz: 825ef3b8765a00fc087e6e0c989e86c0fb92953a04542bb3d6f489ec0effd4505bde9de6091eba58420cf99815632e3b5fb3dd29a1c9cc74869d8050917800aa
@@ -4,27 +4,41 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-16.04
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
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.2
4
+
5
+ * Put hidden fields after beginning tag of form.
6
+
3
7
  ## 1.2.1
4
8
 
5
9
  * Fix order of options to be resolved for hidden fields.
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "psych", "~> 3.3.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.0.1"
4
+
5
+ gemspec path: "../"
@@ -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('</form>') { "#{hidden_fields}</form>" }.html_safe
17
+ html.sub(/^(<form[^>]*>)/) { "#{$1}#{hidden_fields}" }.html_safe
18
18
  else
19
19
  html
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module ParamsKeeper
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "rspec"
28
28
  spec.add_development_dependency "rspec-rails"
29
29
  spec.add_development_dependency "simplecov"
30
+ spec.add_development_dependency "webrick"
30
31
  end
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.1
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: 2021-03-25 00:00:00.000000000 Z
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.1.2
148
+ rubygems_version: 3.3.3
134
149
  signing_key:
135
150
  specification_version: 4
136
151
  summary: keep specific parameters through links.