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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fe873eb03f68ceb7c4a7f3e222f58e3b293f9a72866305707498c5a8f6cb778
4
- data.tar.gz: b6f41e0ff74d1a44a165bdbf9ba9368cfb0cd98b4add0dcbe80e4d906add36b1
3
+ metadata.gz: dbfc02008104f20c4213f259cf2ba429cf259f407e580ffe717ec8f8031c1cad
4
+ data.tar.gz: 50ec13a553a8a94a534f21622c728de197fcc492bfc34cbab98a7209534540ef
5
5
  SHA512:
6
- metadata.gz: ff2288172a6d89a2bcecd4e8e7ba21375232478cc41d4488451f9e44ebcfb9bd29f5cf08a2418083d8699c78dfea18d72e0a7567ab788d09100f9c0fb5db6bd4
7
- data.tar.gz: dc765ac84630960b6f0d70dcc3de0d1bedc7e21592053eadc9f6f6e34e13142ac46d097c3735ef55667788024fe77aaa35ef6620198b2c6ae0cc8a0af4acfde6
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
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.1
4
+
5
+ * Fix order of options to be resolved for hidden fields.
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  * Support multiple configs.
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -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[:model] || options[:url]
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
@@ -1,3 +1,3 @@
1
1
  module ParamsKeeper
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  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.0
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: 2020-09-22 00:00:00.000000000 Z
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