mobileesp_converted 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module MobileESPConverted
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -29,6 +29,20 @@ module MobileESPConverted
29
29
  uai.detect_android_tablet.must_equal false
30
30
  end
31
31
 
32
+ it "categorizes iPad Pro/Safari" do
33
+ uai = UserAgentInfo.new("Mozilla/5.0 (iPad; CPU OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E8301 Safari/602.1", "text/html")
34
+ uai.detect_ipad.must_equal true
35
+ uai.is_iphone.must_equal false
36
+ uai.is_tier_tablet.must_equal true
37
+ uai.is_tier_iphone.must_equal false
38
+ uai.is_tier_rich_css.must_equal false
39
+ uai.is_tier_generic_mobile.must_equal false
40
+ uai.detect_iphone.must_equal false
41
+ uai.detect_ipad.must_equal true
42
+ uai.detect_android_phone.must_equal false
43
+ uai.detect_android_tablet.must_equal false
44
+ end
45
+
32
46
  it "categorizes Android phone / Android Browser" do
33
47
  # UA string for Google Nexus S
34
48
  uai = UserAgentInfo.new("Mozilla/5.0 (Linux; U; Android 2.3.4; fr-fr; Nexus S Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1", "text/html")
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobileesp_converted
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Anthony Hand
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-12-13 00:00:00.000000000 Z
12
+ date: 2017-07-03 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: pry
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - '>='
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :development
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - '>='
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: rake
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - '>='
32
+ - - ">="
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :development
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - '>='
39
+ - - ">="
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: minitest
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - '>='
46
+ - - ">="
53
47
  - !ruby/object:Gem::Version
54
48
  version: '0'
55
49
  type: :development
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - '>='
53
+ - - ">="
61
54
  - !ruby/object:Gem::Version
62
55
  version: '0'
63
56
  description: Autoconverted version (from Java to Ruby) of MobileESP library.
@@ -67,7 +60,7 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - .gitignore
63
+ - ".gitignore"
71
64
  - Gemfile
72
65
  - LICENSE
73
66
  - README.md
@@ -82,33 +75,26 @@ files:
82
75
  - spec/spec_helper.rb
83
76
  homepage: http://github.com/jistr/mobileesp_converted
84
77
  licenses: []
78
+ metadata: {}
85
79
  post_install_message:
86
80
  rdoc_options: []
87
81
  require_paths:
88
82
  - lib
89
83
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
84
  requirements:
92
- - - '>='
85
+ - - ">="
93
86
  - !ruby/object:Gem::Version
94
87
  version: '0'
95
- segments:
96
- - 0
97
- hash: 1514305537178076459
98
88
  required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
89
  requirements:
101
- - - '>='
90
+ - - ">="
102
91
  - !ruby/object:Gem::Version
103
92
  version: '0'
104
- segments:
105
- - 0
106
- hash: 1514305537178076459
107
93
  requirements: []
108
94
  rubyforge_project:
109
- rubygems_version: 1.8.25
95
+ rubygems_version: 2.5.2
110
96
  signing_key:
111
- specification_version: 3
97
+ specification_version: 4
112
98
  summary: Provides device type detection based on HTTP request headers.
113
99
  test_files:
114
100
  - spec/mobileesp_converted/user_agent_info_spec.rb