seedbed 0.3.0 → 0.4.0

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/seedbed.rb +8 -5
  3. data/seedbed.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.4.0
data/lib/seedbed.rb CHANGED
@@ -1,12 +1,15 @@
1
1
  class SeedBed
2
2
 
3
- @@debug = false
4
-
5
-
3
+ @@debug = true
4
+ attr_accessor :path
6
5
 
7
6
  def plant( file )
8
- puts "Loading #{File.expand_path("db/seeds/#{file.to_s}.rb")}" if SeedBed.debug
9
- require File.expand_path("db/seeds/#{file.to_s}.rb")
7
+ @path = "db/seeds"
8
+ yield self if block_given?
9
+ expanded_path = File.expand_path("#{@path}/#{file.to_s}.rb")
10
+ puts "Growing #{expanded_path}" if SeedBed.debug
11
+ require expanded_path
12
+
10
13
  end
11
14
 
12
15
  def self.message( msg )
data/seedbed.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{seedbed}
8
- s.version = "0.3.0"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Spencer Markowski", "The Able Few"]
12
- s.date = %q{2010-12-30}
12
+ s.date = %q{2011-01-01}
13
13
  s.description = %q{Manage seeds in individual files in db/seeds/}
14
14
  s.email = %q{spencer.markowski@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seedbed
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Spencer Markowski
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-12-30 00:00:00 -05:00
19
+ date: 2011-01-01 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency