seedbed 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/seedbed.rb +8 -5
- data/seedbed.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/seedbed.rb
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
class SeedBed
|
2
2
|
|
3
|
-
@@debug =
|
4
|
-
|
5
|
-
|
3
|
+
@@debug = true
|
4
|
+
attr_accessor :path
|
6
5
|
|
7
6
|
def plant( file )
|
8
|
-
|
9
|
-
|
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.
|
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{
|
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:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 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:
|
19
|
+
date: 2011-01-01 00:00:00 -05:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|