seedbank 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -49,7 +49,9 @@ Installation
49
49
 
50
50
  Add the seedbank gem to your Gemfile. In Gemfile:
51
51
 
52
- gem "seedbank"
52
+ ```ruby
53
+ gem "seedbank"
54
+ ```
53
55
 
54
56
  That's it!
55
57
 
@@ -57,16 +59,20 @@ That's it!
57
59
 
58
60
  Add to your config/environment.rb
59
61
 
60
- config.gem 'seedbank'
62
+ ```ruby
63
+ config.gem 'seedbank'
64
+ ```
61
65
 
62
66
  Install the gem;
63
67
 
64
68
  $ rake gems:install
65
69
 
66
- Then in the bottom of your applications Rakefile:
70
+ Then in the bottom of your application's Rakefile:
67
71
 
68
- require 'seedbank'
69
- Seedbank.load_tasks if defined?(Seedbank)
72
+ ```ruby
73
+ require 'seedbank'
74
+ Seedbank.load_tasks if defined?(Seedbank)
75
+ ```
70
76
 
71
77
  If you vendor the gem you'll need to change the require to the specific path.
72
78
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/rdoctask'
5
5
  desc 'Default: run unit tests.'
6
6
  task :default => :test
7
7
 
8
- desc 'Test the seedbank plugin.'
8
+ desc 'Test the seedbank gem.'
9
9
  Rake::TestTask.new(:test) do |t|
10
10
  t.libs << 'lib'
11
11
  t.libs << 'test'
@@ -13,7 +13,7 @@ Rake::TestTask.new(:test) do |t|
13
13
  t.verbose = true
14
14
  end
15
15
 
16
- desc 'Generate documentation for the seedbank plugin.'
16
+ desc 'Generate documentation for the seedbank gem.'
17
17
  Rake::RDocTask.new(:rdoc) do |rdoc|
18
18
  rdoc.rdoc_dir = 'rdoc'
19
19
  rdoc.title = 'Seedbank'
data/lib/seedbank/dsl.rb CHANGED
@@ -15,7 +15,7 @@ module Seedbank
15
15
  scopes = File.dirname(relative_root).gsub(/^\./, '').split('/').unshift('seed')
16
16
  fq_name = scopes.push(File.basename(seed_file, '.seeds.rb')).join(':')
17
17
 
18
- args = { fq_name => 'db:abort_if_pending_migrations' }
18
+ args = Rake::Task.task_defined?('db:abort_if_pending_migrations') ? { fq_name => 'db:abort_if_pending_migrations' } : fq_name
19
19
  task = Rake::Task.define_task(args) { load(seed_file) if File.exist?(seed_file) }
20
20
  task.add_description "Load the seed data from #{seed_file}"
21
21
  fq_name
@@ -1,3 +1,3 @@
1
1
  module Seedbank
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,36 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: seedbank
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.8
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 9
10
+ version: 0.0.9
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - James McCarthy
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-03-13 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-03-13 00:00:00 +00:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: test-unit
16
- requirement: &2158196160 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
22
33
  type: :development
23
- prerelease: false
24
- version_requirements: *2158196160
25
- description: ! "\n Extends Rails seeds to split out complex seeds into multiple\n
26
- \ files and lets each environment have it's own seeds.\n "
34
+ version_requirements: *id001
35
+ description: "\n Extends Rails seeds to split out complex seeds into multiple\n files and lets each environment have it's own seeds.\n "
27
36
  email: james2mccarthy@gmail.com
28
37
  executables: []
38
+
29
39
  extensions: []
30
- extra_rdoc_files:
40
+
41
+ extra_rdoc_files:
31
42
  - MIT-LICENSE
32
43
  - README.md
33
- files:
44
+ files:
34
45
  - lib/seedbank/dsl.rb
35
46
  - lib/seedbank/railtie.rb
36
47
  - lib/seedbank/task.rb
@@ -45,37 +56,42 @@ files:
45
56
  - test/seedbank_test.rb
46
57
  - test/test_helper.rb
47
58
  - TODO.txt
59
+ has_rdoc: true
48
60
  homepage: http://github.com/james2m/seedbank
49
61
  licenses: []
50
- post_install_message: ! "\n ================================================================================\n\n
51
- \ Rails 2.x\n ---------\n If you are using Seedbank with Rails 2.x you will need
52
- to place the following at \n the end of your Rakefile so Rubygems can load the
53
- seedbank tasks;\n\n require 'seedbank'\n Seedbank.load_tasks if defined?(Seedbank)\n\n
54
- \ Rails 3.x\n ---------\n Your work here is done!\n\n ================================================================================\n
55
- \ "
56
- rdoc_options:
62
+
63
+ post_install_message: "\n ================================================================================\n\n Rails 2.x\n ---------\n If you are using Seedbank with Rails 2.x you will need to place the following at \n the end of your Rakefile so Rubygems can load the seedbank tasks;\n\n require 'seedbank'\n Seedbank.load_tasks if defined?(Seedbank)\n\n Rails 3.x\n ---------\n Your work here is done!\n\n ================================================================================\n "
64
+ rdoc_options:
57
65
  - --charset=UTF-8
58
- require_paths:
66
+ require_paths:
59
67
  - lib
60
- required_ruby_version: !ruby/object:Gem::Requirement
68
+ required_ruby_version: !ruby/object:Gem::Requirement
61
69
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
78
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ hash: 31
83
+ segments:
84
+ - 1
85
+ - 2
86
+ - 0
71
87
  version: 1.2.0
72
88
  requirements: []
89
+
73
90
  rubyforge_project:
74
- rubygems_version: 1.8.12
91
+ rubygems_version: 1.3.5
75
92
  signing_key:
76
93
  specification_version: 3
77
- summary: Extends Rails seeds to split out complex seeds into their own file and have
78
- different seeds for each environment.
79
- test_files:
94
+ summary: Extends Rails seeds to split out complex seeds into their own file and have different seeds for each environment.
95
+ test_files:
80
96
  - test/seedbank_test.rb
81
97
  - test/test_helper.rb