respond_for_helper 1.1.2 → 1.1.3

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: 8662ea79ffb98d16f4a82182e8837f1153a6b6dceeee39781b7750df0bb7209c
4
- data.tar.gz: 209badd08e4669c9717406c8f92e1ecc9d65ac3de4fa507749b59c0a9c990e25
3
+ metadata.gz: d1ba35f685da02129cb708b854de5702c29007c378964f6b619ea223d25a77a6
4
+ data.tar.gz: 39ff8c2905ee45781517b90cc67c0cbb1e779d51bdceaf6b8e4683a2211fe748
5
5
  SHA512:
6
- metadata.gz: e797d9bb30f9399629de7c7cccbb4f1af93f6647521cd4c9617e38e6ac9ec2eb3aa42121890484d2df6a40d2b4d17f0a99df56853f9da343aea177ef0aa76a61
7
- data.tar.gz: 16416c8c03b0332d0863368da138fdc377c551d92fc71be8ae8cdfc566b50c98221ff0a3665be42ce8eb838e1f4fb37418abd66b0e18d4af873834fd2c631c18
6
+ metadata.gz: 91070c0e93a7b25f8d483f2ab24e9a3ab1a56fa14faec724fc3c5573db60e06291b91793a4de1ef262e88b56f08642d3c1e45b35eb9a14afcfb1ab636ca9454a
7
+ data.tar.gz: df2dfbd5b64dc5f6e9f10a0aff0aae2d074e8373596a02bd77f806c729b82f9d978c1b21a8c5497653fc7858d753b545ae33bcf96a8516392a790e770de888af
@@ -4,12 +4,12 @@ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  test:
7
- runs-on: ubuntu-20.04
7
+ runs-on: ubuntu-22.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', 3.1]
12
- gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61', 'rails70']
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']
13
13
  exclude:
14
14
  - ruby: 2.3
15
15
  gemfile: rails60
@@ -17,16 +17,24 @@ jobs:
17
17
  gemfile: rails61
18
18
  - ruby: 2.3
19
19
  gemfile: rails70
20
+ - ruby: 2.3
21
+ gemfile: rails71
20
22
  - ruby: 2.4
21
23
  gemfile: rails60
22
24
  - ruby: 2.4
23
25
  gemfile: rails61
24
26
  - ruby: 2.4
25
27
  gemfile: rails70
28
+ - ruby: 2.4
29
+ gemfile: rails71
26
30
  - ruby: 2.5
27
31
  gemfile: rails70
32
+ - ruby: 2.5
33
+ gemfile: rails71
28
34
  - ruby: 2.6
29
35
  gemfile: rails70
36
+ - ruby: 2.6
37
+ gemfile: rails71
30
38
  - ruby: 3.0
31
39
  gemfile: rails50
32
40
  - ruby: 3.0
@@ -39,6 +47,18 @@ jobs:
39
47
  gemfile: rails51
40
48
  - ruby: 3.1
41
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
42
62
 
43
63
  name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
44
64
 
@@ -46,7 +66,7 @@ jobs:
46
66
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
47
67
 
48
68
  steps:
49
- - uses: actions/checkout@v3
69
+ - uses: actions/checkout@v4
50
70
  - uses: ruby/setup-ruby@v1
51
71
  with:
52
72
  ruby-version: ${{ matrix.ruby }}
data/.gitignore CHANGED
@@ -4,6 +4,6 @@ coverage/
4
4
  gemfiles/*.lock
5
5
  pkg/
6
6
  tmp/
7
- spec/dummy/db/*.sqlite3
7
+ spec/dummy/db/*.sqlite3*
8
8
  spec/dummy/db/schema_*.rb
9
9
  spec/dummy/log/*.log
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.3
4
+
5
+ * Set flash message before render or redirect.
6
+
3
7
  ## 1.1.2
4
8
 
5
9
  * Skip checking errors when request method is get.
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
4
  gem "sqlite3", "~> 1.3.6"
5
+ gem "loofah", "~> 2.19.1"
5
6
 
6
7
  gemspec path: "../"
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.0.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
  gem "psych", "~> 3.3.0"
5
6
 
6
7
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 6.1.0"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -1,5 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "rails", "~> 7.0.1"
4
+ gem "sqlite3", "~> 1.4.0"
4
5
 
5
6
  gemspec path: "../"
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 7.1.0"
4
+ gem "sqlite3", "~> 1.6.6"
5
+
6
+ gemspec path: "../"
@@ -8,15 +8,15 @@ module RespondForHelper
8
8
  private
9
9
 
10
10
  def perform
11
+ if @behaviour.flash? && !request.xhr?
12
+ perform_flash
13
+ end
14
+
11
15
  if @behaviour.render?
12
16
  perform_render
13
17
  elsif @behaviour.redirect?
14
18
  perform_redirect
15
19
  end
16
-
17
- if @behaviour.flash? && !request.xhr?
18
- perform_flash
19
- end
20
20
  end
21
21
 
22
22
  def perform_render
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RespondForHelper
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: respond_for_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -131,6 +131,7 @@ files:
131
131
  - gemfiles/rails60.gemfile
132
132
  - gemfiles/rails61.gemfile
133
133
  - gemfiles/rails70.gemfile
134
+ - gemfiles/rails71.gemfile
134
135
  - lib/respond_for_helper.rb
135
136
  - lib/respond_for_helper/behaviour.rb
136
137
  - lib/respond_for_helper/config.rb
@@ -154,7 +155,7 @@ files:
154
155
  homepage: https://github.com/kanety/respond_for_helper
155
156
  licenses: []
156
157
  metadata: {}
157
- post_install_message:
158
+ post_install_message:
158
159
  rdoc_options: []
159
160
  require_paths:
160
161
  - lib
@@ -169,8 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
170
  - !ruby/object:Gem::Version
170
171
  version: '0'
171
172
  requirements: []
172
- rubygems_version: 3.3.3
173
- signing_key:
173
+ rubygems_version: 3.5.11
174
+ signing_key:
174
175
  specification_version: 4
175
176
  summary: A rails helper for responding request format
176
177
  test_files: []