galakei 0.11.3 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +88 -76
- data/galakei.gemspec +1 -1
- data/lib/galakei/docomo_css/inline_stylesheet.rb +3 -0
- data/lib/galakei/docomo_css/stylesheet.rb +4 -0
- data/lib/galakei/helper_methods.rb +0 -1
- data/lib/galakei/railtie.rb +2 -2
- data/lib/galakei/session_id_parameter/in_url.rb +9 -1
- data/lib/galakei/use_rack_request_to_extract_sid.rb +5 -0
- data/lib/galakei/version.rb +1 -1
- data/spec/.gitignore +1 -0
- data/spec/acceptance/au_mail_interceptor_spec.rb +3 -0
- data/spec/acceptance/emoji_table_spec.rb +6 -6
- data/spec/acceptance/haml_spec.rb +1 -1
- data/spec/acceptance/non_standard_char_spec.rb +9 -9
- data/spec/acceptance/recode_spec.rb +1 -1
- data/spec/acceptance/support/capybara_ssl_fix.rb +2 -2
- data/spec/acceptance/support/handsets.rb +7 -12
- data/spec/app/{public → app/assets}/stylesheets/docomo_css/simple.css +0 -0
- data/spec/app/app/views/layouts/application.html.haml +0 -1
- data/spec/app/fake.rb +9 -0
- metadata +18 -15
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
galakei (0.11.3)
|
5
|
-
actionpack (
|
5
|
+
actionpack (>= 3.0.3)
|
6
6
|
css_parser
|
7
7
|
nokogiri
|
8
8
|
rack (>= 1.2.1)
|
@@ -11,127 +11,139 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: http://rubygems.org/
|
13
13
|
specs:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
rack (~> 1.
|
25
|
-
rack-mount (~> 0.
|
26
|
-
rack-test (~> 0.
|
27
|
-
|
28
|
-
activemodel (3.0
|
29
|
-
activesupport (= 3.0
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
14
|
+
actionmailer (3.1.0)
|
15
|
+
actionpack (= 3.1.0)
|
16
|
+
mail (~> 2.3.0)
|
17
|
+
actionpack (3.1.0)
|
18
|
+
activemodel (= 3.1.0)
|
19
|
+
activesupport (= 3.1.0)
|
20
|
+
builder (~> 3.0.0)
|
21
|
+
erubis (~> 2.7.0)
|
22
|
+
i18n (~> 0.6)
|
23
|
+
rack (~> 1.3.2)
|
24
|
+
rack-cache (~> 1.0.3)
|
25
|
+
rack-mount (~> 0.8.2)
|
26
|
+
rack-test (~> 0.6.1)
|
27
|
+
sprockets (~> 2.0.0)
|
28
|
+
activemodel (3.1.0)
|
29
|
+
activesupport (= 3.1.0)
|
30
|
+
bcrypt-ruby (~> 3.0.0)
|
31
|
+
builder (~> 3.0.0)
|
32
|
+
i18n (~> 0.6)
|
33
|
+
activerecord (3.1.0)
|
34
|
+
activemodel (= 3.1.0)
|
35
|
+
activesupport (= 3.1.0)
|
36
|
+
arel (~> 2.2.1)
|
37
|
+
tzinfo (~> 0.3.29)
|
38
|
+
activeresource (3.1.0)
|
39
|
+
activemodel (= 3.1.0)
|
40
|
+
activesupport (= 3.1.0)
|
41
|
+
activesupport (3.1.0)
|
42
|
+
multi_json (~> 1.0)
|
43
|
+
addressable (2.2.6)
|
44
|
+
arel (2.2.1)
|
45
|
+
bcrypt-ruby (3.0.1)
|
46
|
+
builder (3.0.0)
|
47
|
+
capybara (1.1.1)
|
46
48
|
mime-types (>= 1.16)
|
47
49
|
nokogiri (>= 1.3.3)
|
48
50
|
rack (>= 1.0.0)
|
49
51
|
rack-test (>= 0.5.4)
|
50
|
-
selenium-webdriver (
|
51
|
-
xpath (~> 0.1.
|
52
|
-
celerity (0.8.8)
|
52
|
+
selenium-webdriver (~> 2.0)
|
53
|
+
xpath (~> 0.1.4)
|
53
54
|
childprocess (0.2.2)
|
54
55
|
ffi (~> 1.0.6)
|
55
|
-
css_parser (1.
|
56
|
-
|
57
|
-
diff-lcs (1.1.
|
58
|
-
erubis (2.
|
59
|
-
abstract (>= 1.0.0)
|
56
|
+
css_parser (1.2.5)
|
57
|
+
addressable
|
58
|
+
diff-lcs (1.1.3)
|
59
|
+
erubis (2.7.0)
|
60
60
|
fakeweb (1.3.0)
|
61
61
|
ffi (1.0.9)
|
62
|
-
haml (3.1.
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
62
|
+
haml (3.1.3)
|
63
|
+
hike (1.2.1)
|
64
|
+
i18n (0.6.0)
|
65
|
+
json_pure (1.6.1)
|
66
|
+
mail (2.3.0)
|
67
67
|
i18n (>= 0.4.0)
|
68
68
|
mime-types (~> 1.16)
|
69
69
|
treetop (~> 1.4.8)
|
70
70
|
mime-types (1.16)
|
71
|
+
multi_json (1.0.3)
|
71
72
|
nokogiri (1.5.0)
|
72
73
|
polyglot (0.3.2)
|
73
|
-
rack (1.
|
74
|
-
rack-
|
74
|
+
rack (1.3.3)
|
75
|
+
rack-cache (1.0.3)
|
76
|
+
rack (>= 0.4)
|
77
|
+
rack-mount (0.8.3)
|
75
78
|
rack (>= 1.0.0)
|
76
|
-
rack-
|
79
|
+
rack-ssl (1.3.2)
|
80
|
+
rack
|
81
|
+
rack-test (0.6.1)
|
77
82
|
rack (>= 1.0)
|
78
|
-
rails (3.0
|
79
|
-
actionmailer (= 3.0
|
80
|
-
actionpack (= 3.0
|
81
|
-
activerecord (= 3.0
|
82
|
-
activeresource (= 3.0
|
83
|
-
activesupport (= 3.0
|
83
|
+
rails (3.1.0)
|
84
|
+
actionmailer (= 3.1.0)
|
85
|
+
actionpack (= 3.1.0)
|
86
|
+
activerecord (= 3.1.0)
|
87
|
+
activeresource (= 3.1.0)
|
88
|
+
activesupport (= 3.1.0)
|
84
89
|
bundler (~> 1.0)
|
85
|
-
railties (= 3.0
|
86
|
-
railties (3.0
|
87
|
-
actionpack (= 3.0
|
88
|
-
activesupport (= 3.0
|
90
|
+
railties (= 3.1.0)
|
91
|
+
railties (3.1.0)
|
92
|
+
actionpack (= 3.1.0)
|
93
|
+
activesupport (= 3.1.0)
|
94
|
+
rack-ssl (~> 1.3.2)
|
89
95
|
rake (>= 0.8.7)
|
90
96
|
rdoc (~> 3.4)
|
91
|
-
thor (~> 0.14.
|
97
|
+
thor (~> 0.14.6)
|
92
98
|
rake (0.9.2)
|
93
|
-
rdoc (3.
|
94
|
-
rspec (2.
|
95
|
-
rspec-core (~> 2.
|
96
|
-
rspec-expectations (~> 2.
|
97
|
-
rspec-mocks (~> 2.
|
98
|
-
rspec-core (2.
|
99
|
-
rspec-expectations (2.
|
99
|
+
rdoc (3.9.4)
|
100
|
+
rspec (2.6.0)
|
101
|
+
rspec-core (~> 2.6.0)
|
102
|
+
rspec-expectations (~> 2.6.0)
|
103
|
+
rspec-mocks (~> 2.6.0)
|
104
|
+
rspec-core (2.6.4)
|
105
|
+
rspec-expectations (2.6.0)
|
100
106
|
diff-lcs (~> 1.1.2)
|
101
|
-
rspec-mocks (2.
|
102
|
-
rspec-rails (2.
|
107
|
+
rspec-mocks (2.6.0)
|
108
|
+
rspec-rails (2.6.1)
|
103
109
|
actionpack (~> 3.0)
|
104
110
|
activesupport (~> 3.0)
|
105
111
|
railties (~> 3.0)
|
106
|
-
rspec (~> 2.
|
112
|
+
rspec (~> 2.6.0)
|
107
113
|
rubyzip (0.9.4)
|
108
114
|
sanitize (2.0.3)
|
109
115
|
nokogiri (< 1.6, >= 1.4.4)
|
110
|
-
selenium-webdriver (2.
|
116
|
+
selenium-webdriver (2.7.0)
|
111
117
|
childprocess (>= 0.2.1)
|
112
118
|
ffi (>= 1.0.7)
|
113
119
|
json_pure
|
114
120
|
rubyzip
|
115
|
-
|
116
|
-
|
121
|
+
sprockets (2.0.0)
|
122
|
+
hike (~> 1.2)
|
123
|
+
rack (~> 1.0)
|
124
|
+
tilt (!= 1.3.0, ~> 1.1)
|
125
|
+
steak (2.0.0)
|
126
|
+
capybara (>= 1.0.0)
|
127
|
+
rspec-rails (>= 2.5.0)
|
117
128
|
thor (0.14.6)
|
129
|
+
tilt (1.3.3)
|
118
130
|
treetop (1.4.10)
|
119
131
|
polyglot
|
120
132
|
polyglot (>= 0.3.1)
|
121
133
|
tzinfo (0.3.29)
|
122
|
-
xpath (0.1.
|
134
|
+
xpath (0.1.4)
|
123
135
|
nokogiri (~> 1.3)
|
124
136
|
|
125
137
|
PLATFORMS
|
126
138
|
ruby
|
127
139
|
|
128
140
|
DEPENDENCIES
|
129
|
-
capybara
|
141
|
+
capybara (~> 1.1.1)
|
130
142
|
css_parser
|
131
143
|
fakeweb
|
132
144
|
galakei!
|
133
145
|
haml
|
134
|
-
rails
|
146
|
+
rails (~> 3.1.0)
|
135
147
|
rspec (>= 2.5.0)
|
136
148
|
rspec-rails
|
137
149
|
steak
|
data/galakei.gemspec
CHANGED
@@ -15,7 +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', '
|
18
|
+
s.add_dependency 'actionpack', '>= 3.0.3'
|
19
19
|
s.add_dependency 'rack', '>= 1.2.1'
|
20
20
|
s.add_dependency 'css_parser'
|
21
21
|
s.add_dependency 'nokogiri'
|
@@ -22,6 +22,9 @@ class Galakei::DocomoCss::InlineStylesheet
|
|
22
22
|
uri = URI.parse(href)
|
23
23
|
if uri.host && uri.scheme && uri.port
|
24
24
|
parser.load_uri!(uri)
|
25
|
+
elsif /^\/assets\/(.+)/=~ href
|
26
|
+
asset = Rails.application.assets.find_asset($1)
|
27
|
+
parser.add_block!(asset.to_s, {:media_types => :all, :base_dir => File.dirname(href)})
|
25
28
|
else
|
26
29
|
parser.load_file!(path(href))
|
27
30
|
end
|
data/lib/galakei/railtie.rb
CHANGED
@@ -2,10 +2,10 @@ module Galakei
|
|
2
2
|
class Railtie < ::Rails::Railtie
|
3
3
|
config.galakei = ActiveSupport::OrderedOptions.new
|
4
4
|
initializer "galakei.extend.action_controller" do |app|
|
5
|
+
filters = %w[Views ContentType Recode NonStandardChar]
|
6
|
+
filters << :Haml if defined?(Haml)
|
5
7
|
ActiveSupport.on_load :action_controller do
|
6
8
|
include Galakei::HelperMethods
|
7
|
-
filters = %w[Views ContentType Recode NonStandardChar]
|
8
|
-
filters << :Haml if defined?(Haml)
|
9
9
|
filters.each {|f| Galakei::Filter.const_get(f).inject(self) }
|
10
10
|
end
|
11
11
|
ActiveSupport.on_load :action_view do
|
@@ -1,7 +1,15 @@
|
|
1
1
|
module Galakei::SessionIdParameter::InUrl
|
2
|
+
|
3
|
+
if Rails::VERSION::MINOR == 0
|
4
|
+
ENV_SESSION_OPTIONS_KEY = ActionDispatch::Session::AbstractStore::ENV_SESSION_OPTIONS_KEY
|
5
|
+
else
|
6
|
+
require "rack/session/abstract/id.rb"
|
7
|
+
ENV_SESSION_OPTIONS_KEY = Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY
|
8
|
+
end
|
9
|
+
|
2
10
|
def url_for(options = {})
|
3
11
|
return super unless inject_session_id_parameter?(options)
|
4
|
-
session_opts = request.env[
|
12
|
+
session_opts = request.env[ENV_SESSION_OPTIONS_KEY]
|
5
13
|
# if we don't have a session ID yet, create one
|
6
14
|
if session_opts[:id].blank?
|
7
15
|
# make sure to reset any active record session store,
|
@@ -1,3 +1,6 @@
|
|
1
|
+
if Rails::VERSION::MINOR == 0
|
2
|
+
# we only need this patch for Rails 3.0, it is fixed in 3.1
|
3
|
+
|
1
4
|
require "action_dispatch/middleware/session/abstract_store"
|
2
5
|
|
3
6
|
# Patch the abstract session store to accomplish the following things:
|
@@ -30,3 +33,5 @@ module ActionDispatch
|
|
30
33
|
end
|
31
34
|
end
|
32
35
|
end
|
36
|
+
|
37
|
+
end
|
data/lib/galakei/version.rb
CHANGED
data/spec/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
tmp
|
@@ -13,32 +13,32 @@ end
|
|
13
13
|
feature 'emoji table' do
|
14
14
|
scenario 'for docomo', :driver => :docomo do
|
15
15
|
visit '/emoji'
|
16
|
-
page.
|
16
|
+
page.source.should match("\uE63E")
|
17
17
|
end
|
18
18
|
|
19
19
|
scenario 'for au', :driver => :au do
|
20
20
|
visit '/emoji'
|
21
|
-
page.
|
21
|
+
page.source.should match("\uEF60")
|
22
22
|
end
|
23
23
|
|
24
24
|
scenario 'for au SSL', :driver => :au do
|
25
25
|
visit 'https://www.example.com/emoji'
|
26
|
-
page.
|
26
|
+
page.source.should match([0xF660].pack("n").force_encoding("Shift_JIS"))
|
27
27
|
end
|
28
28
|
|
29
29
|
scenario 'for au SSL with unicode source', :driver => :au do
|
30
30
|
visit 'https://www.example.com/emoji/with_unicode'
|
31
31
|
expected = "テスト".encode("Shift_JIS") + [0xF660].pack("n").force_encoding("Shift_JIS")
|
32
|
-
page.
|
32
|
+
page.source.should match(expected)
|
33
33
|
end
|
34
34
|
|
35
35
|
scenario 'for softbank', :driver => :softbank do
|
36
36
|
visit '/emoji'
|
37
|
-
page.
|
37
|
+
page.source.should match("\uE04A")
|
38
38
|
end
|
39
39
|
|
40
40
|
scenario 'for non galakei' do
|
41
41
|
visit '/emoji'
|
42
|
-
page.
|
42
|
+
page.source.should match("\u2600")
|
43
43
|
end
|
44
44
|
end
|
@@ -26,56 +26,56 @@ end
|
|
26
26
|
feature 'nakaguro' do
|
27
27
|
scenario "Do convert · for docomo", :driver => :docomo do
|
28
28
|
visit '/non_standard_char/middot'
|
29
|
-
page.
|
29
|
+
page.source.should == "\u30FB"
|
30
30
|
end
|
31
31
|
|
32
32
|
%w[softbank au].each do |s|
|
33
33
|
scenario "Do not convert · for #{s}", :driver => s.to_sym do
|
34
34
|
visit '/non_standard_char/middot'
|
35
|
-
page.
|
35
|
+
page.source.should == "·"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
%w[au docomo].each do |s|
|
40
40
|
scenario "Do convert latin dot(\u00B7) for #{s}", :driver => s.to_sym do
|
41
41
|
visit '/non_standard_char/latin'
|
42
|
-
page.
|
42
|
+
page.source.should == "\uFF65"
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
scenario "Do not convert latin dot(\u00B7) for softbank", :driver => :softbank do
|
47
47
|
visit '/non_standard_char/latin'
|
48
|
-
page.
|
48
|
+
page.source.should == "\u00B7"
|
49
49
|
end
|
50
50
|
|
51
51
|
%w[softbank docomo].each do |s|
|
52
52
|
scenario "Do not convert ・ for #{s}", :driver => s.to_sym do
|
53
53
|
visit '/non_standard_char/harf_entity'
|
54
|
-
page.
|
54
|
+
page.source.should == "・"
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
58
|
scenario "Do convert ・ for au", :driver => :au do
|
59
59
|
visit '/non_standard_char/harf_entity'
|
60
|
-
page.
|
60
|
+
page.source.should == "\uFF65"
|
61
61
|
end
|
62
62
|
|
63
63
|
%w[docomo softbank].each do |s|
|
64
64
|
scenario "Do not convert ・ for #{s}", :driver => s.to_sym do
|
65
65
|
visit '/non_standard_char/full_entity'
|
66
|
-
page.
|
66
|
+
page.source.should == "・"
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
70
|
scenario "Do convert ・ for au", :driver => :au do
|
71
71
|
visit '/non_standard_char/full_entity'
|
72
|
-
page.
|
72
|
+
page.source.should == "\u30FB"
|
73
73
|
end
|
74
74
|
|
75
75
|
%w[softbank au docomo].each do |s|
|
76
76
|
scenario "Do convert ⋅ to \uFF65 for #{s}", :driver => s.to_sym do
|
77
77
|
visit '/non_standard_char/sdot'
|
78
|
-
page.
|
78
|
+
page.source.should == "\uFF65"
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
@@ -32,7 +32,7 @@ feature 'recode' do
|
|
32
32
|
|
33
33
|
scenario 'post request with Shift JIS data on au SSL', :driver => :au do
|
34
34
|
visit 'https://www.example.com/recode/new'
|
35
|
-
fill_in 'string', :with => "\x82\xA0"
|
35
|
+
fill_in 'string', :with => "\x82\xA0".force_encoding("Shift_JIS")
|
36
36
|
click_button "Submit"
|
37
37
|
RecodeController.string.should == "あ"
|
38
38
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# This makes Capybara work with sites that switch between HTTP and HTTPS
|
2
2
|
# See http://github.com/jnicklas/capybara/issues#issue/85
|
3
3
|
|
4
|
-
module Capybara::
|
4
|
+
module Capybara::RackTest::Browser::SslFix
|
5
5
|
|
6
6
|
[:get, :post, :put, :delete].each do |method|
|
7
7
|
define_method method do |*args|
|
@@ -25,4 +25,4 @@ module Capybara::Driver::RackTest::SslFix
|
|
25
25
|
|
26
26
|
end
|
27
27
|
|
28
|
-
Capybara::
|
28
|
+
Capybara::RackTest::Browser.send :include, Capybara::RackTest::Browser::SslFix
|
@@ -1,30 +1,25 @@
|
|
1
|
-
class Capybara::
|
1
|
+
class Capybara::RackTest::DriverWithUserAgent < Capybara::RackTest::Driver
|
2
2
|
def initialize(app, user_agent)
|
3
|
-
super(app)
|
4
|
-
@user_agent = user_agent
|
5
|
-
end
|
6
|
-
private
|
7
|
-
def env
|
8
|
-
super.tap {|env| env['HTTP_USER_AGENT'] = @user_agent }
|
3
|
+
super(app, :headers => {'HTTP_USER_AGENT' => user_agent})
|
9
4
|
end
|
10
5
|
end
|
11
6
|
|
12
7
|
Capybara.register_driver :docomo do |app|
|
13
|
-
Capybara::
|
8
|
+
Capybara::RackTest::DriverWithUserAgent.new(app, "DoCoMo/2.0 P903i(c100;TB;W24H12)")
|
14
9
|
end
|
15
10
|
|
16
11
|
Capybara.register_driver :docomo_2_0 do |app|
|
17
|
-
Capybara::
|
12
|
+
Capybara::RackTest::DriverWithUserAgent.new(app, "DoCoMo/2.0 SH06A3(c500;TB;W24H14)")
|
18
13
|
end
|
19
14
|
|
20
15
|
Capybara.register_driver :au do |app|
|
21
|
-
Capybara::
|
16
|
+
Capybara::RackTest::DriverWithUserAgent.new(app, "KDDI-CA32 UP.Browser/6.2.0.7.3.129 (GUI) MMP/2.0")
|
22
17
|
end
|
23
18
|
|
24
19
|
Capybara.register_driver :au_7 do |app|
|
25
|
-
Capybara::
|
20
|
+
Capybara::RackTest::DriverWithUserAgent.new(app, "KDDI-SA3B UP.Browser/6.2_7.2.7.1.K.1.3.101 (GUI) MMP/2.0")
|
26
21
|
end
|
27
22
|
|
28
23
|
Capybara.register_driver :softbank do |app|
|
29
|
-
Capybara::
|
24
|
+
Capybara::RackTest::DriverWithUserAgent.new(app, "SoftBank/1.0/943SH/SHJ001/SN*************** Browser/NetFront/3.5 Profile/MIDP-2.0 Configuration/CLDC-1.1")
|
30
25
|
end
|
File without changes
|
data/spec/app/fake.rb
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
1
3
|
require 'rails'
|
4
|
+
Bundler.require(:default, Rails.env)
|
5
|
+
|
2
6
|
require 'active_record'
|
3
7
|
require 'action_controller/railtie'
|
4
8
|
require 'action_view/railtie'
|
5
9
|
require 'action_mailer/railtie'
|
10
|
+
require 'sprockets/railtie'
|
6
11
|
require 'haml'
|
7
12
|
require 'galakei/railtie'
|
8
13
|
require 'galakei/engine'
|
@@ -15,6 +20,10 @@ app.config.session_store :cookie_store, :key => "_myapp_session"
|
|
15
20
|
app.config.active_support.deprecation = :log
|
16
21
|
app.config.galakei.session_id_parameter = true
|
17
22
|
app.config.action_mailer.delivery_method = :test
|
23
|
+
app.config.assets.enabled = true
|
24
|
+
app.config.assets.version = '1.0'
|
25
|
+
app.config.assets.compress = false
|
26
|
+
app.config.assets.digest = true
|
18
27
|
app.initialize!
|
19
28
|
|
20
29
|
app.routes.draw do
|
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.
|
4
|
+
version: 0.12.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,22 +11,23 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-
|
14
|
+
date: 2011-10-04 00:00:00.000000000 +09:00
|
15
|
+
default_executable:
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: actionpack
|
18
|
-
requirement: &
|
19
|
+
requirement: &17711400 !ruby/object:Gem::Requirement
|
19
20
|
none: false
|
20
21
|
requirements:
|
21
|
-
- -
|
22
|
+
- - ! '>='
|
22
23
|
- !ruby/object:Gem::Version
|
23
24
|
version: 3.0.3
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
+
version_requirements: *17711400
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
29
|
name: rack
|
29
|
-
requirement: &
|
30
|
+
requirement: &17710880 !ruby/object:Gem::Requirement
|
30
31
|
none: false
|
31
32
|
requirements:
|
32
33
|
- - ! '>='
|
@@ -34,10 +35,10 @@ dependencies:
|
|
34
35
|
version: 1.2.1
|
35
36
|
type: :runtime
|
36
37
|
prerelease: false
|
37
|
-
version_requirements: *
|
38
|
+
version_requirements: *17710880
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
40
|
name: css_parser
|
40
|
-
requirement: &
|
41
|
+
requirement: &17710500 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
43
|
requirements:
|
43
44
|
- - ! '>='
|
@@ -45,10 +46,10 @@ dependencies:
|
|
45
46
|
version: '0'
|
46
47
|
type: :runtime
|
47
48
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
+
version_requirements: *17710500
|
49
50
|
- !ruby/object:Gem::Dependency
|
50
51
|
name: nokogiri
|
51
|
-
requirement: &
|
52
|
+
requirement: &17710000 !ruby/object:Gem::Requirement
|
52
53
|
none: false
|
53
54
|
requirements:
|
54
55
|
- - ! '>='
|
@@ -56,10 +57,10 @@ dependencies:
|
|
56
57
|
version: '0'
|
57
58
|
type: :runtime
|
58
59
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
+
version_requirements: *17710000
|
60
61
|
- !ruby/object:Gem::Dependency
|
61
62
|
name: sanitize
|
62
|
-
requirement: &
|
63
|
+
requirement: &17709560 !ruby/object:Gem::Requirement
|
63
64
|
none: false
|
64
65
|
requirements:
|
65
66
|
- - ! '>='
|
@@ -67,7 +68,7 @@ dependencies:
|
|
67
68
|
version: '0'
|
68
69
|
type: :runtime
|
69
70
|
prerelease: false
|
70
|
-
version_requirements: *
|
71
|
+
version_requirements: *17709560
|
71
72
|
description: Japanese feature phones (a.k.a., keitai, galakei) have a number of restrictions
|
72
73
|
over normal web browsers. This library adds support for them
|
73
74
|
email: info@mobalean.com
|
@@ -113,6 +114,7 @@ files:
|
|
113
114
|
- lib/galakei/spacer.rb
|
114
115
|
- lib/galakei/use_rack_request_to_extract_sid.rb
|
115
116
|
- lib/galakei/version.rb
|
117
|
+
- spec/.gitignore
|
116
118
|
- spec/acceptance/acceptance_helper.rb
|
117
119
|
- spec/acceptance/au_mail_interceptor_spec.rb
|
118
120
|
- spec/acceptance/docomo_css_spec.rb
|
@@ -127,10 +129,10 @@ files:
|
|
127
129
|
- spec/acceptance/support/handsets.rb
|
128
130
|
- spec/acceptance/views_spec.rb
|
129
131
|
- spec/app/.gitignore
|
132
|
+
- spec/app/app/assets/stylesheets/docomo_css/simple.css
|
130
133
|
- spec/app/app/views/haml/index.html.haml
|
131
134
|
- spec/app/app/views/layouts/application.html.haml
|
132
135
|
- spec/app/fake.rb
|
133
|
-
- spec/app/public/stylesheets/docomo_css/simple.css
|
134
136
|
- spec/controllers/galakei/spacer_controller_spec.rb
|
135
137
|
- spec/galakei/docomo_css/stylesheet_spec.rb
|
136
138
|
- spec/galakei/email_spec.rb
|
@@ -139,6 +141,7 @@ files:
|
|
139
141
|
- spec/galakei/request_spec.rb
|
140
142
|
- spec/galakei/spacer_spec.rb
|
141
143
|
- spec/spec_helper.rb
|
144
|
+
has_rdoc: true
|
142
145
|
homepage: http://www.mobalean.com
|
143
146
|
licenses: []
|
144
147
|
post_install_message:
|
@@ -159,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
162
|
version: '0'
|
160
163
|
requirements: []
|
161
164
|
rubyforge_project: galakei
|
162
|
-
rubygems_version: 1.
|
165
|
+
rubygems_version: 1.6.2
|
163
166
|
signing_key:
|
164
167
|
specification_version: 3
|
165
168
|
summary: Japanese feature phones support
|