jpmobile 7.2.0 → 8.0.0

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: d72981ae235237ef1bab49c5e4113fe1e4ab0c95ba36767b4483513f3cda1505
4
- data.tar.gz: 44d93b06f4e3c31f300adcaf411d50992b6d07ea5842a8d66525917c647abb2f
3
+ metadata.gz: 7734464f89c44e577fb2285001c50878a641db1fd6d2a2950fab678fbe3739eb
4
+ data.tar.gz: 0cbc7800fa81bb2981e595c4ab57a8081a39653b2682b2948edda737321ea2bd
5
5
  SHA512:
6
- metadata.gz: 9083c648760665f1a5960474aceda88081fc2c516c7eeeb50860de8b337c08efdf74a20031887ab1842f77d4e1ef58389847429edd51ad5d1bf3f44480f9bd1d
7
- data.tar.gz: 397cb3b74428ccde97b84b9b6ba07eb99a0b5f2848bfad091714b72b7ec3367fa25a03a8250c41c28915078f9836eb62b3f24a16af9ee1984f29f95d8d85c70e
6
+ metadata.gz: 155f14390fe363425eb798aaafa8f686b30b9cc1fb9c8a4b358b45975199b490ac50bdb02742d4cc1a4773f7f76dcb997492803a43bb97afaf17bfc8f4298259
7
+ data.tar.gz: 7bd15aa282c7e4a0e4ceba3794895f44898186f49866e4eb0d8b5390a39576953f7de0c5f856c76c7e3af676d28aa7284d15f591e511e63bed4cf4fde4e9ceec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.4
1
+ 3.3.6
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ gemspec
6
6
  gem 'geokit'
7
7
  gem 'git'
8
8
  gem 'pry'
9
- gem 'rails', '~> 7.2.0'
9
+ gem 'rails', '~> 8.0.0'
10
10
  gem 'rspec'
11
11
  gem 'rspec-its'
12
12
  gem 'rspec-rails'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jpmobile (7.1.0)
4
+ jpmobile (7.2.0)
5
5
  mail (~> 2.8.0)
6
6
  rexml
7
7
  scanf
@@ -9,67 +9,67 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (7.2.0)
13
- actionpack (= 7.2.0)
14
- activesupport (= 7.2.0)
12
+ actioncable (8.0.0)
13
+ actionpack (= 8.0.0)
14
+ activesupport (= 8.0.0)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
17
  zeitwerk (~> 2.6)
18
- actionmailbox (7.2.0)
19
- actionpack (= 7.2.0)
20
- activejob (= 7.2.0)
21
- activerecord (= 7.2.0)
22
- activestorage (= 7.2.0)
23
- activesupport (= 7.2.0)
18
+ actionmailbox (8.0.0)
19
+ actionpack (= 8.0.0)
20
+ activejob (= 8.0.0)
21
+ activerecord (= 8.0.0)
22
+ activestorage (= 8.0.0)
23
+ activesupport (= 8.0.0)
24
24
  mail (>= 2.8.0)
25
- actionmailer (7.2.0)
26
- actionpack (= 7.2.0)
27
- actionview (= 7.2.0)
28
- activejob (= 7.2.0)
29
- activesupport (= 7.2.0)
25
+ actionmailer (8.0.0)
26
+ actionpack (= 8.0.0)
27
+ actionview (= 8.0.0)
28
+ activejob (= 8.0.0)
29
+ activesupport (= 8.0.0)
30
30
  mail (>= 2.8.0)
31
31
  rails-dom-testing (~> 2.2)
32
- actionpack (7.2.0)
33
- actionview (= 7.2.0)
34
- activesupport (= 7.2.0)
32
+ actionpack (8.0.0)
33
+ actionview (= 8.0.0)
34
+ activesupport (= 8.0.0)
35
35
  nokogiri (>= 1.8.5)
36
- racc
37
- rack (>= 2.2.4, < 3.2)
36
+ rack (>= 2.2.4)
38
37
  rack-session (>= 1.0.1)
39
38
  rack-test (>= 0.6.3)
40
39
  rails-dom-testing (~> 2.2)
41
40
  rails-html-sanitizer (~> 1.6)
42
41
  useragent (~> 0.16)
43
- actiontext (7.2.0)
44
- actionpack (= 7.2.0)
45
- activerecord (= 7.2.0)
46
- activestorage (= 7.2.0)
47
- activesupport (= 7.2.0)
42
+ actiontext (8.0.0)
43
+ actionpack (= 8.0.0)
44
+ activerecord (= 8.0.0)
45
+ activestorage (= 8.0.0)
46
+ activesupport (= 8.0.0)
48
47
  globalid (>= 0.6.0)
49
48
  nokogiri (>= 1.8.5)
50
- actionview (7.2.0)
51
- activesupport (= 7.2.0)
49
+ actionview (8.0.0)
50
+ activesupport (= 8.0.0)
52
51
  builder (~> 3.1)
53
52
  erubi (~> 1.11)
54
53
  rails-dom-testing (~> 2.2)
55
54
  rails-html-sanitizer (~> 1.6)
56
- activejob (7.2.0)
57
- activesupport (= 7.2.0)
55
+ activejob (8.0.0)
56
+ activesupport (= 8.0.0)
58
57
  globalid (>= 0.3.6)
59
- activemodel (7.2.0)
60
- activesupport (= 7.2.0)
61
- activerecord (7.2.0)
62
- activemodel (= 7.2.0)
63
- activesupport (= 7.2.0)
58
+ activemodel (8.0.0)
59
+ activesupport (= 8.0.0)
60
+ activerecord (8.0.0)
61
+ activemodel (= 8.0.0)
62
+ activesupport (= 8.0.0)
64
63
  timeout (>= 0.4.0)
65
- activestorage (7.2.0)
66
- actionpack (= 7.2.0)
67
- activejob (= 7.2.0)
68
- activerecord (= 7.2.0)
69
- activesupport (= 7.2.0)
64
+ activestorage (8.0.0)
65
+ actionpack (= 8.0.0)
66
+ activejob (= 8.0.0)
67
+ activerecord (= 8.0.0)
68
+ activesupport (= 8.0.0)
70
69
  marcel (~> 1.0)
71
- activesupport (7.2.0)
70
+ activesupport (8.0.0)
72
71
  base64
72
+ benchmark (>= 0.3)
73
73
  bigdecimal
74
74
  concurrent-ruby (~> 1.0, >= 1.3.1)
75
75
  connection_pool (>= 2.2.5)
@@ -79,37 +79,39 @@ GEM
79
79
  minitest (>= 5.1)
80
80
  securerandom (>= 0.3)
81
81
  tzinfo (~> 2.0, >= 2.0.5)
82
- addressable (2.8.6)
83
- public_suffix (>= 2.0.2, < 6.0)
82
+ uri (>= 0.13.1)
83
+ addressable (2.8.7)
84
+ public_suffix (>= 2.0.2, < 7.0)
84
85
  ast (2.4.2)
85
86
  base64 (0.2.0)
87
+ benchmark (0.3.0)
86
88
  bigdecimal (3.1.8)
87
- builder (3.2.4)
89
+ builder (3.3.0)
88
90
  coderay (1.1.3)
89
- concurrent-ruby (1.3.3)
91
+ concurrent-ruby (1.3.4)
90
92
  connection_pool (2.4.1)
91
93
  crass (1.0.6)
92
94
  date (3.3.4)
93
95
  diff-lcs (1.5.1)
94
96
  drb (2.2.1)
95
- erubi (1.12.0)
97
+ erubi (1.13.0)
96
98
  geokit (1.14.0)
97
- git (2.1.1)
99
+ git (2.3.1)
98
100
  activesupport (>= 5.0)
99
101
  addressable (~> 2.8)
100
102
  process_executer (~> 1.1)
101
103
  rchardet (~> 1.8)
102
104
  globalid (1.2.1)
103
105
  activesupport (>= 6.1)
104
- i18n (1.14.5)
106
+ i18n (1.14.6)
105
107
  concurrent-ruby (~> 1.0)
106
- io-console (0.6.0)
107
- irb (1.13.2)
108
+ io-console (0.7.2)
109
+ irb (1.14.1)
108
110
  rdoc (>= 4.0.0)
109
111
  reline (>= 0.4.2)
110
- json (2.7.2)
112
+ json (2.7.6)
111
113
  language_server-protocol (3.17.0.3)
112
- logger (1.4.4)
114
+ logger (1.6.1)
113
115
  loofah (2.22.0)
114
116
  crass (~> 1.0.2)
115
117
  nokogiri (>= 1.12.0)
@@ -122,8 +124,8 @@ GEM
122
124
  method_source (1.0.0)
123
125
  mini_mime (1.1.5)
124
126
  mini_portile2 (2.8.7)
125
- minitest (5.23.1)
126
- net-imap (0.4.14)
127
+ minitest (5.25.1)
128
+ net-imap (0.4.17)
127
129
  date
128
130
  net-protocol
129
131
  net-pop (0.1.2)
@@ -132,44 +134,45 @@ GEM
132
134
  timeout
133
135
  net-smtp (0.4.0.1)
134
136
  net-protocol
135
- nio4r (2.7.3)
136
- nokogiri (1.15.6)
137
- mini_portile2 (~> 2.8.2)
137
+ nio4r (2.7.4)
138
+ nokogiri (1.16.7-arm64-darwin)
139
+ racc (~> 1.4)
140
+ nokogiri (1.16.7-x86_64-linux)
138
141
  racc (~> 1.4)
139
- parallel (1.25.1)
140
- parser (3.3.4.0)
142
+ parallel (1.26.3)
143
+ parser (3.3.5.1)
141
144
  ast (~> 2.4.1)
142
145
  racc
143
- process_executer (1.1.0)
146
+ process_executer (1.1.2)
144
147
  pry (0.14.2)
145
148
  coderay (~> 1.1)
146
149
  method_source (~> 1.0)
147
150
  psych (5.1.2)
148
151
  stringio
149
- public_suffix (5.0.5)
150
- racc (1.8.0)
151
- rack (2.2.9)
152
- rack-session (1.0.2)
153
- rack (< 3)
152
+ public_suffix (5.1.1)
153
+ racc (1.8.1)
154
+ rack (3.1.8)
155
+ rack-session (2.0.0)
156
+ rack (>= 3.0.0)
154
157
  rack-test (2.1.0)
155
158
  rack (>= 1.3)
156
- rackup (1.0.0)
157
- rack (< 3)
158
- webrick
159
- rails (7.2.0)
160
- actioncable (= 7.2.0)
161
- actionmailbox (= 7.2.0)
162
- actionmailer (= 7.2.0)
163
- actionpack (= 7.2.0)
164
- actiontext (= 7.2.0)
165
- actionview (= 7.2.0)
166
- activejob (= 7.2.0)
167
- activemodel (= 7.2.0)
168
- activerecord (= 7.2.0)
169
- activestorage (= 7.2.0)
170
- activesupport (= 7.2.0)
159
+ rackup (2.1.0)
160
+ rack (>= 3)
161
+ webrick (~> 1.8)
162
+ rails (8.0.0)
163
+ actioncable (= 8.0.0)
164
+ actionmailbox (= 8.0.0)
165
+ actionmailer (= 8.0.0)
166
+ actionpack (= 8.0.0)
167
+ actiontext (= 8.0.0)
168
+ actionview (= 8.0.0)
169
+ activejob (= 8.0.0)
170
+ activemodel (= 8.0.0)
171
+ activerecord (= 8.0.0)
172
+ activestorage (= 8.0.0)
173
+ activesupport (= 8.0.0)
171
174
  bundler (>= 1.15.0)
172
- railties (= 7.2.0)
175
+ railties (= 8.0.0)
173
176
  rails-dom-testing (2.2.0)
174
177
  activesupport (>= 5.0.0)
175
178
  minitest
@@ -177,62 +180,61 @@ GEM
177
180
  rails-html-sanitizer (1.6.0)
178
181
  loofah (~> 2.21)
179
182
  nokogiri (~> 1.14)
180
- railties (7.2.0)
181
- actionpack (= 7.2.0)
182
- activesupport (= 7.2.0)
183
+ railties (8.0.0)
184
+ actionpack (= 8.0.0)
185
+ activesupport (= 8.0.0)
183
186
  irb (~> 1.13)
184
187
  rackup (>= 1.0.0)
185
188
  rake (>= 12.2)
186
189
  thor (~> 1.0, >= 1.2.2)
187
190
  zeitwerk (~> 2.6)
188
191
  rainbow (3.1.1)
189
- rake (13.1.0)
192
+ rake (13.2.1)
190
193
  rchardet (1.8.0)
191
- rdoc (6.6.3.1)
194
+ rdoc (6.7.0)
192
195
  psych (>= 4.0.0)
193
196
  regexp_parser (2.9.2)
194
- reline (0.4.3)
197
+ reline (0.5.10)
195
198
  io-console (~> 0.5)
196
- rexml (3.3.2)
199
+ rexml (3.3.6)
197
200
  strscan
198
201
  rspec (3.13.0)
199
202
  rspec-core (~> 3.13.0)
200
203
  rspec-expectations (~> 3.13.0)
201
204
  rspec-mocks (~> 3.13.0)
202
- rspec-core (3.13.0)
205
+ rspec-core (3.13.2)
203
206
  rspec-support (~> 3.13.0)
204
- rspec-expectations (3.13.1)
207
+ rspec-expectations (3.13.3)
205
208
  diff-lcs (>= 1.2.0, < 2.0)
206
209
  rspec-support (~> 3.13.0)
207
- rspec-its (1.3.0)
208
- rspec-core (>= 3.0.0)
209
- rspec-expectations (>= 3.0.0)
210
+ rspec-its (2.0.0)
211
+ rspec-core (>= 3.13.0)
212
+ rspec-expectations (>= 3.13.0)
210
213
  rspec-mocks (3.13.1)
211
214
  diff-lcs (>= 1.2.0, < 2.0)
212
215
  rspec-support (~> 3.13.0)
213
- rspec-rails (6.1.3)
214
- actionpack (>= 6.1)
215
- activesupport (>= 6.1)
216
- railties (>= 6.1)
216
+ rspec-rails (7.0.1)
217
+ actionpack (>= 7.0)
218
+ activesupport (>= 7.0)
219
+ railties (>= 7.0)
217
220
  rspec-core (~> 3.13)
218
221
  rspec-expectations (~> 3.13)
219
222
  rspec-mocks (~> 3.13)
220
223
  rspec-support (~> 3.13)
221
224
  rspec-support (3.13.1)
222
- rubocop (1.65.0)
225
+ rubocop (1.68.0)
223
226
  json (~> 2.3)
224
227
  language_server-protocol (>= 3.17.0)
225
228
  parallel (~> 1.10)
226
229
  parser (>= 3.3.0.2)
227
230
  rainbow (>= 2.2.2, < 4.0)
228
231
  regexp_parser (>= 2.4, < 3.0)
229
- rexml (>= 3.2.5, < 4.0)
230
- rubocop-ast (>= 1.31.1, < 2.0)
232
+ rubocop-ast (>= 1.32.2, < 2.0)
231
233
  ruby-progressbar (~> 1.7)
232
234
  unicode-display_width (>= 2.4.0, < 3.0)
233
- rubocop-ast (1.31.3)
235
+ rubocop-ast (1.34.0)
234
236
  parser (>= 3.3.1.0)
235
- rubocop-performance (1.21.1)
237
+ rubocop-performance (1.22.1)
236
238
  rubocop (>= 1.48.1, < 2.0)
237
239
  rubocop-ast (>= 1.31.1, < 2.0)
238
240
  ruby-progressbar (1.13.0)
@@ -242,19 +244,20 @@ GEM
242
244
  mini_portile2 (~> 2.8.0)
243
245
  sqlite3-ruby (1.3.3)
244
246
  sqlite3 (>= 1.3.3)
245
- stringio (3.0.9)
247
+ stringio (3.1.1)
246
248
  strscan (3.1.0)
247
- thor (1.3.1)
249
+ thor (1.3.2)
248
250
  timeout (0.4.1)
249
251
  tzinfo (2.0.6)
250
252
  concurrent-ruby (~> 1.0)
251
- unicode-display_width (2.5.0)
253
+ unicode-display_width (2.6.0)
254
+ uri (0.13.1)
252
255
  useragent (0.16.10)
253
- webrick (1.8.1)
256
+ webrick (1.8.2)
254
257
  websocket-driver (0.7.6)
255
258
  websocket-extensions (>= 0.1.0)
256
259
  websocket-extensions (0.1.5)
257
- zeitwerk (2.6.16)
260
+ zeitwerk (2.6.18)
258
261
 
259
262
  PLATFORMS
260
263
  arm64-darwin-20
@@ -267,7 +270,7 @@ DEPENDENCIES
267
270
  git
268
271
  jpmobile!
269
272
  pry
270
- rails (~> 7.2.0)
273
+ rails (~> 8.0.0)
271
274
  rspec
272
275
  rspec-its
273
276
  rspec-rails
@@ -2,7 +2,7 @@ require 'jpmobile/lookup_context'
2
2
 
3
3
  module Jpmobile
4
4
  module FallbackViewSelector
5
- def render_to_body(options)
5
+ def _render_template(options)
6
6
  if Jpmobile.config.fallback_view_selector &&
7
7
  lookup_context.mobile.present? && !lookup_context.mobile.empty?
8
8
  begin
@@ -34,7 +34,7 @@ module Jpmobile
34
34
  mobile and !mobile.smart_phone?
35
35
  end
36
36
 
37
- # viewの切り替えをするかどうか
37
+ # スマートフォンであれば +true+を、そうでなければ +false+ を返す。
38
38
  def smart_phone?
39
39
  mobile and mobile.smart_phone?
40
40
  end
@@ -1,3 +1,3 @@
1
1
  module Jpmobile
2
- VERSION = '7.2.0'.freeze
2
+ VERSION = '8.0.0'.freeze
3
3
  end
@@ -8,6 +8,8 @@ module Jpmobile
8
8
  self.view_paths = Jpmobile::PathSet.new(self.view_paths.paths.map(&:path))
9
9
  end
10
10
 
11
+ private
12
+
11
13
  def register_mobile
12
14
  if request.mobile
13
15
  # register mobile
@@ -18,8 +20,6 @@ module Jpmobile
18
20
  def disable_mobile_view!
19
21
  self.lookup_context.mobile = []
20
22
  end
21
-
22
- private :register_mobile, :disable_mobile_view!
23
23
  end
24
24
  Rails::Application::Configuration.include Jpmobile::Configuration::RailsConfiguration
25
25
  end
@@ -27,13 +27,13 @@ namespace :test do
27
27
  rails_root = 'test/rails/rails_root'
28
28
 
29
29
  puts 'Running tests in Rails'
30
- skip = args.skip == 'true'
30
+ skip = !args.skip.nil?
31
31
 
32
32
  unless skip
33
33
  # generate rails app
34
34
  FileUtils.rm_rf(rails_root)
35
35
  FileUtils.mkdir_p(rails_root)
36
- `rails new #{rails_root} --skip-bundle --skip-bootsnap --skip-webpack-install --skip-git --skip-spring`
36
+ `bundle exec rails new #{rails_root} --skip-bundle --skip-bootsnap --skip-webpack-install --skip-git --skip-spring`
37
37
  end
38
38
 
39
39
  # setup jpmobile
@@ -4,7 +4,7 @@ gem 'jpmobile', path: './vendor/jpmobile'
4
4
  gem 'jpmobile-terminfo', path: './vendor/jpmobile-terminfo'
5
5
  gem 'jpmobile-ipaddresses', path: './vendor/jpmobile-ipaddresses'
6
6
 
7
- gem 'activerecord-session_store', git: 'https://github.com/rails/activerecord-session_store.git', ref: 'f188efbc49a522123cc8acc805143824176d01c1'
7
+ gem 'activerecord-session_store'
8
8
 
9
9
  gem 'pry'
10
10
  gem 'pry-byebug'
@@ -40,7 +40,7 @@ describe 'jpmobile integration spec', type: :feature do
40
40
  shared_examples_for '文字コードフィルタが動作しているとき' do
41
41
  it 'response.bodyが空のときは文字コードを変更しないこと' do
42
42
  visit "/#{controller}/empty"
43
- expect(page.response_headers['Content-Type']).to match(/utf-8/i)
43
+ expect(extract_response_header(page, 'Content-Type')).to match(/utf-8/i)
44
44
  end
45
45
  end
46
46
 
@@ -48,13 +48,13 @@ describe 'jpmobile integration spec', type: :feature do
48
48
  it 'はShift_JISで携帯に送出されること' do
49
49
  visit "/#{controller}/abracadabra_utf8"
50
50
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ')
51
- expect(page.response_headers['Content-Type']).to match(/Shift_JIS/i)
51
+ expect(extract_response_header(page, 'Content-Type')).to match(/Shift_JIS/i)
52
52
  end
53
53
  it 'はxhtmlでもShift_JISで携帯に送出されること' do
54
54
  visit "/#{controller}/abracadabra_xhtml_utf8"
55
55
 
56
56
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ')
57
- expect(page.response_headers['Content-Type']).to match(/Shift_JIS/i)
57
+ expect(extract_response_header(page, 'Content-Type')).to match(/Shift_JIS/i)
58
58
  end
59
59
  it 'はShift_JISで渡されたパラメタがparamsにUTF-8に変換されて格納されること' do
60
60
  visit "/#{controller}/index_zenkaku?q=#{CGI.escape(utf8_to_sjis("アブラカダブラ"))}"
@@ -72,12 +72,12 @@ describe 'jpmobile integration spec', type: :feature do
72
72
  it 'はUTF-8で携帯に送出されること' do
73
73
  visit "/#{controller}/abracadabra_utf8"
74
74
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ')
75
- expect(page.response_headers['Content-Type']).to match(/utf-8/i)
75
+ expect(extract_response_header(page, 'Content-Type')).to match(/utf-8/i)
76
76
  end
77
77
  it 'はxhtmlでもUTF-8で携帯に送出されること' do
78
78
  visit "/#{controller}/abracadabra_xhtml_utf8"
79
79
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ')
80
- expect(page.response_headers['Content-Type']).to match(/utf-8/i)
80
+ expect(extract_response_header(page, 'Content-Type')).to match(/utf-8/i)
81
81
  end
82
82
  it 'はparamsにUTF-8のまま格納されること' do
83
83
  visit "/#{controller}/index_zenkaku?q=#{CGI.escape("アブラカダブラ")}"
@@ -94,7 +94,7 @@ describe 'jpmobile integration spec', type: :feature do
94
94
  it 'は半角に変換されShift_JISで携帯に送出されること' do
95
95
  visit "/#{controller}/abracadabra_utf8"
96
96
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ') # アブラカダブラ半角,SJIS
97
- expect(page.response_headers['Content-Type']).to match(/Shift_JIS/)
97
+ expect(extract_response_header(page, 'Content-Type')).to match(/Shift_JIS/)
98
98
  end
99
99
  it 'はShift_JISで渡されたパラメタがparamsにUTF-8に変換されて格納されること' do
100
100
  visit "/#{controller}/index_zenkaku?q=#{CGI.escape(utf8_to_sjis("アブラカダブラ"))}"
@@ -112,7 +112,7 @@ describe 'jpmobile integration spec', type: :feature do
112
112
  it 'はUTF-8半角で携帯に送出されること' do
113
113
  visit "/#{controller}/abracadabra_utf8"
114
114
  expect(page.body.encode('UTF-8')).to have_content('アブラカダブラ')
115
- expect(page.response_headers['Content-Type']).to match(/utf-8/i)
115
+ expect(extract_response_header(page, 'Content-Type')).to match(/utf-8/i)
116
116
  end
117
117
  it 'はparamsにUTF-8のまま格納されること' do
118
118
  visit "/#{controller}/index_zenkaku?q=#{CGI.escape("アブラカダブラ")}"
@@ -223,7 +223,7 @@ describe 'jpmobile integration spec', type: :feature do
223
223
 
224
224
  it 'Content-Type が UTF-8 であること' do
225
225
  visit "/#{controller}/with_charset"
226
- expect(page.response_headers['Content-Type']).to match(/UTF-8/i)
226
+ expect(extract_response_header(page, 'Content-Type')).to match(/UTF-8/i)
227
227
  end
228
228
  end
229
229
  end
@@ -1,3 +1,7 @@
1
1
  require 'rails_helper'
2
2
 
3
3
  Dir[File.join(__dir__, 'system/support/**/*.rb')].each {|file| require file }
4
+
5
+ def extract_response_header(page, header)
6
+ page.response_headers[header] || page.response_headers[header.downcase]
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jpmobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shin-ichiro OGAWA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-15 00:00:00.000000000 Z
12
+ date: 2024-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail
@@ -356,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  - !ruby/object:Gem::Version
357
357
  version: '0'
358
358
  requirements: []
359
- rubygems_version: 3.5.11
359
+ rubygems_version: 3.5.22
360
360
  signing_key:
361
361
  specification_version: 4
362
362
  summary: Rails plugin for mobile devices in Japan