gardener 1.1.3 → 1.1.4
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/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
|