cowtech-rails 1.1.0.0 → 1.1.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.
@@ -43,8 +43,10 @@ module Cowtech
43
43
  end
44
44
 
45
45
  def to_boolean
46
- if self.is_a?(TrueClass) || self.is_a?(FalseClass) || self.is_a?(NilClass) then
47
- self
46
+ if self.is_a?(TrueClass) then
47
+ true
48
+ elsif self.is_a?(FalseClass) || self.is_a?(NilClass) then
49
+ false
48
50
  else
49
51
  self.is_valid_boolean? ? (/^(1|on|true|yes|t|y)$/i.match(self.to_s.strip) != nil) : false
50
52
  end
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 1
12
- PATCH = 0
12
+ PATCH = 1
13
13
  BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.1.0.0
10
+ version: 1.1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-05 00:00:00 +02:00
18
+ date: 2011-04-06 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21