jpmobile 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +29 -15
- data/Rakefile +3 -3
- data/lib/jpmobile/emoticon/conversion_table.rb +10 -9
- data/lib/jpmobile/emoticon.rb +14 -6
- data/lib/jpmobile/filter.rb +2 -9
- data/lib/jpmobile/helpers.rb +2 -0
- data/lib/jpmobile/hook_action_view.rb +5 -5
- data/lib/jpmobile/mobile/softbank.rb +2 -2
- data/lib/jpmobile/mobile/z_display_info_docomo.rb +577 -528
- data/lib/jpmobile/mobile/z_ip_addresses_au.rb +5 -1
- data/lib/jpmobile/mobile/z_ip_addresses_softbank.rb +2 -2
- data/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +53 -13
- data/lib/jpmobile/trans_sid.rb +28 -14
- data/lib/jpmobile/version.rb +1 -1
- data/test/legacy/emoticon_test.rb +6 -0
- data/test/legacy/helpers_test.rb +6 -5
- data/test/rails/2.3.2/spec/controllers/trans_sid_spec.rb +99 -0
- data/test/rails/overrides/app/controllers/{application.rb → application_controller.rb} +0 -0
- data/test/rails/overrides/app/controllers/filter_controller.rb +1 -0
- data/test/rails/overrides/spec/controllers/filter_spec.rb +1 -0
- data/test/rails/overrides/spec/controllers/trans_sid_spec.rb +20 -2
- data/test/rails/rails_root/README +6 -19
- data/test/rails/rails_root/app/controllers/{application.rb → application_controller.rb} +0 -0
- data/test/rails/rails_root/app/controllers/trans_sid_controller.rb +4 -2
- data/test/rails/rails_root/app/views/filter/index.html.erb +0 -0
- data/test/rails/rails_root/app/views/hankaku_filter/index.html.erb +0 -0
- data/test/rails/rails_root/app/views/template_path/_partial.html.erb +1 -0
- data/test/rails/rails_root/app/views/template_path/_partial_mobile.html.erb +1 -0
- data/test/rails/rails_root/app/views/template_path/_partial_mobile_docomo.html.erb +1 -0
- data/test/rails/rails_root/app/views/template_path/partial.html.erb +2 -0
- data/test/rails/rails_root/config/boot.rb +2 -1
- data/test/rails/rails_root/config/environment.rb +15 -48
- data/test/rails/rails_root/config/environments/production.rb +11 -7
- data/test/rails/rails_root/config/environments/test.rb +6 -0
- data/test/rails/rails_root/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails/rails_root/config/initializers/new_rails_defaults.rb +4 -0
- data/test/rails/rails_root/config/initializers/session_store.rb +15 -0
- data/test/rails/rails_root/config/routes.rb +1 -1
- data/test/rails/rails_root/db/development.sqlite3 +0 -0
- data/test/rails/rails_root/db/seeds.rb +7 -0
- data/test/rails/rails_root/db/test.sqlite3 +0 -0
- data/test/rails/rails_root/doc/README_FOR_APP +2 -5
- data/test/rails/rails_root/log/development.log +9 -9
- data/test/rails/rails_root/log/test.log +198 -148
- data/test/rails/rails_root/public/500.html +0 -3
- data/test/rails/rails_root/public/index.html +1 -0
- data/test/rails/rails_root/script/about +2 -2
- data/test/rails/rails_root/script/console +1 -1
- data/test/rails/rails_root/script/dbconsole +1 -1
- data/test/rails/rails_root/script/destroy +1 -1
- data/test/rails/rails_root/script/generate +1 -1
- data/test/rails/rails_root/script/performance/benchmarker +1 -1
- data/test/rails/rails_root/script/performance/profiler +1 -1
- data/test/rails/rails_root/script/plugin +1 -1
- data/test/rails/rails_root/script/runner +1 -1
- data/test/rails/rails_root/script/server +1 -1
- data/test/rails/rails_root/spec/controllers/template_path_spec.rb +49 -19
- data/test/rails/rails_root/spec/controllers/trans_sid_spec.rb +11 -8
- data/test/rails/rails_root/test/test_helper.rb +1 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/MIT-LICENSE +2 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/README.rdoc +31 -15
- data/test/rails/rails_root/vendor/plugins/jpmobile/Rakefile +1 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/emoticon.rb +3 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/filter.rb +3 -10
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/helpers.rb +2 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_controller.rb +12 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_action_view.rb +79 -91
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/hook_request.rb +2 -10
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/au.rb +9 -3
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/softbank.rb +2 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_display_info_docomo.rb +577 -528
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_au.rb +5 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_softbank.rb +2 -2
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/mobile/z_ip_addresses_willcom.rb +53 -13
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/auth.rb +55 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/combined_logger.rb +54 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/request.rb +7 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/rack/trans_sid.rb +14 -0
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/trans_sid.rb +76 -65
- data/test/rails/rails_root/vendor/plugins/jpmobile/lib/jpmobile/version.rb +1 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/tasks/jpmobile_tasks.rake +26 -6
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/{update_display_info_docomo.rb → disabled_update_display_info_docomo.rb} +11 -6
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_docomo_emoticon_table.rb +0 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/generate_softbank_emoticon_table.rb +0 -1
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/update_ip_addresses_au.rb +4 -3
- data/test/rails/rails_root/vendor/plugins/jpmobile/tools/update_ip_addresses_willcom.rb +2 -2
- data/tools/{update_display_info_docomo.rb → disabled_update_display_info_docomo.rb} +11 -6
- data/tools/generate_docomo_emoticon_table.rb +0 -1
- data/tools/generate_softbank_emoticon_table.rb +0 -1
- data/tools/update_ip_addresses_au.rb +4 -3
- data/tools/update_ip_addresses_willcom.rb +2 -2
- metadata +65 -35
- data/test/rails/rails_root/public/dispatch.cgi +0 -10
- data/test/rails/rails_root/public/dispatch.fcgi +0 -24
- data/test/rails/rails_root/public/dispatch.rb +0 -10
- data/test/rails/rails_root/script/performance/request +0 -3
- data/test/rails/rails_root/script/process/inspector +0 -3
- data/test/rails/rails_root/script/process/reaper +0 -3
- data/test/rails/rails_root/script/process/spawner +0 -3
@@ -4,21 +4,25 @@
|
|
4
4
|
# Code is not reloaded between requests
|
5
5
|
config.cache_classes = true
|
6
6
|
|
7
|
-
# Enable threaded mode
|
8
|
-
# config.threadsafe!
|
9
|
-
|
10
|
-
# Use a different logger for distributed setups
|
11
|
-
# config.logger = SyslogLogger.new
|
12
|
-
|
13
7
|
# Full error reports are disabled and caching is turned on
|
14
8
|
config.action_controller.consider_all_requests_local = false
|
15
9
|
config.action_controller.perform_caching = true
|
10
|
+
config.action_view.cache_template_loading = true
|
11
|
+
|
12
|
+
# See everything in the log (default is :info)
|
13
|
+
# config.log_level = :debug
|
14
|
+
|
15
|
+
# Use a different logger for distributed setups
|
16
|
+
# config.logger = SyslogLogger.new
|
16
17
|
|
17
18
|
# Use a different cache store in production
|
18
19
|
# config.cache_store = :mem_cache_store
|
19
20
|
|
20
21
|
# Enable serving of images, stylesheets, and javascripts from an asset server
|
21
|
-
# config.action_controller.asset_host
|
22
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
22
23
|
|
23
24
|
# Disable delivery errors, bad email addresses will be ignored
|
24
25
|
# config.action_mailer.raise_delivery_errors = false
|
26
|
+
|
27
|
+
# Enable threaded mode
|
28
|
+
# config.threadsafe!
|
@@ -12,6 +12,7 @@ config.whiny_nils = true
|
|
12
12
|
# Show full error reports and disable caching
|
13
13
|
config.action_controller.consider_all_requests_local = true
|
14
14
|
config.action_controller.perform_caching = false
|
15
|
+
config.action_view.cache_template_loading = true
|
15
16
|
|
16
17
|
# Disable request forgery protection in test environment
|
17
18
|
config.action_controller.allow_forgery_protection = false
|
@@ -20,3 +21,8 @@ config.action_controller.allow_forgery_protection = false
|
|
20
21
|
# The :test delivery method accumulates sent emails in the
|
21
22
|
# ActionMailer::Base.deliveries array.
|
22
23
|
config.action_mailer.delivery_method = :test
|
24
|
+
|
25
|
+
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
26
|
+
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
27
|
+
# like if you have constraints or database-specific column types
|
28
|
+
# config.active_record.schema_format = :sql
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying do debug a problem that might steem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
1
3
|
# These settings change the behavior of Rails 2 apps and will be defaults
|
2
4
|
# for Rails 3. You can remove this initializer when Rails 3 is released.
|
3
5
|
|
@@ -9,6 +11,8 @@ if defined?(ActiveRecord)
|
|
9
11
|
ActiveRecord::Base.store_full_sti_class = true
|
10
12
|
end
|
11
13
|
|
14
|
+
ActionController::Routing.generate_best_match = false
|
15
|
+
|
12
16
|
# Use ISO 8601 format for JSON serialized times and dates.
|
13
17
|
ActiveSupport.use_standard_json_time_format = true
|
14
18
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying cookie session data integrity.
|
4
|
+
# If you change this key, all old sessions will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
ActionController::Base.session = {
|
8
|
+
:key => '_rails_root_session',
|
9
|
+
:secret => 'cfca52d47d3bb2378a7e6f9652b5a6174927f35398cefbd04b610a71adb29f86820e37e9b208e5637638d13bc738f766c4a35ba22b680de5f34b5b47a6756317'
|
10
|
+
}
|
11
|
+
|
12
|
+
# Use the database for sessions instead of the cookie-based default,
|
13
|
+
# which shouldn't be used to store highly confidential information
|
14
|
+
# (create the session table with "rake db:sessions:create")
|
15
|
+
# ActionController::Base.session_store = :active_record_store
|
@@ -37,7 +37,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
37
37
|
|
38
38
|
# Install the default routes as the lowest priority.
|
39
39
|
# Note: These default routes make all actions in every controller accessible via GET requests. You should
|
40
|
-
# consider removing
|
40
|
+
# consider removing or commenting them out if you're using named routes and resources.
|
41
41
|
map.connect ':controller/:action/:id'
|
42
42
|
map.connect ':controller/:action/:id.:format'
|
43
43
|
end
|
Binary file
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
|
7
|
+
# Major.create(:name => 'Daley', :city => cities.first)
|
Binary file
|
@@ -1,5 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
* Install source-highlighter (http://www.gnu.org/software/src-highlite/source-highlight.html)
|
4
|
-
* Install the mizuho gem (http://github.com/FooBarWidget/mizuho/tree/master)
|
5
|
-
* Run `rake guides` from the railties directory
|
1
|
+
Use this README file to introduce your application and point to useful places in the API for learning more.
|
2
|
+
Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
|
@@ -1,15 +1,15 @@
|
|
1
|
-
[4;36;1mSQL (0.
|
1
|
+
[4;36;1mSQL (0.3ms)[0m [0;1m SELECT name
|
2
2
|
FROM sqlite_master
|
3
3
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
4
4
|
[0m
|
5
5
|
[4;35;1mSQL (0.2ms)[0m [0mselect sqlite_version(*)[0m
|
6
|
-
[4;36;1mSQL (
|
7
|
-
[4;35;1mSQL (
|
8
|
-
[4;36;1mSQL (0.
|
6
|
+
[4;36;1mSQL (1.8ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7
|
+
[4;35;1mSQL (0.9ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
8
|
+
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
9
9
|
FROM sqlite_master
|
10
10
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
11
11
|
[0m
|
12
|
-
[4;35;1mSQL (0.
|
12
|
+
[4;35;1mSQL (0.3ms)[0m [0m SELECT name
|
13
13
|
FROM sqlite_master
|
14
14
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
15
15
|
[0m
|
@@ -18,7 +18,7 @@
|
|
18
18
|
FROM sqlite_master
|
19
19
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
20
20
|
[0m
|
21
|
-
[4;36;1mSQL (0.
|
21
|
+
[4;36;1mSQL (0.5ms)[0m [0;1m SELECT name
|
22
22
|
FROM sqlite_master
|
23
23
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
24
24
|
[0m
|
@@ -28,11 +28,11 @@
|
|
28
28
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
29
29
|
[0m
|
30
30
|
[4;35;1mSQL (0.1ms)[0m [0mselect sqlite_version(*)[0m
|
31
|
-
[4;36;1mSQL (1.
|
32
|
-
[4;35;1mSQL (1.
|
31
|
+
[4;36;1mSQL (1.8ms)[0m [0;1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
32
|
+
[4;35;1mSQL (1.0ms)[0m [0mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
33
33
|
[4;36;1mSQL (0.2ms)[0m [0;1m SELECT name
|
34
34
|
FROM sqlite_master
|
35
35
|
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
36
36
|
[0m
|
37
37
|
[4;35;1mSQL (0.1ms)[0m [0mSELECT version FROM "schema_migrations"[0m
|
38
|
-
[4;36;1mSQL (
|
38
|
+
[4;36;1mSQL (0.8ms)[0m [0;1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|