rack-simple_user_agent 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42ff82f449823d9ec9cbed16ad250bdbc9f33da5
4
- data.tar.gz: b2e587f596d2e1249104ab43728adc1aab3f6da2
3
+ metadata.gz: 3309a48be2e5b525ef4c973d4e869a68eef979f0
4
+ data.tar.gz: 337689d03919bf637f7aa9656096008740154ac4
5
5
  SHA512:
6
- metadata.gz: e1ec137224748852c2e4fa31bad9cdfcfc730b1553a0b379af1506f2513d1eb36f38c3b6c2f7449ef146242c617246a3e1245f54f2b230d0d16044decec99458
7
- data.tar.gz: 473570fef685949e4dbd78b11ec1dd27d76c14e9583877ba700a592b4f183716d4d787d76dae6a0875cba5419f9b0442c031598355d4e470ec72e21145bd54cc
6
+ metadata.gz: 80142413c71166bee2d37b6fd6309a3fb6d87e7afb986240841332be4eb7173d8907bd1833f2f63b2d75314698b35d98410596b3cf262fcdfa7791d1ef291048
7
+ data.tar.gz: 9622528fbe51c5e03f03ab82123ebde1d2da8fe4f3bc92b71d0f9425068f62ca82ba6400968bb5c2dbaff6f4fa74f59775927decb4fb10dba1597379a7808cc1
@@ -6,15 +6,15 @@ module Rack
6
6
  end
7
7
 
8
8
  def from_iphone?
9
- user_agent.include?("iPhone")
9
+ user_agent.to_s.include?("iPhone")
10
10
  end
11
11
 
12
12
  def from_ipad?
13
- user_agent.include?("iPad")
13
+ user_agent.to_s.include?("iPad")
14
14
  end
15
15
 
16
16
  def from_ipod?
17
- user_agent.include?("iPod")
17
+ user_agent.to_s.include?("iPod")
18
18
  end
19
19
 
20
20
  def from_ios?
@@ -22,7 +22,7 @@ module Rack
22
22
  end
23
23
 
24
24
  def from_android?
25
- user_agent.include?("Android")
25
+ user_agent.to_s.include?("Android")
26
26
  end
27
27
 
28
28
  def from_android_tablet?
@@ -34,7 +34,7 @@ module Rack
34
34
  end
35
35
 
36
36
  def from_windows_phone?
37
- user_agent.include?("Windows Phone OS")
37
+ user_agent.to_s.include?("Windows Phone OS")
38
38
  end
39
39
 
40
40
  private
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class SimpleUserAgent
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-simple_user_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru