browser 5.3.1 → 6.1.0

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/{FUNDING.yml → .github/FUNDING.yml} +2 -1
  3. data/.github/workflows/{tests.yml → ruby-tests.yml} +17 -17
  4. data/.rubocop.yml +3 -23
  5. data/CHANGELOG.md +18 -7
  6. data/LICENSE.md +20 -0
  7. data/README.md +11 -4
  8. data/bots.yml +23 -0
  9. data/browser.gemspec +4 -5
  10. data/gemfiles/{rails6_0.gemfile → 7_0.gemfile} +1 -1
  11. data/gemfiles/{rails6_1.gemfile → 7_1.gemfile} +1 -1
  12. data/lib/browser/accept_language.rb +1 -1
  13. data/lib/browser/base.rb +34 -29
  14. data/lib/browser/browser.rb +4 -3
  15. data/lib/browser/chrome.rb +4 -0
  16. data/lib/browser/device.rb +10 -10
  17. data/lib/browser/edge.rb +1 -1
  18. data/lib/browser/meta/base.rb +1 -1
  19. data/lib/browser/platform/ios.rb +1 -1
  20. data/lib/browser/platform.rb +1 -1
  21. data/lib/browser/testing.rb +3 -3
  22. data/lib/browser/version.rb +1 -1
  23. data/lib/browser.rb +1 -1
  24. data/search_engines.yml +1 -0
  25. data/test/browser_test.rb +3 -3
  26. data/test/rails_test.rb +1 -1
  27. data/test/sample_app.rb +2 -2
  28. data/test/test_helper.rb +4 -2
  29. data/test/ua.yml +10 -4
  30. data/test/ua_bots.yml +18 -0
  31. data/test/unit/accept_language_test.rb +1 -1
  32. data/test/unit/android_app_test.rb +3 -3
  33. data/test/unit/android_test.rb +17 -17
  34. data/test/unit/blackberry_test.rb +1 -1
  35. data/test/unit/bots_test.rb +15 -4
  36. data/test/unit/chrome_test.rb +7 -0
  37. data/test/unit/device_test.rb +25 -25
  38. data/test/unit/edge_test.rb +6 -0
  39. data/test/unit/electron_test.rb +1 -1
  40. data/test/unit/facebook_test.rb +3 -3
  41. data/test/unit/generic_test.rb +3 -3
  42. data/test/unit/instagram_test.rb +2 -2
  43. data/test/unit/internet_explorer_test.rb +18 -18
  44. data/test/unit/ios_app_test.rb +3 -3
  45. data/test/unit/ios_test.rb +18 -12
  46. data/test/unit/kindle_test.rb +15 -0
  47. data/test/unit/meta_test.rb +13 -13
  48. data/test/unit/platform_test.rb +33 -25
  49. data/test/unit/proxy_test.rb +2 -2
  50. data/test/unit/safari_test.rb +14 -9
  51. data/test/unit/snapchat_test.rb +3 -3
  52. data/test/unit/uc_browser_test.rb +1 -1
  53. data/test/unit/windows_test.rb +11 -11
  54. metadata +12 -77
@@ -13,7 +13,7 @@ class PlatformTest < Minitest::Test
13
13
  end
14
14
  end
15
15
 
16
- test "extend matchers" do
16
+ test "extends matchers" do
17
17
  Browser::Platform.matchers.unshift(CustomPlatform)
18
18
  platform = Browser::Platform.new("Custom")
19
19
  assert_equal :custom, platform.id
@@ -31,11 +31,11 @@ class PlatformTest < Minitest::Test
31
31
  test "implements ==" do
32
32
  platform = Browser::Platform.new(Browser["IOS9"])
33
33
 
34
- assert platform == :ios
35
- refute platform == :android
34
+ assert_operator platform, :==, :ios # rubocop:disable Minitest/AssertEqual
35
+ refute_equal platform, :android
36
36
  end
37
37
 
38
- test "detect unknown platforms" do
38
+ test "detects unknown platforms" do
39
39
  platform = Browser::Platform.new("Unknown")
40
40
 
41
41
  assert_equal "Unknown", platform.name
@@ -44,7 +44,7 @@ class PlatformTest < Minitest::Test
44
44
  assert platform.unknown?
45
45
  end
46
46
 
47
- test "detect ios (iPhone)" do
47
+ test "detects ios (iPhone)" do
48
48
  platform = Browser::Platform.new(Browser["IOS4"])
49
49
 
50
50
  assert_equal "iOS (iPhone)", platform.name
@@ -53,7 +53,7 @@ class PlatformTest < Minitest::Test
53
53
  assert_equal "4", platform.version
54
54
  end
55
55
 
56
- test "detect ios (iPad)" do
56
+ test "detects ios (iPad)" do
57
57
  platform = Browser::Platform.new(Browser["IOS9"])
58
58
 
59
59
  assert_equal "iOS (iPad)", platform.name
@@ -62,7 +62,7 @@ class PlatformTest < Minitest::Test
62
62
  assert_equal "9", platform.version
63
63
  end
64
64
 
65
- test "detect specific minor iOS (iPhone)" do
65
+ test "detects specific minor iOS (iPhone)" do
66
66
  platform = Browser::Platform.new(Browser["IOS8_3"])
67
67
 
68
68
  assert_equal "iOS (iPhone)", platform.name
@@ -72,7 +72,7 @@ class PlatformTest < Minitest::Test
72
72
  assert_equal "8.3", platform.version
73
73
  end
74
74
 
75
- test "detect specific patch iOS (iPhone)" do
75
+ test "detects specific patch iOS (iPhone)" do
76
76
  platform = Browser::Platform.new(Browser["IOS8_1_2"])
77
77
 
78
78
  assert_equal "iOS (iPhone)", platform.name
@@ -83,7 +83,7 @@ class PlatformTest < Minitest::Test
83
83
  assert_equal "8.1.2", platform.version
84
84
  end
85
85
 
86
- test "detect ios (iPod Touch)" do
86
+ test "detects ios (iPod Touch)" do
87
87
  platform = Browser::Platform.new(Browser["IPOD"])
88
88
 
89
89
  assert_equal "iOS (iPod)", platform.name
@@ -92,7 +92,7 @@ class PlatformTest < Minitest::Test
92
92
  assert_equal "0", platform.version
93
93
  end
94
94
 
95
- test "detect linux" do
95
+ test "detects linux" do
96
96
  platform = Browser::Platform.new(Browser["FIREFOX"])
97
97
 
98
98
  assert_equal "Generic Linux", platform.name
@@ -101,7 +101,7 @@ class PlatformTest < Minitest::Test
101
101
  assert_equal "0", platform.version
102
102
  end
103
103
 
104
- test "detect mac" do
104
+ test "detects mac" do
105
105
  platform = Browser::Platform.new(Browser["SAFARI"])
106
106
 
107
107
  assert_equal "Mac OS X", platform.name
@@ -111,17 +111,17 @@ class PlatformTest < Minitest::Test
111
111
  assert platform.mac?(["=10.6.4"])
112
112
  end
113
113
 
114
- test "return stub version for Mac user agent without version" do
114
+ test "returns stub version for Mac user agent without version" do
115
115
  platform = Browser::Platform.new("Macintosh")
116
116
  assert_equal "0", platform.version
117
117
  end
118
118
 
119
- test "detect mac names" do
119
+ test "detects mac names" do
120
120
  assert_equal "Mac OS X", Browser::Platform.new(Browser["MAC_OSX"]).name
121
121
  assert_equal "macOS", Browser::Platform.new(Browser["MAC_OS"]).name
122
122
  end
123
123
 
124
- test "detect firefox os" do
124
+ test "detects firefox os" do
125
125
  platform = Browser::Platform.new(Browser["FIREFOX_OS"])
126
126
 
127
127
  assert_equal "Firefox OS", platform.name
@@ -130,7 +130,7 @@ class PlatformTest < Minitest::Test
130
130
  assert_equal "0", platform.version
131
131
  end
132
132
 
133
- test "detect windows phone" do
133
+ test "detects windows phone" do
134
134
  platform = Browser::Platform.new(Browser["MS_EDGE_MOBILE"])
135
135
 
136
136
  assert_equal "Windows Phone", platform.name
@@ -139,7 +139,7 @@ class PlatformTest < Minitest::Test
139
139
  assert_equal "10.0", platform.version
140
140
  end
141
141
 
142
- test "detect windows mobile" do
142
+ test "detects windows mobile" do
143
143
  platform = Browser::Platform.new(Browser["WINDOWS_MOBILE"])
144
144
 
145
145
  assert_equal "Windows Mobile", platform.name
@@ -148,7 +148,7 @@ class PlatformTest < Minitest::Test
148
148
  assert_equal "0", platform.version
149
149
  end
150
150
 
151
- test "detect blackberry 10" do
151
+ test "detects blackberry 10" do
152
152
  platform = Browser::Platform.new(Browser["BLACKBERRY10"])
153
153
 
154
154
  assert_equal "BlackBerry", platform.name
@@ -157,7 +157,7 @@ class PlatformTest < Minitest::Test
157
157
  assert_equal "10.0.9.1675", platform.version
158
158
  end
159
159
 
160
- test "detect blackberry 4" do
160
+ test "detects blackberry 4" do
161
161
  platform = Browser::Platform.new(Browser["BLACKBERRY4"])
162
162
 
163
163
  assert_equal "BlackBerry", platform.name
@@ -166,7 +166,7 @@ class PlatformTest < Minitest::Test
166
166
  assert_equal "4.2.1", platform.version
167
167
  end
168
168
 
169
- test "detect blackberry 4 (other)" do
169
+ test "detects blackberry 4 (other)" do
170
170
  platform = Browser::Platform.new(Browser["BLACKBERRY"])
171
171
 
172
172
  assert_equal "BlackBerry", platform.name
@@ -175,7 +175,7 @@ class PlatformTest < Minitest::Test
175
175
  assert_equal "4.1.0", platform.version
176
176
  end
177
177
 
178
- test "detect blackberry 5" do
178
+ test "detects blackberry 5" do
179
179
  platform = Browser::Platform.new(Browser["BLACKBERRY5"])
180
180
 
181
181
  assert_equal "BlackBerry", platform.name
@@ -184,7 +184,7 @@ class PlatformTest < Minitest::Test
184
184
  assert_equal "5.0.0.93", platform.version
185
185
  end
186
186
 
187
- test "detect blackberry 6" do
187
+ test "detects blackberry 6" do
188
188
  platform = Browser::Platform.new(Browser["BLACKBERRY6"])
189
189
 
190
190
  assert_equal "BlackBerry", platform.name
@@ -193,7 +193,7 @@ class PlatformTest < Minitest::Test
193
193
  assert_equal "6.0.0.141", platform.version
194
194
  end
195
195
 
196
- test "detect blackberry 7" do
196
+ test "detects blackberry 7" do
197
197
  platform = Browser::Platform.new(Browser["BLACKBERRY7"])
198
198
 
199
199
  assert_equal "BlackBerry", platform.name
@@ -202,7 +202,7 @@ class PlatformTest < Minitest::Test
202
202
  assert_equal "7.0.0.1", platform.version
203
203
  end
204
204
 
205
- test "detect android" do
205
+ test "detects android" do
206
206
  platform = Browser::Platform.new(Browser["ANDROID_CUPCAKE"])
207
207
 
208
208
  assert_equal "Android", platform.name
@@ -211,7 +211,7 @@ class PlatformTest < Minitest::Test
211
211
  assert_equal "1.5", platform.version
212
212
  end
213
213
 
214
- test "detect chrome os" do
214
+ test "detects chrome os" do
215
215
  platform = Browser::Platform.new(Browser["CHROME_OS"])
216
216
 
217
217
  assert_equal "Chrome OS", platform.name
@@ -221,10 +221,18 @@ class PlatformTest < Minitest::Test
221
221
  assert_equal "3701.81.0", platform.version
222
222
  end
223
223
 
224
- test "detect adobe air" do
224
+ test "detects adobe air" do
225
225
  platform = Browser::Platform.new(Browser["ADOBE_AIR"])
226
226
 
227
227
  assert platform.adobe_air?
228
228
  assert platform.adobe_air?(%w[>=13 <14])
229
229
  end
230
+
231
+ test "implements default match?" do
232
+ matcher_class = Class.new(Browser::Platform::Base)
233
+ Browser::Platform.matchers.unshift(matcher_class)
234
+ platform = Browser::Platform.new("")
235
+
236
+ assert platform.unknown?
237
+ end
230
238
  end
@@ -10,11 +10,11 @@ class ProxyTest < Minitest::Test
10
10
  ].each do |name|
11
11
  ua = Browser[name]
12
12
 
13
- test "detect #{name} as proxy" do
13
+ test "detects #{name} as proxy" do
14
14
  browser = Browser.new(ua)
15
15
 
16
16
  assert browser.proxy?
17
- assert browser.meta.include?("proxy")
17
+ assert_includes browser.meta, "proxy"
18
18
  end
19
19
  end
20
20
  end
@@ -3,7 +3,7 @@
3
3
  require "test_helper"
4
4
 
5
5
  class SafariTest < Minitest::Test
6
- test "detect safari 3" do
6
+ test "detects safari 3" do
7
7
  browser = Browser.new(Browser["SAFARI3"])
8
8
 
9
9
  assert browser.safari?
@@ -12,7 +12,7 @@ class SafariTest < Minitest::Test
12
12
  assert_equal "3.0.3", browser.full_version
13
13
  end
14
14
 
15
- test "detect safari 4" do
15
+ test "detects safari 4" do
16
16
  browser = Browser.new(Browser["SAFARI4"])
17
17
 
18
18
  assert browser.safari?
@@ -21,7 +21,7 @@ class SafariTest < Minitest::Test
21
21
  assert_equal "4.0.3", browser.full_version
22
22
  end
23
23
 
24
- test "detect safari 5" do
24
+ test "detects safari 5" do
25
25
  browser = Browser.new(Browser["SAFARI5"])
26
26
 
27
27
  assert browser.safari?
@@ -30,7 +30,7 @@ class SafariTest < Minitest::Test
30
30
  assert_equal "5.0.3", browser.full_version
31
31
  end
32
32
 
33
- test "detect safari 6" do
33
+ test "detects safari 6" do
34
34
  browser = Browser.new(Browser["SAFARI6"])
35
35
 
36
36
  assert browser.safari?
@@ -39,7 +39,7 @@ class SafariTest < Minitest::Test
39
39
  assert_equal "6.0", browser.full_version
40
40
  end
41
41
 
42
- test "detect safari 7" do
42
+ test "detects safari 7" do
43
43
  browser = Browser.new(Browser["SAFARI7"])
44
44
 
45
45
  assert browser.safari?
@@ -48,7 +48,7 @@ class SafariTest < Minitest::Test
48
48
  assert_equal "7.0", browser.full_version
49
49
  end
50
50
 
51
- test "detect safari 8" do
51
+ test "detects safari 8" do
52
52
  browser = Browser.new(Browser["SAFARI8"])
53
53
 
54
54
  assert browser.safari?
@@ -57,7 +57,7 @@ class SafariTest < Minitest::Test
57
57
  assert_equal "8.0", browser.full_version
58
58
  end
59
59
 
60
- test "detect safari 9" do
60
+ test "detects safari 9" do
61
61
  browser = Browser.new(Browser["SAFARI9"])
62
62
 
63
63
  assert browser.safari?
@@ -66,13 +66,13 @@ class SafariTest < Minitest::Test
66
66
  assert_equal "9.0.2", browser.full_version
67
67
  end
68
68
 
69
- test "detect web app mode" do
69
+ test "detects web app mode" do
70
70
  browser = Browser.new(Browser["SAFARI_IPHONE_WEBAPP_MODE"])
71
71
 
72
72
  assert browser.safari_webapp_mode?
73
73
  end
74
74
 
75
- test "reject regular safari as web app mode" do
75
+ test "rejects regular safari as web app mode" do
76
76
  browser = Browser.new(Browser["SAFARI9"])
77
77
 
78
78
  refute browser.safari_webapp_mode?
@@ -93,4 +93,9 @@ class SafariTest < Minitest::Test
93
93
  browser = Browser.new(Browser["SAFARI9"])
94
94
  assert browser.safari?(%w[>=9.0 <10])
95
95
  end
96
+
97
+ test "does not detect as chromium" do
98
+ browser = Browser.new(Browser["SAFARI9"])
99
+ refute browser.chromium_based?
100
+ end
96
101
  end
@@ -8,7 +8,7 @@ class SnapchatTest < Minitest::Test
8
8
 
9
9
  assert_equal "Snapchat", browser.name
10
10
  assert browser.snapchat?
11
- assert :snapchat, browser.id
11
+ assert_equal :snapchat, browser.id
12
12
  assert_equal "10.69.5.72", browser.full_version
13
13
  assert_equal "10", browser.version
14
14
  end
@@ -18,7 +18,7 @@ class SnapchatTest < Minitest::Test
18
18
 
19
19
  assert_equal "Snapchat", browser.name
20
20
  assert browser.snapchat?
21
- assert :snapchat, browser.id
21
+ assert_equal :snapchat, browser.id
22
22
  assert_equal "10.70.0.0", browser.full_version
23
23
  assert_equal "10", browser.version
24
24
  end
@@ -28,7 +28,7 @@ class SnapchatTest < Minitest::Test
28
28
 
29
29
  assert_equal "Snapchat", browser.name
30
30
  assert browser.snapchat?
31
- assert :snapchat, browser.id
31
+ assert_equal :snapchat, browser.id
32
32
  assert_equal "10.70.0.0", browser.full_version
33
33
  assert_equal "10", browser.version
34
34
  end
@@ -6,7 +6,7 @@ class UcBrowserTest < Minitest::Test
6
6
  test "detects UC Browser" do
7
7
  browser = Browser.new(Browser["UC_BROWSER"])
8
8
  assert browser.uc_browser?
9
- assert_equal browser.name, "UCBrowser"
9
+ assert_equal "UCBrowser", browser.name
10
10
  end
11
11
 
12
12
  test "detects version by range" do
@@ -8,7 +8,7 @@ class WindowsTest < Minitest::Test
8
8
  assert browser.platform.windows_x64?
9
9
  refute browser.platform.windows_wow64?
10
10
  assert browser.platform.windows_x64_inclusive?
11
- assert_equal browser.platform.version, "6.2"
11
+ assert_equal "6.2", browser.platform.version
12
12
  end
13
13
 
14
14
  test "detects windows wow64" do
@@ -16,14 +16,14 @@ class WindowsTest < Minitest::Test
16
16
  refute browser.platform.windows_x64?
17
17
  assert browser.platform.windows_wow64?
18
18
  assert browser.platform.windows_x64_inclusive?
19
- assert_equal browser.platform.version, "6.3"
19
+ assert_equal "6.3", browser.platform.version
20
20
  end
21
21
 
22
22
  test "detects windows_2000" do
23
23
  browser = Browser.new(Browser["WINDOWS_2000"])
24
24
 
25
25
  assert browser.platform.windows?
26
- assert_equal browser.platform.version, "5.0"
26
+ assert_equal "5.0", browser.platform.version
27
27
  assert browser.platform.windows?(["=5.0"])
28
28
  end
29
29
 
@@ -31,7 +31,7 @@ class WindowsTest < Minitest::Test
31
31
  browser = Browser.new(Browser["WINDOWS_2000_SP1"])
32
32
 
33
33
  assert browser.platform.windows?
34
- assert_equal browser.platform.version, "5.01"
34
+ assert_equal "5.01", browser.platform.version
35
35
  assert browser.platform.windows?(["=5.01"])
36
36
  end
37
37
 
@@ -40,7 +40,7 @@ class WindowsTest < Minitest::Test
40
40
 
41
41
  assert browser.platform.windows?
42
42
  assert browser.platform.windows_xp?
43
- assert_equal browser.platform.version, "5.1"
43
+ assert_equal "5.1", browser.platform.version
44
44
  assert browser.platform.windows?(["=5.1"])
45
45
  end
46
46
 
@@ -50,7 +50,7 @@ class WindowsTest < Minitest::Test
50
50
  assert browser.platform.windows?
51
51
  assert browser.platform.windows_xp?
52
52
  assert browser.platform.windows_x64?
53
- assert_equal browser.platform.version, "5.2"
53
+ assert_equal "5.2", browser.platform.version
54
54
  assert browser.platform.windows?(["=5.2"])
55
55
  end
56
56
 
@@ -59,7 +59,7 @@ class WindowsTest < Minitest::Test
59
59
 
60
60
  assert browser.platform.windows?
61
61
  assert browser.platform.windows_vista?
62
- assert_equal browser.platform.version, "6.0"
62
+ assert_equal "6.0", browser.platform.version
63
63
  assert browser.platform.windows?(["=6.0"])
64
64
  end
65
65
 
@@ -68,7 +68,7 @@ class WindowsTest < Minitest::Test
68
68
 
69
69
  assert browser.platform.windows?
70
70
  assert browser.platform.windows7?
71
- assert_equal browser.platform.version, "6.1"
71
+ assert_equal "6.1", browser.platform.version
72
72
  assert browser.platform.windows?(["=6.1"])
73
73
  end
74
74
 
@@ -78,7 +78,7 @@ class WindowsTest < Minitest::Test
78
78
  assert browser.platform.windows?
79
79
  assert browser.platform.windows8?
80
80
  refute browser.platform.windows8_1?
81
- assert_equal browser.platform.version, "6.2"
81
+ assert_equal "6.2", browser.platform.version
82
82
  assert browser.platform.windows?(["=6.2"])
83
83
  end
84
84
 
@@ -88,7 +88,7 @@ class WindowsTest < Minitest::Test
88
88
  assert browser.platform.windows?
89
89
  assert browser.platform.windows8?
90
90
  assert browser.platform.windows8_1?
91
- assert_equal browser.platform.version, "6.3"
91
+ assert_equal "6.3", browser.platform.version
92
92
  assert browser.platform.windows?(["=6.3"])
93
93
  end
94
94
 
@@ -97,7 +97,7 @@ class WindowsTest < Minitest::Test
97
97
 
98
98
  assert browser.platform.windows?
99
99
  assert browser.platform.windows10?
100
- assert_equal browser.platform.version, "10.0"
100
+ assert_equal "10.0", browser.platform.version
101
101
  assert browser.platform.windows?(["=10.0"])
102
102
  end
103
103
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-meta
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rack-test
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -166,27 +152,28 @@ dependencies:
166
152
  version: '0'
167
153
  description: Do some browser detection with Ruby.
168
154
  email:
169
- - fnando.vieira@gmail.com
155
+ - me@fnando.com
170
156
  executables: []
171
157
  extensions: []
172
158
  extra_rdoc_files: []
173
159
  files:
160
+ - ".github/FUNDING.yml"
174
161
  - ".github/ISSUE_TEMPLATE.md"
175
- - ".github/workflows/tests.yml"
162
+ - ".github/workflows/ruby-tests.yml"
176
163
  - ".gitignore"
177
164
  - ".prettierignore"
178
165
  - ".rubocop.yml"
179
166
  - CHANGELOG.md
180
- - FUNDING.yml
181
167
  - Gemfile
168
+ - LICENSE.md
182
169
  - README.md
183
170
  - Rakefile
184
171
  - bot_exceptions.yml
185
172
  - bots.yml
186
173
  - browser.gemspec
187
174
  - config.ru
188
- - gemfiles/rails6_0.gemfile
189
- - gemfiles/rails6_1.gemfile
175
+ - gemfiles/7_0.gemfile
176
+ - gemfiles/7_1.gemfile
190
177
  - languages.yml
191
178
  - lib/browser.rb
192
179
  - lib/browser/accept_language.rb
@@ -344,6 +331,7 @@ homepage: https://github.com/fnando/browser
344
331
  licenses:
345
332
  - MIT
346
333
  metadata:
334
+ rubygems_mfa_required: 'true'
347
335
  changelog_uri: https://github.com/fnando/browser/blob/main/CHANGELOG.md
348
336
  post_install_message:
349
337
  rdoc_options: []
@@ -353,68 +341,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
353
341
  requirements:
354
342
  - - ">="
355
343
  - !ruby/object:Gem::Version
356
- version: 2.5.0
344
+ version: 3.2.0
357
345
  required_rubygems_version: !ruby/object:Gem::Requirement
358
346
  requirements:
359
347
  - - ">="
360
348
  - !ruby/object:Gem::Version
361
349
  version: '0'
362
350
  requirements: []
363
- rubygems_version: 3.2.3
351
+ rubygems_version: 3.5.16
364
352
  signing_key:
365
353
  specification_version: 4
366
354
  summary: Do some browser detection with Ruby.
367
- test_files:
368
- - test/browser_test.rb
369
- - test/middleware_test.rb
370
- - test/rails_test.rb
371
- - test/sample_app.rb
372
- - test/test_helper.rb
373
- - test/ua.yml
374
- - test/ua_bots.yml
375
- - test/ua_search_engines.yml
376
- - test/unit/accept_language_test.rb
377
- - test/unit/adobe_air_test.rb
378
- - test/unit/aliases_test.rb
379
- - test/unit/alipay_test.rb
380
- - test/unit/android_app_test.rb
381
- - test/unit/android_test.rb
382
- - test/unit/blackberry_test.rb
383
- - test/unit/bots_test.rb
384
- - test/unit/chrome_test.rb
385
- - test/unit/console_test.rb
386
- - test/unit/device_test.rb
387
- - test/unit/duck_duck_go_test.rb
388
- - test/unit/edge_test.rb
389
- - test/unit/electron_test.rb
390
- - test/unit/facebook_test.rb
391
- - test/unit/firefox_test.rb
392
- - test/unit/generic_test.rb
393
- - test/unit/google_search_app_test.rb
394
- - test/unit/huawei_browser_test.rb
395
- - test/unit/instagram_test.rb
396
- - test/unit/internet_explorer_test.rb
397
- - test/unit/ios_app_test.rb
398
- - test/unit/ios_test.rb
399
- - test/unit/kai_os_test.rb
400
- - test/unit/kindle_test.rb
401
- - test/unit/maxthon_test.rb
402
- - test/unit/meta_test.rb
403
- - test/unit/micro_messenger_test.rb
404
- - test/unit/miui_browser_test.rb
405
- - test/unit/nokia_test.rb
406
- - test/unit/opera_test.rb
407
- - test/unit/otter_test.rb
408
- - test/unit/platform_test.rb
409
- - test/unit/proxy_test.rb
410
- - test/unit/qq_test.rb
411
- - test/unit/safari_test.rb
412
- - test/unit/samsung_browser_test.rb
413
- - test/unit/snapchat_test.rb
414
- - test/unit/sougou_browser_test.rb
415
- - test/unit/sputnik_test.rb
416
- - test/unit/uc_browser_test.rb
417
- - test/unit/weibo_test.rb
418
- - test/unit/windows_phone_test.rb
419
- - test/unit/windows_test.rb
420
- - test/unit/yandex_test.rb
355
+ test_files: []