hobo_support 1.3.0.pre19 → 1.3.0.pre20
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.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.0.
|
1
|
+
1.3.0.pre20
|
@@ -6,10 +6,10 @@ begin
|
|
6
6
|
|
7
7
|
class << self
|
8
8
|
def parse_with_hobo_fix(s)
|
9
|
-
if s =~ /^\s*\d+\s*(st|nd|rd|th)\s+[a-zA-Z]+(\s+\d+)?\s*$/
|
9
|
+
if s =~ /^\s*\d+\s*(st|nd|rd|th)\s+[a-zA-Z]+(\s+\d+)?\s*$/
|
10
10
|
s = s.sub(/\s*\d+(st|nd|rd|th)/) {|s| s[0..-3]}
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
# Chronic can't parse '1/1/2008 1:00' or '1/1/2008 1:00 PM',
|
14
14
|
# so convert them to '1/1/2008 @ 1:00' and '1/1/2008 @ 1:00 PM'
|
15
15
|
s = s.sub(/^\s*(\d+\/\d+\/\d+)\s+(\d+:\d+.*)/, '\1 @ \2')
|
@@ -21,7 +21,7 @@ When a module is included in a class, it gets a callback on the `included` metho
|
|
21
21
|
alias_method_chain :name, :shouting
|
22
22
|
end
|
23
23
|
end
|
24
|
-
end
|
24
|
+
end
|
25
25
|
|
26
26
|
module M1
|
27
27
|
def self.included(base)
|
@@ -76,7 +76,7 @@ In Ruby we use modules to factor out features that are shared by more than one c
|
|
76
76
|
module M
|
77
77
|
def self.included(base)
|
78
78
|
base.send(:extend, ClassMethods)
|
79
|
-
end
|
79
|
+
end
|
80
80
|
|
81
81
|
module ClassMethods
|
82
82
|
def foo; 123; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hobo_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1637108442
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.3.0.
|
10
|
+
- pre20
|
11
|
+
version: 1.3.0.pre20
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Tom Locke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-22 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|