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.
- data/lib/cowtech/extensions.rb +12 -0
- data/lib/cowtech/version.rb +2 -2
- metadata +3 -3
data/lib/cowtech/extensions.rb
CHANGED
@@ -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
|
data/lib/cowtech/version.rb
CHANGED
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
|
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-
|
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.
|
55
|
+
rubygems_version: 1.8.5
|
56
56
|
signing_key:
|
57
57
|
specification_version: 3
|
58
58
|
summary: A general purpose Rails utility plugin.
|