hobo_support 1.3.0.pre19 → 1.3.0.pre20

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0.pre19
1
+ 1.3.0.pre20
@@ -1,7 +1,7 @@
1
1
  module Generators
2
2
  module HoboSupport
3
3
  EvalTemplate = classy_module do
4
-
4
+
5
5
  private
6
6
  def eval_template(template_name)
7
7
  source = File.expand_path(find_in_source_paths(template_name))
@@ -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')
@@ -39,7 +39,7 @@ class NilClass
39
39
  SafeNil.instance
40
40
  end
41
41
 
42
-
42
+
43
43
  def try(*args)
44
44
  if args.length==0
45
45
  # Hobo style try
@@ -49,7 +49,7 @@ class NilClass
49
49
  nil
50
50
  end
51
51
  end
52
-
52
+
53
53
  end
54
54
 
55
55
 
@@ -10,7 +10,7 @@ module Kernel
10
10
  end
11
11
 
12
12
  class It
13
-
13
+
14
14
  instance_methods.reject { |m| m =~ /^__/ || m.to_s == 'object_id' }.each { |m| undef_method m }
15
15
 
16
16
  def initialize
@@ -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: -1637175954
4
+ hash: -1637108442
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
9
  - 0
10
- - pre19
11
- version: 1.3.0.pre19
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 00:00:00 -04:00
19
+ date: 2010-11-22 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency