galakei 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ module Galakei
8
8
 
9
9
  def au?
10
10
  # doesn't detect some 2G phones, but as they will be discontinued soon, doesn't really matter
11
- !! (/KDDI/ =~ user_agent)
11
+ !! (/^KDDI-/ =~ user_agent)
12
12
  end
13
13
 
14
14
  def softbank?
@@ -1,4 +1,4 @@
1
1
  module Galakei
2
2
  # The version of Galakei you are using
3
- VERSION = "0.14.1"
3
+ VERSION = "0.14.2"
4
4
  end
@@ -68,6 +68,11 @@ describe Galakei::Request do
68
68
 
69
69
  describe "from Docomo HT-03A (android)" do
70
70
  subject { Rack::Request.new("HTTP_USER_AGENT" => "Mozilla/5.0 (Linux; U; Android 1.6; ja-jp; Docomo HT-03A Build/DRD08) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1") }
71
- it { should_not be_docomo }
71
+ it { should_not be_galakei }
72
+ end
73
+
74
+ describe "from iPhone FB browser" do
75
+ subject { Rack::Request.new("HTTP_USER_AGENT" => "Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; ja_JP) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.1.1;FBBV/4110.0;FBDV/iPhone4,1;FBMD/iPhone;FBSN/iPhone OS;FBSV/5.1.1;FBSS/2; FBCR/KDDI;FBID/phone;FBLC/ja_JP;FBSF/2.0]") }
76
+ it { should_not be_galakei }
72
77
  end
73
78
  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.14.1
4
+ version: 0.14.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-06-11 00:00:00.000000000 Z
14
+ date: 2012-07-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: actionpack
@@ -173,18 +173,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  - - ! '>='
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
- segments:
177
- - 0
178
- hash: -4560215064638453395
179
176
  required_rubygems_version: !ruby/object:Gem::Requirement
180
177
  none: false
181
178
  requirements:
182
179
  - - ! '>='
183
180
  - !ruby/object:Gem::Version
184
181
  version: '0'
185
- segments:
186
- - 0
187
- hash: -4560215064638453395
188
182
  requirements: []
189
183
  rubyforge_project: galakei
190
184
  rubygems_version: 1.8.24