planter 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23a4116a1fe8a8d499e8522e5d4da4dadd76cb95ba917d54855f36adeaec519f
4
- data.tar.gz: 523fcef8dd453614e4c1045aafd1ae57b54e7b6043c4fac3b3638ef35c577862
3
+ metadata.gz: 65eb2897cfca2aa456d13a8044d6a86ed9b898aced01a3718e4d11f5dc718da1
4
+ data.tar.gz: 2dec806f05018f1bdf1e81282047dba3f049274cf6397aeaa8db55ff7bf8856c
5
5
  SHA512:
6
- metadata.gz: eb5d69e3807c0595c4a149cc0eeb487712a18381d86cad82a9e459ca28a19286c77e35b92820932b9be3ced37563632f7d8a27d1a85bf15c55621895bc5f923b
7
- data.tar.gz: 9d32d66773a92b393fdac8a90a67ca410251588d61270a35ba8a21f8d1afe74963c5ef81702fffc33ffb59674b7fb953029f19d887f17a26bd7a5b7ae3522df3
6
+ metadata.gz: 752f29be613b3ce52fad80262ec500db79176329ac802c44f582375be3304c2435653fea1698ac1475f7da938250833f6807fa4b98f558806594db331024dc21
7
+ data.tar.gz: 46c6632d2faed5ab3ee96a4084de5043dd4312048cd1299dbb45910b537e0f5376b087f80e0e97f5ebc041334876cf47f048bbc8df97e6b052489e5c4bccd8d4
@@ -154,7 +154,7 @@ module Planter
154
154
  # The seeding method specified.
155
155
  #
156
156
  # @return [Symbol]
157
- class_attribute :seeding_method
157
+ class_attribute :seed_method
158
158
 
159
159
  ##
160
160
  # Access the metaclass so we can define public and private class methods.
@@ -208,12 +208,12 @@ module Planter
208
208
  raise ArgumentError, "Must specify :parent_model with :association"
209
209
  end
210
210
 
211
- self.seeding_method = method
211
+ self.seed_method = method
212
212
  self.number_of_records = number_of_records
213
213
  self.model = model || to_s.delete_suffix('Seeder').singularize
214
214
  self.parent_model = parent_model
215
215
  self.association = parent_model && (association || determine_association)
216
- self.csv_file = determine_csv_filename(csv_name) if seeding_method == :csv
216
+ self.csv_file = determine_csv_filename(csv_name) if self.seed_method == :csv
217
217
  self.erb_trim_mode = erb_trim_mode || Planter.config.erb_trim_mode
218
218
  self.unique_columns =
219
219
  case unique_columns
@@ -305,7 +305,7 @@ module Planter
305
305
  end
306
306
 
307
307
  def validate_attributes # :nodoc:
308
- case seeding_method.intern
308
+ case seed_method.intern
309
309
  when :csv
310
310
  contents = ::File.read(csv_file)
311
311
  if csv_file.end_with?('.erb')
@@ -21,7 +21,7 @@ module Planter
21
21
  # Patch version.
22
22
  #
23
23
  # @return [Integer]
24
- PATCH = 13
24
+ PATCH = 14
25
25
 
26
26
  ##
27
27
  # Version as +[MAJOR, MINOR, PATCH]+
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.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Gray