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,333 +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::Display</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::Display</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/jpmobile/mobile/display_rb.html">
59
- lib/jpmobile/mobile/display.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
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
- <div id="description">
82
- <p>
83
- ディスプレイ情報
84
- </p>
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="#M000080">browser_height</a>&nbsp;&nbsp;
96
- <a href="#M000079">browser_width</a>&nbsp;&nbsp;
97
- <a href="#M000075">color?</a>&nbsp;&nbsp;
98
- <a href="#M000076">colors</a>&nbsp;&nbsp;
99
- <a href="#M000082">height</a>&nbsp;&nbsp;
100
- <a href="#M000078">physical_height</a>&nbsp;&nbsp;
101
- <a href="#M000077">physical_width</a>&nbsp;&nbsp;
102
- <a href="#M000081">width</a>&nbsp;&nbsp;
103
- </div>
104
- </div>
105
-
106
- </div>
107
-
108
-
109
- <!-- if includes -->
110
-
111
- <div id="section">
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- <!-- if method_list -->
121
- <div id="methods">
122
- <h3 class="section-bar">Public Instance methods</h3>
123
-
124
- <div id="method-M000080" class="method-detail">
125
- <a name="M000080"></a>
126
-
127
- <div class="method-heading">
128
- <a href="#M000080" class="method-signature">
129
- <span class="method-name">browser_height</span><span class="method-args">()</span>
130
- </a>
131
- </div>
132
-
133
- <div class="method-description">
134
- <p>
135
- ブラウザの画面高さを返す。不明の場合は <tt>nil</tt>。
136
- </p>
137
- <p><a class="source-toggle" href="#"
138
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
139
- <div class="method-source-code" id="M000080-source">
140
- <pre>
141
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 27</span>
142
- 27: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">browser_height</span>; <span class="ruby-ivar">@browser_height</span>; <span class="ruby-keyword kw">end</span>
143
- </pre>
144
- </div>
145
- </div>
146
- </div>
147
-
148
- <div id="method-M000079" class="method-detail">
149
- <a name="M000079"></a>
150
-
151
- <div class="method-heading">
152
- <a href="#M000079" class="method-signature">
153
- <span class="method-name">browser_width</span><span class="method-args">()</span>
154
- </a>
155
- </div>
156
-
157
- <div class="method-description">
158
- <p>
159
- ブラウザの画面幅を返す。不明の場合は <tt>nil</tt>。
160
- </p>
161
- <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000079-source">
164
- <pre>
165
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 25</span>
166
- 25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">browser_width</span>; <span class="ruby-ivar">@browser_width</span>; <span class="ruby-keyword kw">end</span>
167
- </pre>
168
- </div>
169
- </div>
170
- </div>
171
-
172
- <div id="method-M000075" class="method-detail">
173
- <a name="M000075"></a>
174
-
175
- <div class="method-heading">
176
- <a href="#M000075" class="method-signature">
177
- <span class="method-name">color?</span><span class="method-args">()</span>
178
- </a>
179
- </div>
180
-
181
- <div class="method-description">
182
- <p>
183
- 画面がカラーならば <tt>true</tt>、白黒ならば <tt>false</tt>
184
- を返す。不明の場合は <tt>nil</tt>。
185
- </p>
186
- <p><a class="source-toggle" href="#"
187
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
188
- <div class="method-source-code" id="M000075-source">
189
- <pre>
190
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 17</span>
191
- 17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">color?</span>; <span class="ruby-ivar">@color_p</span>; <span class="ruby-keyword kw">end</span>
192
- </pre>
193
- </div>
194
- </div>
195
- </div>
196
-
197
- <div id="method-M000076" class="method-detail">
198
- <a name="M000076"></a>
199
-
200
- <div class="method-heading">
201
- <a href="#M000076" class="method-signature">
202
- <span class="method-name">colors</span><span class="method-args">()</span>
203
- </a>
204
- </div>
205
-
206
- <div class="method-description">
207
- <p>
208
- 画面の色数を返す。不明の場合は <tt>nil</tt>。
209
- </p>
210
- <p><a class="source-toggle" href="#"
211
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
212
- <div class="method-source-code" id="M000076-source">
213
- <pre>
214
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 19</span>
215
- 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">colors</span>; <span class="ruby-ivar">@colors</span>; <span class="ruby-keyword kw">end</span>
216
- </pre>
217
- </div>
218
- </div>
219
- </div>
220
-
221
- <div id="method-M000082" class="method-detail">
222
- <a name="M000082"></a>
223
-
224
- <div class="method-heading">
225
- <a href="#M000082" class="method-signature">
226
- <span class="method-name">height</span><span class="method-args">()</span>
227
- </a>
228
- </div>
229
-
230
- <div class="method-description">
231
- <p>
232
- 画面の高さを返す。ブラウザ画面の高さがわかる場合はそれを優先する。不明の場合は
233
- <tt>nil</tt>。
234
- </p>
235
- <p><a class="source-toggle" href="#"
236
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
237
- <div class="method-source-code" id="M000082-source">
238
- <pre>
239
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 31</span>
240
- 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">height</span>; <span class="ruby-identifier">browser_height</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">physical_height</span>; <span class="ruby-keyword kw">end</span>
241
- </pre>
242
- </div>
243
- </div>
244
- </div>
245
-
246
- <div id="method-M000078" class="method-detail">
247
- <a name="M000078"></a>
248
-
249
- <div class="method-heading">
250
- <a href="#M000078" class="method-signature">
251
- <span class="method-name">physical_height</span><span class="method-args">()</span>
252
- </a>
253
- </div>
254
-
255
- <div class="method-description">
256
- <p>
257
- ディスプレイの画面高さを返す。不明の場合は
258
- <tt>nil</tt>。
259
- </p>
260
- <p><a class="source-toggle" href="#"
261
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
262
- <div class="method-source-code" id="M000078-source">
263
- <pre>
264
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 23</span>
265
- 23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">physical_height</span>; <span class="ruby-ivar">@physical_height</span>; <span class="ruby-keyword kw">end</span>
266
- </pre>
267
- </div>
268
- </div>
269
- </div>
270
-
271
- <div id="method-M000077" class="method-detail">
272
- <a name="M000077"></a>
273
-
274
- <div class="method-heading">
275
- <a href="#M000077" class="method-signature">
276
- <span class="method-name">physical_width</span><span class="method-args">()</span>
277
- </a>
278
- </div>
279
-
280
- <div class="method-description">
281
- <p>
282
- ディスプレイの画面幅を返す。不明の場合は
283
- <tt>nil</tt>。
284
- </p>
285
- <p><a class="source-toggle" href="#"
286
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
287
- <div class="method-source-code" id="M000077-source">
288
- <pre>
289
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 21</span>
290
- 21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">physical_width</span>; <span class="ruby-ivar">@physical_width</span>; <span class="ruby-keyword kw">end</span>
291
- </pre>
292
- </div>
293
- </div>
294
- </div>
295
-
296
- <div id="method-M000081" class="method-detail">
297
- <a name="M000081"></a>
298
-
299
- <div class="method-heading">
300
- <a href="#M000081" class="method-signature">
301
- <span class="method-name">width</span><span class="method-args">()</span>
302
- </a>
303
- </div>
304
-
305
- <div class="method-description">
306
- <p>
307
- 画面の幅を返す。ブラウザ画面の幅がわかる場合はそれを優先する。不明の場合は
308
- <tt>nil</tt>。
309
- </p>
310
- <p><a class="source-toggle" href="#"
311
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
312
- <div class="method-source-code" id="M000081-source">
313
- <pre>
314
- <span class="ruby-comment cmt"># File lib/jpmobile/mobile/display.rb, line 29</span>
315
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">width</span>; <span class="ruby-identifier">browser_width</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">physical_width</span>; <span class="ruby-keyword kw">end</span>
316
- </pre>
317
- </div>
318
- </div>
319
- </div>
320
-
321
-
322
- </div>
323
-
324
-
325
- </div>
326
-
327
-
328
- <div id="validator-badges">
329
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
330
- </div>
331
-
332
- </body>
333
- </html>
@@ -1,119 +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>Module: Jpmobile::Filter</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>Module</strong></td>
53
- <td class="class-name-in-header">Jpmobile::Filter</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/jpmobile/filter_rb.html">
59
- lib/jpmobile/filter.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <h1>文字コードフィルタモジュール。</h1>
77
-
78
- </div>
79
-
80
-
81
- </div>
82
-
83
-
84
- </div>
85
-
86
-
87
- <!-- if includes -->
88
-
89
- <div id="section">
90
-
91
- <div id="class-list">
92
- <h3 class="section-bar">Classes and Modules</h3>
93
-
94
- Module <a href="Filter/Emoji.html" class="link">Jpmobile::Filter::Emoji</a><br />
95
- Class <a href="Filter/Base.html" class="link">Jpmobile::Filter::Base</a><br />
96
- Class <a href="Filter/FilterTable.html" class="link">Jpmobile::Filter::FilterTable</a><br />
97
- Class <a href="Filter/HankakuKana.html" class="link">Jpmobile::Filter::HankakuKana</a><br />
98
- Class <a href="Filter/Sjis.html" class="link">Jpmobile::Filter::Sjis</a><br />
99
-
100
- </div>
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
- <!-- if method_list -->
109
-
110
-
111
- </div>
112
-
113
-
114
- <div id="validator-badges">
115
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
116
- </div>
117
-
118
- </body>
119
- </html>