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
@@ -1,12 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# =Android
|
3
|
-
|
4
|
-
module Jpmobile::Mobile
|
5
|
-
# ==AndroidTablet
|
6
|
-
class AndroidTablet < Tablet
|
7
|
-
# 対応するUser-Agentの正規表現
|
8
|
-
USER_AGENT_REGEXP = Regexp.union(/(?!Android.+Mobile)Android/, /Android.+SC-01C/)
|
9
|
-
|
10
|
-
include Jpmobile::Mobile::GoogleEmoticon
|
11
|
-
end
|
12
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
module Jpmobile::Mobile
|
3
|
-
module GoogleEmoticon
|
4
|
-
# Jpmobile::Rack::Filter を適用する
|
5
|
-
def apply_filter?
|
6
|
-
Jpmobile.config.smart_phone_emoticon_compatibility
|
7
|
-
end
|
8
|
-
|
9
|
-
# Jpmobile::Rack::ParamsFilter を適用する
|
10
|
-
def apply_params_filter?
|
11
|
-
Jpmobile.config.smart_phone_emoticon_compatibility
|
12
|
-
end
|
13
|
-
|
14
|
-
# 文字コード変換
|
15
|
-
def to_internal(str)
|
16
|
-
# Google絵文字を数値参照に変換
|
17
|
-
str = Jpmobile::Emoticon.external_to_unicodecr_google(Jpmobile::Util.utf8(str))
|
18
|
-
# 数値参照を UTF-8 に変換
|
19
|
-
Jpmobile::Emoticon.unicodecr_to_utf8(str)
|
20
|
-
end
|
21
|
-
def to_external(str, content_type, charset)
|
22
|
-
# UTF-8を数値参照に
|
23
|
-
str = Jpmobile::Emoticon.utf8_to_unicodecr(str)
|
24
|
-
str = Jpmobile::Emoticon.unicodecr_to_external(str, Jpmobile::Emoticon::CONVERSION_TABLE_TO_GOOGLE_EMOTICON, false)
|
25
|
-
|
26
|
-
[str, charset]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/lib/jpmobile/mobile/ipad.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
module Jpmobile::Mobile
|
3
|
-
module UnicodeEmoticon
|
4
|
-
# Jpmobile::Rack::Filter を適用する
|
5
|
-
def apply_filter?
|
6
|
-
Jpmobile.config.smart_phone_emoticon_compatibility
|
7
|
-
end
|
8
|
-
|
9
|
-
# Jpmobile::Rack::ParamsFilter を適用する
|
10
|
-
def apply_params_filter?
|
11
|
-
Jpmobile.config.smart_phone_emoticon_compatibility
|
12
|
-
end
|
13
|
-
|
14
|
-
# 文字コード変換
|
15
|
-
def to_internal(str)
|
16
|
-
if unicode_emoticon?
|
17
|
-
# Unicode絵文字を数値参照に変換
|
18
|
-
str = Jpmobile::Emoticon.external_to_unicodecr_unicode60(Jpmobile::Util.utf8(str))
|
19
|
-
else
|
20
|
-
# SoftBank絵文字を数値参照に変換
|
21
|
-
str = Jpmobile::Emoticon.external_to_unicodecr_softbank(Jpmobile::Util.utf8(str))
|
22
|
-
end
|
23
|
-
# 数値参照を UTF-8 に変換
|
24
|
-
Jpmobile::Emoticon.unicodecr_to_utf8(str)
|
25
|
-
end
|
26
|
-
def to_external(str, content_type, charset)
|
27
|
-
# UTF-8を数値参照に
|
28
|
-
str = Jpmobile::Emoticon.utf8_to_unicodecr(str)
|
29
|
-
if unicode_emoticon?
|
30
|
-
str = Jpmobile::Emoticon.unicodecr_to_external(str, Jpmobile::Emoticon::CONVERSION_TABLE_TO_UNICODE_EMOTICON, false)
|
31
|
-
else
|
32
|
-
# 数値参照を絵文字コードに変換
|
33
|
-
str = Jpmobile::Emoticon.unicodecr_to_external(str, Jpmobile::Emoticon::CONVERSION_TABLE_TO_SOFTBANK, false)
|
34
|
-
end
|
35
|
-
|
36
|
-
[str, charset]
|
37
|
-
end
|
38
|
-
|
39
|
-
def unicode_emoticon?
|
40
|
-
@request.user_agent.match(/ OS (\d)_/) and $1.to_i >= 5
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
data/lib/jpmobile/sinatra.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
module Jpmobile
|
2
|
-
module Sinatra
|
3
|
-
class Base < ::Sinatra::Base
|
4
|
-
# Calls the given block for every possible template file in views,
|
5
|
-
# named name.ext, where ext is registered on engine.
|
6
|
-
def find_template(views, name, engine)
|
7
|
-
if env['rack.jpmobile'] and !env['rack.jpmobile'].variants.empty?
|
8
|
-
env['rack.jpmobile'].variants.each do |variant|
|
9
|
-
yield ::File.join(views, "#{name}_#{variant}.#{@preferred_extension}")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
super
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require File.join(File.expand_path(File.dirname(__FILE__)), '../../rack_helper.rb')
|
3
|
-
|
4
|
-
describe Jpmobile::Rack::MobileCarrier, "Windows Phone" do
|
5
|
-
include Rack::Test::Methods
|
6
|
-
|
7
|
-
context "端末種別で" do
|
8
|
-
it "BlackBerryを判別できること" do
|
9
|
-
res = Rack::MockRequest.env_for(
|
10
|
-
'http://jpmobile-rails.org/',
|
11
|
-
'HTTP_USER_AGENT' => 'BlackBerry9000/4.6.0.224 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/220')
|
12
|
-
env = Jpmobile::Rack::MobileCarrier.new(UnitApplication.new).call(res)[1]
|
13
|
-
|
14
|
-
env['rack.jpmobile'].class.should == Jpmobile::Mobile::BlackBerry
|
15
|
-
env['rack.jpmobile'].position.should be_nil
|
16
|
-
env['rack.jpmobile'].smart_phone?.should be_true
|
17
|
-
env['rack.jpmobile'].supports_cookie?.should be_true
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
|
3
|
-
require 'mail'
|
4
|
-
require 'jpmobile/mail'
|
5
|
-
|
6
|
-
describe "decorated mails" do
|
7
|
-
include Jpmobile::Util
|
8
|
-
|
9
|
-
before(:each) do
|
10
|
-
@mail = Mail.new
|
11
|
-
@mail.subject = "万葉"
|
12
|
-
@mail.text_part = Mail::Part.new do
|
13
|
-
body 'ほげ'
|
14
|
-
end
|
15
|
-
@mail.from = "ちはやふる <info@jpmobile-rails.org>"
|
16
|
-
@mail.to = "むすめふさほせ <info+to@jpmobile-rails.org>"
|
17
|
-
|
18
|
-
@photo = open(File.join(File.expand_path(File.dirname(__FILE__)), "email-fixtures/photo.jpg")).read
|
19
|
-
@mail.attachments.inline['photo.jpg'] = @photo
|
20
|
-
@inline_url = @mail.attachments['photo.jpg'].url
|
21
|
-
end
|
22
|
-
|
23
|
-
describe "docomo" do
|
24
|
-
before(:each) do
|
25
|
-
inline_url = @inline_url
|
26
|
-
@mobile = Jpmobile::Mobile::Docomo.new(nil, nil)
|
27
|
-
charset = @mobile.mail_charset
|
28
|
-
@mail.html_part = Mail::Part.new do
|
29
|
-
body '<img src="' + inline_url + '" />'
|
30
|
-
content_type "text/html; charset=#{charset}"
|
31
|
-
end
|
32
|
-
@mail.mobile = @mobile
|
33
|
-
end
|
34
|
-
|
35
|
-
it "top level content-type should be 'multipart/mixed'" do
|
36
|
-
@mail.rearrange!
|
37
|
-
@mail.content_type.should match('multipart/mixed')
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe "au" do
|
42
|
-
before(:each) do
|
43
|
-
inline_url = @inline_url
|
44
|
-
@mobile = Jpmobile::Mobile::Au.new(nil, nil)
|
45
|
-
charset = @mobile.mail_charset
|
46
|
-
@mail.html_part = Mail::Part.new do
|
47
|
-
body '<img src="' + inline_url + '" />'
|
48
|
-
content_type "text/html; charset=#{charset}"
|
49
|
-
end
|
50
|
-
@mail.mobile = @mobile
|
51
|
-
end
|
52
|
-
|
53
|
-
it "top level content-type should be 'multipart/mixed'" do
|
54
|
-
@mail.rearrange!
|
55
|
-
@mail.content_type.should match('multipart/mixed')
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe "softbank" do
|
60
|
-
before(:each) do
|
61
|
-
inline_url = @inline_url
|
62
|
-
@mobile = Jpmobile::Mobile::Softbank.new(nil, nil)
|
63
|
-
charset = @mobile.mail_charset
|
64
|
-
@mail.html_part = Mail::Part.new do
|
65
|
-
body '<img src="' + inline_url + '" />'
|
66
|
-
content_type "text/html; charset=#{charset}"
|
67
|
-
end
|
68
|
-
@mail.mobile = @mobile
|
69
|
-
end
|
70
|
-
|
71
|
-
it "top level content-type should be 'multipart/mixed'" do
|
72
|
-
@mail.rearrange!
|
73
|
-
@mail.content_type.should match('multipart/mixed')
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
@@ -1,42 +0,0 @@
|
|
1
|
-
Return-Path: <au@ezweb.ne.jp>
|
2
|
-
Delivered-To: ogawa@jpmobile-info.co.jp
|
3
|
-
Subject: =?iso-2022-jp?B?RndkOiAbJEIhWhsoQk51cnNlcnlNYWlsGyRCIVtGfEZ8GyhC?=
|
4
|
-
From: au@ezweb.ne.jp
|
5
|
-
Content-Type: multipart/alternative;
|
6
|
-
boundary=Apple-Mail-453BF7C8-E087-4CEB-A163-18A4B0CBB56C
|
7
|
-
Message-Id: <5C2DBDE0-7AE2-4BD2-B932-97B59EAFED85@ezweb.ne.jp>
|
8
|
-
Date: Tue, 31 Jul 2012 10:44:23 +0900 (JST)
|
9
|
-
To: test@jpmobile-info.org
|
10
|
-
Content-Transfer-Encoding: 7bit
|
11
|
-
MIME-Version: 1.0
|
12
|
-
|
13
|
-
--Apple-Mail-453BF7C8-E087-4CEB-A163-18A4B0CBB56C
|
14
|
-
Content-Transfer-Encoding: quoted-printable
|
15
|
-
Content-Type: text/plain;
|
16
|
-
charset=iso-2022-jp
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
iPhone=1B$B$+$iAw?.=1B(B
|
21
|
-
|
22
|
-
Begin forwarded message:
|
23
|
-
|
24
|
-
> =1B$B$H$j$"$($:#H#T#M#L$NK\J8$G=1B(B
|
25
|
-
> =1B$B$"$l$P$$$$2DG=3D@-$r9MN8$7$F$O=1B(B
|
26
|
-
> =1B$B8+$?$,$d$O$j$Y!<$9$m$/$h$s!J>P!K$G=1B(B
|
27
|
-
> =1B$B$"$l$P$$$$$h$&$J5$$,=1B(B
|
28
|
-
> =1B$B$7$?$N$G%@%_!<$NJ8;zNs$r=1B(B
|
29
|
-
> =1B$B9M$($F8+$kD+!#=1B(B=
|
30
|
-
|
31
|
-
--Apple-Mail-453BF7C8-E087-4CEB-A163-18A4B0CBB56C
|
32
|
-
Content-Transfer-Encoding: base64
|
33
|
-
Content-Type: text/html;
|
34
|
-
charset=utf-8
|
35
|
-
|
36
|
-
44Go44KK44GC44GI44Ga77yo77y077yt77ys44Gu5pys5paH44Gn44GC44KM
|
37
|
-
44Gw44GE44GE5Y+v6IO95oCn44KS6ICD5oWu44GX44Gm44Gv6KaL44Gf44GM
|
38
|
-
44KE44Gv44KK44G544O844GZ44KN44GP44KI44KT77yI56yR77yJ44Gn44GC
|
39
|
-
44KM44Gw44GE44GE44KI44GG44Gq5rCX44GM44GX44Gf44Gu44Gn44OA44Of
|
40
|
-
44O844Gu5paH5a2X5YiX44KS6ICD44GI44Gm6KaL44KL5pyd44CC
|
41
|
-
--Apple-Mail-453BF7C8-E087-4CEB-A163-18A4B0CBB56C--
|
42
|
-
|
@@ -1,56 +0,0 @@
|
|
1
|
-
X-Mozilla-Status: 0011
|
2
|
-
X-Mozilla-Status2: 00000000
|
3
|
-
X-Mozilla-Keys:
|
4
|
-
Return-Path: <au@ezweb.ne.jp>
|
5
|
-
Delivered-To: au@ezweb.ne.jp
|
6
|
-
References: <503ef27994050_75cf4344bfe77fe@jpmobile.jp.mail>
|
7
|
-
In-Reply-To: <503ef27994050_75cf4344bfe77fe@jpmobile.jp.mail>
|
8
|
-
Mime-Version: 1.0 (1.0)
|
9
|
-
Content-Transfer-Encoding: base64
|
10
|
-
Content-Type: text/plain;
|
11
|
-
charset=utf-8
|
12
|
-
Message-Id: <6D015993-FD10-4EE9-8B60-A4588D554649@ezweb.ne.jp>
|
13
|
-
X-Mailer: iPhone Mail (9B206)
|
14
|
-
From: "au@ezweb.ne.jp" <au@ezweb.ne.jp>
|
15
|
-
Subject: =?iso-2022-jp?B?UmU6IBskQiFaGyhCTktTQxskQiFbGyhCdGVzdA==?=
|
16
|
-
Date: Thu, 30 Aug 2012 14:49:20 +0900
|
17
|
-
To: "info@jpmobile.jp" <info@jpmobile.jp>
|
18
|
-
|
19
|
-
DQoNCmlQaG9uZeOBi+OCiemAgeS/oeKXi+KXjg0KDQpPbiAyMDEyLzA4LzMw
|
20
|
-
LCBhdCAxMzo1NiwgaW5mb0BqcG1vYmlsZS5qcCB3cm90ZToNCg0KPiDmnKzm
|
21
|
-
lofmlLnooYzjgarjgZfvvL/vvJXvvJHvvJLmloflrZfvvL/jgYLjgYLjgYLj
|
22
|
-
gYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLj
|
23
|
-
gYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjgYLjg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jgYLjgYLjgYLjgYLjgYLvv73vv73ilrPi
|
54
|
-
lrPilrPilrPilrPilrPilrPilrPilrPilrPilrPilrPilrPilrPilrPilrPi
|
55
|
-
lrPilrPvv70NCg==
|
56
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
X-Account-Key: account2
|
2
|
-
X-UIDL: 1345598846.M744553P8903V000000000000FD00I00000000C0120BDF_0.jpjp.jp,S=1186.000031434a023554
|
3
|
-
X-Mozilla-Status: 0001
|
4
|
-
X-Mozilla-Status2: 00000000
|
5
|
-
X-Mozilla-Keys:
|
6
|
-
Return-Path: <au@ezweb.ne.jp>
|
7
|
-
Delivered-To: ogawa@jpmobile.jp
|
8
|
-
Received: (qmail 8893 invoked by SAV 20120821.022 by uid 0); 22 Aug 2012 10:27:26 +0900
|
9
|
-
Received: from unknown (HELO mmsmta08.ezweb.ne.jp) (59.135.39.241)
|
10
|
-
by dc6.etius.jp (124.146.201.109) with ESMTPS (DHE-RSA-AES256-SHA encrypted); 22 Aug 2012 10:27:26 +0900
|
11
|
-
Received-SPF: pass (dc6.etius.jp: SPF record at spf-nm.ezweb.ne.jp designates 59.135.39.241 as permitted sender)
|
12
|
-
Received: from cm (pl0_4-mms [172.22.116.39])
|
13
|
-
by mmsmta08.ezweb.ne.jp (Sentrion-MTA-4.1.0/Switch-3.3.4) with SMTP id q7M1RQgt001822
|
14
|
-
for <info@jpmobile.jp>; Wed, 22 Aug 2012 10:27:26 +0900
|
15
|
-
From:au@ezweb.ne.jp
|
16
|
-
To:ogawa@jpmobile.jp
|
17
|
-
Subject:=?UTF-8?B?aVBob25lIGF1IOODoeODg+OCu+ODvOOCuA==?=
|
18
|
-
Message-ID: <212212358846052174@-212212358846052175>
|
19
|
-
Date: Tue, 22 Aug 2012 01:27:26 +0000
|
20
|
-
MIME-Version:1.0
|
21
|
-
Content-Type: text/plain; charset=utf-8
|
22
|
-
Content-Transfer-Encoding: base64
|
23
|
-
|
24
|
-
JVvlnJLlhZDlkI1dJeOBriVb5L+d6K236ICF5ZCNXSUg5qeYCgrmlr3oqK3jgavpgIHkv6HjgIIK
|
25
|
-
6YG45oqeMeOBryVb44Ki44OJ44Os44K5MV0l44G4CumBuOaKnjLjga8lW+OCouODieODrOOCuTJd
|
26
|
-
JeOBuArov5Tkv6HjgZfjgabkuIvjgZXjgYTjgIIKCmlQaG9uZSBhdSDjg6Hjg4Pjgrvjg7zjgrg=
|
27
|
-
|
Binary file
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper'))
|
3
|
-
|
4
|
-
describe Jpmobile::Mobile::Iphone do
|
5
|
-
describe 'iOS 4.0' do
|
6
|
-
it "unicode_emoticon? should be false" do
|
7
|
-
request = double('request')
|
8
|
-
request.stub(:user_agent) {'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_4 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8K2 Safari/6533.18.5'}
|
9
|
-
|
10
|
-
mobile = Jpmobile::Mobile::Iphone.new({}, request)
|
11
|
-
mobile.unicode_emoticon?.should be_false
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
describe 'iOS 5.0' do
|
16
|
-
it "unicode_emoticon? should be true" do
|
17
|
-
request = double('request')
|
18
|
-
request.stub(:user_agent) {'Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3'}
|
19
|
-
|
20
|
-
mobile = Jpmobile::Mobile::Iphone.new({}, request)
|
21
|
-
mobile.unicode_emoticon?.should be_true
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
describe 'iOS 6.0' do
|
26
|
-
it "unicode_emoticon? should be true" do
|
27
|
-
request = double('request')
|
28
|
-
request.stub(:user_agent) {'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25'}
|
29
|
-
|
30
|
-
mobile = Jpmobile::Mobile::Iphone.new({}, request)
|
31
|
-
mobile.unicode_emoticon?.should be_true
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
class DecoratedMailer < Jpmobile::Mailer::Base
|
3
|
-
default :from => "info@jp.mobile"
|
4
|
-
default :to => "info@jp.mobile"
|
5
|
-
|
6
|
-
def deco_mail(to_mail)
|
7
|
-
attachments.inline['photo.jpg'] = open(File.join(Rails.root, 'spec/fixtures/mobile_mailer/photo.jpg')).read
|
8
|
-
|
9
|
-
mail(:to => to_mail, :subject => '題名', :decorated => true)
|
10
|
-
end
|
11
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
テキストメールの本文
|