named_seeds 1.0.3 → 1.0.4

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.
@@ -1,4 +1,9 @@
1
1
 
2
+ ### v1.0.4
3
+
4
+ * Make `db:development:seed` automatic based on Rails `db:setup` convention.
5
+
6
+
2
7
  ### v1.0.3
3
8
 
4
9
  * Slacker rails dep version. 3.1 or up.
data/README.md CHANGED
@@ -36,9 +36,11 @@ Use the `NamedSeeds.identify` method to give a name to the identity used for thi
36
36
 
37
37
  ### Rake Files
38
38
 
39
+ **Using these tasks manually should not be needed as both are hooked into the proper `test:prepare` and `db:setup` process for you.**
40
+
39
41
  NamedSeeds includes two rake tasks. The `db:test:seeds` is the one that does all the work and is automatically called after Rails' `test:prepare` for you. So running your rake test tasks will create your test database and seed it for you automatically before your tests run.
40
42
 
41
- The other task is `db:development:seed`. This task invokes the normal Rails' `db:seed` task, then loads the db/test/seeds.rb file while still in development mode. This second task provides a way for a developer to populate their development database with the same fixture story used for testing. This makes for easy adoptoin and learning your application as the test story is a 1 to 1 mapping of data in local development.
43
+ The other task is `db:development:seed`. This task invokes the normal Rails' `db:seed` task, then loads the db/test/seeds.rb file while still in development mode. We automatically call this task after `db:setup` for you. This task provides a way for a developer to populate their development database with the same fixture story used for testing. This makes it easy for developers to learn your application as the test story is a 1 to 1 mapping of data in local development.
42
44
 
43
45
  ```shell
44
46
  $ rake db:test:seed # Run the seed data from db/test/seeds.rb and
@@ -23,4 +23,5 @@ namespace :db do
23
23
 
24
24
  end
25
25
 
26
+ task 'db:setup' => 'db:development:seed'
26
27
  task 'test:prepare' => 'db:test:seed'
@@ -1,3 +1,3 @@
1
1
  module NamedSeeds
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: named_seeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: