planter 0.0.2 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/Rakefile +1 -1
  4. data/lib/planter/version.rb +1 -1
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe6195656eb33a7e774e6f5fb37e6f1dbcf6d7be33230c97605f291201d04de0
4
- data.tar.gz: 68e04cc88dde75734fd06b69e0fd783f8f1849cb9d7f6e73fd33c18814cb1c61
3
+ metadata.gz: bfa1e7b38b742bb8c31851ad06c330d2e7d49992b99b65d7a2237112747aa270
4
+ data.tar.gz: 939d28bdbebd8b62c1e98336ba567fe448fb9483249fd1d4af047aa6e320a3d4
5
5
  SHA512:
6
- metadata.gz: dbcea200bc37aa0d691cc001a918bcafea73a6c37754f83dea3f56867c4cb0773f474d276477c71081c03a5cc83d592b5ff511e745005e3bb17919436943b33a
7
- data.tar.gz: 26f4beb0e5613aedbb6308bcad145a5cd39c20f328fbfa6fb7db0f6bb588128c6c031c014ef00a61d519f246e89eea9e14b05d4126a990fca7235349a9615c9f
6
+ metadata.gz: 167c28a3afd2ae9249812ec60c528aab980380e98f22acd81ed660f6bc3dedeb15ff533935934c01d71f92d7300830342e44c67f86a85c8465c6069ed95565e2
7
+ data.tar.gz: 9faf05d221dc68b52f3e1f0f9c4694b2c84e418361585aa9c69182ccd5d70a40bb33f51332b041b9e510a83460c46bc4a1f13c3ba2d0a2676ec07393ff9076a7
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Planter
2
+ [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fevanthegrayt%2Fplanter%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/evanthegrayt/planter/goto?ref=master)
3
+ [![Gem Version](https://badge.fury.io/rb/planter.svg)](https://badge.fury.io/rb/planter)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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. Currently, associations are assumed to be as `has_many`, so the
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
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  RDoc::Task.new do |rdoc|
13
13
  rdoc.main = 'README.md'
14
- rdoc.rdoc_dir = 'doc'
14
+ rdoc.rdoc_dir = 'docs'
15
15
  rdoc.rdoc_files.include('README.md', 'lib/**/*.rb')
16
16
  end
17
17
 
@@ -3,5 +3,5 @@
3
3
  module Planter
4
4
  ##
5
5
  # Gem version, semantic.
6
- VERSION = '0.0.2'.freeze
6
+ VERSION = '0.0.5'.freeze
7
7
  end
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.2
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: