cowtech-rails 2.2.1.0 → 2.2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,6 +61,16 @@ module Cowtech
61
61
 
62
62
  rv.join(" ")
63
63
  end
64
+
65
+ def browser_is?(engine = nil, version = nil, platform = nil)
66
+ self.browser_detect if !@browser
67
+
68
+ rv = true
69
+ rv = rv && (engine == @browser[:engine]) if engine.present?
70
+ rv = rv && (version == @browser[:version]) if version.present?
71
+ rv = rv && (platform == @browser[:platform]) if platform.present?
72
+ rv
73
+ end
64
74
  end
65
75
  end
66
76
  end
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 2
11
11
  MINOR = 2
12
- PATCH = 1
12
+ PATCH = 2
13
13
  BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1.0
4
+ version: 2.2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-15 00:00:00.000000000Z
12
+ date: 2011-10-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cowtech-extensions
16
- requirement: &70255138173700 !ruby/object:Gem::Requirement
16
+ requirement: &70216747912080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70255138173700
24
+ version_requirements: *70216747912080
25
25
  description: A general purpose Rails utility plugin.
26
26
  email: shogun_panda@me.com
27
27
  executables: []