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,366 +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::Docomo</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::Docomo</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/mobile/docomo_rb.html">
59
- lib/jpmobile/mobile/docomo.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>DoCoMo携帯電話</h2>
85
-
86
- </div>
87
-
88
-
89
- </div>
90
-
91
- <div id="method-list">
92
- <h3 class="section-bar">Methods</h3>
93
-
94
- <div class="name-list">
95
- <a href="#M000014">areacode</a>&nbsp;&nbsp;
96
- <a href="#M000019">display</a>&nbsp;&nbsp;
97
- <a href="#M000017">icc</a>&nbsp;&nbsp;
98
- <a href="#M000018">ident</a>&nbsp;&nbsp;
99
- <a href="#M000015">position</a>&nbsp;&nbsp;
100
- <a href="#M000016">serial_number</a>&nbsp;&nbsp;
101
- <a href="#M000020">supports_cookie?</a>&nbsp;&nbsp;
102
- </div>
103
- </div>
104
-
105
- </div>
106
-
107
-
108
- <!-- if includes -->
109
-
110
- <div id="section">
111
-
112
-
113
- <div id="constants-list">
114
- <h3 class="section-bar">Constants</h3>
115
-
116
- <div class="name-list">
117
- <table summary="Constants">
118
- <tr class="top-aligned-row context-row">
119
- <td class="context-item-name">USER_AGENT_REGEXP</td>
120
- <td>=</td>
121
- <td class="context-item-value">/^DoCoMo/</td>
122
- <td width="3em">&nbsp;</td>
123
- <td class="context-item-desc">
124
- 対応するUser-Agentの正規表現
125
-
126
- </td>
127
- </tr>
128
- </table>
129
- </div>
130
- </div>
131
-
132
-
133
-
134
-
135
-
136
-
137
- <!-- if method_list -->
138
- <div id="methods">
139
- <h3 class="section-bar">Public Instance methods</h3>
140
-
141
- <div id="method-M000014" class="method-detail">
142
- <a name="M000014"></a>
143
-
144
- <div class="method-heading">
145
- <a href="#M000014" class="method-signature">
146
- <span class="method-name">areacode</span><span class="method-args">()</span>
147
- </a>
148
- </div>
149
-
150
- <div class="method-description">
151
- <p>
152
- オープンiエリアがあればエリアコードを <tt>String</tt>
153
- で返す。無ければ <tt>nil</tt> を返す。
154
- </p>
155
- <p><a class="source-toggle" href="#"
156
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
157
- <div class="method-source-code" id="M000014-source">
158
- <pre>
159
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 10</span>
160
- 10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">areacode</span>
161
- 11: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;ACTN&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;OK&quot;</span>
162
- 12: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;AREACODE&quot;</span>]
163
- 13: <span class="ruby-keyword kw">else</span>
164
- 14: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
165
- 15: <span class="ruby-keyword kw">end</span>
166
- 16: <span class="ruby-keyword kw">end</span>
167
- </pre>
168
- </div>
169
- </div>
170
- </div>
171
-
172
- <div id="method-M000019" class="method-detail">
173
- <a name="M000019"></a>
174
-
175
- <div class="method-heading">
176
- <a href="#M000019" class="method-signature">
177
- <span class="method-name">display</span><span class="method-args">()</span>
178
- </a>
179
- </div>
180
-
181
- <div class="method-description">
182
- <p>
183
- 画面情報を <tt><a href="../Display.html">Display</a></tt>
184
- クラスのインスタンスで返す。
185
- </p>
186
- <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000019-source">
189
- <pre>
190
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 54</span>
191
- 54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display</span>
192
- 55: <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-keyword kw">nil</span>,<span class="ruby-keyword kw">nil</span>,
193
- 56: <span class="ruby-identifier">display_info</span>[<span class="ruby-identifier">:browser_width</span>],
194
- 57: <span class="ruby-identifier">display_info</span>[<span class="ruby-identifier">:browser_height</span>],
195
- 58: <span class="ruby-identifier">display_info</span>[<span class="ruby-identifier">:color_p</span>],
196
- 59: <span class="ruby-identifier">display_info</span>[<span class="ruby-identifier">:colors</span>])
197
- 60: <span class="ruby-keyword kw">end</span>
198
- </pre>
199
- </div>
200
- </div>
201
- </div>
202
-
203
- <div id="method-M000017" class="method-detail">
204
- <a name="M000017"></a>
205
-
206
- <div class="method-heading">
207
- <a href="#M000017" class="method-signature">
208
- <span class="method-name">icc</span><span class="method-args">()</span>
209
- </a>
210
- </div>
211
-
212
- <div class="method-description">
213
- <p>
214
- FOMAカード製造番号があれば返す。無ければ <tt>nil</tt>
215
- を返す。
216
- </p>
217
- <p><a class="source-toggle" href="#"
218
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
219
- <div class="method-source-code" id="M000017-source">
220
- <pre>
221
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 43</span>
222
- 43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">icc</span>
223
- 44: <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">user_agent</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/icc([0-9a-zA-Z]{20})\)/</span>
224
- 45: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">$1</span>
225
- 46: <span class="ruby-keyword kw">end</span>
226
- </pre>
227
- </div>
228
- </div>
229
- </div>
230
-
231
- <div id="method-M000018" class="method-detail">
232
- <a name="M000018"></a>
233
-
234
- <div class="method-heading">
235
- <a href="#M000018" class="method-signature">
236
- <span class="method-name">ident</span><span class="method-args">()</span>
237
- </a>
238
- </div>
239
-
240
- <div class="method-description">
241
- <p>
242
- <a href="Docomo.html#M000017">Docomo#icc</a>、<a
243
- href="Docomo.html#M000016">Docomo#serial_number</a>
244
- の順で有効なものが有れば返す。無ければ <tt>nil</tt>
245
- を返す。
246
- </p>
247
- <p><a class="source-toggle" href="#"
248
- onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
249
- <div class="method-source-code" id="M000018-source">
250
- <pre>
251
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 49</span>
252
- 49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ident</span>
253
- 50: <span class="ruby-identifier">icc</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">serial_number</span>
254
- 51: <span class="ruby-keyword kw">end</span>
255
- </pre>
256
- </div>
257
- </div>
258
- </div>
259
-
260
- <div id="method-M000015" class="method-detail">
261
- <a name="M000015"></a>
262
-
263
- <div class="method-heading">
264
- <a href="#M000015" class="method-signature">
265
- <span class="method-name">position</span><span class="method-args">()</span>
266
- </a>
267
- </div>
268
-
269
- <div class="method-description">
270
- <p>
271
- 位置情報があれば <a href="../Position.html">Position</a>
272
- のインスタンスを返す。無ければ <tt>nil</tt> を返す。
273
- </p>
274
- <p><a class="source-toggle" href="#"
275
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
276
- <div class="method-source-code" id="M000015-source">
277
- <pre>
278
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 19</span>
279
- 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
280
- 20: <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>
281
- 21: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Unsuppoted datum&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value str">&quot;geo&quot;</span>].<span class="ruby-identifier">downcase</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">&quot;wgs84&quot;</span>
282
- 22: <span class="ruby-identifier">pos</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">new</span>
283
- 23: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Unsuppoted&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>
284
- 24: <span class="ruby-identifier">pos</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>)
285
- 25: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Unsuppoted&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>
286
- 26: <span class="ruby-identifier">pos</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>)
287
- 27: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pos</span>
288
- 28: <span class="ruby-keyword kw">end</span>
289
- </pre>
290
- </div>
291
- </div>
292
- </div>
293
-
294
- <div id="method-M000016" class="method-detail">
295
- <a name="M000016"></a>
296
-
297
- <div class="method-heading">
298
- <a href="#M000016" class="method-signature">
299
- <span class="method-name">serial_number</span><span class="method-args">()</span>
300
- </a>
301
- </div>
302
-
303
- <div class="method-description">
304
- <p>
305
- 端末製造番号があれば返す。無ければ <tt>nil</tt>
306
- を返す。
307
- </p>
308
- <p><a class="source-toggle" href="#"
309
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
310
- <div class="method-source-code" id="M000016-source">
311
- <pre>
312
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 31</span>
313
- 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">serial_number</span>
314
- 32: <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">user_agent</span>
315
- 33: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/ser([0-9a-zA-Z]{11})$/</span> <span class="ruby-comment cmt"># mova</span>
316
- 34: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">$1</span>
317
- 35: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/ser([0-9a-zA-Z]{15});/</span> <span class="ruby-comment cmt"># FOMA</span>
318
- 36: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">$1</span>
319
- 37: <span class="ruby-keyword kw">else</span>
320
- 38: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
321
- 39: <span class="ruby-keyword kw">end</span>
322
- 40: <span class="ruby-keyword kw">end</span>
323
- </pre>
324
- </div>
325
- </div>
326
- </div>
327
-
328
- <div id="method-M000020" class="method-detail">
329
- <a name="M000020"></a>
330
-
331
- <div class="method-heading">
332
- <a href="#M000020" class="method-signature">
333
- <span class="method-name">supports_cookie?</span><span class="method-args">()</span>
334
- </a>
335
- </div>
336
-
337
- <div class="method-description">
338
- <p>
339
- cookieに対応しているか?
340
- </p>
341
- <p><a class="source-toggle" href="#"
342
- onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
343
- <div class="method-source-code" id="M000020-source">
344
- <pre>
345
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/docomo.rb, line 63</span>
346
- 63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
347
- 64: <span class="ruby-keyword kw">false</span>
348
- 65: <span class="ruby-keyword kw">end</span>
349
- </pre>
350
- </div>
351
- </div>
352
- </div>
353
-
354
-
355
- </div>
356
-
357
-
358
- </div>
359
-
360
-
361
- <div id="validator-badges">
362
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
363
- </div>
364
-
365
- </body>
366
- </html>
@@ -1,212 +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::Jphone</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::Jphone</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/jpmobile/mobile/softbank_rb.html">
59
- lib/jpmobile/mobile/softbank.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="Vodafone.html">
69
- Vodafone
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>SoftBank 2G携帯電話(J-PHONE/<a href="Vodafone.html">Vodafone</a> 2G)</h2>
85
- <p>
86
- スーパクラスは<a href="Vodafone.html">Vodafone</a>。
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="#M000006">position</a>&nbsp;&nbsp;
99
- <a href="#M000007">supports_cookie?</a>&nbsp;&nbsp;
100
- </div>
101
- </div>
102
-
103
- </div>
104
-
105
-
106
- <!-- if includes -->
107
-
108
- <div id="section">
109
-
110
-
111
- <div id="constants-list">
112
- <h3 class="section-bar">Constants</h3>
113
-
114
- <div class="name-list">
115
- <table summary="Constants">
116
- <tr class="top-aligned-row context-row">
117
- <td class="context-item-name">USER_AGENT_REGEXP</td>
118
- <td>=</td>
119
- <td class="context-item-value">/^J-PHONE/</td>
120
- <td width="3em">&nbsp;</td>
121
- <td class="context-item-desc">
122
- 対応するUser-Agentの正規表現
123
-
124
- </td>
125
- </tr>
126
- </table>
127
- </div>
128
- </div>
129
-
130
-
131
-
132
-
133
-
134
-
135
- <!-- if method_list -->
136
- <div id="methods">
137
- <h3 class="section-bar">Public Instance methods</h3>
138
-
139
- <div id="method-M000006" class="method-detail">
140
- <a name="M000006"></a>
141
-
142
- <div class="method-heading">
143
- <a href="#M000006" class="method-signature">
144
- <span class="method-name">position</span><span class="method-args">()</span>
145
- </a>
146
- </div>
147
-
148
- <div class="method-description">
149
- <p>
150
- 位置情報があれば <a href="../Position.html">Position</a>
151
- のインスタンスを返す。無ければ <tt>nil</tt> を返す。
152
- </p>
153
- <p><a class="source-toggle" href="#"
154
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
155
- <div class="method-source-code" id="M000006-source">
156
- <pre>
157
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/softbank.rb, line 75</span>
158
- 75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span>
159
- 76: <span class="ruby-identifier">str</span> = <span class="ruby-ivar">@request</span>.<span class="ruby-identifier">env</span>[<span class="ruby-value str">&quot;HTTP_X_JPHONE_GEOCODE&quot;</span>]
160
- 77: <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">str</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">str</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;0000000%1A0000000%1A%88%CA%92%75%8F%EE%95%F1%82%C8%82%B5&quot;</span>
161
- 78: <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;unsuppoted format&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">str</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^(\d\d)(\d\d)(\d\d)%1A(\d\d\d)(\d\d)(\d\d)%1A(.+)$/</span>
162
- 79: <span class="ruby-identifier">pos</span> = <span class="ruby-constant">Jpmobile</span><span class="ruby-operator">::</span><span class="ruby-constant">Position</span>.<span class="ruby-identifier">new</span>
163
- 80: <span class="ruby-identifier">pos</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>)
164
- 81: <span class="ruby-identifier">pos</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">$4</span>,<span class="ruby-identifier">$5</span>,<span class="ruby-identifier">$6</span>)
165
- 82: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">options</span> = {<span class="ruby-value str">&quot;address&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-constant">CGI</span>.<span class="ruby-identifier">unescape</span>(<span class="ruby-identifier">$7</span>).<span class="ruby-identifier">toutf8</span>}
166
- 83: <span class="ruby-identifier">pos</span>.<span class="ruby-identifier">tokyo2wgs84!</span>
167
- 84: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">pos</span>
168
- 85: <span class="ruby-keyword kw">end</span>
169
- </pre>
170
- </div>
171
- </div>
172
- </div>
173
-
174
- <div id="method-M000007" class="method-detail">
175
- <a name="M000007"></a>
176
-
177
- <div class="method-heading">
178
- <a href="#M000007" class="method-signature">
179
- <span class="method-name">supports_cookie?</span><span class="method-args">()</span>
180
- </a>
181
- </div>
182
-
183
- <div class="method-description">
184
- <p>
185
- cookieに対応しているか?
186
- </p>
187
- <p><a class="source-toggle" href="#"
188
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
189
- <div class="method-source-code" id="M000007-source">
190
- <pre>
191
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/softbank.rb, line 88</span>
192
- 88: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">supports_cookie?</span>
193
- 89: <span class="ruby-keyword kw">false</span>
194
- 90: <span class="ruby-keyword kw">end</span>
195
- </pre>
196
- </div>
197
- </div>
198
- </div>
199
-
200
-
201
- </div>
202
-
203
-
204
- </div>
205
-
206
-
207
- <div id="validator-badges">
208
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
209
- </div>
210
-
211
- </body>
212
- </html>