jpmobile 6.0.0 → 7.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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +8 -3
  3. data/.onkcop-config.yml +4 -31
  4. data/.rubocop.yml +67 -3
  5. data/.ruby-version +1 -1
  6. data/Gemfile +2 -0
  7. data/Gemfile.lock +152 -158
  8. data/README.md +5 -20
  9. data/jpmobile.gemspec +6 -3
  10. data/lib/jpmobile/configuration.rb +7 -3
  11. data/lib/jpmobile/docomo_guid.rb +4 -4
  12. data/lib/jpmobile/email.rb +2 -4
  13. data/lib/jpmobile/emoticon.rb +10 -17
  14. data/lib/jpmobile/filter.rb +2 -2
  15. data/lib/jpmobile/hook_action_view.rb +3 -3
  16. data/lib/jpmobile/hook_template_details_requested.rb +12 -0
  17. data/lib/jpmobile/hook_test_request.rb +1 -1
  18. data/lib/jpmobile/mail.rb +4 -4
  19. data/lib/jpmobile/mailer.rb +2 -2
  20. data/lib/jpmobile/mobile/abstract_mobile.rb +1 -1
  21. data/lib/jpmobile/mobile/android.rb +1 -1
  22. data/lib/jpmobile/mobile/android_tablet.rb +1 -1
  23. data/lib/jpmobile/mobile/au.rb +2 -2
  24. data/lib/jpmobile/mobile/black_berry.rb +1 -1
  25. data/lib/jpmobile/mobile/ddipocket.rb +1 -1
  26. data/lib/jpmobile/mobile/docomo.rb +6 -8
  27. data/lib/jpmobile/mobile/emobile.rb +2 -2
  28. data/lib/jpmobile/mobile/ipad.rb +1 -1
  29. data/lib/jpmobile/mobile/iphone.rb +1 -1
  30. data/lib/jpmobile/mobile/softbank.rb +2 -2
  31. data/lib/jpmobile/mobile/vodafone.rb +2 -2
  32. data/lib/jpmobile/mobile/willcom.rb +2 -2
  33. data/lib/jpmobile/mobile/windows_phone.rb +1 -1
  34. data/lib/jpmobile/path_set.rb +10 -36
  35. data/lib/jpmobile/rack/params_filter.rb +5 -4
  36. data/lib/jpmobile/rails.rb +9 -41
  37. data/lib/jpmobile/resolver.rb +44 -6
  38. data/lib/jpmobile/session/active_record_store.rb +1 -1
  39. data/lib/jpmobile/session/mem_cache_store.rb +1 -1
  40. data/lib/jpmobile/template_details.rb +38 -0
  41. data/lib/jpmobile/trans_sid.rb +2 -2
  42. data/lib/jpmobile/util.rb +3 -4
  43. data/lib/jpmobile/version.rb +1 -1
  44. data/lib/jpmobile/view_selector.rb +25 -0
  45. data/lib/jpmobile.rb +14 -0
  46. data/lib/tasks/jpmobile_tasks.rake +4 -3
  47. data/spec/rack/jpmobile/emoticon_spec.rb +48 -48
  48. data/spec/rack/jpmobile/mobile_by_ua_spec.rb +1 -0
  49. data/spec/rack_helper.rb +1 -5
  50. data/spec/unit/email_spec.rb +1 -1
  51. data/spec/unit/receive_mail_spec.rb +1 -1
  52. data/test/rails/overrides/Gemfile.jpmobile +5 -1
  53. data/test/rails/overrides/app/controllers/mobile_spec_controller.rb +1 -1
  54. data/test/rails/overrides/app/controllers/template_path_controller.rb +3 -0
  55. data/test/rails/overrides/app/views/mobile_spec/mobile_not_exist.html.erb +3 -0
  56. data/test/rails/overrides/config/routes.rb +1 -1
  57. data/test/rails/overrides/db/migrate/{20190419005447_create_active_storage_tables.active_storage.rb → 20201111033056_create_active_storage_tables.active_storage.rb} +14 -5
  58. data/test/rails/overrides/db/migrate/{20190419005448_create_action_mailbox_tables.action_mailbox.rb → 20201111033057_create_action_mailbox_tables.action_mailbox.rb} +0 -0
  59. data/test/rails/overrides/spec/controllers/docomo_guid_spec.rb +2 -2
  60. data/test/rails/overrides/spec/controllers/mobile_spec_controller_spec.rb +3 -3
  61. data/test/rails/overrides/spec/rails_helper.rb +1 -1
  62. data/test/rails/overrides/spec/requests/filter_spec.rb +106 -0
  63. data/test/rails/overrides/spec/requests/template_path_spec.rb +1 -1
  64. data/test/rails/overrides/spec/requests/trans_sid_spec.rb +9 -9
  65. data/test/rails/overrides/spec/{features → system}/admin/top_spec.rb +2 -2
  66. data/test/rails/overrides/spec/{features → system}/filter_spec.rb +2 -7
  67. data/test/rails/overrides/spec/system/support/cuprite_setup.rb +14 -0
  68. data/test/rails/overrides/spec/system_helper.rb +3 -0
  69. metadata +44 -21
  70. data/test/rails/overrides/app/views/mobile_spec/no_mobile.html.erb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2ac72dc53112eb5d8babd6b44194602d93c7f8f6b5940d4e5c15f950e27f611
4
- data.tar.gz: 835cccb90c737865a0db753be8f0b1883ba4c420aafe2d2a75ad27e139817692
3
+ metadata.gz: 23fd23b1c3355357f297fbfbcd1ccd9bd673a7cd32ac0de550ed5222b9cbe2d1
4
+ data.tar.gz: f2432b9a47332debe6dde7bb42b5dc175a6ffa7c0ac70f80ca40ab3a4613a1f8
5
5
  SHA512:
6
- metadata.gz: 2bf6ee36acf3766c0ffb1c709e8de2a51921a686c5ddbf9ba0041551637284551f72eb7983f79ece9f5837ec21c92d22b2c0e0605a29f8800cd080c9237f84e2
7
- data.tar.gz: beb1c38b73a123652ca6a2f41091efd108f824844824cfe6eaae187f213b79627f4c5ddff77fc0f0ea4c0232c5bd7d2488c60868ca50d42bd324a145b6e32623
6
+ metadata.gz: 57bf348d59ec1f6b520d363a1b5e8b798a033c10a75d88ca88c8b8539530b436a9711a9882571f21371e1c547654c92c16db1ac50fae9164f4cd0a818b19d262
7
+ data.tar.gz: 86b3585c886a0e4ba2a5a94f736b45d3adc8c4c2924572acc477986d8cecb8edf34eed5e06c3fbb2a4f071f2c7f431b9f7e3d5cb1f4f29cb680b5a42d2be2c8b
data/.circleci/config.yml CHANGED
@@ -1,21 +1,26 @@
1
- version: 2
1
+ version: 2.1
2
+ orbs:
3
+ browser-tools: circleci/browser-tools@1.1
2
4
  jobs:
3
5
  test-job:
4
6
  working_directory: ~/jpmobile
5
7
  docker:
6
- - image: circleci/ruby:2.6-node-browsers
8
+ - image: cimg/ruby:3.0-browsers
7
9
  environment:
8
10
  BUNDLE_JOBS: 3
9
11
  BUNDLE_RETRY: 3
10
12
  BUNDLE_PATH: vendor/bundle
11
13
  RAILS_ENV: test
12
14
  steps:
15
+ - browser-tools/install-browser-tools
13
16
  - checkout
14
17
 
15
18
  # Install dependent packages
16
19
  - run:
17
20
  name: Install dependent packages
18
- command: sudo apt-get install -y cmake qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base gstreamer1.0-tools gstreamer1.0-x
21
+ command: |
22
+ sudo apt update
23
+ sudo apt install -y cmake libsqlite3-dev
19
24
 
20
25
  # Which version of bundler?
21
26
  - run:
data/.onkcop-config.yml CHANGED
@@ -29,12 +29,12 @@ Layout/ExtraSpacing:
29
29
  # special_inside_parentheses (default) と比べて
30
30
  # * 横に長くなりづらい
31
31
  # * メソッド名の長さが変わったときに diff が少ない
32
- Layout/IndentFirstArrayElement:
32
+ Layout/FirstArrayElementIndentation:
33
33
  EnforcedStyle: consistent
34
34
 
35
35
  # ({ と hash を開始した場合に ( の位置にインデントさせる
36
36
  # そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
37
- Layout/IndentFirstHashElement:
37
+ Layout/FirstHashElementIndentation:
38
38
  EnforcedStyle: consistent
39
39
 
40
40
  # private/protected は一段深くインデントする
@@ -122,34 +122,11 @@ Metrics/BlockLength:
122
122
  - "config/routes/**/*.rb"
123
123
  - "*.gemspec"
124
124
 
125
- # 6 は強すぎるので緩める
126
- Metrics/CyclomaticComplexity:
127
- Max: 10
128
-
129
- # * 警告 120文字
130
- # * 禁止 160文字
131
- # のイメージ
132
- Metrics/LineLength:
133
- Max: 160
134
- Exclude:
135
- - "db/migrate/*.rb"
136
-
137
- # 20 行超えるのは migration ファイル以外滅多に無い
138
- Metrics/MethodLength:
139
- Max: 20
140
- Exclude:
141
- - "db/migrate/*.rb"
142
-
143
- # 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
144
- Metrics/PerceivedComplexity:
145
- Max: 8
146
-
147
-
148
125
  #################### Naming ################################
149
126
 
150
127
  # has_ から始まるメソッドは許可する
151
128
  Naming/PredicateName:
152
- NamePrefixBlacklist:
129
+ ForbiddenPrefixes:
153
130
  - "is_"
154
131
  - "have_"
155
132
  NamePrefix:
@@ -160,7 +137,7 @@ Naming/PredicateName:
160
137
  # n(umber) といった 1 文字変数は頻出するし、前置詞(by, to, ...)や
161
138
  # よく知られた省略語 (op: operator とか pk: primary key とか) も妥当。
162
139
  # 変数 s にどんな文字列かを形容したい場合と、不要な場合とがある=無効
163
- Naming/UncommunicativeMethodParamName:
140
+ Naming/MethodParameterName:
164
141
  Enabled: false
165
142
 
166
143
  #################### Performance ###########################
@@ -202,10 +179,6 @@ Style/BlockDelimiters:
202
179
  Exclude:
203
180
  - "spec/**/*_spec.rb"
204
181
 
205
- # option 等、明示的にハッシュにした方が分かりやすい場合もある
206
- Style/BracesAroundHashParameters:
207
- Enabled: false
208
-
209
182
  # scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
210
183
  # namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
211
184
  Style/ClassAndModuleChildren:
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require: rubocop-performance
3
3
  inherit_from: './.onkcop-config.yml'
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.6
6
+ TargetRubyVersion: 3.0
7
7
  Exclude:
8
8
  - 'tmp/**/*'
9
9
  - 'bin/*'
@@ -64,16 +64,20 @@ Metrics/AbcSize:
64
64
  - 'lib/jpmobile/fallback_view_selector.rb'
65
65
  - 'lib/jpmobile/resolver.rb'
66
66
  - 'lib/jpmobile/rack/filter.rb'
67
+ - 'lib/jpmobile/trans_sid.rb'
67
68
 
68
69
  Metrics/CyclomaticComplexity:
70
+ Max: 10
69
71
  Exclude:
70
72
  - 'lib/jpmobile/emoticon.rb'
71
73
  - 'lib/jpmobile/helpers.rb'
72
74
  - 'lib/jpmobile/mail.rb'
73
75
  - 'lib/jpmobile/mobile/au.rb'
74
76
  - 'lib/jpmobile/mobile/docomo.rb'
77
+ - 'lib/jpmobile/mobile/abstract_mobile.rb'
75
78
 
76
79
  Metrics/PerceivedComplexity:
80
+ Max: 8
77
81
  Exclude:
78
82
  - 'lib/jpmobile/emoticon.rb'
79
83
  - 'lib/jpmobile/helpers.rb'
@@ -81,8 +85,12 @@ Metrics/PerceivedComplexity:
81
85
  - 'lib/jpmobile/mobile/au.rb'
82
86
  - 'lib/jpmobile/mobile/docomo.rb'
83
87
  - 'lib/jpmobile/trans_sid.rb'
88
+ - 'lib/jpmobile/filter.rb'
89
+ - 'lib/jpmobile/rack/filter.rb'
90
+ - 'lib/jpmobile/mobile/abstract_mobile.rb'
84
91
 
85
- Metrics/LineLength:
92
+ Layout/LineLength:
93
+ Max: 160
86
94
  Exclude:
87
95
  - '**/*_spec.rb'
88
96
  - 'lib/jpmobile/emoticon/z_combine.rb'
@@ -115,13 +123,15 @@ Metrics/ClassLength:
115
123
  - 'lib/jpmobile/mobile/docomo.rb'
116
124
 
117
125
  Metrics/MethodLength:
126
+ Max: 20
118
127
  Exclude:
119
128
  - 'lib/jpmobile/emoticon.rb'
120
129
  - 'lib/jpmobile/helpers.rb'
121
130
  - 'lib/jpmobile/mail.rb'
122
131
  - 'lib/jpmobile/resolver.rb'
132
+ - 'test/rails/overrides/db/migrate/*'
123
133
 
124
- Lint/HandleExceptions:
134
+ Lint/SuppressedException:
125
135
  Exclude:
126
136
  - 'lib/jpmobile/emoticon.rb'
127
137
  - 'lib/jpmobile/fallback_view_selector.rb'
@@ -130,3 +140,57 @@ Lint/HandleExceptions:
130
140
  Lint/Void:
131
141
  Exclude:
132
142
  - 'lib/jpmobile/filter.rb'
143
+
144
+ Style/StringConcatenation:
145
+ Enabled: false
146
+
147
+ Layout/SpaceBeforeBrackets: # (new in 1.7)
148
+ Enabled: true
149
+ Exclude:
150
+ - '**/*_controller.rb'
151
+ - '**/*_spec.rb'
152
+ Lint/AmbiguousAssignment: # (new in 1.7)
153
+ Enabled: true
154
+ Lint/DuplicateBranch: # (new in 1.3)
155
+ Enabled: true
156
+ Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
157
+ Enabled: true
158
+ Lint/EmptyBlock: # (new in 1.1)
159
+ Enabled: true
160
+ Lint/EmptyClass: # (new in 1.3)
161
+ Enabled: true
162
+ Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
163
+ Enabled: true
164
+ Lint/ToEnumArguments: # (new in 1.1)
165
+ Enabled: true
166
+ Lint/UnexpectedBlockArity: # (new in 1.5)
167
+ Enabled: true
168
+ Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
169
+ Enabled: true
170
+ Style/ArgumentsForwarding: # (new in 1.1)
171
+ Enabled: true
172
+ Style/CollectionCompact: # (new in 1.2)
173
+ Enabled: true
174
+ Style/DocumentDynamicEvalDefinition: # (new in 1.1)
175
+ Enabled: true
176
+ Exclude:
177
+ - 'lib/jpmobile/path_set.rb'
178
+ Style/HashExcept: # (new in 1.7)
179
+ Enabled: true
180
+ Style/NegatedIfElseCondition: # (new in 1.2)
181
+ Enabled: true
182
+ Style/NilLambda: # (new in 1.3)
183
+ Enabled: true
184
+ Style/RedundantArgument: # (new in 1.4)
185
+ Enabled: true
186
+ Style/SwapValues: # (new in 1.1)
187
+ Enabled: true
188
+
189
+ Style/OptionalBooleanParameter:
190
+ Exclude:
191
+ - 'lib/jpmobile/emoticon.rb'
192
+ - 'lib/jpmobile/path_set.rb'
193
+
194
+ Metrics/ParameterLists:
195
+ Exclude:
196
+ - 'lib/jpmobile/path_set.rb'
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
1
+ 3.0.3
data/Gemfile CHANGED
@@ -5,3 +5,5 @@ gemspec
5
5
 
6
6
  gem 'rubocop', require: false
7
7
  gem 'rubocop-performance', require: false
8
+ gem 'rubocop-rails', require: false
9
+ gem 'rubocop-rspec', require: false
data/Gemfile.lock CHANGED
@@ -1,223 +1,217 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jpmobile (6.0.0.beta)
4
+ jpmobile (6.1.2)
5
5
  mail (~> 2.7.0)
6
+ rexml
7
+ scanf
6
8
 
7
9
  GEM
8
10
  remote: https://rubygems.org/
9
11
  specs:
10
- actioncable (6.0.0)
11
- actionpack (= 6.0.0)
12
+ actioncable (7.0.0)
13
+ actionpack (= 7.0.0)
14
+ activesupport (= 7.0.0)
12
15
  nio4r (~> 2.0)
13
16
  websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.0)
15
- actionpack (= 6.0.0)
16
- activejob (= 6.0.0)
17
- activerecord (= 6.0.0)
18
- activestorage (= 6.0.0)
19
- activesupport (= 6.0.0)
17
+ actionmailbox (7.0.0)
18
+ actionpack (= 7.0.0)
19
+ activejob (= 7.0.0)
20
+ activerecord (= 7.0.0)
21
+ activestorage (= 7.0.0)
22
+ activesupport (= 7.0.0)
20
23
  mail (>= 2.7.1)
21
- actionmailer (6.0.0)
22
- actionpack (= 6.0.0)
23
- actionview (= 6.0.0)
24
- activejob (= 6.0.0)
24
+ actionmailer (7.0.0)
25
+ actionpack (= 7.0.0)
26
+ actionview (= 7.0.0)
27
+ activejob (= 7.0.0)
28
+ activesupport (= 7.0.0)
25
29
  mail (~> 2.5, >= 2.5.4)
26
30
  rails-dom-testing (~> 2.0)
27
- actionpack (6.0.0)
28
- actionview (= 6.0.0)
29
- activesupport (= 6.0.0)
30
- rack (~> 2.0)
31
+ actionpack (7.0.0)
32
+ actionview (= 7.0.0)
33
+ activesupport (= 7.0.0)
34
+ rack (~> 2.0, >= 2.2.0)
31
35
  rack-test (>= 0.6.3)
32
36
  rails-dom-testing (~> 2.0)
33
37
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.0)
35
- actionpack (= 6.0.0)
36
- activerecord (= 6.0.0)
37
- activestorage (= 6.0.0)
38
- activesupport (= 6.0.0)
38
+ actiontext (7.0.0)
39
+ actionpack (= 7.0.0)
40
+ activerecord (= 7.0.0)
41
+ activestorage (= 7.0.0)
42
+ activesupport (= 7.0.0)
43
+ globalid (>= 0.6.0)
39
44
  nokogiri (>= 1.8.5)
40
- actionview (6.0.0)
41
- activesupport (= 6.0.0)
45
+ actionview (7.0.0)
46
+ activesupport (= 7.0.0)
42
47
  builder (~> 3.1)
43
48
  erubi (~> 1.4)
44
49
  rails-dom-testing (~> 2.0)
45
50
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.0)
47
- activesupport (= 6.0.0)
51
+ activejob (7.0.0)
52
+ activesupport (= 7.0.0)
48
53
  globalid (>= 0.3.6)
49
- activemodel (6.0.0)
50
- activesupport (= 6.0.0)
51
- activerecord (6.0.0)
52
- activemodel (= 6.0.0)
53
- activesupport (= 6.0.0)
54
- activestorage (6.0.0)
55
- actionpack (= 6.0.0)
56
- activejob (= 6.0.0)
57
- activerecord (= 6.0.0)
58
- marcel (~> 0.3.1)
59
- activesupport (6.0.0)
54
+ activemodel (7.0.0)
55
+ activesupport (= 7.0.0)
56
+ activerecord (7.0.0)
57
+ activemodel (= 7.0.0)
58
+ activesupport (= 7.0.0)
59
+ activestorage (7.0.0)
60
+ actionpack (= 7.0.0)
61
+ activejob (= 7.0.0)
62
+ activerecord (= 7.0.0)
63
+ activesupport (= 7.0.0)
64
+ marcel (~> 1.0)
65
+ mini_mime (>= 1.1.0)
66
+ activesupport (7.0.0)
60
67
  concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.1, >= 2.1.8)
65
- addressable (2.6.0)
66
- public_suffix (>= 2.0.2, < 4.0)
67
- ast (2.4.0)
68
- builder (3.2.3)
69
- capybara (3.28.0)
70
- addressable
71
- mini_mime (>= 0.1.3)
72
- nokogiri (~> 1.8)
73
- rack (>= 1.6.0)
74
- rack-test (>= 0.6.3)
75
- regexp_parser (~> 1.5)
76
- xpath (~> 3.2)
77
- capybara-webkit (1.15.1)
78
- capybara (>= 2.3, < 4.0)
79
- json
80
- coderay (1.1.2)
81
- concurrent-ruby (1.1.5)
82
- crass (1.0.4)
83
- diff-lcs (1.3)
84
- erubi (1.8.0)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ ast (2.4.2)
72
+ builder (3.2.4)
73
+ coderay (1.1.3)
74
+ concurrent-ruby (1.1.9)
75
+ crass (1.0.6)
76
+ diff-lcs (1.4.4)
77
+ erubi (1.10.0)
85
78
  geokit (1.13.1)
86
- git (1.5.0)
87
- globalid (0.4.2)
88
- activesupport (>= 4.2.0)
79
+ git (1.9.1)
80
+ rchardet (~> 1.8)
81
+ globalid (1.0.0)
82
+ activesupport (>= 5.0)
89
83
  hpricot (0.8.6)
90
- i18n (1.6.0)
84
+ i18n (1.8.11)
91
85
  concurrent-ruby (~> 1.0)
92
- jaro_winkler (1.5.3)
93
- json (2.2.0)
94
- loofah (2.2.3)
86
+ loofah (2.13.0)
95
87
  crass (~> 1.0.2)
96
88
  nokogiri (>= 1.5.9)
97
89
  mail (2.7.1)
98
90
  mini_mime (>= 0.1.1)
99
- marcel (0.3.3)
100
- mimemagic (~> 0.3.2)
101
- method_source (0.9.2)
102
- mimemagic (0.3.3)
103
- mini_mime (1.0.2)
104
- mini_portile2 (2.4.0)
105
- minitest (5.11.3)
106
- nio4r (2.4.0)
107
- nokogiri (1.10.4)
108
- mini_portile2 (~> 2.4.0)
109
- parallel (1.17.0)
110
- parser (2.6.3.0)
111
- ast (~> 2.4.0)
112
- pry (0.12.2)
113
- coderay (~> 1.1.0)
114
- method_source (~> 0.9.0)
115
- public_suffix (3.1.1)
116
- rack (2.0.7)
91
+ marcel (1.0.2)
92
+ method_source (1.0.0)
93
+ mini_mime (1.1.2)
94
+ minitest (5.15.0)
95
+ nio4r (2.5.8)
96
+ nokogiri (1.12.5-arm64-darwin)
97
+ racc (~> 1.4)
98
+ parallel (1.21.0)
99
+ parser (3.0.3.2)
100
+ ast (~> 2.4.1)
101
+ pry (0.14.1)
102
+ coderay (~> 1.1)
103
+ method_source (~> 1.0)
104
+ racc (1.6.0)
105
+ rack (2.2.3)
117
106
  rack-test (1.1.0)
118
107
  rack (>= 1.0, < 3)
119
- rails (6.0.0)
120
- actioncable (= 6.0.0)
121
- actionmailbox (= 6.0.0)
122
- actionmailer (= 6.0.0)
123
- actionpack (= 6.0.0)
124
- actiontext (= 6.0.0)
125
- actionview (= 6.0.0)
126
- activejob (= 6.0.0)
127
- activemodel (= 6.0.0)
128
- activerecord (= 6.0.0)
129
- activestorage (= 6.0.0)
130
- activesupport (= 6.0.0)
131
- bundler (>= 1.3.0)
132
- railties (= 6.0.0)
133
- sprockets-rails (>= 2.0.0)
108
+ rails (7.0.0)
109
+ actioncable (= 7.0.0)
110
+ actionmailbox (= 7.0.0)
111
+ actionmailer (= 7.0.0)
112
+ actionpack (= 7.0.0)
113
+ actiontext (= 7.0.0)
114
+ actionview (= 7.0.0)
115
+ activejob (= 7.0.0)
116
+ activemodel (= 7.0.0)
117
+ activerecord (= 7.0.0)
118
+ activestorage (= 7.0.0)
119
+ activesupport (= 7.0.0)
120
+ bundler (>= 1.15.0)
121
+ railties (= 7.0.0)
134
122
  rails-dom-testing (2.0.3)
135
123
  activesupport (>= 4.2.0)
136
124
  nokogiri (>= 1.6)
137
- rails-html-sanitizer (1.2.0)
138
- loofah (~> 2.2, >= 2.2.2)
139
- railties (6.0.0)
140
- actionpack (= 6.0.0)
141
- activesupport (= 6.0.0)
125
+ rails-html-sanitizer (1.4.2)
126
+ loofah (~> 2.3)
127
+ railties (7.0.0)
128
+ actionpack (= 7.0.0)
129
+ activesupport (= 7.0.0)
142
130
  method_source
143
- rake (>= 0.8.7)
144
- thor (>= 0.20.3, < 2.0)
131
+ rake (>= 12.2)
132
+ thor (~> 1.0)
133
+ zeitwerk (~> 2.5)
145
134
  rainbow (3.0.0)
146
- rake (12.3.3)
147
- regexp_parser (1.6.0)
148
- rspec (3.8.0)
149
- rspec-core (~> 3.8.0)
150
- rspec-expectations (~> 3.8.0)
151
- rspec-mocks (~> 3.8.0)
152
- rspec-core (3.8.2)
153
- rspec-support (~> 3.8.0)
154
- rspec-expectations (3.8.4)
135
+ rake (13.0.6)
136
+ rchardet (1.8.0)
137
+ regexp_parser (2.2.0)
138
+ rexml (3.2.5)
139
+ rspec (3.10.0)
140
+ rspec-core (~> 3.10.0)
141
+ rspec-expectations (~> 3.10.0)
142
+ rspec-mocks (~> 3.10.0)
143
+ rspec-core (3.10.1)
144
+ rspec-support (~> 3.10.0)
145
+ rspec-expectations (3.10.1)
155
146
  diff-lcs (>= 1.2.0, < 2.0)
156
- rspec-support (~> 3.8.0)
147
+ rspec-support (~> 3.10.0)
157
148
  rspec-its (1.3.0)
158
149
  rspec-core (>= 3.0.0)
159
150
  rspec-expectations (>= 3.0.0)
160
- rspec-mocks (3.8.1)
151
+ rspec-mocks (3.10.2)
161
152
  diff-lcs (>= 1.2.0, < 2.0)
162
- rspec-support (~> 3.8.0)
163
- rspec-rails (3.8.2)
164
- actionpack (>= 3.0)
165
- activesupport (>= 3.0)
166
- railties (>= 3.0)
167
- rspec-core (~> 3.8.0)
168
- rspec-expectations (~> 3.8.0)
169
- rspec-mocks (~> 3.8.0)
170
- rspec-support (~> 3.8.0)
171
- rspec-support (3.8.2)
172
- rubocop (0.74.0)
173
- jaro_winkler (~> 1.5.1)
153
+ rspec-support (~> 3.10.0)
154
+ rspec-rails (5.0.2)
155
+ actionpack (>= 5.2)
156
+ activesupport (>= 5.2)
157
+ railties (>= 5.2)
158
+ rspec-core (~> 3.10)
159
+ rspec-expectations (~> 3.10)
160
+ rspec-mocks (~> 3.10)
161
+ rspec-support (~> 3.10)
162
+ rspec-support (3.10.3)
163
+ rubocop (1.23.0)
174
164
  parallel (~> 1.10)
175
- parser (>= 2.6)
165
+ parser (>= 3.0.0.0)
176
166
  rainbow (>= 2.2.2, < 4.0)
167
+ regexp_parser (>= 1.8, < 3.0)
168
+ rexml
169
+ rubocop-ast (>= 1.12.0, < 2.0)
177
170
  ruby-progressbar (~> 1.7)
178
- unicode-display_width (>= 1.4.0, < 1.7)
179
- rubocop-performance (1.4.1)
180
- rubocop (>= 0.71.0)
181
- ruby-progressbar (1.10.1)
182
- sprockets (3.7.2)
183
- concurrent-ruby (~> 1.0)
184
- rack (> 1, < 3)
185
- sprockets-rails (3.2.1)
186
- actionpack (>= 4.0)
187
- activesupport (>= 4.0)
188
- sprockets (>= 3.0.0)
189
- sqlite3 (1.4.1)
171
+ unicode-display_width (>= 1.4.0, < 3.0)
172
+ rubocop-ast (1.15.0)
173
+ parser (>= 3.0.1.1)
174
+ rubocop-performance (1.12.0)
175
+ rubocop (>= 1.7.0, < 2.0)
176
+ rubocop-ast (>= 0.4.0)
177
+ rubocop-rails (2.12.4)
178
+ activesupport (>= 4.2.0)
179
+ rack (>= 1.1)
180
+ rubocop (>= 1.7.0, < 2.0)
181
+ rubocop-rspec (2.6.0)
182
+ rubocop (~> 1.19)
183
+ ruby-progressbar (1.11.0)
184
+ scanf (1.0.0)
185
+ sqlite3 (1.4.2)
190
186
  sqlite3-ruby (1.3.3)
191
187
  sqlite3 (>= 1.3.3)
192
- thor (0.20.3)
193
- thread_safe (0.3.6)
194
- tzinfo (1.2.5)
195
- thread_safe (~> 0.1)
196
- unicode-display_width (1.6.0)
197
- websocket-driver (0.7.1)
188
+ thor (1.1.0)
189
+ tzinfo (2.0.4)
190
+ concurrent-ruby (~> 1.0)
191
+ unicode-display_width (2.1.0)
192
+ websocket-driver (0.7.5)
198
193
  websocket-extensions (>= 0.1.0)
199
- websocket-extensions (0.1.4)
200
- xpath (3.2.0)
201
- nokogiri (~> 1.8)
202
- zeitwerk (2.1.9)
194
+ websocket-extensions (0.1.5)
195
+ zeitwerk (2.5.1)
203
196
 
204
197
  PLATFORMS
205
- ruby
198
+ arm64-darwin-20
206
199
 
207
200
  DEPENDENCIES
208
- capybara-webkit
209
201
  geokit
210
202
  git
211
203
  hpricot
212
204
  jpmobile!
213
205
  pry
214
- rails (~> 6.0.0)
206
+ rails (~> 7.0.0.alpha2)
215
207
  rspec
216
208
  rspec-its
217
209
  rspec-rails
218
210
  rubocop
219
211
  rubocop-performance
212
+ rubocop-rails
213
+ rubocop-rspec
220
214
  sqlite3-ruby
221
215
 
222
216
  BUNDLED WITH
223
- 1.17.2
217
+ 2.2.32
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- [![CircleCI](https://circleci.com/gh/jpmobile/jpmobile/tree/master.svg?style=svg)](https://circleci.com/gh/jpmobile/jpmobile/tree/master)
1
+ [![CircleCI](https://circleci.com/gh/jpmobile/jpmobile/tree/main.svg?style=svg)](https://circleci.com/gh/jpmobile/jpmobile/tree/main)
2
2
  [![Code Climate](https://codeclimate.com/github/jpmobile/jpmobile/badges/gpa.svg)](https://codeclimate.com/github/jpmobile/jpmobile)
3
3
 
4
4
  # jpmobile: A Rails plugin for Japanese mobile-phones
5
5
 
6
6
  ## jpmobileとは
7
- 携帯電話特有の機能を Rails 5.0 や Rack middleware で利用するためのプラグイン。 以下の機能を備える。
7
+ 携帯電話特有の機能を Rails や Rack middleware で利用するためのプラグイン。 以下の機能を備える。
8
8
 
9
9
  * 携帯電話のキャリア判別
10
10
  * 端末位置情報の取得
@@ -38,21 +38,6 @@ Rails](https://github.com/jpmobile/jpmobile/wiki/Version-:-Jpmobile-vs-Rails)
38
38
  を参照。
39
39
 
40
40
  ## インストール
41
- ### Rails pluginとしてインストールする場合
42
- ```shell
43
- % rails plugin install git://github.com/jpmobile/jpmobile.git
44
- ```
45
-
46
- #### IPアドレス検証が必要な場合
47
- ```shell
48
- % rails plugin install git://github.com/jpmobile/jpmobile-ipaddresses.git
49
- ```
50
-
51
- #### ディスプレイ情報を取得する必要がある場合
52
- ```shell
53
- % rails plugin install git://github.com/jpmobile/jpmobile-terminfo.git
54
- ```
55
-
56
41
  ### gemでインストールする場合
57
42
  ```shell
58
43
  % gem install jpmobile
@@ -316,7 +301,7 @@ end
316
301
 
317
302
  ```ruby
318
303
  <%= get_position_link_to("位置情報を取得する", :action=>:gps) %>
319
- ```ruby
304
+ ```
320
305
 
321
306
  ### セッションIDの付与(Trans SID)
322
307
  #### Cookie非対応携帯だけに付与する
@@ -353,7 +338,7 @@ Rails.application.config.session_options = {:cookie_only => false}
353
338
 
354
339
  ```ruby
355
340
  link_to "hoge", "/controller/action/id"
356
- ```ruby
341
+ ```
357
342
 
358
343
  のようにリンク先を直接指定するとセッションIDは付加されません。
359
344
 
@@ -396,7 +381,7 @@ end
396
381
  ## jpmobileの開発方法
397
382
 
398
383
  jpmobileの開発に関しては
399
- [こちら](https://github.com/jpmobile/jpmobile/blob/master/CONTRIBUTING.md) へ
384
+ [こちら](https://github.com/jpmobile/jpmobile/blob/main/CONTRIBUTING.md) へ
400
385
 
401
386
  ## リンク
402
387