jpmobile 7.2.0 → 8.0.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 +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +110 -107
- data/lib/jpmobile/fallback_view_selector.rb +1 -1
- data/lib/jpmobile/request_with_mobile.rb +1 -1
- data/lib/jpmobile/version.rb +1 -1
- data/lib/jpmobile/view_selector.rb +2 -2
- data/lib/tasks/jpmobile_tasks.rake +2 -2
- data/test/rails/overrides/Gemfile.jpmobile +1 -1
- data/test/rails/overrides/spec/system/filter_spec.rb +8 -8
- data/test/rails/overrides/spec/system_helper.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7734464f89c44e577fb2285001c50878a641db1fd6d2a2950fab678fbe3739eb
|
|
4
|
+
data.tar.gz: 0cbc7800fa81bb2981e595c4ab57a8081a39653b2682b2948edda737321ea2bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 155f14390fe363425eb798aaafa8f686b30b9cc1fb9c8a4b358b45975199b490ac50bdb02742d4cc1a4773f7f76dcb997492803a43bb97afaf17bfc8f4298259
|
|
7
|
+
data.tar.gz: 7bd15aa282c7e4a0e4ceba3794895f44898186f49866e4eb0d8b5390a39576953f7de0c5f856c76c7e3af676d28aa7284d15f591e511e63bed4cf4fde4e9ceec
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.3.
|
|
1
|
+
3.3.6
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
jpmobile (7.
|
|
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 (
|
|
13
|
-
actionpack (=
|
|
14
|
-
activesupport (=
|
|
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 (
|
|
19
|
-
actionpack (=
|
|
20
|
-
activejob (=
|
|
21
|
-
activerecord (=
|
|
22
|
-
activestorage (=
|
|
23
|
-
activesupport (=
|
|
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 (
|
|
26
|
-
actionpack (=
|
|
27
|
-
actionview (=
|
|
28
|
-
activejob (=
|
|
29
|
-
activesupport (=
|
|
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 (
|
|
33
|
-
actionview (=
|
|
34
|
-
activesupport (=
|
|
32
|
+
actionpack (8.0.0)
|
|
33
|
+
actionview (= 8.0.0)
|
|
34
|
+
activesupport (= 8.0.0)
|
|
35
35
|
nokogiri (>= 1.8.5)
|
|
36
|
-
|
|
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 (
|
|
44
|
-
actionpack (=
|
|
45
|
-
activerecord (=
|
|
46
|
-
activestorage (=
|
|
47
|
-
activesupport (=
|
|
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 (
|
|
51
|
-
activesupport (=
|
|
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 (
|
|
57
|
-
activesupport (=
|
|
55
|
+
activejob (8.0.0)
|
|
56
|
+
activesupport (= 8.0.0)
|
|
58
57
|
globalid (>= 0.3.6)
|
|
59
|
-
activemodel (
|
|
60
|
-
activesupport (=
|
|
61
|
-
activerecord (
|
|
62
|
-
activemodel (=
|
|
63
|
-
activesupport (=
|
|
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 (
|
|
66
|
-
actionpack (=
|
|
67
|
-
activejob (=
|
|
68
|
-
activerecord (=
|
|
69
|
-
activesupport (=
|
|
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 (
|
|
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
|
-
|
|
83
|
-
|
|
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.
|
|
89
|
+
builder (3.3.0)
|
|
88
90
|
coderay (1.1.3)
|
|
89
|
-
concurrent-ruby (1.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.
|
|
97
|
+
erubi (1.13.0)
|
|
96
98
|
geokit (1.14.0)
|
|
97
|
-
git (2.
|
|
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.
|
|
106
|
+
i18n (1.14.6)
|
|
105
107
|
concurrent-ruby (~> 1.0)
|
|
106
|
-
io-console (0.
|
|
107
|
-
irb (1.
|
|
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.
|
|
112
|
+
json (2.7.6)
|
|
111
113
|
language_server-protocol (3.17.0.3)
|
|
112
|
-
logger (1.
|
|
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.
|
|
126
|
-
net-imap (0.4.
|
|
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.
|
|
136
|
-
nokogiri (1.
|
|
137
|
-
|
|
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.
|
|
140
|
-
parser (3.3.
|
|
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.
|
|
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.
|
|
150
|
-
racc (1.8.
|
|
151
|
-
rack (
|
|
152
|
-
rack-session (
|
|
153
|
-
rack (
|
|
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
|
|
157
|
-
rack (
|
|
158
|
-
webrick
|
|
159
|
-
rails (
|
|
160
|
-
actioncable (=
|
|
161
|
-
actionmailbox (=
|
|
162
|
-
actionmailer (=
|
|
163
|
-
actionpack (=
|
|
164
|
-
actiontext (=
|
|
165
|
-
actionview (=
|
|
166
|
-
activejob (=
|
|
167
|
-
activemodel (=
|
|
168
|
-
activerecord (=
|
|
169
|
-
activestorage (=
|
|
170
|
-
activesupport (=
|
|
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 (=
|
|
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 (
|
|
181
|
-
actionpack (=
|
|
182
|
-
activesupport (=
|
|
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
|
|
192
|
+
rake (13.2.1)
|
|
190
193
|
rchardet (1.8.0)
|
|
191
|
-
rdoc (6.
|
|
194
|
+
rdoc (6.7.0)
|
|
192
195
|
psych (>= 4.0.0)
|
|
193
196
|
regexp_parser (2.9.2)
|
|
194
|
-
reline (0.
|
|
197
|
+
reline (0.5.10)
|
|
195
198
|
io-console (~> 0.5)
|
|
196
|
-
rexml (3.3.
|
|
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.
|
|
205
|
+
rspec-core (3.13.2)
|
|
203
206
|
rspec-support (~> 3.13.0)
|
|
204
|
-
rspec-expectations (3.13.
|
|
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 (
|
|
208
|
-
rspec-core (>= 3.
|
|
209
|
-
rspec-expectations (>= 3.
|
|
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 (
|
|
214
|
-
actionpack (>=
|
|
215
|
-
activesupport (>=
|
|
216
|
-
railties (>=
|
|
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.
|
|
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
|
-
|
|
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.
|
|
235
|
+
rubocop-ast (1.34.0)
|
|
234
236
|
parser (>= 3.3.1.0)
|
|
235
|
-
rubocop-performance (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.
|
|
247
|
+
stringio (3.1.1)
|
|
246
248
|
strscan (3.1.0)
|
|
247
|
-
thor (1.3.
|
|
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.
|
|
253
|
+
unicode-display_width (2.6.0)
|
|
254
|
+
uri (0.13.1)
|
|
252
255
|
useragent (0.16.10)
|
|
253
|
-
webrick (1.8.
|
|
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.
|
|
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 (~>
|
|
273
|
+
rails (~> 8.0.0)
|
|
271
274
|
rspec
|
|
272
275
|
rspec-its
|
|
273
276
|
rspec-rails
|
data/lib/jpmobile/version.rb
CHANGED
|
@@ -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
|
|
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'
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
226
|
+
expect(extract_response_header(page, 'Content-Type')).to match(/UTF-8/i)
|
|
227
227
|
end
|
|
228
228
|
end
|
|
229
229
|
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:
|
|
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
|
|
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.
|
|
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
|