gardener 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gardener.rb +3 -4
  2. metadata +2 -2
data/lib/gardener.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  module Gardener
2
2
 
3
- yaml_start = /^---/
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 yaml_start
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 yaml_start
48
+ if line.match /^---/
50
49
  sprout(str)
51
50
  str = ''
52
51
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 3
9
- version: 1.1.3
8
+ - 4
9
+ version: 1.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bob Larrick