jpmobile 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +41 -4
- data/Rakefile +11 -9
- data/lib/jpmobile.rb +0 -6
- data/lib/jpmobile/emoticon.rb +105 -0
- data/lib/jpmobile/emoticon/au.rb +644 -0
- data/lib/jpmobile/emoticon/conversion_table.rb +3908 -0
- data/lib/jpmobile/emoticon/docomo.rb +255 -0
- data/lib/jpmobile/emoticon/softbank.rb +477 -0
- data/lib/jpmobile/emoticon/z_combine.rb +20 -0
- data/lib/jpmobile/filter.rb +73 -51
- data/lib/jpmobile/helpers.rb +4 -4
- data/lib/jpmobile/hook_abstract_request.rb +6 -2
- data/lib/jpmobile/hook_action_controller.rb +10 -0
- data/lib/jpmobile/hook_action_view.rb +7 -0
- data/lib/jpmobile/mobile/abstract_mobile.rb +5 -1
- data/lib/jpmobile/mobile/au.rb +1 -1
- data/lib/jpmobile/mobile/docomo.rb +2 -5
- data/lib/jpmobile/mobile/softbank.rb +9 -1
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +32 -10
- data/lib/jpmobile/mobile/z_ip_addresses.rb +6 -6
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +2 -1
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +6 -1
- data/lib/jpmobile/trans_sid.rb +5 -2
- data/lib/jpmobile/version.rb +1 -1
- data/test/au_test.rb +1 -0
- data/test/docomo_test.rb +8 -0
- data/test/emoticon_functional_test.rb +166 -0
- data/test/emoticon_test.rb +58 -0
- data/test/filter_functional_test.rb +146 -0
- data/test/filter_test.rb +8 -8
- data/test/softbank_test.rb +18 -0
- data/tools/generate_au_emoticon_table.rb +25 -0
- data/tools/{update_emoji_docomo.rb → generate_docomo_emoticon_table.rb} +4 -8
- data/tools/generate_emoticon_conversion_table.rb +107 -0
- data/tools/generate_softbank_emoticon_table.rb +32 -0
- data/tools/update_display_info_docomo.rb +3 -5
- metadata +18 -75
- data/NOTES +0 -21
- data/TODO +0 -16
- data/doc/classes/ActionController.html +0 -107
- data/doc/classes/ActionController/AbstractRequest.html +0 -216
- data/doc/classes/ActionView.html +0 -101
- data/doc/classes/DatumConv.html +0 -324
- data/doc/classes/Jpmobile/Display.html +0 -333
- data/doc/classes/Jpmobile/Filter.html +0 -119
- data/doc/classes/Jpmobile/Filter/Base.html +0 -269
- data/doc/classes/Jpmobile/Filter/Emoji.html +0 -130
- data/doc/classes/Jpmobile/Filter/Emoji/Inner.html +0 -183
- data/doc/classes/Jpmobile/Filter/Emoji/Outer.html +0 -187
- data/doc/classes/Jpmobile/Filter/FilterTable.html +0 -178
- data/doc/classes/Jpmobile/Filter/HankakuKana.html +0 -170
- data/doc/classes/Jpmobile/Filter/Sjis.html +0 -244
- data/doc/classes/Jpmobile/Helpers.html +0 -558
- data/doc/classes/Jpmobile/Mobile.html +0 -141
- data/doc/classes/Jpmobile/Mobile/AbstractMobile.html +0 -324
- data/doc/classes/Jpmobile/Mobile/Au.html +0 -415
- data/doc/classes/Jpmobile/Mobile/Ddipocket.html +0 -138
- data/doc/classes/Jpmobile/Mobile/Docomo.html +0 -366
- data/doc/classes/Jpmobile/Mobile/Jphone.html +0 -212
- data/doc/classes/Jpmobile/Mobile/Softbank.html +0 -300
- data/doc/classes/Jpmobile/Mobile/Vodafone.html +0 -176
- data/doc/classes/Jpmobile/Mobile/Willcom.html +0 -210
- data/doc/classes/Jpmobile/Position.html +0 -384
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/NOTES.html +0 -163
- data/doc/files/README.html +0 -345
- data/doc/files/TODO.html +0 -138
- data/doc/files/lib/jpmobile/datum_conv_rb.html +0 -110
- data/doc/files/lib/jpmobile/filter_rb.html +0 -115
- data/doc/files/lib/jpmobile/helpers_rb.html +0 -105
- data/doc/files/lib/jpmobile/hook_abstract_request_rb.html +0 -109
- data/doc/files/lib/jpmobile/hook_action_view_rb.html +0 -119
- data/doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/au_rb.html +0 -112
- data/doc/files/lib/jpmobile/mobile/display_rb.html +0 -111
- data/doc/files/lib/jpmobile/mobile/docomo_rb.html +0 -105
- data/doc/files/lib/jpmobile/mobile/softbank_rb.html +0 -115
- data/doc/files/lib/jpmobile/mobile/willcom_rb.html +0 -108
- data/doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_emoji_docomo_rb.html +0 -119
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html +0 -114
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html +0 -117
- data/doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html +0 -114
- data/doc/files/lib/jpmobile/position_rb.html +0 -105
- data/doc/files/lib/jpmobile/trans_sid_rb.html +0 -114
- data/doc/files/lib/jpmobile/version_rb.html +0 -101
- data/doc/files/lib/jpmobile_rb.html +0 -101
- data/doc/fr_class_index.html +0 -50
- data/doc/fr_file_index.html +0 -50
- data/doc/fr_method_index.html +0 -113
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/lib/jpmobile/mobile/z_emoji_docomo.rb +0 -508
- data/test/firefox_test.rb +0 -8
- data/test/transitsid_test.rb +0 -86
data/test/filter_test.rb
CHANGED
@@ -18,19 +18,19 @@ class FilterTest < Test::Unit::TestCase
|
|
18
18
|
end
|
19
19
|
def test_filter_sjis
|
20
20
|
filter = Jpmobile::Filter::Sjis.new
|
21
|
-
assert_equal(@aiu_sjis, filter.to_external(@aiu_utf8))
|
22
|
-
assert_equal(@aiu_utf8, filter.to_internal(@aiu_sjis))
|
21
|
+
assert_equal(@aiu_sjis, filter.to_external(@aiu_utf8, nil))
|
22
|
+
assert_equal(@aiu_utf8, filter.to_internal(@aiu_sjis, nil))
|
23
23
|
end
|
24
24
|
def test_filter_hankaku
|
25
25
|
filter = Jpmobile::Filter::HankakuKana.new
|
26
26
|
|
27
|
-
assert_equal(@aiu_zzz, filter.to_internal(@aiu_zhz))
|
28
|
-
assert_equal(@aiu_zzz, filter.to_internal(@aiu_zzz))
|
29
|
-
assert_equal(@aiu_zhh, filter.to_external(@aiu_zhz))
|
30
|
-
assert_equal(@aiu_zhh, filter.to_external(@aiu_zzz))
|
27
|
+
assert_equal(@aiu_zzz, filter.to_internal(@aiu_zhz, nil))
|
28
|
+
assert_equal(@aiu_zzz, filter.to_internal(@aiu_zzz, nil))
|
29
|
+
assert_equal(@aiu_zhh, filter.to_external(@aiu_zhz, nil))
|
30
|
+
assert_equal(@aiu_zhh, filter.to_external(@aiu_zzz, nil))
|
31
31
|
|
32
|
-
assert_equal(@abracadabra_z_utf8, filter.to_internal(@abracadabra_h_utf8))
|
33
|
-
assert_equal(@abracadabra_h_utf8, filter.to_external(@abracadabra_z_utf8))
|
32
|
+
assert_equal(@abracadabra_z_utf8, filter.to_internal(@abracadabra_h_utf8, nil))
|
33
|
+
assert_equal(@abracadabra_h_utf8, filter.to_external(@abracadabra_z_utf8, nil))
|
34
34
|
end
|
35
35
|
def test_sjis_filter_for_docomo
|
36
36
|
@controller.request = request_with_ua("DoCoMo/2.0 SH902i(c100;TB;W24H12)", "QUERY_STRING"=>"test=test&abra=%83A%83u%83%89%83J%83_%83u%83%89") # アブラカダブラ, Shift_JIS, urlencoded
|
data/test/softbank_test.rb
CHANGED
@@ -8,7 +8,21 @@ class SoftbankTest < Test::Unit::TestCase
|
|
8
8
|
assert_instance_of(Jpmobile::Mobile::Softbank, req.mobile)
|
9
9
|
assert_kind_of(Jpmobile::Mobile::Softbank, req.mobile)
|
10
10
|
assert_equal(nil, req.mobile.position)
|
11
|
+
assert_equal("000000000000000", req.mobile.serial_number)
|
11
12
|
assert_equal("000000000000000", req.mobile.ident)
|
13
|
+
assert_equal("000000000000000", req.mobile.ident_device)
|
14
|
+
assert_equal(nil, req.mobile.ident_subscriber)
|
15
|
+
assert(req.mobile.supports_cookie?)
|
16
|
+
end
|
17
|
+
|
18
|
+
# SoftBank, X_JPHONE_UID付き
|
19
|
+
def test_softbank_910t_x_jphone_uid
|
20
|
+
req = request_with_ua("SoftBank/1.0/910T/TJ001/SN000000000000000 Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1", "HTTP_X_JPHONE_UID"=>"aaaaaaaaaaaaaaaa")
|
21
|
+
assert_equal("000000000000000", req.mobile.serial_number)
|
22
|
+
assert_equal("aaaaaaaaaaaaaaaa", req.mobile.x_jphone_uid)
|
23
|
+
assert_equal("aaaaaaaaaaaaaaaa", req.mobile.ident)
|
24
|
+
assert_equal("000000000000000", req.mobile.ident_device)
|
25
|
+
assert_equal("aaaaaaaaaaaaaaaa", req.mobile.ident_subscriber)
|
12
26
|
assert(req.mobile.supports_cookie?)
|
13
27
|
end
|
14
28
|
|
@@ -31,6 +45,8 @@ class SoftbankTest < Test::Unit::TestCase
|
|
31
45
|
assert_kind_of(Jpmobile::Mobile::Softbank, req.mobile)
|
32
46
|
assert_equal("000000000000000", req.mobile.serial_number)
|
33
47
|
assert_equal("000000000000000", req.mobile.ident)
|
48
|
+
assert_equal("000000000000000", req.mobile.ident_device)
|
49
|
+
assert_equal(nil, req.mobile.ident_subscriber)
|
34
50
|
assert_equal(nil, req.mobile.position)
|
35
51
|
assert(req.mobile.supports_cookie?)
|
36
52
|
end
|
@@ -43,6 +59,8 @@ class SoftbankTest < Test::Unit::TestCase
|
|
43
59
|
assert_kind_of(Jpmobile::Mobile::Softbank, req.mobile)
|
44
60
|
assert_equal("XXXX0000000", req.mobile.serial_number)
|
45
61
|
assert_equal("XXXX0000000", req.mobile.ident)
|
62
|
+
assert_equal("XXXX0000000", req.mobile.ident_device)
|
63
|
+
assert_equal(nil, req.mobile.ident_subscriber)
|
46
64
|
assert_equal(nil, req.mobile.position)
|
47
65
|
assert(!req.mobile.supports_cookie?)
|
48
66
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
# http://www.au.kddi.com/ezfactory/tec/spec/pdf/typeD.pdf から生成
|
4
|
+
|
5
|
+
table = []
|
6
|
+
open("au.txt") do |f|
|
7
|
+
f.each do |l|
|
8
|
+
l.chomp!
|
9
|
+
l.scan( /(([0-9A-F] )+)/ ) do |s|
|
10
|
+
s = s[0].gsub!(/ /, "")
|
11
|
+
next if s.size < 16
|
12
|
+
out = s[s.size-16,16]
|
13
|
+
table << [0,4,8].map{|i| out[i,4]}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
open(File.dirname(__FILE__)+"/../lib/jpmobile/emoticon/au.rb","w") do |f|
|
19
|
+
f.puts "Jpmobile::Emoticon::AU_SJIS_TO_UNICODE = {"
|
20
|
+
table.each do |a|
|
21
|
+
f.puts " 0x%s=>0x%s," % [a[0],a[1]]
|
22
|
+
end
|
23
|
+
f.puts "}.freeze"
|
24
|
+
f.puts "Jpmobile::Emoticon::AU_UNICODE_TO_SJIS = Jpmobile::Emoticon::AU_SJIS_TO_UNICODE.invert.freeze"
|
25
|
+
end
|
@@ -24,15 +24,11 @@ table = []
|
|
24
24
|
end
|
25
25
|
|
26
26
|
|
27
|
-
open("lib/jpmobile/
|
28
|
-
f.puts "Jpmobile::
|
29
|
-
table.each do |row|
|
30
|
-
f.puts " 0x%s=>0x%s, "%[row[3], row[1]]
|
31
|
-
end
|
32
|
-
f.puts "}"
|
33
|
-
f.puts "Jpmobile::Filter::Emoji::DOCOMO_SJIS_TO_UNICODE = {"
|
27
|
+
open(File.dirname(__FILE__)+"/../lib/jpmobile/emoticon/docomo.rb","w") do |f|
|
28
|
+
f.puts "Jpmobile::Emoticon::DOCOMO_SJIS_TO_UNICODE = {"
|
34
29
|
table.each do |row|
|
35
30
|
f.puts " 0x%s=>0x%s, "%[row[1], row[3]]
|
36
31
|
end
|
37
|
-
f.puts "}"
|
32
|
+
f.puts "}.freeze"
|
33
|
+
f.puts "Jpmobile::Emoticon::DOCOMO_UNICODE_TO_SJIS = Jpmobile::Emoticon::DOCOMO_SJIS_TO_UNICODE.invert.freeze"
|
38
34
|
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
#!/usr/bin/ruby -Ku
|
2
|
+
require 'pp'
|
3
|
+
require 'iconv'
|
4
|
+
require 'scanf'
|
5
|
+
|
6
|
+
# http://labs.unoh.net/2007/02/post_65.html
|
7
|
+
# のテーブルから変換用テーブルを作成する。
|
8
|
+
|
9
|
+
# Jpmobileのテーブルを拝借
|
10
|
+
module Jpmobile
|
11
|
+
module Emoticon
|
12
|
+
end
|
13
|
+
end
|
14
|
+
for c in %w(au docomo softbank)
|
15
|
+
require File.dirname(__FILE__)+"/../lib/jpmobile/emoticon/#{c}.rb"
|
16
|
+
end
|
17
|
+
|
18
|
+
class Table
|
19
|
+
def initialize(path)
|
20
|
+
@list = []
|
21
|
+
@table = {}
|
22
|
+
@code = {}
|
23
|
+
if path =~ /emoji_(.)2(..)/
|
24
|
+
@type = $1
|
25
|
+
@dest_types = $2.split(//)
|
26
|
+
else
|
27
|
+
raise Exception, "something is wrong"
|
28
|
+
end
|
29
|
+
open(path) do |f|
|
30
|
+
f.gets # ヘッダを捨てる
|
31
|
+
f.each do |l|
|
32
|
+
a = Iconv.conv("utf-8", "cp932", l).chomp.split(/\t/)
|
33
|
+
@list << a
|
34
|
+
@code[a[0]] = a[1]
|
35
|
+
@table[a[0]] = a[2...a.size]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
def chars
|
40
|
+
table.keys.sort_by {|x| x.gsub(/\D/,"").to_i }
|
41
|
+
end
|
42
|
+
def conv(src, dest_type)
|
43
|
+
if dest_type == @type
|
44
|
+
src
|
45
|
+
else
|
46
|
+
@table[src][@dest_types.index(dest_type)]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
attr_reader :list, :table, :code, :type
|
50
|
+
end
|
51
|
+
|
52
|
+
class Tables
|
53
|
+
def initialize
|
54
|
+
@chars = []
|
55
|
+
@tables = {}
|
56
|
+
@types = []
|
57
|
+
for name in %w(i2es e2is s2ie)
|
58
|
+
table = Table.new("emoji_#{name}.txt")
|
59
|
+
@tables[table.type] = table
|
60
|
+
@chars |= table.chars
|
61
|
+
@types << table.type
|
62
|
+
end
|
63
|
+
end
|
64
|
+
def conv(src, dest_type)
|
65
|
+
src_type = src[1,1]
|
66
|
+
dest = @tables[src_type].conv(src, dest_type)
|
67
|
+
dest = nil if dest == "〓"
|
68
|
+
dest
|
69
|
+
end
|
70
|
+
def id_to_unicode(src)
|
71
|
+
return src if src.nil? || src !~ /^%[ies]\d+%$/
|
72
|
+
case src[1,1]
|
73
|
+
when "i"
|
74
|
+
sjis = tables["i"].code[src]
|
75
|
+
return Jpmobile::Emoticon::DOCOMO_SJIS_TO_UNICODE[sjis.to_i(16)]
|
76
|
+
when "e"
|
77
|
+
sjis = tables["e"].code[src]
|
78
|
+
return Jpmobile::Emoticon::AU_SJIS_TO_UNICODE[sjis.to_i(16)]
|
79
|
+
when "s"
|
80
|
+
webcode = tables["s"].code[src]
|
81
|
+
unicode = Jpmobile::Emoticon::SOFTBANK_WEBCODE_TO_UNICODE[webcode]
|
82
|
+
return nil unless unicode
|
83
|
+
return unicode + 0x1000
|
84
|
+
end
|
85
|
+
end
|
86
|
+
attr_reader :chars, :tables, :types
|
87
|
+
end
|
88
|
+
|
89
|
+
t = Tables.new
|
90
|
+
ident = {'i'=>'DOCOMO', 'e'=>'AU', 's'=>'SOFTBANK'}
|
91
|
+
|
92
|
+
open(File.dirname(__FILE__)+"/../lib/jpmobile/emoticon/conversion_table.rb","w") do |f|
|
93
|
+
for dest_type in %w(i e s)
|
94
|
+
f.puts "Jpmobile::Emoticon::CONVERSION_TABLE_TO_#{ident[dest_type]} = {"
|
95
|
+
for src in t.chars
|
96
|
+
dest = t.conv(src, dest_type)
|
97
|
+
src_unicode = t.id_to_unicode(src)
|
98
|
+
dest_unicode = t.id_to_unicode(dest)
|
99
|
+
next if src_unicode.nil? || dest_unicode.nil?
|
100
|
+
f.printf(" %s=>%s,\n",
|
101
|
+
src_unicode.is_a?(Integer) ? "0x%04X"%src_unicode : "'#{src_unicode}'",
|
102
|
+
dest_unicode.is_a?(Integer) ? "0x%04X"%dest_unicode : "'#{dest_unicode}'"
|
103
|
+
)
|
104
|
+
end
|
105
|
+
f.puts "}"
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'hpricot'
|
3
|
+
require 'kconv'
|
4
|
+
require 'cgi'
|
5
|
+
require 'open-uri'
|
6
|
+
|
7
|
+
# 'http://developers.softbankmobile.co.jp/dp/tool_dl/web/picword_01.php'
|
8
|
+
|
9
|
+
table = []
|
10
|
+
for i in 1..6
|
11
|
+
uri = "http://developers.softbankmobile.co.jp/dp/tool_dl/web/picword_%02d.php" % i
|
12
|
+
h = Hpricot(URI(uri).read.toutf8)
|
13
|
+
(h/"//table[@width='100%']//tr").each do |tr|
|
14
|
+
if tr
|
15
|
+
a = (tr/"td/font[@class='j10']").map { |td| td.inner_html }
|
16
|
+
unless a.empty?
|
17
|
+
s = CGI.unescapeHTML(a.last)
|
18
|
+
raise Exception, "something is wrong" if s[0,2] != "\x1b\x24" || s[4] != 0x0f
|
19
|
+
table << [a.first, s[2,2]]
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
open(File.dirname(__FILE__)+"/../lib/jpmobile/emoticon/softbank.rb","w") do |f|
|
26
|
+
f.puts "Jpmobile::Emoticon::SOFTBANK_UNICODE_TO_WEBCODE = {"
|
27
|
+
table.each do |a|
|
28
|
+
f.puts %{ 0x%s => %p,} % a
|
29
|
+
end
|
30
|
+
f.puts "}"
|
31
|
+
f.puts "Jpmobile::Emoticon::SOFTBANK_WEBCODE_TO_UNICODE = Jpmobile::Emoticon::SOFTBANK_UNICODE_TO_WEBCODE.invert"
|
32
|
+
end
|
@@ -6,19 +6,17 @@ require 'hpricot'
|
|
6
6
|
require 'pp'
|
7
7
|
|
8
8
|
src = URI("http://www.nttdocomo.co.jp/service/imode/make/content/spec/screen_area/index.html").read.toutf8
|
9
|
-
|
9
|
+
src.gsub!(/μ/,"myu")
|
10
10
|
user_agents = {}
|
11
11
|
|
12
|
-
(Hpricot(src)/"//div[@id='maincol']//table
|
13
|
-
|
14
|
-
(table/"tr[@bgcolor='#FFFFFF']").each do |tr|
|
12
|
+
(Hpricot(src)/"//div[@id='maincol']//table").each do |table|
|
13
|
+
(table/"tr[@class='acenter']").each do |tr|
|
15
14
|
a = (tr/:td).map {|x| x.inner_text }
|
16
15
|
if a.size == 7
|
17
16
|
a.shift # remove rowspan
|
18
17
|
elsif a.size != 6
|
19
18
|
raise "something is wrong"
|
20
19
|
end
|
21
|
-
a[0].sub!(/μ/,"myu")
|
22
20
|
a[0].sub!(/(.*)/,"")
|
23
21
|
a[0].sub!(/\(.+\)/,"")
|
24
22
|
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: jpmobile
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.0.2
|
7
|
+
date: 2007-10-23 00:00:00 +09:00
|
8
8
|
summary: A Rails plugin for Japanese mobile-phones
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -32,84 +32,29 @@ files:
|
|
32
32
|
- README
|
33
33
|
- CHANGELOG
|
34
34
|
- Rakefile
|
35
|
-
- doc/classes
|
36
|
-
- doc/classes/ActionController
|
37
|
-
- doc/classes/ActionController/AbstractRequest.html
|
38
|
-
- doc/classes/ActionController.html
|
39
|
-
- doc/classes/ActionView.html
|
40
|
-
- doc/classes/DatumConv.html
|
41
|
-
- doc/classes/Jpmobile
|
42
|
-
- doc/classes/Jpmobile/Display.html
|
43
|
-
- doc/classes/Jpmobile/Filter
|
44
|
-
- doc/classes/Jpmobile/Filter/Base.html
|
45
|
-
- doc/classes/Jpmobile/Filter/Emoji
|
46
|
-
- doc/classes/Jpmobile/Filter/Emoji/Inner.html
|
47
|
-
- doc/classes/Jpmobile/Filter/Emoji/Outer.html
|
48
|
-
- doc/classes/Jpmobile/Filter/Emoji.html
|
49
|
-
- doc/classes/Jpmobile/Filter/FilterTable.html
|
50
|
-
- doc/classes/Jpmobile/Filter/HankakuKana.html
|
51
|
-
- doc/classes/Jpmobile/Filter/Sjis.html
|
52
|
-
- doc/classes/Jpmobile/Filter.html
|
53
|
-
- doc/classes/Jpmobile/Helpers.html
|
54
|
-
- doc/classes/Jpmobile/Mobile
|
55
|
-
- doc/classes/Jpmobile/Mobile/AbstractMobile.html
|
56
|
-
- doc/classes/Jpmobile/Mobile/Au.html
|
57
|
-
- doc/classes/Jpmobile/Mobile/Ddipocket.html
|
58
|
-
- doc/classes/Jpmobile/Mobile/Docomo.html
|
59
|
-
- doc/classes/Jpmobile/Mobile/Jphone.html
|
60
|
-
- doc/classes/Jpmobile/Mobile/Softbank.html
|
61
|
-
- doc/classes/Jpmobile/Mobile/Vodafone.html
|
62
|
-
- doc/classes/Jpmobile/Mobile/Willcom.html
|
63
|
-
- doc/classes/Jpmobile/Mobile.html
|
64
|
-
- doc/classes/Jpmobile/Position.html
|
65
|
-
- doc/created.rid
|
66
|
-
- doc/files
|
67
|
-
- doc/files/CHANGELOG.html
|
68
|
-
- doc/files/lib
|
69
|
-
- doc/files/lib/jpmobile
|
70
|
-
- doc/files/lib/jpmobile/datum_conv_rb.html
|
71
|
-
- doc/files/lib/jpmobile/filter_rb.html
|
72
|
-
- doc/files/lib/jpmobile/helpers_rb.html
|
73
|
-
- doc/files/lib/jpmobile/hook_abstract_request_rb.html
|
74
|
-
- doc/files/lib/jpmobile/hook_action_view_rb.html
|
75
|
-
- doc/files/lib/jpmobile/mobile
|
76
|
-
- doc/files/lib/jpmobile/mobile/abstract_mobile_rb.html
|
77
|
-
- doc/files/lib/jpmobile/mobile/au_rb.html
|
78
|
-
- doc/files/lib/jpmobile/mobile/display_rb.html
|
79
|
-
- doc/files/lib/jpmobile/mobile/docomo_rb.html
|
80
|
-
- doc/files/lib/jpmobile/mobile/softbank_rb.html
|
81
|
-
- doc/files/lib/jpmobile/mobile/willcom_rb.html
|
82
|
-
- doc/files/lib/jpmobile/mobile/z_display_info_docomo_rb.html
|
83
|
-
- doc/files/lib/jpmobile/mobile/z_emoji_docomo_rb.html
|
84
|
-
- doc/files/lib/jpmobile/mobile/z_ip_addresses_au_rb.html
|
85
|
-
- doc/files/lib/jpmobile/mobile/z_ip_addresses_rb.html
|
86
|
-
- doc/files/lib/jpmobile/mobile/z_ip_addresses_willcom_rb.html
|
87
|
-
- doc/files/lib/jpmobile/position_rb.html
|
88
|
-
- doc/files/lib/jpmobile/trans_sid_rb.html
|
89
|
-
- doc/files/lib/jpmobile/version_rb.html
|
90
|
-
- doc/files/lib/jpmobile_rb.html
|
91
|
-
- doc/files/NOTES.html
|
92
|
-
- doc/files/README.html
|
93
|
-
- doc/files/TODO.html
|
94
|
-
- doc/fr_class_index.html
|
95
|
-
- doc/fr_file_index.html
|
96
|
-
- doc/fr_method_index.html
|
97
|
-
- doc/index.html
|
98
|
-
- doc/rdoc-style.css
|
99
35
|
- test/au_test.rb
|
100
36
|
- test/docomo_test.rb
|
37
|
+
- test/emoticon_functional_test.rb
|
38
|
+
- test/emoticon_test.rb
|
39
|
+
- test/filter_functional_test.rb
|
101
40
|
- test/filter_test.rb
|
102
|
-
- test/firefox_test.rb
|
103
41
|
- test/helper.rb
|
104
42
|
- test/helpers_test.rb
|
105
43
|
- test/softbank_test.rb
|
106
|
-
- test/transitsid_test.rb
|
107
44
|
- test/willcom_test.rb
|
108
45
|
- lib/jpmobile
|
109
46
|
- lib/jpmobile/datum_conv.rb
|
47
|
+
- lib/jpmobile/emoticon
|
48
|
+
- lib/jpmobile/emoticon/au.rb
|
49
|
+
- lib/jpmobile/emoticon/conversion_table.rb
|
50
|
+
- lib/jpmobile/emoticon/docomo.rb
|
51
|
+
- lib/jpmobile/emoticon/softbank.rb
|
52
|
+
- lib/jpmobile/emoticon/z_combine.rb
|
53
|
+
- lib/jpmobile/emoticon.rb
|
110
54
|
- lib/jpmobile/filter.rb
|
111
55
|
- lib/jpmobile/helpers.rb
|
112
56
|
- lib/jpmobile/hook_abstract_request.rb
|
57
|
+
- lib/jpmobile/hook_action_controller.rb
|
113
58
|
- lib/jpmobile/hook_action_view.rb
|
114
59
|
- lib/jpmobile/mobile
|
115
60
|
- lib/jpmobile/mobile/abstract_mobile.rb
|
@@ -119,7 +64,6 @@ files:
|
|
119
64
|
- lib/jpmobile/mobile/softbank.rb
|
120
65
|
- lib/jpmobile/mobile/willcom.rb
|
121
66
|
- lib/jpmobile/mobile/z_display_info_docomo.rb
|
122
|
-
- lib/jpmobile/mobile/z_emoji_docomo.rb
|
123
67
|
- lib/jpmobile/mobile/z_ip_addresses.rb
|
124
68
|
- lib/jpmobile/mobile/z_ip_addresses_au.rb
|
125
69
|
- lib/jpmobile/mobile/z_ip_addresses_willcom.rb
|
@@ -127,13 +71,14 @@ files:
|
|
127
71
|
- lib/jpmobile/trans_sid.rb
|
128
72
|
- lib/jpmobile/version.rb
|
129
73
|
- lib/jpmobile.rb
|
74
|
+
- tools/generate_au_emoticon_table.rb
|
75
|
+
- tools/generate_docomo_emoticon_table.rb
|
76
|
+
- tools/generate_emoticon_conversion_table.rb
|
77
|
+
- tools/generate_softbank_emoticon_table.rb
|
130
78
|
- tools/list_gps_unsupported_au.rb
|
131
79
|
- tools/update_display_info_docomo.rb
|
132
|
-
- tools/update_emoji_docomo.rb
|
133
80
|
- tools/update_ip_addresses_au.rb
|
134
81
|
- tools/update_ip_addresses_willcom.rb
|
135
|
-
- TODO
|
136
|
-
- NOTES
|
137
82
|
test_files: []
|
138
83
|
|
139
84
|
rdoc_options:
|
@@ -151,8 +96,6 @@ rdoc_options:
|
|
151
96
|
extra_rdoc_files:
|
152
97
|
- README
|
153
98
|
- CHANGELOG
|
154
|
-
- TODO
|
155
|
-
- NOTES
|
156
99
|
executables: []
|
157
100
|
|
158
101
|
extensions: []
|
data/NOTES
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
=参考になる情報など
|
2
|
-
|
3
|
-
==DoCoMo
|
4
|
-
* FOMA位置情報: http://www.nttdocomo.co.jp/service/imode/make/content/html/outline/gps.html
|
5
|
-
* オープンiエリア: http://www.nttdocomo.co.jp/service/imode/make/content/iarea/index.html
|
6
|
-
* IPアドレス帯域: http://www.nttdocomo.co.jp/service/imode/make/content/ip/about/
|
7
|
-
|
8
|
-
==au
|
9
|
-
* 簡易位置情報: http://www.au.kddi.com/ezfactory/tec/spec/eznavi.html
|
10
|
-
* IPアドレス帯域: http://www.au.kddi.com/ezfactory/tec/spec/ezsava_ip.html
|
11
|
-
|
12
|
-
==SoftBank
|
13
|
-
http://developers.softbankmobile.co.jp/dp/tool_dl/download.php?docid=120
|
14
|
-
* J-PHONEの位置情報->70ページ
|
15
|
-
* Vodafone 3G/Softbank携帯の位置情報->71ページ
|
16
|
-
* ユーザエージェントについて: http://developers.softbankmobile.co.jp/dp/tool_dl/web/useragent.php
|
17
|
-
* IPアドレス帯域: http://developers.softbankmobile.co.jp/dp/tech_svc/web/ip.php
|
18
|
-
|
19
|
-
==Willcom
|
20
|
-
* 位置情報: http://www.willcom-inc.com/ja/biz/service/location/index.html
|
21
|
-
* IPアドレス帯域: http://www.willcom-inc.com/ja/service/contents_service/club_air_edge/for_phone/ip/index.html
|