jpmobile 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/README +41 -4
  2. data/Rakefile +11 -9
  3. data/lib/jpmobile.rb +0 -6
  4. data/lib/jpmobile/emoticon.rb +105 -0
  5. data/lib/jpmobile/emoticon/au.rb +644 -0
  6. data/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
  7. data/lib/jpmobile/emoticon/docomo.rb +255 -0
  8. data/lib/jpmobile/emoticon/softbank.rb +477 -0
  9. data/lib/jpmobile/emoticon/z_combine.rb +20 -0
  10. data/lib/jpmobile/filter.rb +73 -51
  11. data/lib/jpmobile/helpers.rb +4 -4
  12. data/lib/jpmobile/hook_abstract_request.rb +6 -2
  13. data/lib/jpmobile/hook_action_controller.rb +10 -0
  14. data/lib/jpmobile/hook_action_view.rb +7 -0
  15. data/lib/jpmobile/mobile/abstract_mobile.rb +5 -1
  16. data/lib/jpmobile/mobile/au.rb +1 -1
  17. data/lib/jpmobile/mobile/docomo.rb +2 -5
  18. data/lib/jpmobile/mobile/softbank.rb +9 -1
  19. data/lib/jpmobile/mobile/z_display_info_docomo.rb +32 -10
  20. data/lib/jpmobile/mobile/z_ip_addresses.rb +6 -6
  21. data/lib/jpmobile/mobile/z_ip_addresses_au.rb +2 -1
  22. data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +6 -1
  23. data/lib/jpmobile/trans_sid.rb +5 -2
  24. data/lib/jpmobile/version.rb +1 -1
  25. data/test/au_test.rb +1 -0
  26. data/test/docomo_test.rb +8 -0
  27. data/test/emoticon_functional_test.rb +166 -0
  28. data/test/emoticon_test.rb +58 -0
  29. data/test/filter_functional_test.rb +146 -0
  30. data/test/filter_test.rb +8 -8
  31. data/test/softbank_test.rb +18 -0
  32. data/tools/generate_au_emoticon_table.rb +25 -0
  33. data/tools/{update_emoji_docomo.rb → generate_docomo_emoticon_table.rb} +4 -8
  34. data/tools/generate_emoticon_conversion_table.rb +107 -0
  35. data/tools/generate_softbank_emoticon_table.rb +32 -0
  36. data/tools/update_display_info_docomo.rb +3 -5
  37. metadata +18 -75
  38. data/NOTES +0 -21
  39. data/TODO +0 -16
  40. data/doc/classes/ActionController.html +0 -107
  41. data/doc/classes/ActionController/AbstractRequest.html +0 -216
  42. data/doc/classes/ActionView.html +0 -101
  43. data/doc/classes/DatumConv.html +0 -324
  44. data/doc/classes/Jpmobile/Display.html +0 -333
  45. data/doc/classes/Jpmobile/Filter.html +0 -119
  46. data/doc/classes/Jpmobile/Filter/Base.html +0 -269
  47. data/doc/classes/Jpmobile/Filter/Emoji.html +0 -130
  48. data/doc/classes/Jpmobile/Filter/Emoji/Inner.html +0 -183
  49. data/doc/classes/Jpmobile/Filter/Emoji/Outer.html +0 -187
  50. data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
  51. data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -170
  52. data/doc/classes/Jpmobile/Filter/Sjis.html +0 -244
  53. data/doc/classes/Jpmobile/Helpers.html +0 -558
  54. data/doc/classes/Jpmobile/Mobile.html +0 -141
  55. data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -324
  56. data/doc/classes/Jpmobile/Mobile/Au.html +0 -415
  57. data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
  58. data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -366
  59. data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
  60. data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -300
  61. data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
  62. data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -210
  63. data/doc/classes/Jpmobile/Position.html +0 -384
  64. data/doc/created.rid +0 -1
  65. data/doc/files/CHANGELOG.html +0 -110
  66. data/doc/files/NOTES.html +0 -163
  67. data/doc/files/README.html +0 -345
  68. data/doc/files/TODO.html +0 -138
  69. data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
  70. data/doc/files/lib/jpmobile/filter_rb.html +0 -115
  71. data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
  72. data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -109
  73. data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -119
  74. data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
  75. data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
  76. data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
  77. data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
  78. data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
  79. data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
  80. data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
  81. data/doc/files/lib/jpmobile/mobile/z_emoji_docomo_rb.html +0 -119
  82. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
  83. data/doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html +0 -117
  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/trans_sid_rb.html +0 -114
  87. data/doc/files/lib/jpmobile/version_rb.html +0 -101
  88. data/doc/files/lib/jpmobile_rb.html +0 -101
  89. data/doc/fr_class_index.html +0 -50
  90. data/doc/fr_file_index.html +0 -50
  91. data/doc/fr_method_index.html +0 -113
  92. data/doc/index.html +0 -24
  93. data/doc/rdoc-style.css +0 -208
  94. data/lib/jpmobile/mobile/z_emoji_docomo.rb +0 -508
  95. data/test/firefox_test.rb +0 -8
  96. data/test/transitsid_test.rb +0 -86
@@ -1,415 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Jpmobile::Mobile::Au</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Mobile::Au</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/mobile/au_rb.html">
59
- lib/jpmobile/mobile/au.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="AbstractMobile.html">
69
- AbstractMobile
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <h2>au携帯電話</h2>
85
- <p>
86
- CDMA 1X, CDMA 1X WINを含む。
87
- </p>
88
-
89
- </div>
90
-
91
-
92
- </div>
93
-
94
- <div id="method-list">
95
- <h3 class="section-bar">Methods</h3>
96
-
97
- <div class="name-list">
98
- <a href="#M000031">device_id</a>&nbsp;&nbsp;
99
- <a href="#M000030">display</a>&nbsp;&nbsp;
100
- <a href="#M000028">ident</a>&nbsp;&nbsp;
101
- <a href="#M000029">position</a>&nbsp;&nbsp;
102
- <a href="#M000027">subno</a>&nbsp;&nbsp;
103
- <a href="#M000034">supports_cookie?</a>&nbsp;&nbsp;
104
- <a href="#M000033">supports_gps?</a>&nbsp;&nbsp;
105
- <a href="#M000032">supports_location?</a>&nbsp;&nbsp;
106
- </div>
107
- </div>
108
-
109
- </div>
110
-
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
-
117
- <div id="constants-list">
118
- <h3 class="section-bar">Constants</h3>
119
-
120
- <div class="name-list">
121
- <table summary="Constants">
122
- <tr class="top-aligned-row context-row">
123
- <td class="context-item-name">USER_AGENT_REGEXP</td>
124
- <td>=</td>
125
- <td class="context-item-value">/^(?:KDDI|UP.Browser\/.+?)-(.+?) /</td>
126
- <td width="3em">&nbsp;</td>
127
- <td class="context-item-desc">
128
- 対応するUser-Agentの正規表現
129
-
130
- </td>
131
- </tr>
132
- <tr class="top-aligned-row context-row">
133
- <td class="context-item-name">LOCATION_UNSUPPORTED_DEVICE_ID</td>
134
- <td>=</td>
135
- <td class="context-item-value">[&quot;PT21&quot;, &quot;TS25&quot;, &quot;KCTE&quot;, &quot;TST9&quot;, &quot;KCU1&quot;, &quot;SYT5&quot;, &quot;KCTD&quot;, &quot;TST8&quot;, &quot;TST7&quot;, &quot;KCTC&quot;, &quot;SYT4&quot;, &quot;KCTB&quot;, &quot;KCTA&quot;, &quot;TST6&quot;, &quot;KCT9&quot;, &quot;TST5&quot;, &quot;TST4&quot;, &quot;KCT8&quot;, &quot;SYT3&quot;, &quot;KCT7&quot;, &quot;MIT1&quot;, &quot;MAT3&quot;, &quot;KCT6&quot;, &quot;TST3&quot;, &quot;KCT5&quot;, &quot;KCT4&quot;, &quot;SYT2&quot;, &quot;MAT1&quot;, &quot;MAT2&quot;, &quot;TST2&quot;, &quot;KCT3&quot;, &quot;KCT2&quot;, &quot;KCT1&quot;, &quot;TST1&quot;, &quot;SYT1&quot;]</td>
136
- <td width="3em">&nbsp;</td>
137
- <td class="context-item-desc">
138
- 簡易位置情報取得に対応していないデバイスID <a
139
- href="http://www.au.kddi.com/ezfactory/tec/spec/eznavi.html">www.au.kddi.com/ezfactory/tec/spec/eznavi.html</a>
140
-
141
- </td>
142
- </tr>
143
- <tr class="top-aligned-row context-row">
144
- <td class="context-item-name">GPS_UNSUPPORTED_DEVICE_ID</td>
145
- <td>=</td>
146
- <td class="context-item-value">[&quot;PT21&quot;, &quot;KC26&quot;, &quot;SN28&quot;, &quot;SN26&quot;, &quot;KC23&quot;, &quot;SA28&quot;, &quot;TS25&quot;, &quot;SA25&quot;, &quot;SA24&quot;, &quot;SN23&quot;, &quot;ST14&quot;, &quot;KC15&quot;, &quot;SN22&quot;, &quot;KC14&quot;, &quot;ST13&quot;, &quot;SN17&quot;, &quot;SY15&quot;, &quot;CA14&quot;, &quot;HI14&quot;, &quot;TS14&quot;, &quot;KC13&quot;, &quot;SN15&quot;, &quot;SN16&quot;, &quot;SY14&quot;, &quot;ST12&quot;, &quot;TS13&quot;, &quot;CA13&quot;, &quot;MA13&quot;, &quot;HI13&quot;, &quot;SN13&quot;, &quot;SY13&quot;, &quot;SN12&quot;, &quot;SN14&quot;, &quot;ST11&quot;, &quot;DN11&quot;, &quot;SY12&quot;, &quot;KCTE&quot;, &quot;TST9&quot;, &quot;KCU1&quot;, &quot;SYT5&quot;, &quot;KCTD&quot;, &quot;TST8&quot;, &quot;TST7&quot;, &quot;KCTC&quot;, &quot;SYT4&quot;, &quot;KCTB&quot;, &quot;KCTA&quot;, &quot;TST6&quot;, &quot;KCT9&quot;, &quot;TST5&quot;, &quot;TST4&quot;, &quot;KCT8&quot;, &quot;SYT3&quot;, &quot;KCT7&quot;, &quot;MIT1&quot;, &quot;MAT3&quot;, &quot;KCT6&quot;, &quot;TST3&quot;, &quot;KCT5&quot;, &quot;KCT4&quot;, &quot;SYT2&quot;, &quot;MAT1&quot;, &quot;MAT2&quot;, &quot;TST2&quot;, &quot;KCT3&quot;, &quot;KCT2&quot;, &quot;KCT1&quot;, &quot;TST1&quot;, &quot;SYT1&quot;]</td>
147
- <td width="3em">&nbsp;</td>
148
- <td class="context-item-desc">
149
- GPS取得に対応していないデバイスID
150
-
151
- </td>
152
- </tr>
153
- </table>
154
- </div>
155
- </div>
156
-
157
-
158
-
159
-
160
-
161
-
162
- <!-- if method_list -->
163
- <div id="methods">
164
- <h3 class="section-bar">Public Instance methods</h3>
165
-
166
- <div id="method-M000031" class="method-detail">
167
- <a name="M000031"></a>
168
-
169
- <div class="method-heading">
170
- <a href="#M000031" class="method-signature">
171
- <span class="method-name">device_id</span><span class="method-args">()</span>
172
- </a>
173
- </div>
174
-
175
- <div class="method-description">
176
- <p>
177
- デバイスIDを返す
178
- </p>
179
- <p><a class="source-toggle" href="#"
180
- onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
181
- <div class="method-source-code" id="M000031-source">
182
- <pre>
183
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 66</span>
184
- 66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">device_id</span>
185
- 67: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">user_agent</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">USER_AGENT_REGEXP</span>
186
- 68: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">$1</span>
187
- 69: <span class="ruby-keyword kw">else</span>
188
- 70: <span class="ruby-keyword kw">nil</span>
189
- 71: <span class="ruby-keyword kw">end</span>
190
- 72: <span class="ruby-keyword kw">end</span>
191
- </pre>
192
- </div>
193
- </div>
194
- </div>
195
-
196
- <div id="method-M000030" class="method-detail">
197
- <a name="M000030"></a>
198
-
199
- <div class="method-heading">
200
- <a href="#M000030" class="method-signature">
201
- <span class="method-name">display</span><span class="method-args">()</span>
202
- </a>
203
- </div>
204
-
205
- <div class="method-description">
206
- <p>
207
- 画面情報を <tt><a href="../Display.html">Display</a></tt>
208
- クラスのインスタンスで返す。
209
- </p>
210
- <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000030-source">
213
- <pre>
214
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 50</span>
215
- 50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display</span>
216
- 51: <span class="ruby-identifier">p_w</span> = <span class="ruby-identifier">p_h</span> = <span class="ruby-identifier">col_p</span> = <span class="ruby-identifier">cols</span> = <span class="ruby-keyword kw">nil</span>
217
- 52: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span> = <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">env</span>[<span class="ruby-value str">'HTTP_X_UP_DEVCAP_SCREENPIXELS'</span>]
218
- 53: <span class="ruby-identifier">p_w</span>, <span class="ruby-identifier">p_h</span> = <span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/,/</span>,<span class="ruby-value">2</span>).<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span>.<span class="ruby-identifier">to_i</span>}
219
- 54: <span class="ruby-keyword kw">end</span>
220
- 55: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span> = <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">env</span>[<span class="ruby-value str">'HTTP_X_UP_DEVCAP_ISCOLOR'</span>]
221
- 56: <span class="ruby-identifier">col_p</span> = (<span class="ruby-identifier">r</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'1'</span>)
222
- 57: <span class="ruby-keyword kw">end</span>
223
- 58: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">r</span> = <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">env</span>[<span class="ruby-value str">'HTTP_X_UP_DEVCAP_SCREENDEPTH'</span>]
224
- 59: <span class="ruby-identifier">a</span> = <span class="ruby-identifier">r</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp re">/,/</span>)
225
- 60: <span class="ruby-identifier">cols</span> = <span class="ruby-value">2</span> <span class="ruby-operator">**</span> <span class="ruby-identifier">a</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">to_i</span>
226
- 61: <span class="ruby-keyword kw">end</span>
227
- 62: <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Display</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">p_w</span>, <span class="ruby-identifier">p_h</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">col_p</span>, <span class="ruby-identifier">cols</span>)
228
- 63: <span class="ruby-keyword kw">end</span>
229
- </pre>
230
- </div>
231
- </div>
232
- </div>
233
-
234
- <div id="method-M000028" class="method-detail">
235
- <a name="M000028"></a>
236
-
237
- <div class="method-heading">
238
- <span class="method-name">ident</span><span class="method-args">()</span>
239
- </div>
240
-
241
- <div class="method-description">
242
- <p>
243
- Alias for <a href="Au.html#M000027">subno</a>
244
- </p>
245
- </div>
246
- </div>
247
-
248
- <div id="method-M000029" class="method-detail">
249
- <a name="M000029"></a>
250
-
251
- <div class="method-heading">
252
- <a href="#M000029" class="method-signature">
253
- <span class="method-name">position</span><span class="method-args">()</span>
254
- </a>
255
- </div>
256
-
257
- <div class="method-description">
258
- <p>
259
- 位置情報があれば <a href="../Position.html">Position</a>
260
- のインスタンスを返す。無ければ <tt>nil</tt> を返す。
261
- </p>
262
- <p><a class="source-toggle" href="#"
263
- onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
264
- <div class="method-source-code" id="M000029-source">
265
- <pre>
266
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 24</span>
267
- 24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
268
- 25: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lat&quot;</span>].<span class="ruby-identifier">blank?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lon&quot;</span>].<span class="ruby-identifier">blank?</span>
269
- 26: <span class="ruby-identifier">l</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">new</span>
270
- 27: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">options</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">reject</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-operator">!</span>[<span class="ruby-value str">&quot;ver&quot;</span>, <span class="ruby-value str">&quot;datum&quot;</span>, <span class="ruby-value str">&quot;unit&quot;</span>, <span class="ruby-value str">&quot;lat&quot;</span>, <span class="ruby-value str">&quot;lon&quot;</span>, <span class="ruby-value str">&quot;alt&quot;</span>, <span class="ruby-value str">&quot;time&quot;</span>, <span class="ruby-value str">&quot;smaj&quot;</span>, <span class="ruby-value str">&quot;smin&quot;</span>, <span class="ruby-value str">&quot;vert&quot;</span>, <span class="ruby-value str">&quot;majaa&quot;</span>, <span class="ruby-value str">&quot;fm&quot;</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">x</span>) }
271
- 28: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;unit&quot;</span>]
272
- 29: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;1&quot;</span>
273
- 30: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">lat</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lat&quot;</span>].<span class="ruby-identifier">to_f</span>
274
- 31: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">lon</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lon&quot;</span>].<span class="ruby-identifier">to_f</span>
275
- 32: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;0&quot;</span>, <span class="ruby-value str">&quot;dms&quot;</span>
276
- 33: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Invalid dms form&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lat&quot;</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^([+-]?\d+)\.(\d+)\.(\d+\.\d+)$/</span>
277
- 34: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">lat</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">dms2deg</span>(<span class="ruby-identifier">$1</span>,<span class="ruby-identifier">$2</span>,<span class="ruby-identifier">$3</span>)
278
- 35: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Invalid dms form&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;lon&quot;</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^([+-]?\d+)\.(\d+)\.(\d+\.\d+)$/</span>
279
- 36: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">lon</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">dms2deg</span>(<span class="ruby-identifier">$1</span>,<span class="ruby-identifier">$2</span>,<span class="ruby-identifier">$3</span>)
280
- 37: <span class="ruby-keyword kw">else</span>
281
- 38: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
282
- 39: <span class="ruby-keyword kw">end</span>
283
- 40: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;datum&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;1&quot;</span>
284
- 41: <span class="ruby-comment cmt"># ただし、params[&quot;datum&quot;]==&quot;tokyo&quot;のとき(簡易位置情報)のときは、</span>
285
- 42: <span class="ruby-comment cmt"># 実際にはWGS84系のデータが渡ってくる</span>
286
- 43: <span class="ruby-comment cmt"># http://www.au.kddi.com/ezfactory/tec/spec/eznavi.html</span>
287
- 44: <span class="ruby-identifier">l</span>.<span class="ruby-identifier">tokyo2wgs84!</span>
288
- 45: <span class="ruby-keyword kw">end</span>
289
- 46: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l</span>
290
- 47: <span class="ruby-keyword kw">end</span>
291
- </pre>
292
- </div>
293
- </div>
294
- </div>
295
-
296
- <div id="method-M000027" class="method-detail">
297
- <a name="M000027"></a>
298
-
299
- <div class="method-heading">
300
- <a href="#M000027" class="method-signature">
301
- <span class="method-name">subno</span><span class="method-args">()</span>
302
- </a>
303
- </div>
304
-
305
- <div class="method-description">
306
- <p>
307
- EZ番号(サブスクライバID)があれば返す。無ければ
308
- <tt>nil</tt> を返す。
309
- </p>
310
- <p><a class="source-toggle" href="#"
311
- onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000027-source">
313
- <pre>
314
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 18</span>
315
- 18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subno</span>
316
- 19: <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">env</span>[<span class="ruby-value str">&quot;HTTP_X_UP_SUBNO&quot;</span>]
317
- 20: <span class="ruby-keyword kw">end</span>
318
- </pre>
319
- </div>
320
- </div>
321
- </div>
322
-
323
- <div id="method-M000034" class="method-detail">
324
- <a name="M000034"></a>
325
-
326
- <div class="method-heading">
327
- <a href="#M000034" class="method-signature">
328
- <span class="method-name">supports_cookie?</span><span class="method-args">()</span>
329
- </a>
330
- </div>
331
-
332
- <div class="method-description">
333
- <p>
334
- cookieに対応しているか?
335
- </p>
336
- <p><a class="source-toggle" href="#"
337
- onclick="toggleCode('M000034-source');return false;">[Source]</a></p>
338
- <div class="method-source-code" id="M000034-source">
339
- <pre>
340
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 85</span>
341
- 85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
342
- 86: <span class="ruby-keyword kw">true</span>
343
- 87: <span class="ruby-keyword kw">end</span>
344
- </pre>
345
- </div>
346
- </div>
347
- </div>
348
-
349
- <div id="method-M000033" class="method-detail">
350
- <a name="M000033"></a>
351
-
352
- <div class="method-heading">
353
- <a href="#M000033" class="method-signature">
354
- <span class="method-name">supports_gps?</span><span class="method-args">()</span>
355
- </a>
356
- </div>
357
-
358
- <div class="method-description">
359
- <p>
360
- GPS位置情報取得に対応している場合は <tt>true</tt>
361
- を返す。
362
- </p>
363
- <p><a class="source-toggle" href="#"
364
- onclick="toggleCode('M000033-source');return false;">[Source]</a></p>
365
- <div class="method-source-code" id="M000033-source">
366
- <pre>
367
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 80</span>
368
- 80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_gps?</span>
369
- 81: <span class="ruby-operator">!</span> <span class="ruby-constant">GPS_UNSUPPORTED_DEVICE_ID</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">device_id</span>)
370
- 82: <span class="ruby-keyword kw">end</span>
371
- </pre>
372
- </div>
373
- </div>
374
- </div>
375
-
376
- <div id="method-M000032" class="method-detail">
377
- <a name="M000032"></a>
378
-
379
- <div class="method-heading">
380
- <a href="#M000032" class="method-signature">
381
- <span class="method-name">supports_location?</span><span class="method-args">()</span>
382
- </a>
383
- </div>
384
-
385
- <div class="method-description">
386
- <p>
387
- 簡易位置情報取得に対応している場合は <tt>true</tt>
388
- を返す。
389
- </p>
390
- <p><a class="source-toggle" href="#"
391
- onclick="toggleCode('M000032-source');return false;">[Source]</a></p>
392
- <div class="method-source-code" id="M000032-source">
393
- <pre>
394
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/au.rb, line 75</span>
395
- 75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_location?</span>
396
- 76: <span class="ruby-operator">!</span> <span class="ruby-constant">LOCATION_UNSUPPORTED_DEVICE_ID</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">device_id</span>)
397
- 77: <span class="ruby-keyword kw">end</span>
398
- </pre>
399
- </div>
400
- </div>
401
- </div>
402
-
403
-
404
- </div>
405
-
406
-
407
- </div>
408
-
409
-
410
- <div id="validator-badges">
411
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
412
- </div>
413
-
414
- </body>
415
- </html>
@@ -1,138 +0,0 @@
1
- <?xml version="1.0" encoding=" UTF-8"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Jpmobile::Mobile::Ddipocket</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset= UTF-8" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Mobile::Ddipocket</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/mobile/willcom_rb.html">
59
- lib/jpmobile/mobile/willcom.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="Willcom.html">
69
- Willcom
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
- <div id="description">
84
- <h2>DDI-POCKET</h2>
85
- <p>
86
- スーパクラスは<a href="Willcom.html">Willcom</a>。
87
- </p>
88
-
89
- </div>
90
-
91
-
92
- </div>
93
-
94
-
95
- </div>
96
-
97
-
98
- <!-- if includes -->
99
-
100
- <div id="section">
101
-
102
-
103
- <div id="constants-list">
104
- <h3 class="section-bar">Constants</h3>
105
-
106
- <div class="name-list">
107
- <table summary="Constants">
108
- <tr class="top-aligned-row context-row">
109
- <td class="context-item-name">USER_AGENT_REGEXP</td>
110
- <td>=</td>
111
- <td class="context-item-value">/^Mozilla\/3.0\(DDIPOCKET/</td>
112
- <td width="3em">&nbsp;</td>
113
- <td class="context-item-desc">
114
- 対応するUser-Agentの正規表現
115
-
116
- </td>
117
- </tr>
118
- </table>
119
- </div>
120
- </div>
121
-
122
-
123
-
124
-
125
-
126
-
127
- <!-- if method_list -->
128
-
129
-
130
- </div>
131
-
132
-
133
- <div id="validator-badges">
134
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
135
- </div>
136
-
137
- </body>
138
- </html>