useragent2css 1.3 → 1.3.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.
- checksums.yaml +8 -8
- data/lib/useragent2css.rb +1 -1
- data/lib/useragent2css/version.rb +1 -1
- data/spec/useragent2css_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWMxOGQ1MDVkMDY1NGE2YWIwMzc2NDM2OWFmZDVjZmIyNTliMDRiNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzAyYTgyYTMzNDViMGI2ZDU5ODU2ZDNiODUyNDIxMDZmMGFhMTI2OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjMzY2Q4NDBkN2JjZDBiNTdkYmM4YjYxMmRiYjcyOTkyOTA3Zjc2MjhlYTJj
|
10
|
+
MDQ1OTUwY2YxNGY3NTg1MTRmNDE5NGMzNTJkYmEyMjQ4ZGI2NDZhMzQ5NGRi
|
11
|
+
Y2MwYmQzNjg4ZWU3ZTU2Y2JjNTM2ZWIzMTk4ZTk0ZjlmOGNlMTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWIyODA2YjEwMjU1NzgzMTA2N2UzZDA0M2EwMjVlMWQ5YzVmN2RhZGU3MmU2
|
14
|
+
MWVlYTg5ZmMwMjFiMzlhN2QyZTUyNmY5OTgzOGQzYWJjMjA5MGFjZGE1MDNk
|
15
|
+
MWE4OWNhZTZkNGI1N2U5MzhlNmUzY2U0ZGUyNGZhZjdkMWIwZWI=
|
data/lib/useragent2css.rb
CHANGED
@@ -10,7 +10,7 @@ module UserAgent
|
|
10
10
|
o << "mobile" if ua.include?('mini')
|
11
11
|
o.join(" ")
|
12
12
|
when /webtv/ ; "gecko"
|
13
|
-
when /msie (\d)/ ;
|
13
|
+
when /msie (\d+)/ ; "ie ie#{$1}"
|
14
14
|
when /rv\:(\d\d)\./ ; "gecko ie#{$1}"
|
15
15
|
when %r{firefox/2} ; "gecko ff2"
|
16
16
|
when %r{firefox/3.5} ; "gecko ff3 ff3_5"
|
data/spec/useragent2css_spec.rb
CHANGED
@@ -145,6 +145,7 @@ describe UserAgent do
|
|
145
145
|
it "msie" do
|
146
146
|
assert_browser_strings({
|
147
147
|
"Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" => "gecko ie11 win",
|
148
|
+
"mozilla/5.0 (compatible; msie 10.0; windows nt 6.2; trident/6.0)" => "ie ie10 win",
|
148
149
|
"mozilla/4.0 (compatible; msie 8.0; windows nt 5.1; trident/4.0; mozilla/4.0 (compatible; msie 6.0; windows nt 5.1; sv1) ; .net clr 1.1.4322; .net clr 2.0.50727; .net clr 3.0.4506.2152; .net clr 3.5.30729; officeliveconnector.1.4; officelivepatch.1.3)" => "ie ie8 win",
|
149
150
|
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.2; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)" => "ie ie8 win",
|
150
151
|
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; Media Center PC 6.0; InfoPath.2; MS-RTC LM 8)" => "ie ie8 win",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: useragent2css
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lawrence Pit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|