jpmobile 1.0.0.pre.4 → 1.0.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +4 -0
- data/Gemfile +3 -3
- data/VERSION.yml +2 -2
- data/jpmobile.gemspec +335 -0
- data/lib/jpmobile.rb +0 -1
- data/lib/jpmobile/email.rb +47 -21
- data/lib/jpmobile/mail.rb +33 -26
- data/lib/jpmobile/mailer.rb +2 -0
- data/lib/jpmobile/util.rb +3 -3
- data/spec/unit/email-fixtures/au-attached.eml +1551 -0
- data/spec/unit/email-fixtures/au-decomail.eml +44 -0
- data/spec/unit/email-fixtures/au-emoji.eml +19 -0
- data/spec/unit/email-fixtures/au-emoji2.eml +45 -0
- data/spec/unit/email-fixtures/au-emoji5.eml +24 -0
- data/spec/unit/email-fixtures/docomo-emoji.eml +19 -0
- data/spec/unit/email-fixtures/docomo-gmail-sjis.eml +45 -0
- data/spec/unit/email-fixtures/docomo-jis.eml +20 -0
- data/spec/unit/email-fixtures/pc-mail-multi.eml +77 -0
- data/spec/unit/email-fixtures/pc-mail-single.eml +29 -0
- data/spec/unit/email-fixtures/softbank-blank.eml +20 -0
- data/spec/unit/email-fixtures/softbank-emoji-utf8.eml +19 -0
- data/spec/unit/email-fixtures/softbank-emoji.eml +19 -0
- data/spec/unit/email-fixtures/softbank-gmail-sjis.eml +45 -0
- data/spec/unit/email-fixtures/softbank-gmail-utf8.eml +45 -0
- data/spec/unit/{detect_by_email_spec.rb → email_spec.rb} +25 -2
- data/spec/unit/emoticon_spec.rb +1 -1
- data/spec/unit/encoding_spec.rb +1 -1
- data/spec/unit/is_carrier_spec.rb +1 -1
- data/spec/unit/mail_spec.rb +1 -1
- data/spec/unit/receive_mail_spec.rb +26 -1
- data/spec/unit/util_spec.rb +1 -1
- data/spec/unit/valid_ip_spec.rb +1 -1
- data/test/rails/.gitignore +1 -0
- data/test/rails/overrides/.rspec +5 -0
- data/test/rails/overrides/Gemfile +33 -0
- data/test/rails/overrides/app/views/filter/index.html.erb +0 -0
- data/test/rails/overrides/app/views/hankaku_filter/index.html.erb +0 -0
- data/test/rails/overrides/app/views/hankaku_input_filter/index.html.erb +0 -0
- data/test/rails/overrides/app/views/hankaku_input_filter/index_xhtml.html.erb +1 -0
- data/test/rails/overrides/app/views/layouts/xhtml.html.erb +12 -0
- data/test/rails/overrides/app/views/links/au_gps.html.erb +1 -0
- data/test/rails/overrides/app/views/links/au_location.html.erb +1 -0
- data/test/rails/overrides/app/views/links/docomo_foma_gps.html.erb +1 -0
- data/test/rails/overrides/app/views/links/docomo_openiarea.html.erb +1 -0
- data/test/rails/overrides/app/views/links/docomo_utn.html.erb +1 -0
- data/test/rails/overrides/app/views/links/link.html.erb +1 -0
- data/test/rails/overrides/app/views/links/show_all.html.erb +1 -0
- data/test/rails/overrides/app/views/links/softbank_location.html.erb +1 -0
- data/test/rails/overrides/app/views/links/willcom_location.html.erb +1 -0
- data/test/rails/overrides/app/views/mobile_mailer/multi_message.html.erb +11 -0
- data/test/rails/overrides/app/views/mobile_mailer/multi_message.text.erb +2 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_au.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_docomo.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_emobile.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_softbank.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_vodafone.html.erb +3 -0
- data/test/rails/overrides/app/views/mobile_mailer/view_selection_mobile_willcom.html.erb +3 -0
- data/test/rails/overrides/app/views/normal_mailer/msg.text.erb +3 -0
- data/test/rails/overrides/app/views/template_path/_partial.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/_partial_mobile.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/_partial_mobile_docomo.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/_partial_smart_phone.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/_partial_smart_phone_iphone.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/index.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/index_mobile.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/index_mobile_docomo.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/index_smart_phone.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/index_smart_phone_iphone.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/partial.html.erb +2 -0
- data/test/rails/overrides/app/views/template_path/show_mobile.html.erb +1 -0
- data/test/rails/overrides/app/views/template_path/show_mobile_docomo.html.erb +1 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/au-attached.eml +1551 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/au-decomail.eml +44 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji.eml +19 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji2.eml +45 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/au-emoji5.eml +24 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-emoji.eml +19 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-gmail-sjis.eml +45 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/docomo-jis.eml +20 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/no-from.eml +78 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/non-jp.eml +45 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-blank.eml +20 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji-utf8.eml +19 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-emoji.eml +19 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-sjis.eml +45 -0
- data/test/rails/overrides/spec/fixtures/mobile_mailer/softbank-gmail-utf8.eml +45 -0
- data/test/rails/overrides/spec/helpers/helpers_spec.rb +1 -2
- data/test/rails/overrides/spec/models/mobile_mailer_spec.rb +37 -1
- data/test/rails/overrides/spec/models/normal_mailer_spec.rb +1 -1
- data/test/rails/overrides/spec/rcov.opts +2 -0
- data/test/rails/overrides/spec/requests/docomo_guid_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/docomo_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/emobile_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/filter_spec.rb +1 -1
- data/test/rails/overrides/spec/requests/helpers_spec.rb +1 -1
- data/test/rails/overrides/spec/requests/pc_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/softbank_emulator_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/template_path_spec.rb +1 -2
- data/test/rails/overrides/spec/requests/trans_sid_spec.rb +1 -2
- data/test/rails/overrides/spec/spec_helper.rb +1 -1
- metadata +229 -386
- data/test/rails/rails_root/app/controllers/application_controller.rb +0 -6
- data/test/rails/rails_root/app/controllers/docomo_guid_always_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/docomo_guid_base_controller.rb +0 -5
- data/test/rails/rails_root/app/controllers/docomo_guid_docomo_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/filter_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/filter_controller_base.rb +0 -25
- data/test/rails/rails_root/app/controllers/hankaku_filter_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/hankaku_input_filter_controller.rb +0 -7
- data/test/rails/rails_root/app/controllers/links_controller.rb +0 -28
- data/test/rails/rails_root/app/controllers/mobile_spec_controller.rb +0 -5
- data/test/rails/rails_root/app/controllers/template_path_controller.rb +0 -17
- data/test/rails/rails_root/app/controllers/trans_sid_always_and_session_off_controller.rb +0 -4
- data/test/rails/rails_root/app/controllers/trans_sid_always_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/trans_sid_base_controller.rb +0 -40
- data/test/rails/rails_root/app/controllers/trans_sid_metal_controller.rb +0 -15
- data/test/rails/rails_root/app/controllers/trans_sid_mobile_controller.rb +0 -3
- data/test/rails/rails_root/app/controllers/trans_sid_none_controller.rb +0 -3
- data/test/rails/rails_root/app/helpers/application_helper.rb +0 -2
- data/test/rails/rails_root/app/models/mobile_mailer.rb +0 -19
- data/test/rails/rails_root/app/models/normal_mailer.rb +0 -9
- data/test/rails/rails_root/app/models/user.rb +0 -2
- data/test/rails/rails_root/autotest/discover.rb +0 -2
- data/test/rails/rails_root/config/application.rb +0 -42
- data/test/rails/rails_root/config/boot.rb +0 -6
- data/test/rails/rails_root/config/environment.rb +0 -5
- data/test/rails/rails_root/config/environments/development.rb +0 -26
- data/test/rails/rails_root/config/environments/production.rb +0 -49
- data/test/rails/rails_root/config/environments/test.rb +0 -35
- data/test/rails/rails_root/config/initializers/backtrace_silencers.rb +0 -7
- data/test/rails/rails_root/config/initializers/inflections.rb +0 -10
- data/test/rails/rails_root/config/initializers/jpmobile_generator.rb +0 -2
- data/test/rails/rails_root/config/initializers/mime_types.rb +0 -5
- data/test/rails/rails_root/config/initializers/secret_token.rb +0 -7
- data/test/rails/rails_root/config/initializers/session_store.rb +0 -2
- data/test/rails/rails_root/config/routes.rb +0 -7
- data/test/rails/rails_root/db/migrate/001_add_sessions_table.rb +0 -16
- data/test/rails/rails_root/db/migrate/20100824062306_create_users.rb +0 -13
- data/test/rails/rails_root/db/schema.rb +0 -31
- data/test/rails/rails_root/db/seeds.rb +0 -7
- data/test/rails/rails_root/spec/helpers/helpers_spec.rb +0 -15
- data/test/rails/rails_root/spec/models/mobile_mailer_spec.rb +0 -737
- data/test/rails/rails_root/spec/models/normal_mailer_spec.rb +0 -34
- data/test/rails/rails_root/spec/requests/docomo_guid_spec.rb +0 -102
- data/test/rails/rails_root/spec/requests/docomo_spec.rb +0 -33
- data/test/rails/rails_root/spec/requests/emobile_spec.rb +0 -53
- data/test/rails/rails_root/spec/requests/filter_spec.rb +0 -221
- data/test/rails/rails_root/spec/requests/helpers_spec.rb +0 -187
- data/test/rails/rails_root/spec/requests/pc_spec.rb +0 -22
- data/test/rails/rails_root/spec/requests/softbank_emulator_spec.rb +0 -21
- data/test/rails/rails_root/spec/requests/template_path_spec.rb +0 -240
- data/test/rails/rails_root/spec/requests/trans_sid_spec.rb +0 -207
- data/test/rails/rails_root/spec/spec_helper.rb +0 -38
- data/test/rails/rails_root/test/performance/browsing_test.rb +0 -9
- data/test/rails/rails_root/test/test_helper.rb +0 -13
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb +0 -18
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb +0 -23
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb +0 -40
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb +0 -22
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb +0 -15
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb +0 -20
- data/test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb +0 -158
- data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile-terminfo.rb +0 -9
- data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb +0 -62
- data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb +0 -739
- data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/spec_helper.rb +0 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/terminfo_spec.rb +0 -54
- data/test/rails/rails_root/vendor/plugins/jpmobile/init.rb +0 -3
- data/test/rails/rails_root/vendor/plugins/jpmobile/install.rb +0 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile.rb +0 -59
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/datum_conv.rb +0 -72
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/docomo_guid.rb +0 -43
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/email.rb +0 -33
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon.rb +0 -205
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/au.rb +0 -1931
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/conversion_table.rb +0 -3909
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/docomo.rb +0 -255
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/softbank.rb +0 -965
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/z_combine.rb +0 -36
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/encoding.rb +0 -29
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/filter.rb +0 -113
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/helpers.rb +0 -174
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_controller.rb +0 -18
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_dispatch.rb +0 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_view.rb +0 -33
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/lookup_context.rb +0 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mail.rb +0 -330
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mailer.rb +0 -41
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/abstract_mobile.rb +0 -168
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/android.rb +0 -10
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/au.rb +0 -128
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/ddipocket.rb +0 -12
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/docomo.rb +0 -149
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/emobile.rb +0 -16
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/iphone.rb +0 -26
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/smart_phone.rb +0 -21
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/softbank.rb +0 -91
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/vodafone.rb +0 -17
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/willcom.rb +0 -28
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/windows_phone.rb +0 -10
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/path_set.rb +0 -40
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/position.rb +0 -68
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack.rb +0 -49
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/filter.rb +0 -50
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/mobile_carrier.rb +0 -33
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/params_filter.rb +0 -47
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rails.rb +0 -50
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/request_with_mobile.rb +0 -45
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/resolver.rb +0 -38
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/trans_sid.rb +0 -133
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/util.rb +0 -370
- data/test/rails/rails_root/vendor/plugins/jpmobile/tmp/conversion-table.rb +0 -2588
- data/test/rails/rails_root/vendor/plugins/jpmobile/tmp/utf8_to_image.rb +0 -1407
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/emoji/genregexp.rb +0 -47
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_au_emoticon_table.rb +0 -34
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_docomo_emoticon_table.rb +0 -33
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_emoticon_conversion_table.rb +0 -107
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_softbank_emoticon_table.rb +0 -31
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/list_gps_unsupported_au.rb +0 -23
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb +0 -18
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb +0 -23
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb +0 -40
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb +0 -22
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb +0 -15
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb +0 -20
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb +0 -158
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile-terminfo.rb +0 -9
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb +0 -62
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb +0 -739
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/spec_helper.rb +0 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/terminfo_spec.rb +0 -54
data/.rspec
ADDED
data/Gemfile
CHANGED
@@ -2,9 +2,9 @@ source 'http://rubygems.org'
|
|
2
2
|
|
3
3
|
group :development, :test do
|
4
4
|
gem 'jeweler'
|
5
|
-
gem 'rails', '>= 3.0.
|
6
|
-
gem 'rspec', '>= 2.
|
7
|
-
gem 'rspec-rails', '>= 2.
|
5
|
+
gem 'rails', '>= 3.0.9'
|
6
|
+
gem 'rspec', '>= 2.6.0'
|
7
|
+
gem 'rspec-rails', '>= 2.6.0'
|
8
8
|
gem 'webrat'
|
9
9
|
gem 'geokit'
|
10
10
|
gem 'sqlite3-ruby'
|
data/VERSION.yml
CHANGED
data/jpmobile.gemspec
ADDED
@@ -0,0 +1,335 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{jpmobile}
|
8
|
+
s.version = "1.0.0.pre"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Yoji Shidara", "Shin-ichiro OGAWA"]
|
12
|
+
s.date = %q{2011-01-28}
|
13
|
+
s.description = %q{A Rails plugin for Japanese mobile-phones}
|
14
|
+
s.email = %q{dara@shidara.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"CHANGELOG",
|
21
|
+
"Gemfile",
|
22
|
+
"MIT-LICENSE",
|
23
|
+
"README",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION.yml",
|
27
|
+
"init.rb",
|
28
|
+
"install.rb",
|
29
|
+
"lib/jpmobile.rb",
|
30
|
+
"lib/jpmobile/datum_conv.rb",
|
31
|
+
"lib/jpmobile/docomo_guid.rb",
|
32
|
+
"lib/jpmobile/email.rb",
|
33
|
+
"lib/jpmobile/emoticon.rb",
|
34
|
+
"lib/jpmobile/emoticon/au.rb",
|
35
|
+
"lib/jpmobile/emoticon/conversion_table.rb",
|
36
|
+
"lib/jpmobile/emoticon/docomo.rb",
|
37
|
+
"lib/jpmobile/emoticon/softbank.rb",
|
38
|
+
"lib/jpmobile/emoticon/z_combine.rb",
|
39
|
+
"lib/jpmobile/encoding.rb",
|
40
|
+
"lib/jpmobile/filter.rb",
|
41
|
+
"lib/jpmobile/helpers.rb",
|
42
|
+
"lib/jpmobile/hook_action_controller.rb",
|
43
|
+
"lib/jpmobile/hook_action_view.rb",
|
44
|
+
"lib/jpmobile/mail.rb",
|
45
|
+
"lib/jpmobile/mailer.rb",
|
46
|
+
"lib/jpmobile/mobile/abstract_mobile.rb",
|
47
|
+
"lib/jpmobile/mobile/android.rb",
|
48
|
+
"lib/jpmobile/mobile/au.rb",
|
49
|
+
"lib/jpmobile/mobile/ddipocket.rb",
|
50
|
+
"lib/jpmobile/mobile/docomo.rb",
|
51
|
+
"lib/jpmobile/mobile/emobile.rb",
|
52
|
+
"lib/jpmobile/mobile/iphone.rb",
|
53
|
+
"lib/jpmobile/mobile/smart_phone.rb",
|
54
|
+
"lib/jpmobile/mobile/softbank.rb",
|
55
|
+
"lib/jpmobile/mobile/vodafone.rb",
|
56
|
+
"lib/jpmobile/mobile/willcom.rb",
|
57
|
+
"lib/jpmobile/mobile/windows_phone.rb",
|
58
|
+
"lib/jpmobile/path_set.rb",
|
59
|
+
"lib/jpmobile/position.rb",
|
60
|
+
"lib/jpmobile/rack.rb",
|
61
|
+
"lib/jpmobile/rack/filter.rb",
|
62
|
+
"lib/jpmobile/rack/mobile_carrier.rb",
|
63
|
+
"lib/jpmobile/rack/params_filter.rb",
|
64
|
+
"lib/jpmobile/rails.rb",
|
65
|
+
"lib/jpmobile/request_with_mobile.rb",
|
66
|
+
"lib/jpmobile/resolver.rb",
|
67
|
+
"lib/jpmobile/trans_sid.rb",
|
68
|
+
"lib/jpmobile/util.rb",
|
69
|
+
"lib/tasks/jpmobile_tasks.rake",
|
70
|
+
"tools/emoji/genregexp.rb",
|
71
|
+
"tools/generate_au_emoticon_table.rb",
|
72
|
+
"tools/generate_docomo_emoticon_table.rb",
|
73
|
+
"tools/generate_emoticon_conversion_table.rb",
|
74
|
+
"tools/generate_softbank_emoticon_table.rb",
|
75
|
+
"tools/list_gps_unsupported_au.rb"
|
76
|
+
]
|
77
|
+
s.homepage = %q{http://jpmobile-rails.org}
|
78
|
+
s.require_paths = ["lib"]
|
79
|
+
s.rubygems_version = %q{1.3.7}
|
80
|
+
s.summary = %q{A Rails plugin for Japanese mobile-phones}
|
81
|
+
s.test_files = [
|
82
|
+
"spec/rack/jpmobile/android_spec.rb",
|
83
|
+
"spec/rack/jpmobile/au_spec.rb",
|
84
|
+
"spec/rack/jpmobile/docomo_spec.rb",
|
85
|
+
"spec/rack/jpmobile/emoticon_spec.rb",
|
86
|
+
"spec/rack/jpmobile/filter_spec.rb",
|
87
|
+
"spec/rack/jpmobile/iphone_spec.rb",
|
88
|
+
"spec/rack/jpmobile/mobile_by_ua_spec.rb",
|
89
|
+
"spec/rack/jpmobile/params_filter_spec.rb",
|
90
|
+
"spec/rack/jpmobile/softbank_spec.rb",
|
91
|
+
"spec/rack/jpmobile/willcom_spec.rb",
|
92
|
+
"spec/rack/jpmobile/windows_phone.rb",
|
93
|
+
"spec/rack_helper.rb",
|
94
|
+
"spec/spec_helper.rb",
|
95
|
+
"spec/unit/detect_by_email_spec.rb",
|
96
|
+
"spec/unit/emoticon_spec.rb",
|
97
|
+
"spec/unit/encoding_spec.rb",
|
98
|
+
"spec/unit/is_carrier_spec.rb",
|
99
|
+
"spec/unit/mail_spec.rb",
|
100
|
+
"spec/unit/receive_mail_spec.rb",
|
101
|
+
"spec/unit/spec_helper.rb",
|
102
|
+
"spec/unit/util_spec.rb",
|
103
|
+
"spec/unit/valid_ip_spec.rb",
|
104
|
+
"test/rails/overrides/app/controllers/application_controller.rb",
|
105
|
+
"test/rails/overrides/app/controllers/docomo_guid_always_controller.rb",
|
106
|
+
"test/rails/overrides/app/controllers/docomo_guid_base_controller.rb",
|
107
|
+
"test/rails/overrides/app/controllers/docomo_guid_docomo_controller.rb",
|
108
|
+
"test/rails/overrides/app/controllers/filter_controller.rb",
|
109
|
+
"test/rails/overrides/app/controllers/filter_controller_base.rb",
|
110
|
+
"test/rails/overrides/app/controllers/hankaku_filter_controller.rb",
|
111
|
+
"test/rails/overrides/app/controllers/hankaku_input_filter_controller.rb",
|
112
|
+
"test/rails/overrides/app/controllers/links_controller.rb",
|
113
|
+
"test/rails/overrides/app/controllers/mobile_spec_controller.rb",
|
114
|
+
"test/rails/overrides/app/controllers/template_path_controller.rb",
|
115
|
+
"test/rails/overrides/app/controllers/trans_sid_always_and_session_off_controller.rb",
|
116
|
+
"test/rails/overrides/app/controllers/trans_sid_always_controller.rb",
|
117
|
+
"test/rails/overrides/app/controllers/trans_sid_base_controller.rb",
|
118
|
+
"test/rails/overrides/app/controllers/trans_sid_metal_controller.rb",
|
119
|
+
"test/rails/overrides/app/controllers/trans_sid_mobile_controller.rb",
|
120
|
+
"test/rails/overrides/app/controllers/trans_sid_none_controller.rb",
|
121
|
+
"test/rails/overrides/app/models/mobile_mailer.rb",
|
122
|
+
"test/rails/overrides/app/models/normal_mailer.rb",
|
123
|
+
"test/rails/overrides/app/models/user.rb",
|
124
|
+
"test/rails/overrides/autotest/discover.rb",
|
125
|
+
"test/rails/overrides/config/initializers/jpmobile_generator.rb",
|
126
|
+
"test/rails/overrides/config/routes.rb",
|
127
|
+
"test/rails/overrides/db/migrate/001_add_sessions_table.rb",
|
128
|
+
"test/rails/overrides/db/migrate/20100824062306_create_users.rb",
|
129
|
+
"test/rails/overrides/spec/helpers/helpers_spec.rb",
|
130
|
+
"test/rails/overrides/spec/models/mobile_mailer_spec.rb",
|
131
|
+
"test/rails/overrides/spec/models/normal_mailer_spec.rb",
|
132
|
+
"test/rails/overrides/spec/requests/docomo_guid_spec.rb",
|
133
|
+
"test/rails/overrides/spec/requests/docomo_spec.rb",
|
134
|
+
"test/rails/overrides/spec/requests/emobile_spec.rb",
|
135
|
+
"test/rails/overrides/spec/requests/filter_spec.rb",
|
136
|
+
"test/rails/overrides/spec/requests/helpers_spec.rb",
|
137
|
+
"test/rails/overrides/spec/requests/pc_spec.rb",
|
138
|
+
"test/rails/overrides/spec/requests/softbank_emulator_spec.rb",
|
139
|
+
"test/rails/overrides/spec/requests/template_path_spec.rb",
|
140
|
+
"test/rails/overrides/spec/requests/trans_sid_spec.rb",
|
141
|
+
"test/rails/overrides/spec/spec_helper.rb",
|
142
|
+
"test/rails/rails_root/app/controllers/application_controller.rb",
|
143
|
+
"test/rails/rails_root/app/controllers/docomo_guid_always_controller.rb",
|
144
|
+
"test/rails/rails_root/app/controllers/docomo_guid_base_controller.rb",
|
145
|
+
"test/rails/rails_root/app/controllers/docomo_guid_docomo_controller.rb",
|
146
|
+
"test/rails/rails_root/app/controllers/filter_controller.rb",
|
147
|
+
"test/rails/rails_root/app/controllers/filter_controller_base.rb",
|
148
|
+
"test/rails/rails_root/app/controllers/hankaku_filter_controller.rb",
|
149
|
+
"test/rails/rails_root/app/controllers/hankaku_input_filter_controller.rb",
|
150
|
+
"test/rails/rails_root/app/controllers/links_controller.rb",
|
151
|
+
"test/rails/rails_root/app/controllers/mobile_spec_controller.rb",
|
152
|
+
"test/rails/rails_root/app/controllers/template_path_controller.rb",
|
153
|
+
"test/rails/rails_root/app/controllers/trans_sid_always_and_session_off_controller.rb",
|
154
|
+
"test/rails/rails_root/app/controllers/trans_sid_always_controller.rb",
|
155
|
+
"test/rails/rails_root/app/controllers/trans_sid_base_controller.rb",
|
156
|
+
"test/rails/rails_root/app/controllers/trans_sid_metal_controller.rb",
|
157
|
+
"test/rails/rails_root/app/controllers/trans_sid_mobile_controller.rb",
|
158
|
+
"test/rails/rails_root/app/controllers/trans_sid_none_controller.rb",
|
159
|
+
"test/rails/rails_root/app/helpers/application_helper.rb",
|
160
|
+
"test/rails/rails_root/app/models/mobile_mailer.rb",
|
161
|
+
"test/rails/rails_root/app/models/normal_mailer.rb",
|
162
|
+
"test/rails/rails_root/app/models/user.rb",
|
163
|
+
"test/rails/rails_root/autotest/discover.rb",
|
164
|
+
"test/rails/rails_root/config/application.rb",
|
165
|
+
"test/rails/rails_root/config/boot.rb",
|
166
|
+
"test/rails/rails_root/config/environment.rb",
|
167
|
+
"test/rails/rails_root/config/environments/development.rb",
|
168
|
+
"test/rails/rails_root/config/environments/production.rb",
|
169
|
+
"test/rails/rails_root/config/environments/test.rb",
|
170
|
+
"test/rails/rails_root/config/initializers/backtrace_silencers.rb",
|
171
|
+
"test/rails/rails_root/config/initializers/inflections.rb",
|
172
|
+
"test/rails/rails_root/config/initializers/jpmobile_generator.rb",
|
173
|
+
"test/rails/rails_root/config/initializers/mime_types.rb",
|
174
|
+
"test/rails/rails_root/config/initializers/secret_token.rb",
|
175
|
+
"test/rails/rails_root/config/initializers/session_store.rb",
|
176
|
+
"test/rails/rails_root/config/routes.rb",
|
177
|
+
"test/rails/rails_root/db/migrate/001_add_sessions_table.rb",
|
178
|
+
"test/rails/rails_root/db/migrate/20100824062306_create_users.rb",
|
179
|
+
"test/rails/rails_root/db/schema.rb",
|
180
|
+
"test/rails/rails_root/db/seeds.rb",
|
181
|
+
"test/rails/rails_root/spec/helpers/helpers_spec.rb",
|
182
|
+
"test/rails/rails_root/spec/models/mobile_mailer_spec.rb",
|
183
|
+
"test/rails/rails_root/spec/models/normal_mailer_spec.rb",
|
184
|
+
"test/rails/rails_root/spec/requests/docomo_guid_spec.rb",
|
185
|
+
"test/rails/rails_root/spec/requests/docomo_spec.rb",
|
186
|
+
"test/rails/rails_root/spec/requests/emobile_spec.rb",
|
187
|
+
"test/rails/rails_root/spec/requests/filter_spec.rb",
|
188
|
+
"test/rails/rails_root/spec/requests/helpers_spec.rb",
|
189
|
+
"test/rails/rails_root/spec/requests/pc_spec.rb",
|
190
|
+
"test/rails/rails_root/spec/requests/softbank_emulator_spec.rb",
|
191
|
+
"test/rails/rails_root/spec/requests/template_path_spec.rb",
|
192
|
+
"test/rails/rails_root/spec/requests/trans_sid_spec.rb",
|
193
|
+
"test/rails/rails_root/spec/spec_helper.rb",
|
194
|
+
"test/rails/rails_root/test/performance/browsing_test.rb",
|
195
|
+
"test/rails/rails_root/test/test_helper.rb",
|
196
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb",
|
197
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb",
|
198
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb",
|
199
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb",
|
200
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb",
|
201
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb",
|
202
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb",
|
203
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile-terminfo.rb",
|
204
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb",
|
205
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb",
|
206
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/spec_helper.rb",
|
207
|
+
"test/rails/rails_root/vendor/plugins/jpmobile-terminfo/spec/terminfo_spec.rb",
|
208
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/init.rb",
|
209
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/install.rb",
|
210
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile.rb",
|
211
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/datum_conv.rb",
|
212
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/docomo_guid.rb",
|
213
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/email.rb",
|
214
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon.rb",
|
215
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/au.rb",
|
216
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/conversion_table.rb",
|
217
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/docomo.rb",
|
218
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/softbank.rb",
|
219
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon/z_combine.rb",
|
220
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/encoding.rb",
|
221
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/filter.rb",
|
222
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/helpers.rb",
|
223
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_controller.rb",
|
224
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_view.rb",
|
225
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mail.rb",
|
226
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mailer.rb",
|
227
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/abstract_mobile.rb",
|
228
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/android.rb",
|
229
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/au.rb",
|
230
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/ddipocket.rb",
|
231
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/docomo.rb",
|
232
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/emobile.rb",
|
233
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/iphone.rb",
|
234
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/smart_phone.rb",
|
235
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/softbank.rb",
|
236
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/vodafone.rb",
|
237
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/willcom.rb",
|
238
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/windows_phone.rb",
|
239
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/path_set.rb",
|
240
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/position.rb",
|
241
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack.rb",
|
242
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/filter.rb",
|
243
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/mobile_carrier.rb",
|
244
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/params_filter.rb",
|
245
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rails.rb",
|
246
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/request_with_mobile.rb",
|
247
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/resolver.rb",
|
248
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/trans_sid.rb",
|
249
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/util.rb",
|
250
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tmp/conversion-table.rb",
|
251
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tmp/utf8_to_image.rb",
|
252
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/emoji/genregexp.rb",
|
253
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_au_emoticon_table.rb",
|
254
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_docomo_emoticon_table.rb",
|
255
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_emoticon_conversion_table.rb",
|
256
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_softbank_emoticon_table.rb",
|
257
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/tools/list_gps_unsupported_au.rb",
|
258
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile-ipaddresses.rb",
|
259
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/abstract_ip_addresses.rb",
|
260
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/au.rb",
|
261
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/docomo.rb",
|
262
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/emobile.rb",
|
263
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/softbank.rb",
|
264
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-ipaddresses/lib/jpmobile/mobile/ip_addresses/willcom.rb",
|
265
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile-terminfo.rb",
|
266
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo.rb",
|
267
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/lib/jpmobile/mobile/terminfo/docomo.rb",
|
268
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/spec_helper.rb",
|
269
|
+
"test/rails/rails_root/vendor/plugins/jpmobile/vendor/jpmobile-terminfo/spec/terminfo_spec.rb",
|
270
|
+
"test/sinatra/guestbook.rb",
|
271
|
+
"test/sinatra/test/filter_test.rb"
|
272
|
+
]
|
273
|
+
|
274
|
+
if s.respond_to? :specification_version then
|
275
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
276
|
+
s.specification_version = 3
|
277
|
+
|
278
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
279
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
280
|
+
s.add_development_dependency(%q<rails>, [">= 3.0.3"])
|
281
|
+
s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
|
282
|
+
s.add_development_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
283
|
+
s.add_development_dependency(%q<webrat>, [">= 0"])
|
284
|
+
s.add_development_dependency(%q<geokit>, [">= 0"])
|
285
|
+
s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
|
286
|
+
s.add_development_dependency(%q<hpricot>, [">= 0"])
|
287
|
+
s.add_development_dependency(%q<jeweler>, [">= 1.5.1"])
|
288
|
+
s.add_development_dependency(%q<rspec>, [">= 2.3.0"])
|
289
|
+
s.add_development_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
290
|
+
s.add_development_dependency(%q<webrat>, [">= 0.7.2"])
|
291
|
+
s.add_development_dependency(%q<geokit>, [">= 1.5.0"])
|
292
|
+
s.add_development_dependency(%q<sqlite3-ruby>, [">= 1.3.2"])
|
293
|
+
s.add_development_dependency(%q<hpricot>, [">= 0.8.3"])
|
294
|
+
s.add_development_dependency(%q<git>, [">= 1.2.5"])
|
295
|
+
s.add_development_dependency(%q<rails>, [">= 3.0.3"])
|
296
|
+
else
|
297
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
298
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
299
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
300
|
+
s.add_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
301
|
+
s.add_dependency(%q<webrat>, [">= 0"])
|
302
|
+
s.add_dependency(%q<geokit>, [">= 0"])
|
303
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
304
|
+
s.add_dependency(%q<hpricot>, [">= 0"])
|
305
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.1"])
|
306
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
307
|
+
s.add_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
308
|
+
s.add_dependency(%q<webrat>, [">= 0.7.2"])
|
309
|
+
s.add_dependency(%q<geokit>, [">= 1.5.0"])
|
310
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.2"])
|
311
|
+
s.add_dependency(%q<hpricot>, [">= 0.8.3"])
|
312
|
+
s.add_dependency(%q<git>, [">= 1.2.5"])
|
313
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
314
|
+
end
|
315
|
+
else
|
316
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
317
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
318
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
319
|
+
s.add_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
320
|
+
s.add_dependency(%q<webrat>, [">= 0"])
|
321
|
+
s.add_dependency(%q<geokit>, [">= 0"])
|
322
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
323
|
+
s.add_dependency(%q<hpricot>, [">= 0"])
|
324
|
+
s.add_dependency(%q<jeweler>, [">= 1.5.1"])
|
325
|
+
s.add_dependency(%q<rspec>, [">= 2.3.0"])
|
326
|
+
s.add_dependency(%q<rspec-rails>, [">= 2.3.0"])
|
327
|
+
s.add_dependency(%q<webrat>, [">= 0.7.2"])
|
328
|
+
s.add_dependency(%q<geokit>, [">= 1.5.0"])
|
329
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 1.3.2"])
|
330
|
+
s.add_dependency(%q<hpricot>, [">= 0.8.3"])
|
331
|
+
s.add_dependency(%q<git>, [">= 1.2.5"])
|
332
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
data/lib/jpmobile.rb
CHANGED
@@ -46,7 +46,6 @@ module Jpmobile
|
|
46
46
|
autoload :MobileCarrier, 'jpmobile/rack/mobile_carrier'
|
47
47
|
autoload :ParamsFilter, 'jpmobile/rack/params_filter'
|
48
48
|
autoload :Filter, 'jpmobile/rack/filter'
|
49
|
-
autoload :Config, 'jpmobile/rack/config'
|
50
49
|
end
|
51
50
|
autoload :Configuration, 'jpmobile/rack'
|
52
51
|
|
data/lib/jpmobile/email.rb
CHANGED
@@ -3,31 +3,57 @@
|
|
3
3
|
#
|
4
4
|
module Jpmobile
|
5
5
|
# email関連の処理
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
class Email
|
7
|
+
class << self
|
8
|
+
@@japanese_mail_address_regexp = nil
|
9
|
+
@@converting_content_type = ['text/plain', 'text/html']
|
10
|
+
|
11
|
+
# メールアドレスよりキャリア情報を取得する
|
12
|
+
# _param1_:: email メールアドレス
|
13
|
+
# return :: Jpmobile::Mobileで定義されている携帯キャリアクラス
|
14
|
+
def detect(email)
|
15
|
+
Mobile.carriers.each do |const|
|
16
|
+
c = Mobile.const_get(const)
|
17
|
+
return c if c::MAIL_ADDRESS_REGEXP && email.match(/^#{c::MAIL_ADDRESS_REGEXP}$/)
|
18
|
+
end
|
19
|
+
nil
|
16
20
|
end
|
17
|
-
nil
|
18
|
-
end
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
# 含まれているメールアドレスからキャリア情報を取得する
|
23
|
+
def detect_from_mail_header(header)
|
24
|
+
Mobile.carriers.each do |const|
|
25
|
+
c = Mobile.const_get(const)
|
26
|
+
if c::MAIL_ADDRESS_REGEXP &&
|
27
|
+
header.match(/(\S+@[A-Za-z0-9\-\.\_]+)/) &&
|
28
|
+
$1.match(/^#{c::MAIL_ADDRESS_REGEXP}$/)
|
29
|
+
return c
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
if japanese_mail?(header)
|
34
|
+
return Jpmobile::Mobile::AbstractMobile
|
35
|
+
end
|
36
|
+
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
|
40
|
+
def japanese_mail_address_regexp=(regexp)
|
41
|
+
@@japanese_mail_address_regexp = regexp
|
42
|
+
end
|
43
|
+
|
44
|
+
def japanese_mail?(header)
|
45
|
+
@@japanese_mail_address_regexp and header.match(@@japanese_mail_address_regexp)
|
46
|
+
end
|
47
|
+
|
48
|
+
def convertable?(content_type)
|
49
|
+
if @@converting_content_type.respond_to?(:each)
|
50
|
+
@@converting_content_type.each do |c|
|
51
|
+
return true if content_type.match(c)
|
52
|
+
end
|
28
53
|
end
|
54
|
+
|
55
|
+
nil
|
29
56
|
end
|
30
|
-
nil
|
31
57
|
end
|
32
58
|
end
|
33
59
|
end
|