cowtech-rails 1.1.1.0 → 1.1.2.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,13 +43,7 @@ module Cowtech
43
43
  end
44
44
 
45
45
  def to_boolean
46
- if self.is_a?(TrueClass) then
47
- true
48
- elsif self.is_a?(FalseClass) || self.is_a?(NilClass) then
49
- false
50
- else
51
- self.is_valid_boolean? ? (/^(1|on|true|yes|t|y)$/i.match(self.to_s.strip) != nil) : false
52
- end
46
+ (self.is_a?(TrueClass) || /^(1|on|true|yes|t|y)$/i.match(self.to_s.strip)) ? true : false
53
47
  end
54
48
 
55
49
  def round_to_precision(prec = 2)
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 1
12
- PATCH = 1
12
+ PATCH = 2
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
+ - 2
9
9
  - 0
10
- version: 1.1.1.0
10
+ version: 1.1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Shogun