galakei 0.13.7 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/.travis.yml +3 -0
  2. data/Gemfile +1 -1
  3. data/README.rdoc +2 -0
  4. data/galakei.gemspec +1 -2
  5. data/lib/galakei.rb +2 -1
  6. data/lib/galakei/filter/base.rb +4 -0
  7. data/lib/galakei/filter/content_type.rb +1 -1
  8. data/lib/galakei/filter/hankaku.rb +1 -1
  9. data/lib/galakei/filter/non_standard_char.rb +1 -2
  10. data/lib/galakei/lookup.rb +11 -0
  11. data/lib/galakei/lookup/browser_detail.rb +11 -0
  12. data/lib/galakei/lookup/railtie.rb +11 -0
  13. data/lib/galakei/railtie.rb +1 -1
  14. data/lib/galakei/route_constraints.rb +3 -0
  15. data/lib/galakei/route_constraints/galakei_only.rb +16 -0
  16. data/lib/galakei/version.rb +1 -1
  17. data/spec/acceptance/acceptance_helper.rb +1 -1
  18. data/spec/acceptance/au_mail_interceptor_spec.rb +1 -1
  19. data/spec/acceptance/content_type_spec.rb +22 -0
  20. data/spec/acceptance/docomo_css_spec.rb +1 -1
  21. data/spec/acceptance/emoji_table_spec.rb +1 -1
  22. data/spec/acceptance/haml_spec.rb +1 -1
  23. data/spec/acceptance/handset_detection_spec.rb +1 -1
  24. data/spec/acceptance/hankaku_filter_spec.rb +1 -2
  25. data/spec/acceptance/input_mode_spec.rb +1 -1
  26. data/spec/acceptance/lookup_spec.rb +26 -0
  27. data/spec/acceptance/non_standard_char_spec.rb +16 -1
  28. data/spec/acceptance/recode_spec.rb +2 -1
  29. data/spec/acceptance/session_spec.rb +1 -1
  30. data/spec/app/app/views/lookup/index.full.html.haml +1 -0
  31. data/spec/app/app/views/lookup/index.galakei.html.haml +1 -0
  32. data/spec/app/app/views/lookup/index.html.haml +1 -0
  33. data/spec/galakei/route_constraints/galakei_only.rb +24 -0
  34. metadata +24 -26
  35. data/config/initializers/mime_types.rb +0 -1
  36. data/lib/galakei/filter/views.rb +0 -10
  37. data/spec/acceptance/views_spec.rb +0 -13
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source "http://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  group :development, :test do
7
- gem 'rails', '~> 3.1.0'
7
+ gem 'rails', '3.2.3'
8
8
  gem 'rspec', '>= 2.5.0'
9
9
  gem 'capybara', '~> 1.1.1'
10
10
  gem 'steak'
data/README.rdoc CHANGED
@@ -1,5 +1,7 @@
1
1
  = Galakei: Japanese feature phone support
2
2
 
3
+ {<img src="https://secure.travis-ci.org/mobalean/galakei.png?branch=master" alt="Build Status" />}[http://travis-ci.org/mobalean/galakei]
4
+
3
5
  {Japanese feature phones}[http://www.mobalean.com/en/keitai_web_technology_guide] (a.k.a., keitai, galakei) have a number of restrictions over normal web browsers. This library adds support for them.
4
6
 
5
7
  galakeiは簡単にガラケー対応Rails Gem。「Doorkeeper」という {イベント運営}[http://www.doorkeeper.jp] サービスがこのgemを使っている。
data/galakei.gemspec CHANGED
@@ -15,8 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.require_path = 'lib'
16
16
  s.rubyforge_project = "galakei"
17
17
 
18
- s.add_dependency 'actionpack', '>= 3.0.3'
19
- s.add_dependency 'rack', '>= 1.2.1'
18
+ s.add_dependency 'actionpack', '>= 3.2.0'
20
19
  s.add_dependency 'css_parser'
21
20
  s.add_dependency 'nokogiri'
22
21
  s.add_dependency 'sanitize'
data/lib/galakei.rb CHANGED
@@ -24,6 +24,8 @@ module Galakei
24
24
  autoload :EmojiTable, "galakei/emoji_table"
25
25
  autoload :SessionIdParameterInForm, "galakei/session_id_parameter_in_form"
26
26
  autoload :Spacer, "galakei/spacer"
27
+ autoload :Lookup, "galakei/lookup"
28
+ autoload :RouteConstraints, "galakei/route_constraints"
27
29
  module Filter # :nodoc:
28
30
  autoload :Base, "galakei/filter/base"
29
31
  autoload :ContentType, "galakei/filter/content_type"
@@ -31,7 +33,6 @@ module Galakei
31
33
  autoload :Hankaku, "galakei/filter/hankaku"
32
34
  autoload :NonStandardChar, "galakei/filter/non_standard_char"
33
35
  autoload :Recode, "galakei/filter/recode"
34
- autoload :Views, "galakei/filter/views"
35
36
  end
36
37
  end
37
38
 
@@ -22,6 +22,10 @@ module Galakei
22
22
  super
23
23
  end
24
24
  end
25
+
26
+ def html_content_type?
27
+ response.content_type =~ %r{text/html|application/xhtml+xml}
28
+ end
25
29
  end
26
30
  end
27
31
  end
@@ -5,7 +5,7 @@
5
5
  class Galakei::Filter::ContentType < Galakei::Filter::Base
6
6
  # :stopdoc:
7
7
  def condition?
8
- request.docomo? && %r{text/html} =~ response.content_type
8
+ request.docomo? && html_content_type?
9
9
  end
10
10
 
11
11
  def filter
@@ -9,7 +9,7 @@ class Galakei::Filter::Hankaku < Galakei::Filter::Base
9
9
  MAPPING = zenkaku.zip(hankaku)
10
10
 
11
11
  def condition?
12
- galakei? && response.content_type =~ %r{text/html|application/xhtml\+xml}
12
+ galakei? && html_content_type?
13
13
  end
14
14
 
15
15
  def filter
@@ -7,8 +7,7 @@ Some are supported on galakei, but others aren't. The correct version will be us
7
7
  class Galakei::Filter::NonStandardChar < Galakei::Filter::Base
8
8
  # :stopdoc:
9
9
  def condition?
10
- response.content_type =~ %r{text/html|application/xhtml+xml} &&
11
- (response.charset || Rails.application.config.encoding).downcase == "utf-8"
10
+ html_content_type? && (response.charset || Rails.application.config.encoding).downcase == "utf-8"
12
11
  end
13
12
 
14
13
  def filter
@@ -0,0 +1,11 @@
1
+ module Galakei
2
+ =begin
3
+ In many cases you want to serve different templates for galakei handsets. Galakei registeres a browser detail for lookup, so you can use ":prefix/:action.{:browsers}{.:formats,}{.:handlers,}" for your templates.
4
+
5
+ For instance: index.galakei.html.haml will be used (if present) for galakei and index.full.html.haml will be used for full featured browsers. If not present, it will use the usual templates.
6
+
7
+ =end
8
+ module Lookup
9
+ autoload :BrowserDetail, "galakei/lookup/browser_detail"
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module Galakei::Lookup::BrowserDetail
2
+ def details_for_lookup
3
+ super.merge(:browsers => browser_detail_for_request)
4
+ end
5
+
6
+ private
7
+
8
+ def browser_detail_for_request
9
+ (request.galakei? ? [ :galakei ] : [ :full ])
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class Galakei::Lookup::Railtie < Rails::Railtie # :nodoc:
2
+ initializer "galakei.register.lookup" do
3
+ ActiveSupport.on_load :action_controller do
4
+ include Galakei::Lookup::BrowserDetail
5
+ prepend_view_path ActionView::FileSystemResolver.new(Rails.root.join("app","views"), ":prefix/:action.{:browsers}{.:formats,}{.:handlers,}")
6
+ end
7
+ ActiveSupport.on_load :action_view do
8
+ ActionView::LookupContext.register_detail(:browsers) { [:full, :smartphone, :galakei] }
9
+ end
10
+ end
11
+ end
@@ -4,7 +4,6 @@ module Galakei
4
4
  initializer "galakei.extend.action_controller" do |app|
5
5
  ActiveSupport.on_load :action_controller do
6
6
  include Galakei::HelperMethods
7
- before_filter Galakei::Filter::Views, :if => :galakei?
8
7
  after_filter Galakei::Filter::ContentType, :if => lambda {|c| Galakei::Filter::ContentType.condition?(c) }
9
8
  before_filter Galakei::Filter::Recode::Params, :if => lambda {|c| Galakei::Filter::Recode.condition?(c) }
10
9
  after_filter Galakei::Filter::Recode::Response, :if => lambda {|c| Galakei::Filter::Recode.condition?(c) }
@@ -22,3 +21,4 @@ end
22
21
  require 'galakei/session_id_parameter/railtie'
23
22
  require 'galakei/docomo_css/railtie'
24
23
  require 'galakei/email/railtie'
24
+ require 'galakei/lookup/railtie'
@@ -0,0 +1,3 @@
1
+ module Galakei::RouteConstraints
2
+ autoload :GalakeiOnly, "galakei/route_constraints/galakei_only"
3
+ end
@@ -0,0 +1,16 @@
1
+ module Galakei::RouteConstraints
2
+ =begin
3
+ Galakei usually doesn't support PUT / DELETE requests, so you sometimes need to define somes for galakei. Use this route constraint to restrict those routes to requests from galakei only.
4
+
5
+ Example routes:
6
+
7
+ put 'resend'
8
+ get 'resend', :constraints => Galakei::RouteConstraints::GalakeiOnly
9
+
10
+ =end
11
+ module GalakeiOnly
12
+ def self.matches?(request)
13
+ request.galakei?
14
+ end
15
+ end
16
+ end
@@ -1,4 +1,4 @@
1
1
  module Galakei
2
2
  # The version of Galakei you are using
3
- VERSION = "0.13.7"
3
+ VERSION = "0.14.0"
4
4
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
1
+ require "spec_helper"
2
2
  require "steak"
3
3
  require 'capybara/rspec'
4
4
 
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class AuMailInterceptorMailer < ActionMailer::Base
5
5
  include ActionView::Helpers::TagHelper
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ require 'acceptance/acceptance_helper'
3
+
4
+ class ContentTypeController < ApplicationController
5
+ def index
6
+ render :layout => true, :inline => "Test"
7
+ end
8
+ end
9
+
10
+ feature 'content type' do
11
+ %w[au softbank].each do |d|
12
+ scenario d, :driver => d.to_sym do
13
+ visit '/content_type'
14
+ page.response_headers['Content-Type'].should == "text/html; charset=utf-8"
15
+ end
16
+ end
17
+ scenario "docomo", :driver => :docomo do
18
+ visit '/content_type'
19
+ page.response_headers['Content-Type'].should == 'application/xhtml+xml; charset=utf-8'
20
+ end
21
+ end
22
+
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
  require 'fakeweb'
4
4
 
5
5
  class DocomoCssController < ApplicationController
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class EmojiController < ApplicationController
5
5
  def index
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class HamlController < ApplicationController
5
5
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class HandsetDetectionController < ApplicationController
5
5
  def index
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class HankakuController < ApplicationController
5
5
  def index
@@ -40,5 +40,4 @@ feature 'hankaku conversion' do
40
40
  visit '/hankaku'
41
41
  page.find("#hankaku").text.should == "メインガギ漢字ひらがな"
42
42
  end
43
-
44
43
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class InputModeController < ApplicationController
5
5
  class User
@@ -0,0 +1,26 @@
1
+ # encoding: UTF-8
2
+ require 'acceptance/acceptance_helper'
3
+
4
+ class LookupController < ApplicationController
5
+ def index
6
+ end
7
+ end
8
+
9
+ feature 'template lookup' do
10
+ scenario 'full browser' do
11
+ visit '/lookup'
12
+ page.body.should match("full browser")
13
+ end
14
+ scenario 'for docomo', :driver => :docomo do
15
+ visit '/lookup'
16
+ page.body.should match("galakei")
17
+ end
18
+ scenario 'for au', :driver => :au do
19
+ visit '/lookup'
20
+ page.body.should match("galakei")
21
+ end
22
+ scenario 'for softbank', :driver => :softbank do
23
+ visit '/lookup'
24
+ page.body.should match("galakei")
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class NonStandardCharController < ApplicationController
5
5
  def self.character(name, value, options = {})
@@ -23,6 +23,14 @@ class NonStandardCharController < ApplicationController
23
23
  character :nakaguro_half, "\uFF65"
24
24
  character :nakaguro_full, "\u30FB"
25
25
  character :sdot, "\u22C5", named: true
26
+
27
+ def gif
28
+ respond_to do |format|
29
+ format.gif do
30
+ send_data("\u00B7", :disposition => "inline", :type => :gif)
31
+ end
32
+ end
33
+ end
26
34
  end
27
35
 
28
36
  shared_examples_for "convert character" do |type, path|
@@ -50,4 +58,11 @@ feature 'nakaguro' do
50
58
  it_should_behave_like "convert character", :half, :sdot_hex
51
59
  it_should_behave_like "convert character", :half, :sdot_dec
52
60
  it_should_behave_like "convert character", :half, :sdot_named
61
+
62
+ %w[au docomo softbank].each do |driver|
63
+ scenario "should not convert gif containing matching data for #{driver}", :driver => driver.to_sym do
64
+ visit "/non_standard_char/gif.gif"
65
+ page.source.should == "\u00B7"
66
+ end
67
+ end
53
68
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class RecodeController < ApplicationController
5
5
  class << self
@@ -22,6 +22,7 @@ class RecodeController < ApplicationController
22
22
  def create
23
23
  self.class.string = params[:string]
24
24
  end
25
+
25
26
  end
26
27
 
27
28
  feature 'recode' do
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
2
+ require 'acceptance/acceptance_helper'
3
3
 
4
4
  class SessionsController < ApplicationController
5
5
  class Search
@@ -0,0 +1 @@
1
+ full browser
@@ -0,0 +1 @@
1
+ galakei
@@ -0,0 +1 @@
1
+ no browser
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe Galakei::RouteConstraints::GalakeiOnly do
4
+ describe "from Firefox" do
5
+ let(:req) { Rack::Request.new(env_for_firefox) }
6
+ it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_false }
7
+ end
8
+ describe "from Docomo SH-06A" do
9
+ let(:req) { Rack::Request.new(env_for_docomo_1_0) }
10
+ it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
11
+ end
12
+ describe "from AU W54SH" do
13
+ let(:req) { Rack::Request.new(env_for_au_7_2) }
14
+ it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
15
+ end
16
+ describe "from Vodafone" do
17
+ let(:req) { Rack::Request.new(env_for_vodafone) }
18
+ it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
19
+ end
20
+ describe "from Softbank 709SC" do
21
+ let(:req) { Rack::Request.new(env_for_softbank) }
22
+ it { Galakei::RouteConstraints::GalakeiOnly.matches?(req).should be_true }
23
+ end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galakei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.7
4
+ version: 0.14.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,33 +11,22 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-02-16 00:00:00.000000000Z
14
+ date: 2012-04-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: actionpack
18
- requirement: &2152214920 !ruby/object:Gem::Requirement
18
+ requirement: &70108572136700 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
22
22
  - !ruby/object:Gem::Version
23
- version: 3.0.3
23
+ version: 3.2.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152214920
27
- - !ruby/object:Gem::Dependency
28
- name: rack
29
- requirement: &2152213800 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ! '>='
33
- - !ruby/object:Gem::Version
34
- version: 1.2.1
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: *2152213800
26
+ version_requirements: *70108572136700
38
27
  - !ruby/object:Gem::Dependency
39
28
  name: css_parser
40
- requirement: &2152194540 !ruby/object:Gem::Requirement
29
+ requirement: &70108572136040 !ruby/object:Gem::Requirement
41
30
  none: false
42
31
  requirements:
43
32
  - - ! '>='
@@ -45,10 +34,10 @@ dependencies:
45
34
  version: '0'
46
35
  type: :runtime
47
36
  prerelease: false
48
- version_requirements: *2152194540
37
+ version_requirements: *70108572136040
49
38
  - !ruby/object:Gem::Dependency
50
39
  name: nokogiri
51
- requirement: &2152193480 !ruby/object:Gem::Requirement
40
+ requirement: &70108572134920 !ruby/object:Gem::Requirement
52
41
  none: false
53
42
  requirements:
54
43
  - - ! '>='
@@ -56,10 +45,10 @@ dependencies:
56
45
  version: '0'
57
46
  type: :runtime
58
47
  prerelease: false
59
- version_requirements: *2152193480
48
+ version_requirements: *70108572134920
60
49
  - !ruby/object:Gem::Dependency
61
50
  name: sanitize
62
- requirement: &2152191020 !ruby/object:Gem::Requirement
51
+ requirement: &70108572133560 !ruby/object:Gem::Requirement
63
52
  none: false
64
53
  requirements:
65
54
  - - ! '>='
@@ -67,7 +56,7 @@ dependencies:
67
56
  version: '0'
68
57
  type: :runtime
69
58
  prerelease: false
70
- version_requirements: *2152191020
59
+ version_requirements: *70108572133560
71
60
  description: Japanese feature phones (a.k.a., keitai, galakei) have a number of restrictions
72
61
  over normal web browsers. This library adds support for them
73
62
  email: info@mobalean.com
@@ -76,12 +65,12 @@ extensions: []
76
65
  extra_rdoc_files: []
77
66
  files:
78
67
  - .gitignore
68
+ - .travis.yml
79
69
  - Gemfile
80
70
  - LICENSE
81
71
  - README.rdoc
82
72
  - Rakefile
83
73
  - app/controllers/galakei/spacer_controller.rb
84
- - config/initializers/mime_types.rb
85
74
  - config/routes.rb
86
75
  - galakei.gemspec
87
76
  - lib/galakei.rb
@@ -100,11 +89,15 @@ files:
100
89
  - lib/galakei/filter/hankaku.rb
101
90
  - lib/galakei/filter/non_standard_char.rb
102
91
  - lib/galakei/filter/recode.rb
103
- - lib/galakei/filter/views.rb
104
92
  - lib/galakei/helper_methods.rb
105
93
  - lib/galakei/input_mode.rb
94
+ - lib/galakei/lookup.rb
95
+ - lib/galakei/lookup/browser_detail.rb
96
+ - lib/galakei/lookup/railtie.rb
106
97
  - lib/galakei/railtie.rb
107
98
  - lib/galakei/request.rb
99
+ - lib/galakei/route_constraints.rb
100
+ - lib/galakei/route_constraints/galakei_only.rb
108
101
  - lib/galakei/session_id_parameter.rb
109
102
  - lib/galakei/session_id_parameter/in_form.rb
110
103
  - lib/galakei/session_id_parameter/in_url.rb
@@ -116,23 +109,27 @@ files:
116
109
  - spec/.gitignore
117
110
  - spec/acceptance/acceptance_helper.rb
118
111
  - spec/acceptance/au_mail_interceptor_spec.rb
112
+ - spec/acceptance/content_type_spec.rb
119
113
  - spec/acceptance/docomo_css_spec.rb
120
114
  - spec/acceptance/emoji_table_spec.rb
121
115
  - spec/acceptance/haml_spec.rb
122
116
  - spec/acceptance/handset_detection_spec.rb
123
117
  - spec/acceptance/hankaku_filter_spec.rb
124
118
  - spec/acceptance/input_mode_spec.rb
119
+ - spec/acceptance/lookup_spec.rb
125
120
  - spec/acceptance/non_standard_char_spec.rb
126
121
  - spec/acceptance/recode_spec.rb
127
122
  - spec/acceptance/session_spec.rb
128
123
  - spec/acceptance/support/capybara_ssl_fix.rb
129
124
  - spec/acceptance/support/handsets.rb
130
125
  - spec/acceptance/support/input_mode_matchers.rb
131
- - spec/acceptance/views_spec.rb
132
126
  - spec/app/.gitignore
133
127
  - spec/app/app/assets/stylesheets/docomo_css/simple.css
134
128
  - spec/app/app/views/haml/index.html.haml
135
129
  - spec/app/app/views/layouts/application.html.haml
130
+ - spec/app/app/views/lookup/index.full.html.haml
131
+ - spec/app/app/views/lookup/index.galakei.html.haml
132
+ - spec/app/app/views/lookup/index.html.haml
136
133
  - spec/app/fake.rb
137
134
  - spec/controllers/galakei/spacer_controller_spec.rb
138
135
  - spec/galakei/docomo_css/stylesheet_spec.rb
@@ -141,6 +138,7 @@ files:
141
138
  - spec/galakei/filter/content_type_spec.rb
142
139
  - spec/galakei/filter/hankaku_spec.rb
143
140
  - spec/galakei/request_spec.rb
141
+ - spec/galakei/route_constraints/galakei_only.rb
144
142
  - spec/galakei/spacer_spec.rb
145
143
  - spec/spec_helper.rb
146
144
  homepage: http://galakei.mobalean.com/
@@ -163,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
161
  version: '0'
164
162
  requirements: []
165
163
  rubyforge_project: galakei
166
- rubygems_version: 1.8.10
164
+ rubygems_version: 1.8.17
167
165
  signing_key:
168
166
  specification_version: 3
169
167
  summary: Japanese feature phones support
@@ -1 +0,0 @@
1
- Mime::Type.register 'image/gif', :gif
@@ -1,10 +0,0 @@
1
- =begin
2
- Have a PC site that you want to add galakei templates for? Put your views in app/views.galakei and they'll be used in preference to your normal app/views
3
- =end
4
- class Galakei::Filter::Views < Galakei::Filter::Base
5
- # :stopdoc:
6
- def filter
7
- logger.debug("appending galakei views")
8
- prepend_view_path(::Rails.root.join('app','views.galakei'))
9
- end
10
- end
@@ -1,13 +0,0 @@
1
- # encoding: UTF-8
2
- require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
3
-
4
- class ViewsController < ApplicationController
5
- def index
6
- end
7
- end
8
-
9
- feature 'View path appending' do
10
- scenario 'for docomo', :driver => :docomo do
11
- visit '/views'
12
- end
13
- end