detect_browser_os 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -22,3 +22,6 @@ pkg
22
22
 
23
23
  # generated gem files
24
24
  *.gem
25
+
26
+ # Bundler files
27
+ Gemfile.lock
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
23
+ s.add_development_dependency(%q<rake>, ["0.9.2.2"])
23
24
  end
@@ -30,7 +30,7 @@ def detect_browser(user_agent = request.user_agent)
30
30
  o << "mobile" if ua.include?('mini')
31
31
  o.join(" ")
32
32
  when /webtv/ ; "gecko"
33
- when /msie (\d)/ ; "ie ie#{$1}"
33
+ when /msie (\d+)/ ; "ie ie#{$1}"
34
34
  when %r{firefox/3.5} ; "gecko ff3 ff3_5"
35
35
  when %r{firefox} ; "gecko ff#{(ua.match(/firefox\/(\d+)/) || ['',''])[1]}"
36
36
  when /konqueror/ ; "konqueror"
@@ -45,5 +45,6 @@ def detect_browser(user_agent = request.user_agent)
45
45
  end
46
46
  o.join(" ")
47
47
  when /gecko/, /mozilla/ ; "gecko"
48
+ else ""
48
49
  end
49
50
  end
@@ -1,3 +1,3 @@
1
1
  module DetectBrowserOs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,46 +1,46 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: detect_browser_os
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ryan Sonnek
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-12 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: thoughtbot-shoulda
16
+ requirement: &2174508740 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
22
23
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: *2174508740
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &2174508220 !ruby/object:Gem::Requirement
24
28
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
29
+ requirements:
30
+ - - =
31
+ - !ruby/object:Gem::Version
32
+ version: 0.9.2.2
32
33
  type: :development
33
- version_requirements: *id001
34
- description: add css classes to your markup based on the end users browser and operating system.
35
- email:
34
+ prerelease: false
35
+ version_requirements: *2174508220
36
+ description: add css classes to your markup based on the end users browser and operating
37
+ system.
38
+ email:
36
39
  - ryan@codecrate.com
37
40
  executables: []
38
-
39
41
  extensions: []
40
-
41
42
  extra_rdoc_files: []
42
-
43
- files:
43
+ files:
44
44
  - .document
45
45
  - .gitignore
46
46
  - Gemfile
@@ -54,37 +54,34 @@ files:
54
54
  - test/test_detect_browser_os.rb
55
55
  homepage: http://github.com/wireframe/detect_browser_os
56
56
  licenses: []
57
-
58
57
  post_install_message:
59
58
  rdoc_options: []
60
-
61
- require_paths:
59
+ require_paths:
62
60
  - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
64
62
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ segments:
70
68
  - 0
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
69
+ hash: 3798864389589754663
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ segments:
79
77
  - 0
80
- version: "0"
78
+ hash: 3798864389589754663
81
79
  requirements: []
82
-
83
80
  rubyforge_project: detect_browser_os
84
- rubygems_version: 1.8.5
81
+ rubygems_version: 1.8.15
85
82
  signing_key:
86
83
  specification_version: 3
87
84
  summary: detect end users browser and operating system.
88
- test_files:
85
+ test_files:
89
86
  - test/helper.rb
90
87
  - test/test_detect_browser_os.rb