cowtech-rails 1.9.0.3 → 1.9.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,12 +74,20 @@ module Cowtech
74
74
  def to_i
75
75
  1
76
76
  end
77
+
78
+ def value
79
+ self
80
+ end
77
81
  end
78
82
 
79
83
  module False
80
84
  def to_i
81
85
  0
82
86
  end
87
+
88
+ def value
89
+ self
90
+ end
83
91
  end
84
92
 
85
93
  module String
@@ -230,6 +238,10 @@ module Cowtech
230
238
  def in_months
231
239
  ((self.year - 1) % 2000) * 12 + self.month
232
240
  end
241
+
242
+ def utc_time
243
+ (self.respond_to?(:utc) ? self : self.to_datetime).utc.to_time
244
+ end
233
245
  end
234
246
  end
235
247
  end
@@ -9,8 +9,8 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 9
12
- PATCH = 0
13
- BUILD = 3
12
+ PATCH = 1
13
+ BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
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: 1.9.0.3
4
+ version: 1.9.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-15 00:00:00.000000000Z
12
+ date: 2011-07-22 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A general purpose Rails utility plugin.
15
15
  email: shogun_panda@me.com
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  requirements: []
54
54
  rubyforge_project:
55
- rubygems_version: 1.8.3
55
+ rubygems_version: 1.8.5
56
56
  signing_key:
57
57
  specification_version: 3
58
58
  summary: A general purpose Rails utility plugin.