jpmobile 7.0.4 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +2 -2
  3. data/.rubocop.yml +48 -3
  4. data/.ruby-version +1 -1
  5. data/Gemfile +1 -4
  6. data/Gemfile.lock +189 -160
  7. data/jpmobile.gemspec +2 -2
  8. data/lib/jpmobile/email.rb +1 -1
  9. data/lib/jpmobile/emoticon.rb +1 -2
  10. data/lib/jpmobile/fallback_view_selector.rb +1 -1
  11. data/lib/jpmobile/filter.rb +1 -1
  12. data/lib/jpmobile/helpers.rb +1 -1
  13. data/lib/jpmobile/hook_template_details_requested.rb +1 -1
  14. data/lib/jpmobile/mail.rb +23 -25
  15. data/lib/jpmobile/mailer.rb +5 -6
  16. data/lib/jpmobile/method_less_action_support.rb +3 -3
  17. data/lib/jpmobile/mobile/abstract_mobile.rb +8 -8
  18. data/lib/jpmobile/mobile/android.rb +1 -1
  19. data/lib/jpmobile/mobile/au.rb +2 -2
  20. data/lib/jpmobile/mobile/black_berry.rb +1 -1
  21. data/lib/jpmobile/mobile/ddipocket.rb +1 -1
  22. data/lib/jpmobile/mobile/docomo.rb +2 -2
  23. data/lib/jpmobile/mobile/emobile.rb +2 -2
  24. data/lib/jpmobile/mobile/ipad.rb +1 -1
  25. data/lib/jpmobile/mobile/iphone.rb +1 -1
  26. data/lib/jpmobile/mobile/softbank.rb +2 -2
  27. data/lib/jpmobile/mobile/vodafone.rb +2 -2
  28. data/lib/jpmobile/mobile/willcom.rb +2 -2
  29. data/lib/jpmobile/mobile/windows_phone.rb +1 -1
  30. data/lib/jpmobile/path_set.rb +1 -1
  31. data/lib/jpmobile/rack/filter.rb +2 -0
  32. data/lib/jpmobile/resolver.rb +7 -4
  33. data/lib/jpmobile/session/active_record_store.rb +1 -1
  34. data/lib/jpmobile/session/mem_cache_store.rb +1 -1
  35. data/lib/jpmobile/template_details.rb +1 -1
  36. data/lib/jpmobile/trans_sid.rb +1 -1
  37. data/lib/jpmobile/version.rb +1 -1
  38. data/spec/rack_helper.rb +0 -1
  39. data/spec/unit/email_spec.rb +2 -2
  40. data/spec/unit/is_carrier_spec.rb +1 -1
  41. data/spec/unit/receive_mail_spec.rb +1 -1
  42. data/spec/unit/util_spec.rb +0 -1
  43. data/test/rails/overrides/spec/controllers/hankaku_filter_controller_spec.rb +1 -1
  44. data/test/rails/overrides/spec/controllers/helpers_spec.rb +1 -1
  45. data/test/rails/overrides/spec/rails_helper.rb +3 -1
  46. data/test/rails/overrides/spec/requests/method_less_action_support_spec.rb +4 -3
  47. data/test/rails/overrides/spec/requests/pc_spec.rb +3 -2
  48. data/test/rails/overrides/spec/system_helper.rb +1 -1
  49. data/test/sinatra/guestbook.rb +1 -1
  50. metadata +6 -9
  51. data/tools/generate_au_emoticon_table.rb +0 -34
  52. data/tools/generate_docomo_emoticon_table.rb +0 -33
  53. data/tools/generate_softbank_emoticon_table.rb +0 -31
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8acb3fe12055999174dfcc30d0921aa35a248e22d9fb64540114e41bded0672e
4
- data.tar.gz: dba26d765bb314423d84acbad508f79ba7b2d0169a5c58c2e5b2613231ae50b2
3
+ metadata.gz: d72981ae235237ef1bab49c5e4113fe1e4ab0c95ba36767b4483513f3cda1505
4
+ data.tar.gz: 44d93b06f4e3c31f300adcaf411d50992b6d07ea5842a8d66525917c647abb2f
5
5
  SHA512:
6
- metadata.gz: c466981bb59f0bbae858d9c798d6f9376ba55a3d7c614619b9ac8741480f7518c5e6690ba905c7db032d8ed9ee915fdf0ee54ac09211c037517f4b99f022ec43
7
- data.tar.gz: 0b20fa2cccb7cdd57c5505029c8300bc8d1e0f0851da5e0251dea95dc34e7c0b6aaf6af4e4f20f7e452888f5f1dd4ecff392469301df644133cc000f83a55daa
6
+ metadata.gz: 9083c648760665f1a5960474aceda88081fc2c516c7eeeb50860de8b337c08efdf74a20031887ab1842f77d4e1ef58389847429edd51ad5d1bf3f44480f9bd1d
7
+ data.tar.gz: 397cb3b74428ccde97b84b9b6ba07eb99a0b5f2848bfad091714b72b7ec3367fa25a03a8250c41c28915078f9836eb62b3f24a16af9ee1984f29f95d8d85c70e
data/.circleci/config.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  version: 2.1
2
2
  orbs:
3
- browser-tools: circleci/browser-tools@1.4.1
3
+ browser-tools: circleci/browser-tools@1.4.8
4
4
  jobs:
5
5
  test-job:
6
6
  working_directory: ~/jpmobile
7
7
  docker:
8
- - image: cimg/ruby:3.2-browsers
8
+ - image: cimg/ruby:3.3-browsers
9
9
  environment:
10
10
  BUNDLE_JOBS: 3
11
11
  BUNDLE_RETRY: 3
data/.rubocop.yml CHANGED
@@ -1,9 +1,10 @@
1
- require: rubocop-performance
1
+ require:
2
+ - rubocop-performance
2
3
 
3
4
  inherit_from: './.onkcop-config.yml'
4
5
 
5
6
  AllCops:
6
- TargetRubyVersion: 2.7
7
+ TargetRubyVersion: 3.2
7
8
  Exclude:
8
9
  - 'tmp/**/*'
9
10
  - 'bin/*'
@@ -12,6 +13,7 @@ AllCops:
12
13
  - 'tools/**/*'
13
14
  - 'test/rails/rails_root/**/*'
14
15
  - 'vendor/**/*'
16
+ NewCops: enable
15
17
 
16
18
  Style/StringLiterals:
17
19
  EnforcedStyle: single_quotes
@@ -366,4 +368,47 @@ Style/MinMaxComparison: # new in 1.42
366
368
  Style/OperatorMethodCall: # new in 1.37
367
369
  Enabled: true
368
370
  Style/RedundantConstantBase: # new in 1.40
369
- Enabled: true
371
+ Enabled: true
372
+
373
+ Lint/DuplicateMatchPattern: # new in 1.50
374
+ Enabled: true
375
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
376
+ Enabled: true
377
+ Lint/LiteralAssignmentInCondition: # new in 1.58
378
+ Enabled: true
379
+ Lint/MixedCaseRange: # new in 1.53
380
+ Enabled: true
381
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
382
+ Enabled: true
383
+ Style/DataInheritance: # new in 1.49
384
+ Enabled: true
385
+ Style/ExactRegexpMatch: # new in 1.51
386
+ Enabled: true
387
+ Style/MapIntoArray: # new in 1.63
388
+ Enabled: true
389
+ Style/RedundantArrayConstructor: # new in 1.52
390
+ Enabled: true
391
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
392
+ Enabled: true
393
+ Style/RedundantFilterChain: # new in 1.52
394
+ Enabled: true
395
+ Style/RedundantLineContinuation: # new in 1.49
396
+ Enabled: true
397
+ Style/RedundantRegexpArgument: # new in 1.53
398
+ Enabled: true
399
+ Style/RedundantRegexpConstructor: # new in 1.52
400
+ Enabled: true
401
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
402
+ Enabled: true
403
+ Style/SendWithLiteralMethodName: # new in 1.64
404
+ Enabled: true
405
+ Style/SingleLineDoEndBlock: # new in 1.57
406
+ Enabled: true
407
+ Style/SuperArguments: # new in 1.64
408
+ Enabled: true
409
+ Style/SuperWithArgsParentheses: # new in 1.58
410
+ Enabled: true
411
+ Style/YAMLFileRead: # new in 1.53
412
+ Enabled: true
413
+ Performance/MapMethodChain: # new in 1.19
414
+ Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.1
1
+ 3.3.4
data/Gemfile CHANGED
@@ -5,14 +5,11 @@ gemspec
5
5
 
6
6
  gem 'geokit'
7
7
  gem 'git'
8
- gem 'hpricot'
9
8
  gem 'pry'
10
- gem 'rails', '~> 7.0.0'
9
+ gem 'rails', '~> 7.2.0'
11
10
  gem 'rspec'
12
11
  gem 'rspec-its'
13
12
  gem 'rspec-rails'
14
13
  gem 'rubocop', require: false
15
14
  gem 'rubocop-performance', require: false
16
- gem 'rubocop-rails', require: false
17
- gem 'rubocop-rspec', require: false
18
15
  gem 'sqlite3-ruby'
data/Gemfile.lock CHANGED
@@ -1,250 +1,279 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jpmobile (7.0.3)
5
- mail (~> 2.7.0)
4
+ jpmobile (7.1.0)
5
+ mail (~> 2.8.0)
6
6
  rexml
7
7
  scanf
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actioncable (7.0.4.3)
13
- actionpack (= 7.0.4.3)
14
- activesupport (= 7.0.4.3)
12
+ actioncable (7.2.0)
13
+ actionpack (= 7.2.0)
14
+ activesupport (= 7.2.0)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (7.0.4.3)
18
- actionpack (= 7.0.4.3)
19
- activejob (= 7.0.4.3)
20
- activerecord (= 7.0.4.3)
21
- activestorage (= 7.0.4.3)
22
- activesupport (= 7.0.4.3)
23
- mail (>= 2.7.1)
24
- net-imap
25
- net-pop
26
- net-smtp
27
- actionmailer (7.0.4.3)
28
- actionpack (= 7.0.4.3)
29
- actionview (= 7.0.4.3)
30
- activejob (= 7.0.4.3)
31
- activesupport (= 7.0.4.3)
32
- mail (~> 2.5, >= 2.5.4)
33
- net-imap
34
- net-pop
35
- net-smtp
36
- rails-dom-testing (~> 2.0)
37
- actionpack (7.0.4.3)
38
- actionview (= 7.0.4.3)
39
- activesupport (= 7.0.4.3)
40
- rack (~> 2.0, >= 2.2.0)
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)
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)
30
+ mail (>= 2.8.0)
31
+ rails-dom-testing (~> 2.2)
32
+ actionpack (7.2.0)
33
+ actionview (= 7.2.0)
34
+ activesupport (= 7.2.0)
35
+ nokogiri (>= 1.8.5)
36
+ racc
37
+ rack (>= 2.2.4, < 3.2)
38
+ rack-session (>= 1.0.1)
41
39
  rack-test (>= 0.6.3)
42
- rails-dom-testing (~> 2.0)
43
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
44
- actiontext (7.0.4.3)
45
- actionpack (= 7.0.4.3)
46
- activerecord (= 7.0.4.3)
47
- activestorage (= 7.0.4.3)
48
- activesupport (= 7.0.4.3)
40
+ rails-dom-testing (~> 2.2)
41
+ rails-html-sanitizer (~> 1.6)
42
+ 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)
49
48
  globalid (>= 0.6.0)
50
49
  nokogiri (>= 1.8.5)
51
- actionview (7.0.4.3)
52
- activesupport (= 7.0.4.3)
50
+ actionview (7.2.0)
51
+ activesupport (= 7.2.0)
53
52
  builder (~> 3.1)
54
- erubi (~> 1.4)
55
- rails-dom-testing (~> 2.0)
56
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
57
- activejob (7.0.4.3)
58
- activesupport (= 7.0.4.3)
53
+ erubi (~> 1.11)
54
+ rails-dom-testing (~> 2.2)
55
+ rails-html-sanitizer (~> 1.6)
56
+ activejob (7.2.0)
57
+ activesupport (= 7.2.0)
59
58
  globalid (>= 0.3.6)
60
- activemodel (7.0.4.3)
61
- activesupport (= 7.0.4.3)
62
- activerecord (7.0.4.3)
63
- activemodel (= 7.0.4.3)
64
- activesupport (= 7.0.4.3)
65
- activestorage (7.0.4.3)
66
- actionpack (= 7.0.4.3)
67
- activejob (= 7.0.4.3)
68
- activerecord (= 7.0.4.3)
69
- activesupport (= 7.0.4.3)
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)
64
+ 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)
70
70
  marcel (~> 1.0)
71
- mini_mime (>= 1.1.0)
72
- activesupport (7.0.4.3)
73
- concurrent-ruby (~> 1.0, >= 1.0.2)
71
+ activesupport (7.2.0)
72
+ base64
73
+ bigdecimal
74
+ concurrent-ruby (~> 1.0, >= 1.3.1)
75
+ connection_pool (>= 2.2.5)
76
+ drb
74
77
  i18n (>= 1.6, < 2)
78
+ logger (>= 1.4.2)
75
79
  minitest (>= 5.1)
76
- tzinfo (~> 2.0)
77
- addressable (2.8.1)
80
+ securerandom (>= 0.3)
81
+ tzinfo (~> 2.0, >= 2.0.5)
82
+ addressable (2.8.6)
78
83
  public_suffix (>= 2.0.2, < 6.0)
79
84
  ast (2.4.2)
85
+ base64 (0.2.0)
86
+ bigdecimal (3.1.8)
80
87
  builder (3.2.4)
81
88
  coderay (1.1.3)
82
- concurrent-ruby (1.2.2)
89
+ concurrent-ruby (1.3.3)
90
+ connection_pool (2.4.1)
83
91
  crass (1.0.6)
84
- diff-lcs (1.5.0)
85
- digest (3.1.1)
92
+ date (3.3.4)
93
+ diff-lcs (1.5.1)
94
+ drb (2.2.1)
86
95
  erubi (1.12.0)
87
96
  geokit (1.14.0)
88
- git (1.18.0)
97
+ git (2.1.1)
98
+ activesupport (>= 5.0)
89
99
  addressable (~> 2.8)
100
+ process_executer (~> 1.1)
90
101
  rchardet (~> 1.8)
91
- globalid (1.0.1)
92
- activesupport (>= 5.0)
93
- hpricot (0.8.6)
94
- i18n (1.12.0)
102
+ globalid (1.2.1)
103
+ activesupport (>= 6.1)
104
+ i18n (1.14.5)
95
105
  concurrent-ruby (~> 1.0)
96
- json (2.6.3)
97
- loofah (2.19.1)
106
+ io-console (0.6.0)
107
+ irb (1.13.2)
108
+ rdoc (>= 4.0.0)
109
+ reline (>= 0.4.2)
110
+ json (2.7.2)
111
+ language_server-protocol (3.17.0.3)
112
+ logger (1.4.4)
113
+ loofah (2.22.0)
98
114
  crass (~> 1.0.2)
99
- nokogiri (>= 1.5.9)
100
- mail (2.7.1)
115
+ nokogiri (>= 1.12.0)
116
+ mail (2.8.1)
101
117
  mini_mime (>= 0.1.1)
102
- marcel (1.0.2)
118
+ net-imap
119
+ net-pop
120
+ net-smtp
121
+ marcel (1.0.4)
103
122
  method_source (1.0.0)
104
- mini_mime (1.1.2)
105
- minitest (5.18.0)
106
- net-imap (0.2.3)
107
- digest
123
+ mini_mime (1.1.5)
124
+ mini_portile2 (2.8.7)
125
+ minitest (5.23.1)
126
+ net-imap (0.4.14)
127
+ date
108
128
  net-protocol
109
- strscan
110
129
  net-pop (0.1.2)
111
130
  net-protocol
112
- net-protocol (0.1.3)
131
+ net-protocol (0.2.2)
113
132
  timeout
114
- net-smtp (0.3.3)
133
+ net-smtp (0.4.0.1)
115
134
  net-protocol
116
- nio4r (2.5.8)
117
- nokogiri (1.14.2-arm64-darwin)
135
+ nio4r (2.7.3)
136
+ nokogiri (1.15.6)
137
+ mini_portile2 (~> 2.8.2)
118
138
  racc (~> 1.4)
119
- nokogiri (1.14.2-x86_64-linux)
120
- racc (~> 1.4)
121
- parallel (1.22.1)
122
- parser (3.2.1.1)
139
+ parallel (1.25.1)
140
+ parser (3.3.4.0)
123
141
  ast (~> 2.4.1)
142
+ racc
143
+ process_executer (1.1.0)
124
144
  pry (0.14.2)
125
145
  coderay (~> 1.1)
126
146
  method_source (~> 1.0)
127
- public_suffix (5.0.1)
128
- racc (1.6.2)
129
- rack (2.2.6.4)
147
+ psych (5.1.2)
148
+ 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)
130
154
  rack-test (2.1.0)
131
155
  rack (>= 1.3)
132
- rails (7.0.4.3)
133
- actioncable (= 7.0.4.3)
134
- actionmailbox (= 7.0.4.3)
135
- actionmailer (= 7.0.4.3)
136
- actionpack (= 7.0.4.3)
137
- actiontext (= 7.0.4.3)
138
- actionview (= 7.0.4.3)
139
- activejob (= 7.0.4.3)
140
- activemodel (= 7.0.4.3)
141
- activerecord (= 7.0.4.3)
142
- activestorage (= 7.0.4.3)
143
- activesupport (= 7.0.4.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)
144
171
  bundler (>= 1.15.0)
145
- railties (= 7.0.4.3)
146
- rails-dom-testing (2.0.3)
147
- activesupport (>= 4.2.0)
172
+ railties (= 7.2.0)
173
+ rails-dom-testing (2.2.0)
174
+ activesupport (>= 5.0.0)
175
+ minitest
148
176
  nokogiri (>= 1.6)
149
- rails-html-sanitizer (1.5.0)
150
- loofah (~> 2.19, >= 2.19.1)
151
- railties (7.0.4.3)
152
- actionpack (= 7.0.4.3)
153
- activesupport (= 7.0.4.3)
154
- method_source
177
+ rails-html-sanitizer (1.6.0)
178
+ loofah (~> 2.21)
179
+ nokogiri (~> 1.14)
180
+ railties (7.2.0)
181
+ actionpack (= 7.2.0)
182
+ activesupport (= 7.2.0)
183
+ irb (~> 1.13)
184
+ rackup (>= 1.0.0)
155
185
  rake (>= 12.2)
156
- thor (~> 1.0)
157
- zeitwerk (~> 2.5)
186
+ thor (~> 1.0, >= 1.2.2)
187
+ zeitwerk (~> 2.6)
158
188
  rainbow (3.1.1)
159
- rake (13.0.6)
189
+ rake (13.1.0)
160
190
  rchardet (1.8.0)
161
- regexp_parser (2.7.0)
162
- rexml (3.2.5)
163
- rspec (3.12.0)
164
- rspec-core (~> 3.12.0)
165
- rspec-expectations (~> 3.12.0)
166
- rspec-mocks (~> 3.12.0)
167
- rspec-core (3.12.1)
168
- rspec-support (~> 3.12.0)
169
- rspec-expectations (3.12.2)
191
+ rdoc (6.6.3.1)
192
+ psych (>= 4.0.0)
193
+ regexp_parser (2.9.2)
194
+ reline (0.4.3)
195
+ io-console (~> 0.5)
196
+ rexml (3.3.2)
197
+ strscan
198
+ rspec (3.13.0)
199
+ rspec-core (~> 3.13.0)
200
+ rspec-expectations (~> 3.13.0)
201
+ rspec-mocks (~> 3.13.0)
202
+ rspec-core (3.13.0)
203
+ rspec-support (~> 3.13.0)
204
+ rspec-expectations (3.13.1)
170
205
  diff-lcs (>= 1.2.0, < 2.0)
171
- rspec-support (~> 3.12.0)
206
+ rspec-support (~> 3.13.0)
172
207
  rspec-its (1.3.0)
173
208
  rspec-core (>= 3.0.0)
174
209
  rspec-expectations (>= 3.0.0)
175
- rspec-mocks (3.12.4)
210
+ rspec-mocks (3.13.1)
176
211
  diff-lcs (>= 1.2.0, < 2.0)
177
- rspec-support (~> 3.12.0)
178
- rspec-rails (6.0.1)
212
+ rspec-support (~> 3.13.0)
213
+ rspec-rails (6.1.3)
179
214
  actionpack (>= 6.1)
180
215
  activesupport (>= 6.1)
181
216
  railties (>= 6.1)
182
- rspec-core (~> 3.11)
183
- rspec-expectations (~> 3.11)
184
- rspec-mocks (~> 3.11)
185
- rspec-support (~> 3.11)
186
- rspec-support (3.12.0)
187
- rubocop (1.48.1)
217
+ rspec-core (~> 3.13)
218
+ rspec-expectations (~> 3.13)
219
+ rspec-mocks (~> 3.13)
220
+ rspec-support (~> 3.13)
221
+ rspec-support (3.13.1)
222
+ rubocop (1.65.0)
188
223
  json (~> 2.3)
224
+ language_server-protocol (>= 3.17.0)
189
225
  parallel (~> 1.10)
190
- parser (>= 3.2.0.0)
226
+ parser (>= 3.3.0.2)
191
227
  rainbow (>= 2.2.2, < 4.0)
192
- regexp_parser (>= 1.8, < 3.0)
228
+ regexp_parser (>= 2.4, < 3.0)
193
229
  rexml (>= 3.2.5, < 4.0)
194
- rubocop-ast (>= 1.26.0, < 2.0)
230
+ rubocop-ast (>= 1.31.1, < 2.0)
195
231
  ruby-progressbar (~> 1.7)
196
232
  unicode-display_width (>= 2.4.0, < 3.0)
197
- rubocop-ast (1.27.0)
198
- parser (>= 3.2.1.0)
199
- rubocop-capybara (2.17.1)
200
- rubocop (~> 1.41)
201
- rubocop-performance (1.16.0)
202
- rubocop (>= 1.7.0, < 2.0)
203
- rubocop-ast (>= 0.4.0)
204
- rubocop-rails (2.18.0)
205
- activesupport (>= 4.2.0)
206
- rack (>= 1.1)
207
- rubocop (>= 1.33.0, < 2.0)
208
- rubocop-rspec (2.19.0)
209
- rubocop (~> 1.33)
210
- rubocop-capybara (~> 2.17)
233
+ rubocop-ast (1.31.3)
234
+ parser (>= 3.3.1.0)
235
+ rubocop-performance (1.21.1)
236
+ rubocop (>= 1.48.1, < 2.0)
237
+ rubocop-ast (>= 1.31.1, < 2.0)
211
238
  ruby-progressbar (1.13.0)
212
239
  scanf (1.0.0)
213
- sqlite3 (1.6.1-arm64-darwin)
214
- sqlite3 (1.6.1-x86_64-linux)
240
+ securerandom (0.3.1)
241
+ sqlite3 (1.6.1)
242
+ mini_portile2 (~> 2.8.0)
215
243
  sqlite3-ruby (1.3.3)
216
244
  sqlite3 (>= 1.3.3)
217
- strscan (3.0.6)
218
- thor (1.2.1)
219
- timeout (0.3.2)
245
+ stringio (3.0.9)
246
+ strscan (3.1.0)
247
+ thor (1.3.1)
248
+ timeout (0.4.1)
220
249
  tzinfo (2.0.6)
221
250
  concurrent-ruby (~> 1.0)
222
- unicode-display_width (2.4.2)
223
- websocket-driver (0.7.5)
251
+ unicode-display_width (2.5.0)
252
+ useragent (0.16.10)
253
+ webrick (1.8.1)
254
+ websocket-driver (0.7.6)
224
255
  websocket-extensions (>= 0.1.0)
225
256
  websocket-extensions (0.1.5)
226
- zeitwerk (2.6.7)
257
+ zeitwerk (2.6.16)
227
258
 
228
259
  PLATFORMS
229
260
  arm64-darwin-20
230
261
  arm64-darwin-21
262
+ arm64-darwin-23
231
263
  x86_64-linux
232
264
 
233
265
  DEPENDENCIES
234
266
  geokit
235
267
  git
236
- hpricot
237
268
  jpmobile!
238
269
  pry
239
- rails (~> 7.0.0)
270
+ rails (~> 7.2.0)
240
271
  rspec
241
272
  rspec-its
242
273
  rspec-rails
243
274
  rubocop
244
275
  rubocop-performance
245
- rubocop-rails
246
- rubocop-rspec
247
276
  sqlite3-ruby
248
277
 
249
278
  BUNDLED WITH
250
- 2.3.15
279
+ 2.5.17
data/jpmobile.gemspec CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |gem|
18
18
  gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.required_ruby_version = '>= 2.7.0'
21
+ gem.required_ruby_version = '>= 3.2.0'
22
22
 
23
- gem.add_dependency 'mail', '~> 2.7.0'
23
+ gem.add_dependency 'mail', '~> 2.8.0'
24
24
  gem.add_dependency 'rexml'
25
25
  gem.add_dependency 'scanf'
26
26
  gem.metadata['rubygems_mfa_required'] = 'true'
@@ -50,7 +50,7 @@ module Jpmobile
50
50
  end
51
51
  end
52
52
 
53
- nil
53
+ false
54
54
  end
55
55
  end
56
56
  end
@@ -1,5 +1,4 @@
1
1
  require 'scanf'
2
- require 'nkf'
3
2
 
4
3
  module Jpmobile
5
4
  # 絵文字関連処理
@@ -288,7 +287,7 @@ module Jpmobile
288
287
  begin
289
288
  yaml_hash = YAML.load_file(@pc_emoticon_yaml)
290
289
  @pc_emoticon_hash = Hash[*(yaml_hash.values.inject([]) {|r, v| r += v.to_a.flatten; r })]
291
- @pc_emoticon_image_path.chop if @pc_emoticon_image_path.match?(%r{/$})
290
+ @pc_emoticon_image_path.chop! if @pc_emoticon_image_path.match?(%r{/$})
292
291
 
293
292
  return true
294
293
  rescue
@@ -20,7 +20,7 @@ module Jpmobile
20
20
  end
21
21
  end
22
22
 
23
- super(options)
23
+ super
24
24
  end
25
25
  end
26
26
  end
@@ -133,7 +133,7 @@ module Jpmobile
133
133
  before_encoding = str.encoding
134
134
  str.force_encoding('UTF-8')
135
135
 
136
- str = self.class.send("#{method}_format", str)
136
+ str = self.class.send(:"#{method}_format", str)
137
137
 
138
138
  # 元に戻す
139
139
  if before_encoding
@@ -139,7 +139,7 @@ module Jpmobile
139
139
  options[:only_path] = false
140
140
  url = url_for(options)
141
141
  end
142
- url.sub!(/\?/, '&')
142
+ url.sub!('?', '&')
143
143
  "location:#{mode}?url=#{url}"
144
144
  end
145
145
 
@@ -3,7 +3,7 @@ module Jpmobile
3
3
  attr_reader :mobile, :mobile_idx
4
4
 
5
5
  def initialize(locale:, handlers:, formats:, variants:, mobile:)
6
- super(locale: locale, handlers: handlers, formats: formats, variants: variants)
6
+ super(locale:, handlers:, formats:, variants:)
7
7
 
8
8
  @mobile = mobile.map(&:to_sym)
9
9
  @mobile_idx = build_idx_hash(@mobile)