params_keeper_rails 1.2.3 → 1.3.0

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: 357a3cd5ce87460ff1e6820578f3182a1cdb45d2d3381c71cb471aeb93e781e6
4
- data.tar.gz: dd3e5b72b5cb62419ab6b59140cf9b4849be90c9545c42e18d5e421f14bc54de
3
+ metadata.gz: ac157af5b6005b3fc83250e8888875169ab1995c66d5ec22cfbeb52070e48407
4
+ data.tar.gz: 2a174f4c9f56cc9cb6877758b235d64ebc7a30f9409c2c0dc528a859724ed29b
5
5
  SHA512:
6
- metadata.gz: e5657616335110eb28fc4ae1c76d60eda1fa768dba6c79960898107f125022cc3d93202132a2b9d2f22fd6ec7c143f8336bda07c699f6bdb5b87a0b14af09ece
7
- data.tar.gz: dba55e8882b798a7c4b9d7e9d4d76db18fe3c0025c4a54a7fcc1c9bf07eca1d9a8fb7355f12fa9b96aab6047604bb9222d3fc6a9ab5f9fe22f2330d6c1509b93
6
+ metadata.gz: a0e7cd697b588ef697db8853b1d6d98d6730da556b9a7089ecdabc810fb3f9422a26f1dc34f7557641bcb5e194fa7c3fffcf9ad65d0f032b131d7de3f1c230e2
7
+ data.tar.gz: 79bb8658a085882d6c38fc766e0122c6e925f33209b981a4be63752ea80fe11a09023a0ae7ac20850c6242c9f12a45e9bc0cc730cb0fa56a68c9fdee8d2538dd
@@ -8,57 +8,19 @@ jobs:
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', 3.1, 3.2, 3.3]
12
- gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70', 'rails71']
11
+ ruby: ['3.0', 3.1, 3.2, 3.3, 3.4, '4.0']
12
+ gemfile: ['rails70', 'rails71', 'rails72', 'rails80', 'rails81']
13
13
  exclude:
14
- - ruby: 2.3
15
- gemfile: rails60
16
- - ruby: 2.3
17
- gemfile: rails61
18
- - ruby: 2.3
19
- gemfile: rails70
20
- - ruby: 2.3
21
- gemfile: rails71
22
- - ruby: 2.4
23
- gemfile: rails60
24
- - ruby: 2.4
25
- gemfile: rails61
26
- - ruby: 2.4
27
- gemfile: rails70
28
- - ruby: 2.4
29
- gemfile: rails71
30
- - ruby: 2.5
31
- gemfile: rails70
32
- - ruby: 2.5
33
- gemfile: rails71
34
- - ruby: 2.6
35
- gemfile: rails70
36
- - ruby: 2.6
37
- gemfile: rails71
38
14
  - ruby: 3.0
39
- gemfile: rails50
15
+ gemfile: rails72
40
16
  - ruby: 3.0
41
- gemfile: rails51
17
+ gemfile: rails80
42
18
  - ruby: 3.0
43
- gemfile: rails52
19
+ gemfile: rails81
44
20
  - ruby: 3.1
45
- gemfile: rails50
21
+ gemfile: rails80
46
22
  - ruby: 3.1
47
- gemfile: rails51
48
- - ruby: 3.1
49
- gemfile: rails52
50
- - ruby: 3.2
51
- gemfile: rails50
52
- - ruby: 3.2
53
- gemfile: rails51
54
- - ruby: 3.2
55
- gemfile: rails52
56
- - ruby: 3.3
57
- gemfile: rails50
58
- - ruby: 3.3
59
- gemfile: rails51
60
- - ruby: 3.3
61
- gemfile: rails52
23
+ gemfile: rails81
62
24
 
63
25
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
64
26
 
@@ -71,6 +33,9 @@ jobs:
71
33
  with:
72
34
  ruby-version: ${{ matrix.ruby }}
73
35
  bundler-cache: true
36
+ - name: Bundle list
37
+ run: |
38
+ bundle list
74
39
  - name: Run test
75
40
  run: |
76
41
  bundle exec rspec
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.3.0
4
+
5
+ * Drop support for ruby <= 2.7, rails <= 6.1.
6
+ * Use `URI.decode_www_form` instead of deprecated `CGI.parse`.
7
+
3
8
  ## 1.2.3
4
9
 
5
10
  * Add `frozen_string_literal: true`.
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem "rails", ">= 7.0"
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
@@ -4,8 +4,8 @@ A rails controller extension for keeping specific parameters through links.
4
4
 
5
5
  ## Dependencies
6
6
 
7
- * ruby 2.3+
8
- * rails 5.0+
7
+ * ruby 3.0+
8
+ * rails 7.0+
9
9
 
10
10
  ## Installation
11
11
 
data/Rakefile CHANGED
File without changes
@@ -2,4 +2,13 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
4
 
5
+ gem "concurrent-ruby", "<= 1.3.4"
6
+
7
+ if RUBY_VERSION >= "3.4"
8
+ gem "bigdecimal"
9
+ gem "base64"
10
+ gem "drb"
11
+ gem "mutex_m"
12
+ end
13
+
5
14
  gemspec path: "../"
File without changes
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 6.1.0"
3
+ gem "rails", "~> 7.2.0"
4
4
 
5
5
  gemspec path: "../"
@@ -1,6 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 6.0.0"
4
- gem "psych", "~> 3.3.0"
3
+ gem "rails", "~> 8.0.0"
5
4
 
6
5
  gemspec path: "../"
@@ -1,6 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem "rails", "~> 5.1.0"
4
- gem "loofah", "~> 2.19.1"
3
+ gem "rails", "~> 8.1.0"
5
4
 
6
5
  gemspec path: "../"
File without changes
File without changes
File without changes
@@ -13,8 +13,8 @@ module ParamsKeeper
13
13
  params = ParamsKeeper::Resolver.new(@controller, @url_options).call
14
14
  return if params.blank?
15
15
 
16
- CGI.parse(params.to_query).flat_map do |key, values|
17
- values.map { |value| @controller.view_context.hidden_field_tag(key, value, id: nil) }
16
+ URI.decode_www_form(params.to_query).map do |key, value|
17
+ @controller.view_context.hidden_field_tag(key, value, id: nil)
18
18
  end.join.html_safe
19
19
  end
20
20
  end
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ParamsKeeper
4
- VERSION = "1.2.3"
4
+ VERSION = "1.3.0"
5
5
  end
File without changes
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.required_ruby_version = '>= 2.3'
22
+ spec.required_ruby_version = ">= 3.0"
23
23
 
24
- spec.add_runtime_dependency "rails", ">= 5.0"
24
+ spec.add_runtime_dependency "rails", ">= 7.0"
25
25
 
26
26
  spec.add_development_dependency "rake"
27
27
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: params_keeper_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-23 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '5.0'
18
+ version: '7.0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '5.0'
25
+ version: '7.0'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rake
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -111,13 +110,11 @@ files:
111
110
  - LICENSE.txt
112
111
  - README.md
113
112
  - Rakefile
114
- - gemfiles/rails50.gemfile
115
- - gemfiles/rails51.gemfile
116
- - gemfiles/rails52.gemfile
117
- - gemfiles/rails60.gemfile
118
- - gemfiles/rails61.gemfile
119
113
  - gemfiles/rails70.gemfile
120
114
  - gemfiles/rails71.gemfile
115
+ - gemfiles/rails72.gemfile
116
+ - gemfiles/rails80.gemfile
117
+ - gemfiles/rails81.gemfile
121
118
  - lib/params_keeper/config.rb
122
119
  - lib/params_keeper/controller.rb
123
120
  - lib/params_keeper/helper.rb
@@ -131,7 +128,6 @@ homepage: https://github.com/kanety/params_keeper_rails
131
128
  licenses:
132
129
  - MIT
133
130
  metadata: {}
134
- post_install_message:
135
131
  rdoc_options: []
136
132
  require_paths:
137
133
  - lib
@@ -139,15 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
135
  requirements:
140
136
  - - ">="
141
137
  - !ruby/object:Gem::Version
142
- version: '2.3'
138
+ version: '3.0'
143
139
  required_rubygems_version: !ruby/object:Gem::Requirement
144
140
  requirements:
145
141
  - - ">="
146
142
  - !ruby/object:Gem::Version
147
143
  version: '0'
148
144
  requirements: []
149
- rubygems_version: 3.3.3
150
- signing_key:
145
+ rubygems_version: 3.6.9
151
146
  specification_version: 4
152
147
  summary: keep specific parameters through links.
153
148
  test_files: []
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.0.0"
4
- gem "loofah", "~> 2.19.1"
5
-
6
- gemspec path: "../"
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "rails", "~> 5.2.0"
4
- gem "loofah", "~> 2.19.1"
5
-
6
- gemspec path: "../"