planter 0.0.2 → 0.0.5
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 -4
- data/Rakefile +1 -1
- data/lib/planter/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bfa1e7b38b742bb8c31851ad06c330d2e7d49992b99b65d7a2237112747aa270
|
|
4
|
+
data.tar.gz: 939d28bdbebd8b62c1e98336ba567fe448fb9483249fd1d4af047aa6e320a3d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 167c28a3afd2ae9249812ec60c528aab980380e98f22acd81ed660f6bc3dedeb15ff533935934c01d71f92d7300830342e44c67f86a85c8465c6069ed95565e2
|
|
7
|
+
data.tar.gz: 9faf05d221dc68b52f3e1f0f9c4694b2c84e418361585aa9c69182ccd5d70a40bb33f51332b041b9e510a83460c46bc4a1f13c3ba2d0a2676ec07393ff9076a7
|
data/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Planter
|
|
2
|
+
[](https://actions-badge.atrox.dev/evanthegrayt/planter/goto?ref=master)
|
|
3
|
+
[](https://badge.fury.io/rb/planter)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
2
6
|
> Pre-release version! Anything is subject to change in the near future!
|
|
3
7
|
|
|
4
8
|
Seeds for Rails applications can get complicated fast, and Rails doesn't provide
|
|
@@ -13,6 +17,8 @@ Features include:
|
|
|
13
17
|
- Control the number of records being created.
|
|
14
18
|
- Seed associations.
|
|
15
19
|
|
|
20
|
+
You can view the documentation [here](https://evanthegrayt.github.io/planter/).
|
|
21
|
+
|
|
16
22
|
## Installation
|
|
17
23
|
Add this line to your application's Gemfile:
|
|
18
24
|
|
|
@@ -143,9 +149,7 @@ end
|
|
|
143
149
|
Note that specifying `number_of_records` in this instance will create that many
|
|
144
150
|
records *for each record of the parent model*. You can also specify the
|
|
145
151
|
association if it's different from the table name, using the `assocation:`
|
|
146
|
-
option.
|
|
147
|
-
association is plural by default. Any help with making this more heuristically
|
|
148
|
-
complete would be welcome.
|
|
152
|
+
option.
|
|
149
153
|
|
|
150
154
|
### Custom seeds
|
|
151
155
|
To write your own custom seeds, just overload the `seed` method and do whatever
|
|
@@ -154,7 +158,7 @@ you need to do.
|
|
|
154
158
|
```ruby
|
|
155
159
|
class UsersSeeder < Planter::Seeder
|
|
156
160
|
USERS = {
|
|
157
|
-
'test1@example.com' => { username: 'John Smith' }
|
|
161
|
+
'test1@example.com' => { username: 'John Smith' },
|
|
158
162
|
'test2@example.com' => { username: 'Jane Smith' }
|
|
159
163
|
}
|
|
160
164
|
|
data/Rakefile
CHANGED
data/lib/planter/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: planter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Evan Gray
|
|
@@ -54,6 +54,7 @@ metadata:
|
|
|
54
54
|
allowed_push_host: https://rubygems.org
|
|
55
55
|
homepage_uri: https://github.com/evanthegrayt/planter
|
|
56
56
|
source_code_uri: https://github.com/evanthegrayt/planter
|
|
57
|
+
documentation_uri: https://evanthegrayt.github.io/planter/
|
|
57
58
|
post_install_message:
|
|
58
59
|
rdoc_options: []
|
|
59
60
|
require_paths:
|