jpmobile 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/CHANGELOG +4 -0
  2. data/README +8 -5
  3. data/Rakefile +6 -7
  4. data/lib/jpmobile.rb +12 -2
  5. data/lib/jpmobile/email.rb +19 -0
  6. data/lib/jpmobile/filter.rb +1 -15
  7. data/lib/jpmobile/helpers.rb +76 -34
  8. data/lib/jpmobile/hook_action_controller.rb +1 -0
  9. data/lib/jpmobile/hook_action_view.rb +79 -28
  10. data/lib/jpmobile/mobile/abstract_mobile.rb +13 -1
  11. data/lib/jpmobile/mobile/au.rb +2 -0
  12. data/lib/jpmobile/mobile/docomo.rb +3 -1
  13. data/lib/jpmobile/mobile/emobile.rb +2 -0
  14. data/lib/jpmobile/mobile/softbank.rb +7 -1
  15. data/lib/jpmobile/mobile/willcom.rb +4 -0
  16. data/lib/jpmobile/mobile/z_display_info_docomo.rb +85 -2
  17. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +40 -25
  18. data/lib/jpmobile/mobile/z_ip_addresses_docomo.rb +3 -1
  19. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +97 -76
  20. data/lib/jpmobile/position.rb +8 -2
  21. data/lib/jpmobile/request_with_mobile.rb +1 -1
  22. data/lib/jpmobile/util.rb +21 -0
  23. data/lib/jpmobile/version.rb +1 -1
  24. data/test/au_test.rb +1 -1
  25. data/tools/update_display_info_docomo.rb +1 -0
  26. data/tools/update_ip_addresses_willcom.rb +2 -1
  27. metadata +36 -82
  28. data/doc/classes/ActionController.html +0 -120
  29. data/doc/classes/ActionController/AbstractRequest.html +0 -118
  30. data/doc/classes/ActionController/CgiRequest.html +0 -160
  31. data/doc/classes/ActionView.html +0 -101
  32. data/doc/classes/DatumConv.html +0 -324
  33. data/doc/classes/Jpmobile/Display.html +0 -333
  34. data/doc/classes/Jpmobile/Emoticon.html +0 -467
  35. data/doc/classes/Jpmobile/Filter.html +0 -120
  36. data/doc/classes/Jpmobile/Filter/ApplyOnlyForMobile.html +0 -172
  37. data/doc/classes/Jpmobile/Filter/Base.html +0 -269
  38. data/doc/classes/Jpmobile/Filter/Emoticon.html +0 -118
  39. data/doc/classes/Jpmobile/Filter/Emoticon/Inner.html +0 -184
  40. data/doc/classes/Jpmobile/Filter/Emoticon/Outer.html +0 -207
  41. data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
  42. data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -126
  43. data/doc/classes/Jpmobile/Filter/Sjis.html +0 -271
  44. data/doc/classes/Jpmobile/Helpers.html +0 -588
  45. data/doc/classes/Jpmobile/Mobile.html +0 -150
  46. data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -389
  47. data/doc/classes/Jpmobile/Mobile/Au.html +0 -420
  48. data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
  49. data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -411
  50. data/doc/classes/Jpmobile/Mobile/Emobile.html +0 -183
  51. data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
  52. data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -344
  53. data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
  54. data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -211
  55. data/doc/classes/Jpmobile/Position.html +0 -384
  56. data/doc/classes/Jpmobile/RequestWithMobile.html +0 -263
  57. data/doc/created.rid +0 -1
  58. data/doc/files/CHANGELOG.html +0 -110
  59. data/doc/files/README.html +0 -455
  60. data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
  61. data/doc/files/lib/jpmobile/emoticon/au_rb.html +0 -124
  62. data/doc/files/lib/jpmobile/emoticon/conversion_table_rb.html +0 -124
  63. data/doc/files/lib/jpmobile/emoticon/docomo_rb.html +0 -119
  64. data/doc/files/lib/jpmobile/emoticon/softbank_rb.html +0 -119
  65. data/doc/files/lib/jpmobile/emoticon/z_combine_rb.html +0 -101
  66. data/doc/files/lib/jpmobile/emoticon_rb.html +0 -101
  67. data/doc/files/lib/jpmobile/filter_rb.html +0 -115
  68. data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
  69. data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -108
  70. data/doc/files/lib/jpmobile/hook_action_controller_rb.html +0 -101
  71. data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -110
  72. data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
  73. data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
  74. data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
  75. data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
  76. data/doc/files/lib/jpmobile/mobile/emobile_rb.html +0 -105
  77. data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
  78. data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
  79. data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
  80. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
  81. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_docomo_rb.html +0 -124
  82. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_emobile_rb.html +0 -111
  83. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_softbank_rb.html +0 -124
  84. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
  85. data/doc/files/lib/jpmobile/position_rb.html +0 -105
  86. data/doc/files/lib/jpmobile/request_with_mobile_rb.html +0 -111
  87. data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -118
  88. data/doc/files/lib/jpmobile/version_rb.html +0 -101
  89. data/doc/files/lib/jpmobile_rb.html +0 -101
  90. data/doc/fr_class_index.html +0 -55
  91. data/doc/fr_file_index.html +0 -58
  92. data/doc/fr_method_index.html +0 -134
  93. data/doc/index.html +0 -24
  94. data/doc/rdoc-style.css +0 -208
@@ -9,6 +9,8 @@ module Jpmobile::Mobile
9
9
 
10
10
  # 対応するuser-agentの正規表現
11
11
  USER_AGENT_REGEXP = nil
12
+ # 対応するメールアドレスの正規表現
13
+ MAIL_ADDRESS_REGEXP = nil
12
14
 
13
15
  # 緯度経度があれば Position のインスタンスを返す。
14
16
  def position; return nil; end
@@ -37,7 +39,7 @@ module Jpmobile::Mobile
37
39
  def valid_ip?
38
40
  @__valid_ip ||= self.class.valid_ip? @request.remote_addr
39
41
  end
40
-
42
+
41
43
  # 画面情報を +Display+ クラスのインスタンスで返す。
42
44
  def display
43
45
  @__displlay ||= Jpmobile::Display.new
@@ -48,6 +50,16 @@ module Jpmobile::Mobile
48
50
  return false
49
51
  end
50
52
 
53
+ #XXX: lib/jpmobile.rbのautoloadで先に各キャリアの定数を定義しているから動くのです
54
+ Jpmobile::Mobile.carriers.each do |carrier|
55
+ carrier_class = Jpmobile::Mobile.const_get(carrier)
56
+ next if carrier_class == self
57
+
58
+ define_method "#{carrier.downcase}?" do
59
+ self.is_a?(carrier_class)
60
+ end
61
+ end
62
+
51
63
  private
52
64
  # リクエストのパラメータ。
53
65
  def params
@@ -11,6 +11,8 @@ module Jpmobile::Mobile
11
11
  # 対応するUser-Agentの正規表現
12
12
  # User-Agent文字列中に "UP.Browser" を含むVodafoneの端末があるので注意が必要
13
13
  USER_AGENT_REGEXP = /^(?:KDDI|UP.Browser\/.+?)-(.+?) /
14
+ # 対応するメールアドレスの正規表現
15
+ MAIL_ADDRESS_REGEXP = /^.+@ezweb\.ne\.jp$/
14
16
  # 簡易位置情報取得に対応していないデバイスID
15
17
  # http://www.au.kddi.com/ezfactory/tec/spec/eznavi.html
16
18
  LOCATION_UNSUPPORTED_DEVICE_ID = ["PT21", "TS25", "KCTE", "TST9", "KCU1", "SYT5", "KCTD", "TST8", "TST7", "KCTC", "SYT4", "KCTB", "KCTA", "TST6", "KCT9", "TST5", "TST4", "KCT8", "SYT3", "KCT7", "MIT1", "MAT3", "KCT6", "TST3", "KCT5", "KCT4", "SYT2", "MAT1", "MAT2", "TST2", "KCT3", "KCT2", "KCT1", "TST1", "SYT1"]
@@ -8,6 +8,8 @@ module Jpmobile::Mobile
8
8
 
9
9
  # 対応するUser-Agentの正規表現
10
10
  USER_AGENT_REGEXP = /^DoCoMo/
11
+ # 対応するメールアドレスの正規表現
12
+ MAIL_ADDRESS_REGEXP = /^.+@docomo\.ne\.jp$/
11
13
 
12
14
  # オープンiエリアがあればエリアコードを +String+ で返す。無ければ +nil+ を返す。
13
15
  def areacode
@@ -24,7 +26,7 @@ module Jpmobile::Mobile
24
26
  lat = params["lat"] || params["LAT"]
25
27
  lon = params["lon"] || params["LON"]
26
28
  geo = params["geo"] || params["GEO"]
27
- return @__position = nil if ( lat.nil? || lat == '' || lon.nil? || lon == '' )
29
+ return @__position = nil if ( lat.nil? || lat == '' || lon.nil? || lon == '' )
28
30
  raise "Unsuppoted datum" if geo.downcase != "wgs84"
29
31
  pos = Jpmobile::Position.new
30
32
  raise "Unsuppoted" unless lat =~ /^([+-]\d+)\.(\d+)\.(\d+\.\d+)/
@@ -6,6 +6,8 @@ module Jpmobile::Mobile
6
6
  autoload :IP_ADDRESSES, 'jpmobile/mobile/z_ip_addresses_emobile'
7
7
 
8
8
  USER_AGENT_REGEXP = %r{^emobile/|^Mozilla/5.0 \(H11T; like Gecko; OpenBrowser\) NetFront/3.4$|^Mozilla/4.0 \(compatible; MSIE 6.0; Windows CE; IEMobile 7.7\) S11HT$}
9
+ # 対応するメールアドレスの正規表現
10
+ MAIL_ADDRESS_REGEXP = /^.+@emnet\.ne\.jp$/
9
11
  # EMnet対応端末から通知されるユニークなユーザIDを取得する。
10
12
  def em_uid
11
13
  @request.env['HTTP_X_EM_UID']
@@ -10,7 +10,9 @@ module Jpmobile::Mobile
10
10
  autoload :IP_ADDRESSES, 'jpmobile/mobile/z_ip_addresses_softbank'
11
11
 
12
12
  # 対応するuser-agentの正規表現
13
- USER_AGENT_REGEXP = /^(SoftBank|Semulator)/
13
+ USER_AGENT_REGEXP = /^(?:SoftBank|Semulator)/
14
+ # 対応するメールアドレスの正規表現 ディズニーモバイル対応
15
+ MAIL_ADDRESS_REGEXP = /^.+@(?:softbank\.ne\.jp|disney\.ne\.jp)$/
14
16
 
15
17
  # 製造番号を返す。無ければ +nil+ を返す。
16
18
  def serial_number
@@ -71,6 +73,8 @@ module Jpmobile::Mobile
71
73
  class Vodafone < Softbank
72
74
  # 対応するUser-Agentの正規表現
73
75
  USER_AGENT_REGEXP = /^(Vodafone|Vemulator)/
76
+ # 対応するメールアドレスの正規表現
77
+ MAIL_ADDRESS_REGEXP = /^.+@[dhtcrknsq]\.vodafone\.ne\.jp$/
74
78
 
75
79
  # cookieに対応しているか?
76
80
  def supports_cookie?
@@ -82,6 +86,8 @@ module Jpmobile::Mobile
82
86
  class Jphone < Vodafone
83
87
  # 対応するUser-Agentの正規表現
84
88
  USER_AGENT_REGEXP = /^(J-PHONE|J-EMULATOR)/
89
+ # 対応するメールアドレスの正規表現
90
+ MAIL_ADDRESS_REGEXP = /^.+@jp-[dhtcrknsq]\.ne\.jp$/
85
91
 
86
92
  # 位置情報があれば Position のインスタンスを返す。無ければ +nil+ を返す。
87
93
  def position
@@ -9,6 +9,8 @@ module Jpmobile::Mobile
9
9
 
10
10
  # 対応するUser-Agentの正規表現
11
11
  USER_AGENT_REGEXP = /^Mozilla\/3.0\(WILLCOM/
12
+ # 対応するメールアドレスの正規表現
13
+ MAIL_ADDRESS_REGEXP = /^.+@(.+\.)?pdx\.ne\.jp$/
12
14
 
13
15
  # 位置情報があれば Position のインスタンスを返す。無ければ +nil+ を返す。
14
16
  def position
@@ -31,5 +33,7 @@ module Jpmobile::Mobile
31
33
  class Ddipocket < Willcom
32
34
  # 対応するUser-Agentの正規表現
33
35
  USER_AGENT_REGEXP = /^Mozilla\/3.0\(DDIPOCKET/
36
+
37
+ MAIL_ADDRESS_REGEXP = nil # DdipocketはEmail判定だとWillcomと判定させたい
34
38
  end
35
39
  end
@@ -10,6 +10,8 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
10
10
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>266},
11
11
  "P703imyu"=>
12
12
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>270},
13
+ "F02A"=>
14
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>352},
13
15
  "F503iS"=>
14
16
  {:color_p=>true, :colors=>4096, :browser_width=>120, :browser_height=>130},
15
17
  "P851i"=>
@@ -56,6 +58,11 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
56
58
  {:color_p=>true, :colors=>65536, :browser_width=>120, :browser_height=>130},
57
59
  "N2001"=>
58
60
  {:color_p=>true, :colors=>4096, :browser_width=>118, :browser_height=>128},
61
+ "SH01A"=>
62
+ {:color_p=>true,
63
+ :colors=>16777216,
64
+ :browser_width=>240,
65
+ :browser_height=>320},
59
66
  "SH906i"=>
60
67
  {:color_p=>true,
61
68
  :colors=>16777216,
@@ -68,6 +75,10 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
68
75
  :browser_height=>320},
69
76
  "N905iBiz"=>
70
77
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
78
+ "F05A"=>
79
+ {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>352},
80
+ "SH706ie"=>
81
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
71
82
  "SH703i"=>
72
83
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>240},
73
84
  "N900iS"=>
@@ -78,6 +89,8 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
78
89
  {:color_p=>true, :colors=>65536, :browser_width=>118, :browser_height=>128},
79
90
  "F504i"=>
80
91
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>136},
92
+ "N706ie"=>
93
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
81
94
  "F905i"=>
82
95
  {:color_p=>true,
83
96
  :colors=>16777216,
@@ -123,6 +136,11 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
123
136
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
124
137
  "SH702iD"=>
125
138
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>240},
139
+ "SH04A"=>
140
+ {:color_p=>true,
141
+ :colors=>16777216,
142
+ :browser_width=>240,
143
+ :browser_height=>320},
126
144
  "SH706i"=>
127
145
  {:color_p=>true,
128
146
  :colors=>16777216,
@@ -174,8 +192,15 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
174
192
  {:color_p=>true, :colors=>262144, :browser_width=>132, :browser_height=>144},
175
193
  "P252iS"=>
176
194
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>144},
195
+ "P03A"=>
196
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
177
197
  "F671iS"=>
178
198
  {:color_p=>true, :colors=>65536, :browser_width=>160, :browser_height=>120},
199
+ "NM706i"=>
200
+ {:color_p=>true,
201
+ :colors=>16777216,
202
+ :browser_width=>231,
203
+ :browser_height=>235},
179
204
  "P2102V"=>
180
205
  {:color_p=>true, :colors=>262144, :browser_width=>176, :browser_height=>198},
181
206
  "D702i"=>
@@ -193,6 +218,8 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
193
218
  :browser_height=>352},
194
219
  "N600i"=>
195
220
  {:color_p=>true, :colors=>65536, :browser_width=>176, :browser_height=>180},
221
+ "N03A"=>
222
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
196
223
  "SO905iCS"=>
197
224
  {:color_p=>true,
198
225
  :colors=>16777216,
@@ -224,10 +251,20 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
224
251
  {:color_p=>true, :colors=>256, :browser_width=>96, :browser_height=>78},
225
252
  "F901iS"=>
226
253
  {:color_p=>true, :colors=>262144, :browser_width=>230, :browser_height=>240},
254
+ "F01A"=>
255
+ {:color_p=>true,
256
+ :colors=>16777216,
257
+ :browser_width=>240,
258
+ :browser_height=>352},
227
259
  "N906imyu"=>
228
260
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
229
261
  "F209i"=>
230
262
  {:color_p=>true, :colors=>256, :browser_width=>96, :browser_height=>91},
263
+ "SH706iw"=>
264
+ {:color_p=>true,
265
+ :colors=>16777216,
266
+ :browser_width=>240,
267
+ :browser_height=>320},
231
268
  "P706imyu"=>
232
269
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
233
270
  "F703i"=>
@@ -264,6 +301,8 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
264
301
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>270},
265
302
  "P210i"=>
266
303
  {:color_p=>true, :colors=>256, :browser_width=>96, :browser_height=>91},
304
+ "F04A"=>
305
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>352},
267
306
  "F503i"=>
268
307
  {:color_p=>true, :colors=>256, :browser_width=>120, :browser_height=>130},
269
308
  "L705iX"=>
@@ -303,6 +342,11 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
303
342
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>270},
304
343
  "P213i"=>
305
344
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>144},
345
+ "SH03A"=>
346
+ {:color_p=>true,
347
+ :colors=>16777216,
348
+ :browser_width=>240,
349
+ :browser_height=>320},
306
350
  "SH705i"=>
307
351
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
308
352
  "D701iWM"=>
@@ -349,10 +393,14 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
349
393
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>144},
350
394
  "SO211i"=>
351
395
  {:color_p=>true, :colors=>4096, :browser_width=>120, :browser_height=>112},
396
+ "L01A"=>
397
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
352
398
  "N821i"=>
353
399
  {:color_p=>false, :colors=>4, :browser_width=>118, :browser_height=>128},
354
400
  "P702i"=>
355
401
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>270},
402
+ "P02A"=>
403
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
356
404
  "P506iCII"=>
357
405
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>266},
358
406
  "N701iECO"=>
@@ -374,12 +422,16 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
374
422
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>256},
375
423
  "N2701"=>
376
424
  {:color_p=>true, :colors=>65536, :browser_width=>176, :browser_height=>198},
425
+ "N02A"=>
426
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
377
427
  "SA700iS"=>
378
428
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>252},
379
429
  "D253i"=>
380
430
  {:color_p=>true, :colors=>262144, :browser_width=>176, :browser_height=>198},
381
431
  "SH505i"=>
382
432
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>252},
433
+ "P05A"=>
434
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
383
435
  "P705imyu"=>
384
436
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
385
437
  "D704i"=>
@@ -441,10 +493,17 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
441
493
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>270},
442
494
  "D901iS"=>
443
495
  {:color_p=>true, :colors=>262144, :browser_width=>230, :browser_height=>240},
496
+ "F03A"=>
497
+ {:color_p=>true,
498
+ :colors=>16777216,
499
+ :browser_width=>240,
500
+ :browser_height=>352},
444
501
  "F884i"=>
445
502
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>364},
446
503
  "F502i"=>
447
504
  {:color_p=>true, :colors=>256, :browser_width=>96, :browser_height=>91},
505
+ "N706iII"=>
506
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
448
507
  "F705i"=>
449
508
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>352},
450
509
  "SH904i"=>
@@ -467,6 +526,16 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
467
526
  {:color_p=>false, :colors=>4, :browser_width=>118, :browser_height=>128},
468
527
  "N701i"=>
469
528
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>270},
529
+ "SH02A"=>
530
+ {:color_p=>true,
531
+ :colors=>16777216,
532
+ :browser_width=>240,
533
+ :browser_height=>320},
534
+ "F06A"=>
535
+ {:color_p=>true,
536
+ :colors=>16777216,
537
+ :browser_width=>240,
538
+ :browser_height=>352},
470
539
  "SH704i"=>
471
540
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
472
541
  "F505i"=>
@@ -508,6 +577,8 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
508
577
  {:color_p=>true, :colors=>256, :browser_width=>120, :browser_height=>113},
509
578
  "P503i"=>
510
579
  {:color_p=>true, :colors=>256, :browser_width=>120, :browser_height=>130},
580
+ "P01A"=>
581
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
511
582
  "P251iS"=>
512
583
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>144},
513
584
  "SO503iS"=>
@@ -525,14 +596,16 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
525
596
  :browser_height=>320},
526
597
  "P704i"=>
527
598
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>270},
599
+ "F903iBSC"=>
600
+ {:color_p=>true, :colors=>262144, :browser_width=>230, :browser_height=>240},
528
601
  "P504iS"=>
529
602
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>144},
530
603
  "F212i"=>
531
604
  {:color_p=>true, :colors=>65536, :browser_width=>132, :browser_height=>136},
532
- "F903iBSC"=>
533
- {:color_p=>true, :colors=>262144, :browser_width=>230, :browser_height=>240},
534
605
  "D503iS"=>
535
606
  {:color_p=>true, :colors=>4096, :browser_width=>132, :browser_height=>126},
607
+ "N01A"=>
608
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
536
609
  "P705iCL"=>
537
610
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
538
611
  "N900iG"=>
@@ -543,6 +616,10 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
543
616
  {:color_p=>true, :colors=>65536, :browser_width=>800, :browser_height=>600},
544
617
  "SO213i"=>
545
618
  {:color_p=>true, :colors=>65536, :browser_width=>120, :browser_height=>112},
619
+ "P04A"=>
620
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
621
+ "F884iES"=>
622
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>282},
546
623
  "D2101V"=>
547
624
  {:color_p=>true, :colors=>262144, :browser_width=>120, :browser_height=>130},
548
625
  "D209i"=>
@@ -571,8 +648,14 @@ Jpmobile::Mobile::Docomo::DISPLAY_INFO =
571
648
  {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>256},
572
649
  "N601i"=>
573
650
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>270},
651
+ "N04A"=>
652
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>320},
653
+ "L706ie"=>
654
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>280},
574
655
  "SH251iS"=>
575
656
  {:color_p=>true, :colors=>65536, :browser_width=>176, :browser_height=>187},
657
+ "P706ie"=>
658
+ {:color_p=>true, :colors=>262144, :browser_width=>240, :browser_height=>350},
576
659
  "N900iL"=>
577
660
  {:color_p=>true, :colors=>65536, :browser_width=>240, :browser_height=>269},
578
661
  "N211i"=>
@@ -1,32 +1,47 @@
1
1
  Jpmobile::Mobile::Au::IP_ADDRESSES =
2
- ["210.169.40.0/24",
3
- "210.196.3.192/26",
4
- "210.196.5.192/26",
5
- "210.230.128.0/24",
6
- "210.230.141.192/26",
7
- "210.234.105.32/29",
8
- "210.234.108.64/26",
9
- "210.251.1.192/26",
10
- "210.251.2.0/27",
11
- "211.5.1.0/24",
12
- "211.5.2.128/25",
13
- "211.5.7.0/24",
14
- "218.222.1.0/24",
15
- "61.117.0.0/24",
16
- "61.117.1.0/24",
17
- "61.117.2.0/26",
18
- "61.202.3.0/24",
19
- "219.108.158.0/26",
20
- "219.125.148.0/24",
21
- "222.5.63.0/24",
22
- "222.7.56.0/24",
2
+ ["210.230.128.224/28",
3
+ "61.117.0.128/25",
4
+ "61.117.1.128/25",
5
+ "218.222.1.0/25",
6
+ "121.111.227.160/27",
7
+ "218.222.1.128/28",
8
+ "218.222.1.144/28",
9
+ "218.222.1.160/28",
10
+ "61.202.3.64/28",
11
+ "61.117.1.0/28",
12
+ "219.108.158.0/27",
13
+ "219.125.146.0/28",
14
+ "61.117.2.32/29",
15
+ "61.117.2.40/29",
16
+ "219.108.158.40/29",
17
+ "219.125.148.0/25",
18
+ "222.5.63.0/25",
19
+ "222.5.63.128/25",
23
20
  "222.5.62.128/25",
24
- "222.7.57.0/24",
25
21
  "59.135.38.128/25",
26
22
  "219.108.157.0/25",
27
- "219.125.151.128/25",
28
23
  "219.125.145.0/25",
29
24
  "121.111.231.0/25",
30
- "121.111.231.160/27",
31
25
  "121.111.227.0/25",
32
- "121.111.227.160/27"].map {|ip| IPAddr.new(ip) }
26
+ "118.152.214.192/26",
27
+ "118.159.131.0/25",
28
+ "118.159.133.0/25",
29
+ "219.125.148.160/27",
30
+ "219.125.148.192/27",
31
+ "222.7.56.0/27",
32
+ "222.7.56.32/27",
33
+ "222.7.56.96/27",
34
+ "222.7.56.128/27",
35
+ "222.7.56.192/27",
36
+ "222.7.56.224/27",
37
+ "222.7.57.64/27",
38
+ "222.7.57.96/27",
39
+ "222.7.57.128/27",
40
+ "222.7.57.160/27",
41
+ "222.7.57.192/27",
42
+ "222.7.57.224/27",
43
+ "219.125.151.128/27",
44
+ "219.125.151.160/27",
45
+ "219.125.151.192/27",
46
+ "222.7.57.32/27",
47
+ "121.111.231.160/27"].map {|ip| IPAddr.new(ip) }
@@ -1,10 +1,12 @@
1
1
  # = IPアドレス帯域テーブル(手動更新分)
2
2
  # == DoCoMo
3
3
  # http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html
4
- # 2006/09現在
4
+ # 2008/09現在
5
5
  Jpmobile::Mobile::Docomo::IP_ADDRESSES = %w(
6
6
  210.153.84.0/24
7
7
  210.136.161.0/24
8
8
  210.153.86.0/24
9
+ 124.146.174.0/24
10
+ 124.146.175.0/24
9
11
  ).map {|ip| IPAddr.new(ip) }
10
12
 
@@ -1,98 +1,119 @@
1
1
  Jpmobile::Mobile::Willcom::IP_ADDRESSES =
2
- ["61.198.142.0/24",
3
- "219.108.14.0/24",
2
+ ["61.198.128.0/24",
3
+ "61.198.129.0/24",
4
+ "61.198.130.0/24",
5
+ "61.198.131.0/24",
6
+ "61.198.132.0/24",
7
+ "61.198.133.0/24",
8
+ "61.198.134.0/24",
9
+ "61.198.135.0/24",
10
+ "61.198.136.0/24",
11
+ "61.198.137.0/24",
12
+ "61.198.138.100/32",
13
+ "61.198.138.101/32",
14
+ "61.198.138.102/32",
15
+ "61.198.138.103/32",
16
+ "61.198.139.0/29",
17
+ "61.198.139.128/27",
18
+ "61.198.139.160/28",
19
+ "61.198.140.0/24",
20
+ "61.198.141.0/24",
21
+ "61.198.142.0/24",
22
+ "61.198.143.0/24",
23
+ "61.198.160.0/24",
4
24
  "61.198.161.0/24",
5
- "219.108.0.0/24",
25
+ "61.198.162.0/24",
26
+ "61.198.163.0/24",
27
+ "61.198.164.0/24",
28
+ "61.198.165.0/24",
29
+ "61.198.166.0/24",
30
+ "61.198.168.0/24",
31
+ "61.198.169.0/24",
32
+ "61.198.170.0/24",
33
+ "61.198.171.0/24",
34
+ "61.198.172.0/24",
35
+ "61.198.173.0/24",
36
+ "61.198.174.0/24",
37
+ "61.198.175.0/24",
38
+ "61.198.248.0/24",
6
39
  "61.198.249.0/24",
7
- "219.108.1.0/24",
8
40
  "61.198.250.0/24",
9
- "219.108.2.0/24",
41
+ "61.198.251.0/24",
42
+ "61.198.252.0/24",
10
43
  "61.198.253.0/24",
11
- "219.108.3.0/24",
12
44
  "61.198.254.0/24",
13
- "219.108.4.0/24",
14
45
  "61.198.255.0/24",
15
- "219.108.5.0/24",
46
+ "61.204.0.0/24",
47
+ "61.204.2.0/24",
16
48
  "61.204.3.0/25",
17
- "219.108.6.0/24",
49
+ "61.204.3.128/25",
18
50
  "61.204.4.0/24",
19
- "221.119.0.0/24",
51
+ "61.204.5.0/24",
20
52
  "61.204.6.0/25",
21
- "221.119.1.0/24",
22
- "125.28.4.0/24",
23
- "221.119.2.0/24",
24
- "125.28.5.0/24",
25
- "221.119.3.0/24",
26
- "125.28.6.0/24",
27
- "221.119.4.0/24",
28
- "125.28.7.0/24",
29
- "221.119.5.0/24",
30
- "125.28.8.0/24",
31
- "221.119.6.0/24",
32
- "211.18.235.0/24",
33
- "221.119.7.0/24",
34
- "211.18.238.0/24",
35
- "221.119.8.0/24",
36
- "211.18.239.0/24",
37
- "221.119.9.0/24",
53
+ "61.204.6.128/25",
54
+ "61.204.7.0/25",
55
+ "61.204.92.0/24",
56
+ "61.204.93.0/24",
57
+ "61.204.94.0/24",
58
+ "61.204.95.0/24",
59
+ "125.28.0.0/24",
60
+ "125.28.1.0/24",
38
61
  "125.28.11.0/24",
39
- "125.28.13.0/24",
40
62
  "125.28.12.0/24",
63
+ "125.28.13.0/24",
41
64
  "125.28.14.0/24",
65
+ "125.28.15.0/24",
66
+ "125.28.16.0/24",
67
+ "125.28.17.0/24",
42
68
  "125.28.2.0/24",
43
69
  "125.28.3.0/24",
70
+ "125.28.4.0/24",
71
+ "125.28.5.0/24",
72
+ "125.28.6.0/24",
73
+ "125.28.7.0/24",
74
+ "125.28.8.0/24",
75
+ "210.168.246.0/24",
76
+ "210.168.247.0/24",
77
+ "210.169.92.0/24",
78
+ "210.169.93.0/24",
79
+ "210.169.94.0/24",
80
+ "210.169.95.0/24",
81
+ "210.169.96.0/24",
82
+ "210.169.97.0/24",
83
+ "210.169.98.0/24",
84
+ "210.169.99.0/24",
85
+ "211.126.192.128/25",
44
86
  "211.18.232.0/24",
45
87
  "211.18.233.0/24",
88
+ "211.18.234.0/24",
89
+ "211.18.235.0/24",
46
90
  "211.18.236.0/24",
47
91
  "211.18.237.0/24",
48
- "125.28.0.0/24",
49
- "125.28.1.0/24",
50
- "61.204.0.0/24",
51
- "210.168.246.0/24",
52
- "210.168.247.0/24",
53
- "219.108.7.0/24",
54
- "61.204.2.0/24",
55
- "61.204.5.0/24",
56
- "61.198.129.0/24",
57
- "61.198.140.0/24",
58
- "61.198.141.0/24",
59
- "125.28.15.0/24",
60
- "61.198.165.0/24",
61
- "61.198.166.0/24",
62
- "61.198.168.0/24",
63
- "61.198.169.0/24",
64
- "61.198.170.0/24",
65
- "61.198.248.0/24",
66
- "125.28.16.0/24",
67
- "125.28.17.0/24",
68
- "211.18.234.0/24",
69
- "219.108.8.0/24",
70
- "219.108.9.0/24",
92
+ "211.18.238.0/24",
93
+ "211.18.239.0/24",
71
94
  "219.108.10.0/24",
72
- "61.198.138.100/32",
73
- "61.198.138.101/32",
74
- "61.198.138.102/32",
75
- "61.198.139.160/28",
76
- "61.198.139.128/27",
77
- "61.198.138.103/32",
78
- "61.198.139.0/29",
79
- "219.108.15.0/24",
80
- "61.198.130.0/24",
81
- "61.198.163.0/24",
82
- "61.204.6.128/25",
83
- "61.204.7.0/25",
84
- "61.204.92.0/24",
85
- "61.204.93.0/24",
86
- "61.204.94.0/24",
87
- "61.204.95.0/24",
88
- "61.198.128.0/24",
89
- "61.198.131.0/24",
90
- "61.198.143.0/24",
91
- "61.198.172.0/24",
92
- "61.198.173.0/24",
93
- "61.198.252.0/24",
94
- "61.204.3.128/25",
95
- "211.126.192.128/25",
96
95
  "219.108.11.0/24",
97
96
  "219.108.12.0/24",
98
- "219.108.13.0/24"].map {|ip| IPAddr.new(ip) }
97
+ "219.108.13.0/24",
98
+ "219.108.14.0/24",
99
+ "219.108.15.0/24",
100
+ "219.108.2.0/24",
101
+ "219.108.3.0/24",
102
+ "219.108.4.0/24",
103
+ "219.108.5.0/24",
104
+ "219.108.6.0/24",
105
+ "219.108.7.0/24",
106
+ "219.108.8.0/24",
107
+ "219.108.9.0/24",
108
+ "221.119.0.0/24",
109
+ "221.119.1.0/24",
110
+ "221.119.2.0/24",
111
+ "221.119.3.0/24",
112
+ "221.119.4.0/24",
113
+ "221.119.5.0/24",
114
+ "221.119.6.0/24",
115
+ "221.119.7.0/24",
116
+ "221.119.8.0/24",
117
+ "221.119.9.0/24",
118
+ "219.108.0.0/24",
119
+ "219.108.1.0/24"].map {|ip| IPAddr.new(ip) }