browser_detector 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ = 1.0.1 2010-02-04
2
+
3
+ * Added resolution methods for unknown browser type.
4
+
5
+
1
6
  = 1.0.0 2009-10-19
2
7
 
3
8
  * Initial release.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{browser_detector}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["C. Jason Harrelson (midas)"]
12
- s.date = %q{2010-02-03}
12
+ s.date = %q{2010-02-04}
13
13
  s.description = %q{Determines the name and version of the browser currently making a request.}
14
14
  s.email = %q{jason@lookforwardenterprises.com}
15
15
  s.extra_rdoc_files = [
@@ -5,7 +5,7 @@ require 'browser_detector/detector'
5
5
  require 'browser_detector/rails/view_helpers'
6
6
 
7
7
  module BrowserDetector
8
- VERSION = '1.0.0'
8
+ VERSION = '1.0.1'
9
9
  end
10
10
 
11
11
  ActionView::Base.send( :include, BrowserDetector::Rails::ViewHelpers ) if defined?( ActionView )
@@ -214,6 +214,10 @@ module BrowserDetector
214
214
  end
215
215
  end
216
216
 
217
+ def resolve_version_for_unknown
218
+ '0'
219
+ end
220
+
217
221
  def browser_full_name_for_ie
218
222
  "Internet Explorer #{browser_version}"
219
223
  end
@@ -229,5 +233,9 @@ module BrowserDetector
229
233
  def browser_full_name_for_safari
230
234
  "Safari #{browser_version}"
231
235
  end
236
+
237
+ def browser_full_name_for_unknown
238
+ ""
239
+ end
232
240
  end
233
241
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_detector
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson (midas)
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-03 00:00:00 -06:00
12
+ date: 2010-02-04 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency