seedbank 0.4.0.pre → 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.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/seedbank/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c3ba57609267657c1c16f55b5e2de397c104487
|
4
|
+
data.tar.gz: 0f2fde06d7f9288761c22607739677558065a1f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8e3cf1e8ace47e20bb827fd6f67a6037ec3c2f2b32a85b64dd3909b53e4c6640f32f2d9bbcb3c2e2227666dd25451eb85915d55309334b2cb46e6062572a933
|
7
|
+
data.tar.gz: 4d91e63092b1acceb133552a223f0669b94875710dec4639bca7ae67001de201491cd67521bb1941c42f29915cd8a074ee04433b79082209450e189137dd7eec
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Seedbank
|
|
3
3
|
|
4
4
|
Seedbank allows you to structure your Rails seed data instead of having it all dumped into one large file. I find my seed data tended to fall into two categories:
|
5
5
|
|
6
|
-
1. Stuff that the entire application requires.
|
6
|
+
1. Stuff that the entire application requires.
|
7
7
|
2. Stuff to populate my development and staging environments.
|
8
8
|
|
9
9
|
Seedbank assumes that your common seed data is kept under db/seeds and any directories under `db/seeds/` are specific to an environment, so `db/seeds/development` contains all your **development-only** seed data.
|
@@ -32,7 +32,6 @@ This would generate the following Rake tasks
|
|
32
32
|
rake db:seed:common # Load the seed data from db/seeds.rb and db/seeds/*.seeds.rb.
|
33
33
|
rake db:seed:development # Load the seed data from db/seeds.rb, db/seeds/*.seeds.rb and db/seeds/development/*.seeds.rb.
|
34
34
|
rake db:seed:development:users # Load the seed data from db/seeds/development/users.seeds.rb
|
35
|
-
rake db:seed:foo # Load the seed data from db/seeds/foo.seeds.rb
|
36
35
|
rake db:seed:original # Load the seed data from db/seeds.rb
|
37
36
|
|
38
37
|
Therefore, assuming `RAILS_ENV` is not set or it is "development":
|
@@ -41,12 +40,16 @@ Therefore, assuming `RAILS_ENV` is not set or it is "development":
|
|
41
40
|
|
42
41
|
will load the seeds in `db/seeds.rb`, `db/seeds/bar.seeds.rb`, `db/seeds/foo.seeds.rb` and `db/seeds/development/users.seeds.rb`. Whereas, setting the `RAILS_ENV` variable, like so:
|
43
42
|
|
44
|
-
$ RAILS_ENV=production db:seed
|
43
|
+
$ RAILS_ENV=production rake db:seed
|
45
44
|
|
46
45
|
will load the seeds in `db/seeds.rb`, `db/seeds/bar.seeds.rb` and `db/seeds/foo.seeds.rb`.
|
47
46
|
|
48
47
|
Installation
|
49
48
|
============
|
49
|
+
### Rails 5.x
|
50
|
+
|
51
|
+
Seedbank has not been updated to work with Rails 5. I've not tested it with 5.x and am working on a new version specifically for 5.x. That said, I believe some
|
52
|
+
people are using it with no problems.
|
50
53
|
|
51
54
|
### Rails 3.x and 4.x
|
52
55
|
|
@@ -69,7 +72,7 @@ config.gem 'seedbank'
|
|
69
72
|
Install the gem:
|
70
73
|
|
71
74
|
$ rake gems:install
|
72
|
-
|
75
|
+
|
73
76
|
Or, if you're using Bundler:
|
74
77
|
|
75
78
|
$ bundle install
|
@@ -182,4 +185,4 @@ Note on Patches/Pull Request
|
|
182
185
|
|
183
186
|
Copyright
|
184
187
|
=========
|
185
|
-
Copyright (c) 2011 James McCarthy, released under the MIT license
|
188
|
+
Copyright (c) 2011-2015 James McCarthy, released under the MIT license
|
data/lib/seedbank/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seedbank
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.0
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James McCarthy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: 1.2.0
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Extends Rails seeds to split out complex seeds into their own file and have
|