sugarcube 0.18.19 → 0.18.20
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module SugarCube
|
|
27
27
|
#
|
28
28
|
# Divide by 3600.0 to get number of hours duration.
|
29
29
|
def self.parse_duration(date_string)
|
30
|
-
detect(date_string).first.duration
|
30
|
+
detect(date_string).first.send(:duration)
|
31
31
|
end
|
32
32
|
|
33
33
|
# Parse a date into a raw match array for further processing
|
@@ -56,11 +56,11 @@ class String
|
|
56
56
|
def to_date
|
57
57
|
SugarCube::DateParser.parse_date(self)
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
def to_timezone
|
61
61
|
SugarCube::DateParser.parse_timezone(self)
|
62
62
|
end
|
63
|
-
|
63
|
+
|
64
64
|
def to_duration
|
65
65
|
SugarCube::DateParser.parse_duration(self)
|
66
66
|
end
|
data/lib/sugarcube/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sugarcube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-03-
|
16
|
+
date: 2013-03-09 00:00:00.000000000 Z
|
17
17
|
dependencies: []
|
18
18
|
description: ! '== Description
|
19
19
|
|
@@ -213,3 +213,4 @@ test_files:
|
|
213
213
|
- spec/uiview_attr_updates_spec.rb
|
214
214
|
- spec/uiview_spec.rb
|
215
215
|
- spec/unholy_spec.rb
|
216
|
+
has_rdoc:
|