gardener 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gardener.rb +3 -4
- metadata +2 -2
data/lib/gardener.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
module Gardener
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
|
5
4
|
def self.included(base)
|
6
5
|
base.extend(ClassMethods)
|
7
6
|
end
|
@@ -33,7 +32,7 @@ module Gardener
|
|
33
32
|
@abra = []
|
34
33
|
str = ''
|
35
34
|
File.open(garden_path, 'r').each_line do |line|
|
36
|
-
if line.match
|
35
|
+
if line.match /^---/
|
37
36
|
@abra << str
|
38
37
|
str = ''
|
39
38
|
end
|
@@ -46,7 +45,7 @@ module Gardener
|
|
46
45
|
def reap
|
47
46
|
str = ''
|
48
47
|
File.open(garden_path, 'r').each_line do |line|
|
49
|
-
if line.match
|
48
|
+
if line.match /^---/
|
50
49
|
sprout(str)
|
51
50
|
str = ''
|
52
51
|
end
|