planter 0.4.0 → 0.4.1
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/lib/generators/planter/initializer_generator.rb +7 -3
- data/lib/planter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f19b05abd2e689404a6a29a331ca4814ac168989f3d76c20bafe45c1c8ff289d
|
|
4
|
+
data.tar.gz: 6fe99624808e2ae8a3571f67a80b41c52df5bb29c9572d1b31efaa6ba8960134
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a03b774fc3e2a801a65cde51a109893ee23aa00e7b1355fefa3f4d3e23fc68838b3568db423a56a17f3aff742e3e3a31ed98b905ada794e6d200c0a028b23d75
|
|
7
|
+
data.tar.gz: d5fda05a745e0a9bdee2fde2d76d2ccda1c43e4524f4395940d25c5e690da5ba6aa8fdaf4c343f7a844ec9a15a4b90ddcea9ff88d2bb60c8b0dbb3093c2d2214
|
data/README.md
CHANGED
|
@@ -23,7 +23,7 @@ currently a pre-release version, it's recommended to lock it to a specific
|
|
|
23
23
|
version, as breaking changes may occur, even at the minor level.
|
|
24
24
|
|
|
25
25
|
```ruby
|
|
26
|
-
gem 'planter', '0.4.
|
|
26
|
+
gem 'planter', '0.4.1'
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
And then execute:
|
|
@@ -67,11 +67,15 @@ Planter.configure do |config|
|
|
|
67
67
|
|
|
68
68
|
##
|
|
69
69
|
# The directory where the seeders are kept.
|
|
70
|
-
|
|
70
|
+
config.seeders_directory = 'db/seeds'
|
|
71
71
|
|
|
72
72
|
##
|
|
73
73
|
# The directory where CSVs are kept.
|
|
74
|
-
|
|
74
|
+
config.csv_files_directory = 'db/seed_files'
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# When true, don't print output when seeding.
|
|
78
|
+
config.quiet = false
|
|
75
79
|
|
|
76
80
|
##
|
|
77
81
|
# The default trim mode for ERB. Valid modes are:
|
|
@@ -80,7 +84,7 @@ Planter.configure do |config|
|
|
|
80
84
|
# '>' omit newline for lines ending in %>
|
|
81
85
|
# '-' omit blank lines ending in -%>
|
|
82
86
|
# I recommend reading the help documentation for ERB::new()
|
|
83
|
-
|
|
87
|
+
config.erb_trim_mode = nil
|
|
84
88
|
end
|
|
85
89
|
```
|
|
86
90
|
|
|
@@ -27,11 +27,15 @@ module Planter
|
|
|
27
27
|
|
|
28
28
|
##
|
|
29
29
|
# The directory where the seeders are kept.
|
|
30
|
-
|
|
30
|
+
config.seeders_directory = 'db/seeds'
|
|
31
31
|
|
|
32
32
|
##
|
|
33
33
|
# The directory where CSVs are kept.
|
|
34
|
-
|
|
34
|
+
config.csv_files_directory = 'db/seed_files'
|
|
35
|
+
|
|
36
|
+
##
|
|
37
|
+
# When true, don't print output when seeding.
|
|
38
|
+
config.quiet = false
|
|
35
39
|
|
|
36
40
|
##
|
|
37
41
|
# The default trim mode for ERB. Valid modes are:
|
|
@@ -40,7 +44,7 @@ module Planter
|
|
|
40
44
|
# '>' omit newline for lines ending in %>
|
|
41
45
|
# '-' omit blank lines ending in -%>
|
|
42
46
|
# I recommend reading the help documentation for ERB::new()
|
|
43
|
-
|
|
47
|
+
config.erb_trim_mode = nil
|
|
44
48
|
end
|
|
45
49
|
EOF
|
|
46
50
|
end
|
data/lib/planter/version.rb
CHANGED