jpmobile 1.0.12 → 2.0.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -3
- data/README.rdoc +2 -14
- data/Rakefile +0 -1
- data/VERSION.yml +4 -4
- data/jpmobile.gemspec +2 -1
- data/lib/jpmobile.rb +1 -15
- data/lib/jpmobile/docomo_guid.rb +1 -1
- data/lib/jpmobile/emoticon.rb +3 -119
- data/lib/jpmobile/emoticon/z_combine.rb +1 -17
- data/lib/jpmobile/filter.rb +1 -6
- data/lib/jpmobile/helpers.rb +1 -1
- data/lib/jpmobile/mail.rb +27 -196
- data/lib/jpmobile/mailer.rb +1 -7
- data/lib/jpmobile/mobile/abstract_mobile.rb +36 -94
- data/lib/jpmobile/mobile/android.rb +0 -2
- data/lib/jpmobile/mobile/au.rb +0 -4
- data/lib/jpmobile/mobile/docomo.rb +0 -8
- data/lib/jpmobile/mobile/iphone.rb +15 -1
- data/lib/jpmobile/mobile/smart_phone.rb +0 -10
- data/lib/jpmobile/mobile/softbank.rb +0 -8
- data/lib/jpmobile/rack.rb +1 -6
- data/lib/jpmobile/rack/filter.rb +1 -7
- data/lib/jpmobile/rack/params_filter.rb +2 -2
- data/lib/jpmobile/rails.rb +1 -1
- data/lib/jpmobile/resolver.rb +2 -5
- data/lib/jpmobile/trans_sid.rb +1 -26
- data/lib/jpmobile/util.rb +11 -82
- data/lib/tasks/jpmobile_tasks.rake +1 -1
- data/spec/rack/jpmobile/emoticon_spec.rb +0 -223
- data/spec/rack/jpmobile/mobile_by_ua_spec.rb +1 -5
- data/spec/rack/jpmobile/softbank_spec.rb +1 -1
- data/spec/unit/emoticon_spec.rb +0 -64
- data/spec/unit/encoding_spec.rb +2 -2
- data/spec/unit/mail_spec.rb +2 -159
- data/spec/unit/receive_mail_spec.rb +5 -51
- data/spec/unit/spec_helper.rb +1 -1
- data/spec/unit/util_spec.rb +3 -62
- data/test/rails/overrides/Gemfile +1 -1
- data/test/rails/overrides/app/controllers/filter_controller_base.rb +0 -3
- data/test/rails/overrides/app/controllers/hankaku_input_filter_controller.rb +0 -3
- data/test/rails/overrides/app/controllers/template_path_controller.rb +0 -12
- data/test/rails/overrides/app/{mailers → models}/mobile_mailer.rb +1 -7
- data/test/rails/overrides/app/{mailers → models}/normal_mailer.rb +0 -0
- data/test/rails/overrides/spec/{mailers → models}/mobile_mailer_spec.rb +1 -18
- data/test/rails/overrides/spec/{mailers → models}/normal_mailer_spec.rb +0 -0
- data/test/rails/overrides/spec/requests/filter_spec.rb +0 -18
- data/test/rails/overrides/spec/requests/template_path_spec.rb +0 -72
- data/test/rails/overrides/spec/spec_helper.rb +1 -1
- data/test/sinatra/guestbook.rb +7 -8
- data/test/sinatra/test/filter_test.rb +0 -10
- metadata +169 -296
- data/lib/jpmobile/emoticon/google.rb +0 -2421
- data/lib/jpmobile/emoticon/unicode.rb +0 -2253
- data/lib/jpmobile/mobile/android_tablet.rb +0 -12
- data/lib/jpmobile/mobile/black_berry.rb +0 -10
- data/lib/jpmobile/mobile/google_emoticon.rb +0 -29
- data/lib/jpmobile/mobile/ipad.rb +0 -12
- data/lib/jpmobile/mobile/tablet.rb +0 -16
- data/lib/jpmobile/mobile/unicode_emoticon.rb +0 -43
- data/lib/jpmobile/sinatra.rb +0 -16
- data/spec/rack/jpmobile/black_berry_spec.rb +0 -20
- data/spec/unit/decorated_mail_spec.rb +0 -76
- data/spec/unit/email-fixtures/bounce_with_utf8_part.eml +0 -42
- data/spec/unit/email-fixtures/iphone-mail3.eml +0 -56
- data/spec/unit/email-fixtures/iphone-message.eml +0 -27
- data/spec/unit/email-fixtures/photo.jpg +0 -0
- data/spec/unit/mobile/iphone_spec.rb +0 -34
- data/test/rails/overrides/app/mailers/decorated_mailer.rb +0 -11
- data/test/rails/overrides/app/views/decorated_mailer/deco_mail.html.erb +0 -10
- data/test/rails/overrides/app/views/decorated_mailer/deco_mail.text.erb +0 -1
- data/test/rails/overrides/app/views/hankaku_input_filter/with_charset.html.erb +0 -1
- data/test/rails/overrides/app/views/layouts/with_charset.html.erb +0 -13
- data/test/rails/overrides/app/views/template_path/smart_phone_only.html.erb +0 -1
- data/test/rails/overrides/app/views/template_path/smart_phone_only_smart_phone.html.erb +0 -1
- data/test/rails/overrides/app/views/template_path/with_ipd.html.erb +0 -1
- data/test/rails/overrides/app/views/template_path/with_ipd_tablet_ipad.html.erb +0 -1
- data/test/rails/overrides/app/views/template_path/with_tblt.html.erb +0 -1
- data/test/rails/overrides/app/views/template_path/with_tblt_tablet.html.erb +0 -1
- data/test/rails/overrides/spec/fixtures/mobile_mailer/bounced-jp.eml +0 -72
- data/test/rails/overrides/spec/fixtures/mobile_mailer/photo.jpg +0 -0
- data/test/rails/overrides/spec/mailers/decorated_mailer_spec.rb +0 -44
- data/test/sinatra/config.ru +0 -2
- data/test/sinatra/views/index.erb +0 -1
- data/test/sinatra/views/index_mobile.erb +0 -1
- data/tools/e4u_conv.rb +0 -122
File without changes
|
@@ -52,14 +52,6 @@ describe MobileMailer do
|
|
52
52
|
raw_mail = ascii_8bit(email.to_s)
|
53
53
|
raw_mail.should match(/ZVG%0FE%16%5E%07%04%21P%5CZ%06%00%0D%1D%40L/)
|
54
54
|
end
|
55
|
-
|
56
|
-
context ":toの指定が" do
|
57
|
-
it "ない場合でも正常に送信できること" do
|
58
|
-
email = MobileMailer.default_to_mail('題名', '本文').deliver
|
59
|
-
|
60
|
-
ActionMailer::Base.deliveries.size.should == 1
|
61
|
-
end
|
62
|
-
end
|
63
55
|
end
|
64
56
|
|
65
57
|
describe "PC宛に送るとき" do
|
@@ -163,7 +155,7 @@ describe MobileMailer do
|
|
163
155
|
|
164
156
|
raw_mail = ascii_8bit(email.to_s)
|
165
157
|
raw_mail.should match(/For au/)
|
166
|
-
raw_mail.should match(Regexp.escape("
|
158
|
+
raw_mail.should match(Regexp.escape("GyRCRnxLXDhsQmpMPhsoQhskQnZeGyhC"))
|
167
159
|
raw_mail.should match(Regexp.compile(ascii_8bit("\x76\x21")))
|
168
160
|
end
|
169
161
|
|
@@ -663,15 +655,6 @@ describe MobileMailer, "receiving" do
|
|
663
655
|
parts.first.body.should match(/テストです/)
|
664
656
|
parts.last.body.raw_source.should match(/テストです/)
|
665
657
|
end
|
666
|
-
|
667
|
-
context 'iPhone' do
|
668
|
-
it 'should parse correctly' do
|
669
|
-
lambda {
|
670
|
-
@mail = MobileMailer.receive(open(File.join(Rails.root, "../../../spec/unit/email-fixtures/iphone-message.eml")).read)
|
671
|
-
@mail.encoded
|
672
|
-
}.should_not raise_error
|
673
|
-
end
|
674
|
-
end
|
675
658
|
end
|
676
659
|
|
677
660
|
describe "softbank(sjis) の場合" do
|
File without changes
|
@@ -13,10 +13,6 @@ describe "jpmobile integration spec" do
|
|
13
13
|
get "/#{@controller}/input_tag", {}, {"HTTP_USER_AGENT" => @user_agent}
|
14
14
|
body.should == send(@conversion_method, '<input hoge="fuu" value="アブラカダブラ">')
|
15
15
|
end
|
16
|
-
it "は 変換されない" do
|
17
|
-
get "/#{@controller}/nbsp_char", {}, {"HTTP_USER_AGENT" => @user_agent}
|
18
|
-
body.should == send(@conversion_method, '<a>アブラ カダブラ</a>')
|
19
|
-
end
|
20
16
|
end
|
21
17
|
|
22
18
|
shared_examples_for "hankaku_filter :input => false のとき" do
|
@@ -28,10 +24,6 @@ describe "jpmobile integration spec" do
|
|
28
24
|
get "/#{@controller}/input_tag", {}, {"HTTP_USER_AGENT" => @user_agent}
|
29
25
|
body.should == send(@conversion_method, '<input hoge="fuu" value="アブラカダブラ" />')
|
30
26
|
end
|
31
|
-
it "は 変換されない" do
|
32
|
-
get "/#{@controller}/nbsp_char", {}, {"HTTP_USER_AGENT" => @user_agent}
|
33
|
-
body.should == send(@conversion_method, '<a>アブラ カダブラ</a>')
|
34
|
-
end
|
35
27
|
end
|
36
28
|
|
37
29
|
shared_examples_for "文字コードフィルタが動作しているとき" do
|
@@ -215,11 +207,6 @@ describe "jpmobile integration spec" do
|
|
215
207
|
end
|
216
208
|
it_should_behave_like "Shift_JISで通信する端末との通信(半角変換付き)"
|
217
209
|
it_should_behave_like "hankaku_filter :input => true のとき"
|
218
|
-
|
219
|
-
it "Content-Type が Shift_JIS であること" do
|
220
|
-
get "/#{@controller}/with_charset", {}, {"HTTP_USER_AGENT" => @user_agent}
|
221
|
-
body.should match(/Shift_JIS/)
|
222
|
-
end
|
223
210
|
end
|
224
211
|
|
225
212
|
describe HankakuInputFilterController, "SoftBank 910T からのアクセス" do
|
@@ -230,10 +217,5 @@ describe "jpmobile integration spec" do
|
|
230
217
|
end
|
231
218
|
it_should_behave_like "UTF-8で通信する端末との通信(半角変換付き)"
|
232
219
|
it_should_behave_like "hankaku_filter :input => true のとき"
|
233
|
-
|
234
|
-
it "Content-Type が UTF-8 であること" do
|
235
|
-
get "/#{@controller}/with_charset", {}, {"HTTP_USER_AGENT" => @user_agent}
|
236
|
-
body.should match(/UTF-8/)
|
237
|
-
end
|
238
220
|
end
|
239
221
|
end
|
@@ -169,78 +169,6 @@ describe TemplatePathController, "integrated_views" do
|
|
169
169
|
end
|
170
170
|
end
|
171
171
|
|
172
|
-
context 'only smart_phone view' do
|
173
|
-
context 'iPadからのアクセスの場合' do
|
174
|
-
before do
|
175
|
-
@user_agent = 'Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F191 Safari/6533.18.5'
|
176
|
-
end
|
177
|
-
it 'smart_phone_only.html.erbが使用されること' do
|
178
|
-
get '/template_path/smart_phone_only', {}, {'HTTP_USER_AGENT' => @user_agent}
|
179
|
-
|
180
|
-
response.should have_tag('h1', :content => 'smart_phone_only_smart_phone.html.erb')
|
181
|
-
end
|
182
|
-
end
|
183
|
-
|
184
|
-
context 'Android Tabletからのアクセスの場合' do
|
185
|
-
before do
|
186
|
-
@user_agent = 'Mozilla/5.0 (Linux; U; Android 2.2; ja-jp; SC-01C Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'
|
187
|
-
end
|
188
|
-
it 'smart_phone_only.html.erbが使用されること' do
|
189
|
-
get '/template_path/smart_phone_only', {}, {'HTTP_USER_AGENT' => @user_agent}
|
190
|
-
|
191
|
-
response.should have_tag('h1', :content => 'smart_phone_only_smart_phone.html.erb')
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
context 'with_tblt view' do
|
197
|
-
context 'iPadからのアクセスの場合' do
|
198
|
-
before do
|
199
|
-
@user_agent = 'Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F191 Safari/6533.18.5'
|
200
|
-
end
|
201
|
-
it 'with_tblt_tablet.html.erbが使用されること' do
|
202
|
-
get '/template_path/with_tblt', {}, {'HTTP_USER_AGENT' => @user_agent}
|
203
|
-
|
204
|
-
response.should have_tag('h1', :content => 'with_tblt_tablet.html.erb')
|
205
|
-
end
|
206
|
-
end
|
207
|
-
|
208
|
-
context 'Android Tabletからのアクセスの場合' do
|
209
|
-
before do
|
210
|
-
@user_agent = 'Mozilla/5.0 (Linux; U; Android 2.2; ja-jp; SC-01C Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'
|
211
|
-
end
|
212
|
-
it 'with_tblt_tablet.html.erbが使用されること' do
|
213
|
-
get '/template_path/with_tblt', {}, {'HTTP_USER_AGENT' => @user_agent}
|
214
|
-
|
215
|
-
response.should have_tag('h1', :content => 'with_tblt_tablet.html.erb')
|
216
|
-
end
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
|
-
context 'with_ipd view' do
|
221
|
-
context 'iPadからのアクセスの場合' do
|
222
|
-
before do
|
223
|
-
@user_agent = 'Mozilla/5.0 (iPad; U; CPU OS 4_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8F191 Safari/6533.18.5'
|
224
|
-
end
|
225
|
-
it 'with_ipd_tablet_ipad.html.erbが使用されること' do
|
226
|
-
get '/template_path/with_ipd', {}, {'HTTP_USER_AGENT' => @user_agent}
|
227
|
-
|
228
|
-
response.should have_tag('h1', :content => 'with_ipd_tablet_ipad.html.erb')
|
229
|
-
end
|
230
|
-
end
|
231
|
-
|
232
|
-
context 'Android Tabletからのアクセスの場合' do
|
233
|
-
before do
|
234
|
-
@user_agent = 'Mozilla/5.0 (Linux; U; Android 2.2; ja-jp; SC-01C Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1'
|
235
|
-
end
|
236
|
-
it 'with_ipd.html.erbが使用されること' do
|
237
|
-
get '/template_path/with_ipd', {}, {'HTTP_USER_AGENT' => @user_agent}
|
238
|
-
|
239
|
-
response.should have_tag('h1', :content => 'with_ipd.html.erb')
|
240
|
-
end
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
172
|
context "partial" do
|
245
173
|
context "PCからのアクセスの場合" do
|
246
174
|
before do
|
data/test/sinatra/guestbook.rb
CHANGED
@@ -1,25 +1,26 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'sinatra'
|
3
|
-
require
|
3
|
+
require 'jpmobile'
|
4
4
|
require 'jpmobile/rack'
|
5
5
|
require 'singleton'
|
6
6
|
require 'pp'
|
7
7
|
|
8
|
-
require 'jpmobile
|
8
|
+
require 'jpmobile'
|
9
|
+
require 'jpmobile/rack'
|
9
10
|
|
10
11
|
class SinatraTestHelper
|
11
12
|
include Singleton
|
12
13
|
attr_accessor :last_app
|
13
14
|
end
|
14
15
|
|
15
|
-
class Guestbook <
|
16
|
+
class Guestbook < Sinatra::Base
|
16
17
|
use Jpmobile::Rack::MobileCarrier
|
17
18
|
use Jpmobile::Rack::ParamsFilter
|
18
19
|
use Jpmobile::Rack::Filter
|
19
20
|
|
20
21
|
def call(env)
|
21
22
|
_dup = dup
|
22
|
-
|
23
|
+
SinatraTestHelper.instance.last_app = _dup
|
23
24
|
_dup.call!(env)
|
24
25
|
end
|
25
26
|
|
@@ -34,8 +35,6 @@ class Guestbook < Jpmobile::Sinatra::Base
|
|
34
35
|
post '/' do
|
35
36
|
@p = params[:p]
|
36
37
|
end
|
37
|
-
|
38
|
-
get '/top' do
|
39
|
-
erb :index
|
40
|
-
end
|
41
38
|
end
|
39
|
+
|
40
|
+
Guestbook.run
|
@@ -36,14 +36,4 @@ class SinatraOnJpmobile < Test::Unit::TestCase
|
|
36
36
|
assert_equal last_app.assigns(:p), "けーたい"
|
37
37
|
assert_equal last_response.body, utf8_to_sjis("けーたい")
|
38
38
|
end
|
39
|
-
|
40
|
-
# def test_view_selector_pc
|
41
|
-
# get '/top', {}, {"HTTP_USER_AGENT" => "Mozilla"}
|
42
|
-
# assert_equal last_response.body, 'PC'
|
43
|
-
# end
|
44
|
-
|
45
|
-
# def test_view_selector_mobile
|
46
|
-
# get '/top', {}, {"HTTP_USER_AGENT" => "DoCoMo/2.0 SH902i(c100;TB;W24H12)"}
|
47
|
-
# assert_equal last_response.body, 'MOBILE'
|
48
|
-
# end
|
49
39
|
end
|
metadata
CHANGED
@@ -1,295 +1,212 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jpmobile
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 12
|
10
|
-
version: 1.0.12
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.0.pre.1
|
5
|
+
prerelease: 6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Yoji Shidara
|
14
9
|
- Shin-ichiro OGAWA
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 3
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
13
|
+
date: 2011-07-26 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
31
16
|
name: jeweler
|
32
|
-
|
33
|
-
type: :development
|
34
|
-
requirement: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &29925880 !ruby/object:Gem::Requirement
|
37
18
|
none: false
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 3
|
44
|
-
- 0
|
45
|
-
- 17
|
46
|
-
version: 3.0.17
|
47
|
-
name: rails
|
48
|
-
prerelease: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
49
23
|
type: :development
|
50
|
-
requirement: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
hash: 23
|
58
|
-
segments:
|
59
|
-
- 2
|
60
|
-
- 6
|
61
|
-
- 0
|
62
|
-
version: 2.6.0
|
63
|
-
name: rspec
|
64
24
|
prerelease: false
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
25
|
+
version_requirements: *29925880
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rails
|
28
|
+
requirement: &29925400 !ruby/object:Gem::Requirement
|
69
29
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 2
|
76
|
-
- 6
|
77
|
-
- 0
|
78
|
-
version: 2.6.0
|
79
|
-
name: rspec-rails
|
80
|
-
prerelease: false
|
30
|
+
requirements:
|
31
|
+
- - =
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.1.0.rc5
|
81
34
|
type: :development
|
82
|
-
requirement: *id004
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 3
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
version: "0"
|
93
|
-
name: webrat
|
94
35
|
prerelease: false
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
36
|
+
version_requirements: *29925400
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rspec
|
39
|
+
requirement: &29924920 !ruby/object:Gem::Requirement
|
99
40
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
- 0
|
106
|
-
version: "0"
|
107
|
-
name: geokit
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
type: :development
|
108
46
|
prerelease: false
|
47
|
+
version_requirements: *29924920
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: rspec-rails
|
50
|
+
requirement: &29924440 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ! '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
109
56
|
type: :development
|
110
|
-
|
111
|
-
|
112
|
-
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *29924440
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: webrat
|
61
|
+
requirement: &29923960 !ruby/object:Gem::Requirement
|
113
62
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
119
|
-
- 0
|
120
|
-
version: "0"
|
121
|
-
name: sqlite3-ruby
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
67
|
+
type: :development
|
122
68
|
prerelease: false
|
69
|
+
version_requirements: *29923960
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: geokit
|
72
|
+
requirement: &29923480 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
123
78
|
type: :development
|
124
|
-
|
125
|
-
|
126
|
-
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *29923480
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: sqlite3-ruby
|
83
|
+
requirement: &29923000 !ruby/object:Gem::Requirement
|
127
84
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
132
|
-
|
133
|
-
- 0
|
134
|
-
version: "0"
|
135
|
-
name: hpricot
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
136
90
|
prerelease: false
|
91
|
+
version_requirements: *29923000
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: hpricot
|
94
|
+
requirement: &20332600 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
137
100
|
type: :development
|
138
|
-
|
139
|
-
|
140
|
-
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *20332600
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: jeweler
|
105
|
+
requirement: &21589640 !ruby/object:Gem::Requirement
|
141
106
|
none: false
|
142
|
-
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
hash: 1
|
146
|
-
segments:
|
147
|
-
- 1
|
148
|
-
- 5
|
149
|
-
- 1
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
150
110
|
version: 1.5.1
|
151
|
-
name: jeweler
|
152
|
-
prerelease: false
|
153
111
|
type: :development
|
154
|
-
|
155
|
-
|
156
|
-
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *21589640
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rspec
|
116
|
+
requirement: &24144080 !ruby/object:Gem::Requirement
|
157
117
|
none: false
|
158
|
-
requirements:
|
159
|
-
- -
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
hash: 3
|
162
|
-
segments:
|
163
|
-
- 2
|
164
|
-
- 3
|
165
|
-
- 0
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
166
121
|
version: 2.3.0
|
167
|
-
name: rspec
|
168
|
-
prerelease: false
|
169
122
|
type: :development
|
170
|
-
|
171
|
-
|
172
|
-
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *24144080
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec-rails
|
127
|
+
requirement: &27732720 !ruby/object:Gem::Requirement
|
173
128
|
none: false
|
174
|
-
requirements:
|
175
|
-
- -
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
hash: 3
|
178
|
-
segments:
|
179
|
-
- 2
|
180
|
-
- 3
|
181
|
-
- 0
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
182
132
|
version: 2.3.0
|
183
|
-
name: rspec-rails
|
184
|
-
prerelease: false
|
185
133
|
type: :development
|
186
|
-
|
187
|
-
|
188
|
-
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *27732720
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: webrat
|
138
|
+
requirement: &28609360 !ruby/object:Gem::Requirement
|
189
139
|
none: false
|
190
|
-
requirements:
|
191
|
-
- -
|
192
|
-
- !ruby/object:Gem::Version
|
193
|
-
hash: 7
|
194
|
-
segments:
|
195
|
-
- 0
|
196
|
-
- 7
|
197
|
-
- 2
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
198
143
|
version: 0.7.2
|
199
|
-
name: webrat
|
200
|
-
prerelease: false
|
201
144
|
type: :development
|
202
|
-
|
203
|
-
|
204
|
-
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: *28609360
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: geokit
|
149
|
+
requirement: &29926780 !ruby/object:Gem::Requirement
|
205
150
|
none: false
|
206
|
-
requirements:
|
207
|
-
- -
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
hash: 3
|
210
|
-
segments:
|
211
|
-
- 1
|
212
|
-
- 5
|
213
|
-
- 0
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
214
154
|
version: 1.5.0
|
215
|
-
name: geokit
|
216
|
-
prerelease: false
|
217
155
|
type: :development
|
218
|
-
|
219
|
-
|
220
|
-
|
156
|
+
prerelease: false
|
157
|
+
version_requirements: *29926780
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: sqlite3-ruby
|
160
|
+
requirement: &29926300 !ruby/object:Gem::Requirement
|
221
161
|
none: false
|
222
|
-
requirements:
|
223
|
-
- -
|
224
|
-
- !ruby/object:Gem::Version
|
225
|
-
hash: 31
|
226
|
-
segments:
|
227
|
-
- 1
|
228
|
-
- 3
|
229
|
-
- 2
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
230
165
|
version: 1.3.2
|
231
|
-
name: sqlite3-ruby
|
232
|
-
prerelease: false
|
233
166
|
type: :development
|
234
|
-
|
235
|
-
|
236
|
-
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: *29926300
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: hpricot
|
171
|
+
requirement: &29925740 !ruby/object:Gem::Requirement
|
237
172
|
none: false
|
238
|
-
requirements:
|
239
|
-
- -
|
240
|
-
- !ruby/object:Gem::Version
|
241
|
-
hash: 57
|
242
|
-
segments:
|
243
|
-
- 0
|
244
|
-
- 8
|
245
|
-
- 3
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
246
176
|
version: 0.8.3
|
247
|
-
name: hpricot
|
248
|
-
prerelease: false
|
249
177
|
type: :development
|
250
|
-
|
251
|
-
|
252
|
-
|
178
|
+
prerelease: false
|
179
|
+
version_requirements: *29925740
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: git
|
182
|
+
requirement: &29925000 !ruby/object:Gem::Requirement
|
253
183
|
none: false
|
254
|
-
requirements:
|
255
|
-
- -
|
256
|
-
- !ruby/object:Gem::Version
|
257
|
-
hash: 21
|
258
|
-
segments:
|
259
|
-
- 1
|
260
|
-
- 2
|
261
|
-
- 5
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
262
187
|
version: 1.2.5
|
263
|
-
name: git
|
264
|
-
prerelease: false
|
265
188
|
type: :development
|
266
|
-
|
267
|
-
|
268
|
-
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: *29925000
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: rails
|
193
|
+
requirement: &29924300 !ruby/object:Gem::Requirement
|
269
194
|
none: false
|
270
|
-
requirements:
|
271
|
-
- -
|
272
|
-
- !ruby/object:Gem::Version
|
273
|
-
hash: 1
|
274
|
-
segments:
|
275
|
-
- 3
|
276
|
-
- 0
|
277
|
-
- 3
|
195
|
+
requirements:
|
196
|
+
- - ! '>='
|
197
|
+
- !ruby/object:Gem::Version
|
278
198
|
version: 3.0.3
|
279
|
-
name: rails
|
280
|
-
prerelease: false
|
281
199
|
type: :development
|
282
|
-
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: *29924300
|
283
202
|
description: A Rails plugin for Japanese mobile-phones
|
284
203
|
email: dara@shidara.net
|
285
204
|
executables: []
|
286
|
-
|
287
205
|
extensions: []
|
288
|
-
|
289
|
-
extra_rdoc_files:
|
206
|
+
extra_rdoc_files:
|
290
207
|
- README
|
291
208
|
- README.rdoc
|
292
|
-
files:
|
209
|
+
files:
|
293
210
|
- .rspec
|
294
211
|
- CHANGELOG
|
295
212
|
- Gemfile
|
@@ -309,9 +226,7 @@ files:
|
|
309
226
|
- lib/jpmobile/emoticon/au.rb
|
310
227
|
- lib/jpmobile/emoticon/conversion_table.rb
|
311
228
|
- lib/jpmobile/emoticon/docomo.rb
|
312
|
-
- lib/jpmobile/emoticon/google.rb
|
313
229
|
- lib/jpmobile/emoticon/softbank.rb
|
314
|
-
- lib/jpmobile/emoticon/unicode.rb
|
315
230
|
- lib/jpmobile/emoticon/z_combine.rb
|
316
231
|
- lib/jpmobile/encoding.rb
|
317
232
|
- lib/jpmobile/filter.rb
|
@@ -325,19 +240,13 @@ files:
|
|
325
240
|
- lib/jpmobile/mailer.rb
|
326
241
|
- lib/jpmobile/mobile/abstract_mobile.rb
|
327
242
|
- lib/jpmobile/mobile/android.rb
|
328
|
-
- lib/jpmobile/mobile/android_tablet.rb
|
329
243
|
- lib/jpmobile/mobile/au.rb
|
330
|
-
- lib/jpmobile/mobile/black_berry.rb
|
331
244
|
- lib/jpmobile/mobile/ddipocket.rb
|
332
245
|
- lib/jpmobile/mobile/docomo.rb
|
333
246
|
- lib/jpmobile/mobile/emobile.rb
|
334
|
-
- lib/jpmobile/mobile/google_emoticon.rb
|
335
|
-
- lib/jpmobile/mobile/ipad.rb
|
336
247
|
- lib/jpmobile/mobile/iphone.rb
|
337
248
|
- lib/jpmobile/mobile/smart_phone.rb
|
338
249
|
- lib/jpmobile/mobile/softbank.rb
|
339
|
-
- lib/jpmobile/mobile/tablet.rb
|
340
|
-
- lib/jpmobile/mobile/unicode_emoticon.rb
|
341
250
|
- lib/jpmobile/mobile/vodafone.rb
|
342
251
|
- lib/jpmobile/mobile/willcom.rb
|
343
252
|
- lib/jpmobile/mobile/windows_phone.rb
|
@@ -350,13 +259,11 @@ files:
|
|
350
259
|
- lib/jpmobile/rails.rb
|
351
260
|
- lib/jpmobile/request_with_mobile.rb
|
352
261
|
- lib/jpmobile/resolver.rb
|
353
|
-
- lib/jpmobile/sinatra.rb
|
354
262
|
- lib/jpmobile/trans_sid.rb
|
355
263
|
- lib/jpmobile/util.rb
|
356
264
|
- lib/tasks/jpmobile_tasks.rake
|
357
265
|
- spec/rack/jpmobile/android_spec.rb
|
358
266
|
- spec/rack/jpmobile/au_spec.rb
|
359
|
-
- spec/rack/jpmobile/black_berry_spec.rb
|
360
267
|
- spec/rack/jpmobile/docomo_spec.rb
|
361
268
|
- spec/rack/jpmobile/emoticon_spec.rb
|
362
269
|
- spec/rack/jpmobile/filter_spec.rb
|
@@ -368,21 +275,16 @@ files:
|
|
368
275
|
- spec/rack/jpmobile/windows_phone.rb
|
369
276
|
- spec/rack_helper.rb
|
370
277
|
- spec/spec_helper.rb
|
371
|
-
- spec/unit/decorated_mail_spec.rb
|
372
278
|
- spec/unit/email-fixtures/au-attached.eml
|
373
279
|
- spec/unit/email-fixtures/au-decomail.eml
|
374
280
|
- spec/unit/email-fixtures/au-emoji.eml
|
375
281
|
- spec/unit/email-fixtures/au-emoji2.eml
|
376
282
|
- spec/unit/email-fixtures/au-emoji5.eml
|
377
|
-
- spec/unit/email-fixtures/bounce_with_utf8_part.eml
|
378
283
|
- spec/unit/email-fixtures/docomo-emoji.eml
|
379
284
|
- spec/unit/email-fixtures/docomo-gmail-sjis.eml
|
380
285
|
- spec/unit/email-fixtures/docomo-jis.eml
|
381
|
-
- spec/unit/email-fixtures/iphone-mail3.eml
|
382
|
-
- spec/unit/email-fixtures/iphone-message.eml
|
383
286
|
- spec/unit/email-fixtures/pc-mail-multi.eml
|
384
287
|
- spec/unit/email-fixtures/pc-mail-single.eml
|
385
|
-
- spec/unit/email-fixtures/photo.jpg
|
386
288
|
- spec/unit/email-fixtures/softbank-blank.eml
|
387
289
|
- spec/unit/email-fixtures/softbank-emoji-utf8.eml
|
388
290
|
- spec/unit/email-fixtures/softbank-emoji.eml
|
@@ -393,7 +295,6 @@ files:
|
|
393
295
|
- spec/unit/encoding_spec.rb
|
394
296
|
- spec/unit/is_carrier_spec.rb
|
395
297
|
- spec/unit/mail_spec.rb
|
396
|
-
- spec/unit/mobile/iphone_spec.rb
|
397
298
|
- spec/unit/receive_mail_spec.rb
|
398
299
|
- spec/unit/spec_helper.rb
|
399
300
|
- spec/unit/util_spec.rb
|
@@ -418,19 +319,14 @@ files:
|
|
418
319
|
- test/rails/overrides/app/controllers/trans_sid_metal_controller.rb
|
419
320
|
- test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb
|
420
321
|
- test/rails/overrides/app/controllers/trans_sid_none_controller.rb
|
421
|
-
- test/rails/overrides/app/
|
422
|
-
- test/rails/overrides/app/
|
423
|
-
- test/rails/overrides/app/mailers/normal_mailer.rb
|
322
|
+
- test/rails/overrides/app/models/mobile_mailer.rb
|
323
|
+
- test/rails/overrides/app/models/normal_mailer.rb
|
424
324
|
- test/rails/overrides/app/models/user.rb
|
425
|
-
- test/rails/overrides/app/views/decorated_mailer/deco_mail.html.erb
|
426
|
-
- test/rails/overrides/app/views/decorated_mailer/deco_mail.text.erb
|
427
325
|
- test/rails/overrides/app/views/filter/index.html.erb
|
428
326
|
- test/rails/overrides/app/views/hankaku_filter/index.html.erb
|
429
327
|
- test/rails/overrides/app/views/hankaku_input_filter/index.html.erb
|
430
328
|
- test/rails/overrides/app/views/hankaku_input_filter/index_xhtml.html.erb
|
431
|
-
- test/rails/overrides/app/views/hankaku_input_filter/with_charset.html.erb
|
432
329
|
- test/rails/overrides/app/views/layouts/application_mobile.html.erb
|
433
|
-
- test/rails/overrides/app/views/layouts/with_charset.html.erb
|
434
330
|
- test/rails/overrides/app/views/layouts/xhtml.html.erb
|
435
331
|
- test/rails/overrides/app/views/links/au_gps.html.erb
|
436
332
|
- test/rails/overrides/app/views/links/au_location.html.erb
|
@@ -467,12 +363,6 @@ files:
|
|
467
363
|
- test/rails/overrides/app/views/template_path/partial.html.erb
|
468
364
|
- test/rails/overrides/app/views/template_path/show_mobile.html.erb
|
469
365
|
- test/rails/overrides/app/views/template_path/show_mobile_docomo.html.erb
|
470
|
-
- test/rails/overrides/app/views/template_path/smart_phone_only.html.erb
|
471
|
-
- test/rails/overrides/app/views/template_path/smart_phone_only_smart_phone.html.erb
|
472
|
-
- test/rails/overrides/app/views/template_path/with_ipd.html.erb
|
473
|
-
- test/rails/overrides/app/views/template_path/with_ipd_tablet_ipad.html.erb
|
474
|
-
- test/rails/overrides/app/views/template_path/with_tblt.html.erb
|
475
|
-
- test/rails/overrides/app/views/template_path/with_tblt_tablet.html.erb
|
476
366
|
- test/rails/overrides/autotest/discover.rb
|
477
367
|
- test/rails/overrides/config/initializers/jpmobile_generator.rb
|
478
368
|
- test/rails/overrides/config/routes.rb
|
@@ -484,22 +374,19 @@ files:
|
|
484
374
|
- test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji.eml
|
485
375
|
- test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji2.eml
|
486
376
|
- test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji5.eml
|
487
|
-
- test/rails/overrides/spec/fixtures/mobile_mailer/bounced-jp.eml
|
488
377
|
- test/rails/overrides/spec/fixtures/mobile_mailer/docomo-emoji.eml
|
489
378
|
- test/rails/overrides/spec/fixtures/mobile_mailer/docomo-gmail-sjis.eml
|
490
379
|
- test/rails/overrides/spec/fixtures/mobile_mailer/docomo-jis.eml
|
491
380
|
- test/rails/overrides/spec/fixtures/mobile_mailer/no-from.eml
|
492
381
|
- test/rails/overrides/spec/fixtures/mobile_mailer/non-jp.eml
|
493
|
-
- test/rails/overrides/spec/fixtures/mobile_mailer/photo.jpg
|
494
382
|
- test/rails/overrides/spec/fixtures/mobile_mailer/softbank-blank.eml
|
495
383
|
- test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji-utf8.eml
|
496
384
|
- test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji.eml
|
497
385
|
- test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-sjis.eml
|
498
386
|
- test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-utf8.eml
|
499
387
|
- test/rails/overrides/spec/helpers/helpers_spec.rb
|
500
|
-
- test/rails/overrides/spec/
|
501
|
-
- test/rails/overrides/spec/
|
502
|
-
- test/rails/overrides/spec/mailers/normal_mailer_spec.rb
|
388
|
+
- test/rails/overrides/spec/models/mobile_mailer_spec.rb
|
389
|
+
- test/rails/overrides/spec/models/normal_mailer_spec.rb
|
503
390
|
- test/rails/overrides/spec/rcov.opts
|
504
391
|
- test/rails/overrides/spec/requests/docomo_guid_spec.rb
|
505
392
|
- test/rails/overrides/spec/requests/docomo_spec.rb
|
@@ -511,12 +398,8 @@ files:
|
|
511
398
|
- test/rails/overrides/spec/requests/template_path_spec.rb
|
512
399
|
- test/rails/overrides/spec/requests/trans_sid_spec.rb
|
513
400
|
- test/rails/overrides/spec/spec_helper.rb
|
514
|
-
- test/sinatra/config.ru
|
515
401
|
- test/sinatra/guestbook.rb
|
516
402
|
- test/sinatra/test/filter_test.rb
|
517
|
-
- test/sinatra/views/index.erb
|
518
|
-
- test/sinatra/views/index_mobile.erb
|
519
|
-
- tools/e4u_conv.rb
|
520
403
|
- tools/emoji/genregexp.rb
|
521
404
|
- tools/generate_au_emoticon_table.rb
|
522
405
|
- tools/generate_docomo_emoticon_table.rb
|
@@ -525,36 +408,26 @@ files:
|
|
525
408
|
- tools/list_gps_unsupported_au.rb
|
526
409
|
homepage: http://jpmobile-rails.org
|
527
410
|
licenses: []
|
528
|
-
|
529
411
|
post_install_message:
|
530
412
|
rdoc_options: []
|
531
|
-
|
532
|
-
require_paths:
|
413
|
+
require_paths:
|
533
414
|
- lib
|
534
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
415
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
535
416
|
none: false
|
536
|
-
requirements:
|
537
|
-
- -
|
538
|
-
- !ruby/object:Gem::Version
|
539
|
-
|
540
|
-
|
541
|
-
- 0
|
542
|
-
version: "0"
|
543
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
417
|
+
requirements:
|
418
|
+
- - ! '>='
|
419
|
+
- !ruby/object:Gem::Version
|
420
|
+
version: '0'
|
421
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
544
422
|
none: false
|
545
|
-
requirements:
|
546
|
-
- -
|
547
|
-
- !ruby/object:Gem::Version
|
548
|
-
|
549
|
-
segments:
|
550
|
-
- 0
|
551
|
-
version: "0"
|
423
|
+
requirements:
|
424
|
+
- - ! '>'
|
425
|
+
- !ruby/object:Gem::Version
|
426
|
+
version: 1.3.1
|
552
427
|
requirements: []
|
553
|
-
|
554
428
|
rubyforge_project:
|
555
|
-
rubygems_version: 1.8.
|
429
|
+
rubygems_version: 1.8.6
|
556
430
|
signing_key:
|
557
431
|
specification_version: 3
|
558
432
|
summary: A Rails plugin for Japanese mobile-phones
|
559
433
|
test_files: []
|
560
|
-
|