data_seeder 1.0.5 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -0
  3. data/Rakefile +0 -1
  4. data/app/models/data_seeder/seed_file.rb +7 -3
  5. data/db/migrate/20150306195118_create_data_seeder_seed_files.rb +1 -1
  6. data/lib/data_seeder.rb +1 -0
  7. data/lib/data_seeder/config.rb +3 -1
  8. data/lib/data_seeder/loader.rb +22 -8
  9. data/lib/data_seeder/version.rb +1 -1
  10. data/test/dummy/config/environments/test.rb +3 -0
  11. data/test/dummy/db/migrate/20150313022149_create_countries.rb +1 -1
  12. data/test/dummy/db/migrate/20150313022228_create_states.rb +1 -1
  13. data/test/dummy/db/migrate/20150313172634_create_apps.rb +1 -1
  14. data/test/dummy/db/migrate/20150313172719_create_app_errors.rb +1 -1
  15. data/test/dummy/db/schema.rb +5 -8
  16. data/test/models/data_seeder/loader_test.rb +25 -0
  17. data/test/models/data_seeder_test.rb +2 -32
  18. data/test/support/seed_helper.rb +32 -0
  19. data/test/test_helper.rb +7 -5
  20. metadata +28 -57
  21. data/test/dummy/db/development.sqlite3 +0 -0
  22. data/test/dummy/db/test.sqlite3 +0 -0
  23. data/test/dummy/log/development.log +0 -165
  24. data/test/dummy/log/test.log +0 -325802
  25. data/test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.cfg +0 -6
  26. data/test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.txt +0 -249
  27. data/test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.cfg +0 -6
  28. data/test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.txt +0 -0
  29. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.cfg +0 -1
  30. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.csv +0 -1
  31. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.cfg +0 -1
  32. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.csv +0 -51
  33. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.cfg +0 -1
  34. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.csv +0 -51
  35. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.cfg +0 -1
  36. data/test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.csv +0 -51
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 239e84c1f55501280cc7d421ba065c052734ceff
4
- data.tar.gz: 9419b858ae7f39a69d4033f8e8ed7263a5da8f0f
2
+ SHA256:
3
+ metadata.gz: 60e14d08982cc8ac3b51a66974c190b9a1b2f506016547067dc331270993cb76
4
+ data.tar.gz: 711fa93ffcd6cdb2960e37681f8db2edb39d1ccffba0ccb1e7695ee5b5bac693
5
5
  SHA512:
6
- metadata.gz: 29b9e829c052cbb244246caf770dd52fb439ed3af036f99355ba5bfcc1b56842ec0d2fd83c48b239fdbc45b03edc2547c9478d5b47ba4a0935b4bb7e0a651c30
7
- data.tar.gz: f2086ba32bd57d04e7fe1ba1d18100abe22594fee1d3240af6f3ec98ade5cb96d6386ac9ea11d0b2a8c17c09ee103c279704075c5691e6d0f5d84630290877cc
6
+ metadata.gz: 72d53af4e87c879361cfb643b1a19be4a20c366b31df18f8e2e37fdea66b9472dad06d8e01ff9850ca2acb60f6432070e64c9b0be5c7a17a7a6c74ee4dbdf375
7
+ data.tar.gz: edaa2e0177818a63faa8d3ecb630cfed08303da8089be532d57baa8ae9d621d6a83948674e11cd1407f20fbe37b8d0c0821660c9c3b2a3484c93f8a84cf87d07
data/README.md CHANGED
@@ -174,6 +174,10 @@ Defines the ActiveRecord Class if it can't be inferred from the seed file.
174
174
 
175
175
  Proc used for converting a line to attributes.
176
176
 
177
+ #### open_options
178
+
179
+ Options passed to File.open to allow encoding values, etc. (ex: open_options: {encoding: 'ISO-8859-1:UTF-8'})
180
+
177
181
  #### postprocess
178
182
 
179
183
  Modify the attributes from the seed file before applying them to the model.
data/Rakefile CHANGED
@@ -30,5 +30,4 @@ Rake::TestTask.new(:test) do |t|
30
30
  t.verbose = false
31
31
  end
32
32
 
33
-
34
33
  task default: :test
@@ -4,7 +4,7 @@ module DataSeeder
4
4
  class SeedFile < ActiveRecord::Base
5
5
  def self.file_hash
6
6
  @file_hash ||= begin
7
- hash = Hash.new { |hash, path| hash[path] = new(path: path) }
7
+ hash = Hash.new { |h, path| h[path] = new(path: path) }
8
8
  all.each do |seed_file|
9
9
  hash[seed_file.path] = seed_file
10
10
  end
@@ -29,6 +29,10 @@ module DataSeeder
29
29
  self.processed_set.proper_superset?(Array(paths).to_set)
30
30
  end
31
31
 
32
+ def self.reset
33
+ @file_hash = nil
34
+ end
35
+
32
36
  def load
33
37
  new_sha256 = Digest::SHA256.file(path).hexdigest
34
38
  dot_index = path.rindex('.')
@@ -41,7 +45,7 @@ module DataSeeder
41
45
  end
42
46
  begin
43
47
  config[:klass] ||= path_minus_ext.classify.constantize
44
- rescue NameError => e
48
+ rescue NameError => _
45
49
  end
46
50
  ext = File.extname(self.path)[1..-1]
47
51
  return true unless ext
@@ -61,7 +65,7 @@ module DataSeeder
61
65
  return false if depends && !self.class.processed?(depends)
62
66
  DataSeeder.config.logger.info { "Loading #{path}" }
63
67
  DataSeeder.config.log_indent do
64
- File.open(path, 'r') do |io|
68
+ File.open(path, 'r', **(config[:open_options] || {})) do |io|
65
69
  loader.process(io)
66
70
  end
67
71
  self.sha256 = new_sha256
@@ -1,4 +1,4 @@
1
- class CreateDataSeederSeedFiles < ActiveRecord::Migration
1
+ class CreateDataSeederSeedFiles < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :data_seeder_seed_files do |t|
4
4
  t.string :path, null: false
@@ -15,6 +15,7 @@ module DataSeeder
15
15
 
16
16
  def self.reset
17
17
  @config = Config.new
18
+ SeedFile.reset
18
19
  end
19
20
 
20
21
  def self.configure
@@ -1,6 +1,8 @@
1
1
  module DataSeeder
2
2
  class Config
3
- attr_accessor :seed_dirs, :logger, :loaders, :verbose
3
+ attr_accessor :seed_dirs, :verbose
4
+ attr_reader :loaders
5
+ attr_writer :logger
4
6
 
5
7
  def initialize
6
8
  @seed_dirs = ['db/seed'].freeze
@@ -1,10 +1,10 @@
1
1
  module DataSeeder
2
2
  module Loader
3
- attr_reader :seeder_config, :config, :key_attribute, :klass, :path, :path_minus_ext
3
+ attr_reader :config, :logger, :key_attribute, :klass, :path, :path_minus_ext
4
4
 
5
5
  def initialize(config)
6
- @seeder_config = DataSeeder.config
7
6
  @config = default_config.merge(config)
7
+ @logger = @config[:logger] || DataSeeder.config.logger
8
8
  @key_attribute = @config[:key_attribute] || :id
9
9
  @klass = @config[:klass]
10
10
  @path = @config[:path]
@@ -17,14 +17,12 @@ module DataSeeder
17
17
  { purge: true }
18
18
  end
19
19
 
20
- def logger
21
- @seeder_config.logger
22
- end
23
-
24
20
  def process(io)
21
+ call_config(:setup)
25
22
  setup
26
23
  load(io)
27
24
  teardown
25
+ call_config(:teardown)
28
26
  end
29
27
 
30
28
  def setup
@@ -66,7 +64,7 @@ module DataSeeder
66
64
 
67
65
  # Override for applicable loaders
68
66
  def line_number
69
- raise "This loader doesn't suppoert line_number"
67
+ raise "This loader doesn't support line_number"
70
68
  end
71
69
 
72
70
  def save(attr)
@@ -86,6 +84,7 @@ module DataSeeder
86
84
  model = self.klass.find_or_initialize_by(find_hash)
87
85
  model.attributes = attr
88
86
  save_model(model)
87
+ return model
89
88
  end
90
89
 
91
90
  def save_model(model)
@@ -118,7 +117,12 @@ module DataSeeder
118
117
  end
119
118
 
120
119
  def log_indent(&block)
121
- @seeder_config.log_indent(&block)
120
+ # If we used the default logger, then indent, else no-op
121
+ if @logger == DataSeeder.config.logger
122
+ DataSeeder.config.log_indent(&block)
123
+ else
124
+ yield
125
+ end
122
126
  end
123
127
 
124
128
  def call_method(name, *args)
@@ -133,6 +137,16 @@ module DataSeeder
133
137
  end
134
138
  return nil
135
139
  end
140
+
141
+ def call_config(name, *args)
142
+ if val = config[name]
143
+ if val.kind_of?(Proc)
144
+ return val.call(*args)
145
+ else
146
+ return val
147
+ end
148
+ end
149
+ end
136
150
  end
137
151
  end
138
152
 
@@ -1,3 +1,3 @@
1
1
  module DataSeeder
2
- VERSION = '1.0.5'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -39,4 +39,7 @@ Rails.application.configure do
39
39
 
40
40
  config.active_support.test_order = :random
41
41
 
42
+ if Rails.version.to_f >= 5.2 && Rails.version.to_i < 6
43
+ config.active_record.sqlite3.represent_boolean_as_integer = true
44
+ end
42
45
  end
@@ -1,4 +1,4 @@
1
- class CreateCountries < ActiveRecord::Migration
1
+ class CreateCountries < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :countries do |t|
4
4
  t.string :code
@@ -1,4 +1,4 @@
1
- class CreateStates < ActiveRecord::Migration
1
+ class CreateStates < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :states do |t|
4
4
  t.string :code
@@ -1,4 +1,4 @@
1
- class CreateApps < ActiveRecord::Migration
1
+ class CreateApps < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :apps do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateAppErrors < ActiveRecord::Migration
1
+ class CreateAppErrors < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :app_errors do |t|
4
4
  t.references :app, index: true
@@ -1,4 +1,3 @@
1
- # encoding: UTF-8
2
1
  # This file is auto-generated from the current state of the database. Instead
3
2
  # of editing this file, please use the migrations feature of Active Record to
4
3
  # incrementally modify your database, and then regenerate this schema definition.
@@ -15,12 +14,11 @@ ActiveRecord::Schema.define(version: 20150313172719) do
15
14
 
16
15
  create_table "app_errors", force: :cascade do |t|
17
16
  t.integer "app_id"
18
- t.string "code"
19
- t.string "message"
17
+ t.string "code"
18
+ t.string "message"
19
+ t.index ["app_id"], name: "index_app_errors_on_app_id"
20
20
  end
21
21
 
22
- add_index "app_errors", ["app_id"], name: "index_app_errors_on_app_id"
23
-
24
22
  create_table "apps", force: :cascade do |t|
25
23
  t.string "name"
26
24
  end
@@ -31,12 +29,11 @@ ActiveRecord::Schema.define(version: 20150313172719) do
31
29
  end
32
30
 
33
31
  create_table "data_seeder_seed_files", force: :cascade do |t|
34
- t.string "path", null: false
32
+ t.string "path", null: false
35
33
  t.string "sha256", null: false
34
+ t.index ["path"], name: "index_data_seeder_seed_files_on_path", unique: true
36
35
  end
37
36
 
38
- add_index "data_seeder_seed_files", ["path"], name: "index_data_seeder_seed_files_on_path", unique: true
39
-
40
37
  create_table "states", force: :cascade do |t|
41
38
  t.string "code"
42
39
  t.string "name"
@@ -0,0 +1,25 @@
1
+ require 'test_helper'
2
+
3
+ describe DataSeeder::Loader, :model do
4
+ include SeedHelper
5
+
6
+ describe 'allow a configurable logger' do
7
+ before do
8
+ @name = 'test_loader_logger'
9
+ @seed_dirs = setup_seed_dirs(@name, 'states_txt')
10
+ @logfile = Rails.root.join('tmp', "loader_test.log.#{$$}")
11
+ end
12
+
13
+ after do
14
+ cleanup_seed_dir(@name)
15
+ FileUtils.rm(@logfile)
16
+ end
17
+
18
+ it 'should load seed files' do
19
+ loader = DataSeeder::Loader::Txt.new(logger: Logger.new(@logfile))
20
+ loader.logger.info('hello foobar')
21
+ buf = File.read(@logfile)
22
+ assert buf.match(/hello foobar/)
23
+ end
24
+ end
25
+ end
@@ -1,6 +1,8 @@
1
1
  require 'test_helper'
2
2
 
3
3
  describe DataSeeder, :model do
4
+ include SeedHelper
5
+
4
6
  describe 'when run with txt files' do
5
7
  before do
6
8
  @name = 'test.txt'
@@ -161,36 +163,4 @@ describe DataSeeder, :model do
161
163
  assert zulu.app_errors.find_by(code: 'Z1')
162
164
  end
163
165
  end
164
-
165
-
166
- def setup_seed_dirs(name, *dirs)
167
- dir_name = seed_dir_name(name)
168
- FileUtils.mkdir_p(dir_name)
169
- return dirs.map do |dir|
170
- FileUtils.cp_r(Rails.root.join('db', 'seed.test', dir), dir_name)
171
- "#{dir_name}/#{dir}"
172
- end
173
- end
174
-
175
- def cleanup_seed_dir(name)
176
- FileUtils.rm_rf(seed_dir_name(name))
177
- # Reset config stuff
178
- DataSeeder.reset
179
- end
180
-
181
- def modify_seed_file(name, file, &block)
182
- file_name = seed_file_name(name, file)
183
- body = File.read(file_name)
184
- File.open(file_name, 'w') do |f|
185
- f.write yield(body)
186
- end
187
- end
188
-
189
- def seed_dir_name(name)
190
- Rails.root.join('tmp', "db.seed.#{name}.#{$$}")
191
- end
192
-
193
- def seed_file_name(name, file)
194
- File.join(seed_dir_name(name), file)
195
- end
196
166
  end
@@ -0,0 +1,32 @@
1
+ module SeedHelper
2
+ def setup_seed_dirs(name, *dirs)
3
+ dir_name = seed_dir_name(name)
4
+ FileUtils.mkdir_p(dir_name)
5
+ return dirs.map do |dir|
6
+ FileUtils.cp_r(Rails.root.join('db', 'seed.test', dir), dir_name)
7
+ "#{dir_name}/#{dir}"
8
+ end
9
+ end
10
+
11
+ def cleanup_seed_dir(name)
12
+ FileUtils.rm_rf(seed_dir_name(name))
13
+ # Reset config stuff
14
+ DataSeeder.reset
15
+ end
16
+
17
+ def modify_seed_file(name, file, &block)
18
+ file_name = seed_file_name(name, file)
19
+ body = File.read(file_name)
20
+ File.open(file_name, 'w') do |f|
21
+ f.write yield(body)
22
+ end
23
+ end
24
+
25
+ def seed_dir_name(name)
26
+ Rails.root.join('tmp', "db.seed.#{name}.#{$$}")
27
+ end
28
+
29
+ def seed_file_name(name, file)
30
+ File.join(seed_dir_name(name), file)
31
+ end
32
+ end
@@ -1,12 +1,14 @@
1
- ENV["RAILS_ENV"] = "test"
1
+ ENV["RAILS_ENV"] ||= "test"
2
+ require_relative "dummy/config/environment"
2
3
 
3
- require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
4
- #ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
5
- #ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
4
+ # Needed for Dummy test app
5
+ require "minitest/autorun"
6
6
  require "rails/test_help"
7
- require "minitest/rails"
8
7
 
9
8
  # Filter out Minitest backtrace while allowing backtrace from other libraries
10
9
  # to be shown.
11
10
  Minitest.backtrace_filter = Minitest::BacktraceFilter.new
11
+ Rails.backtrace_cleaner.remove_silencers!
12
12
  ActiveRecord::Migration.maintain_test_schema!
13
+
14
+ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_seeder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Pardee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -62,7 +62,6 @@ files:
62
62
  - test/dummy/config/environments/test.rb
63
63
  - test/dummy/config/initializers/backtrace_silencers.rb
64
64
  - test/dummy/config/initializers/inflections.rb
65
- - test/dummy/db/development.sqlite3
66
65
  - test/dummy/db/migrate/20150313022149_create_countries.rb
67
66
  - test/dummy/db/migrate/20150313022228_create_states.rb
68
67
  - test/dummy/db/migrate/20150313172634_create_apps.rb
@@ -82,22 +81,9 @@ files:
82
81
  - test/dummy/db/seed.test/states_yml/states.cfg
83
82
  - test/dummy/db/seed.test/states_yml/states.yml
84
83
  - test/dummy/db/seed.test/zulu_err/zulu.err
85
- - test/dummy/db/test.sqlite3
86
- - test/dummy/log/development.log
87
- - test/dummy/log/test.log
88
- - test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.cfg
89
- - test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.txt
90
- - test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.cfg
91
- - test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.txt
92
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.cfg
93
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.csv
94
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.cfg
95
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.csv
96
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.cfg
97
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.csv
98
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.cfg
99
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.csv
84
+ - test/models/data_seeder/loader_test.rb
100
85
  - test/models/data_seeder_test.rb
86
+ - test/support/seed_helper.rb
101
87
  - test/test_helper.rb
102
88
  homepage: http://github.com/bpardee/data_seeder
103
89
  licenses:
@@ -119,64 +105,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
105
  version: '0'
120
106
  requirements: []
121
107
  rubyforge_project:
122
- rubygems_version: 2.5.1
108
+ rubygems_version: 2.7.6.2
123
109
  signing_key:
124
110
  specification_version: 4
125
111
  summary: Seed your Rails database
126
112
  test_files:
113
+ - test/dummy/app/models/state.rb
127
114
  - test/dummy/app/models/app.rb
128
- - test/dummy/app/models/app_error.rb
129
- - test/dummy/app/models/app_error_data_seeder.rb
130
115
  - test/dummy/app/models/country.rb
131
- - test/dummy/app/models/state.rb
116
+ - test/dummy/app/models/app_error_data_seeder.rb
117
+ - test/dummy/app/models/app_error.rb
118
+ - test/dummy/bin/rake
132
119
  - test/dummy/bin/bundle
133
120
  - test/dummy/bin/rails
134
- - test/dummy/bin/rake
135
- - test/dummy/config/application.rb
136
- - test/dummy/config/boot.rb
137
- - test/dummy/config/database.yml
138
- - test/dummy/config/environment.rb
139
121
  - test/dummy/config/environments/development.rb
140
122
  - test/dummy/config/environments/test.rb
123
+ - test/dummy/config/environment.rb
124
+ - test/dummy/config/application.rb
125
+ - test/dummy/config/database.yml
126
+ - test/dummy/config/boot.rb
141
127
  - test/dummy/config/initializers/backtrace_silencers.rb
142
128
  - test/dummy/config/initializers/inflections.rb
143
129
  - test/dummy/config.ru
144
- - test/dummy/db/development.sqlite3
145
- - test/dummy/db/migrate/20150313022149_create_countries.rb
146
- - test/dummy/db/migrate/20150313022228_create_states.rb
147
- - test/dummy/db/migrate/20150313172634_create_apps.rb
148
- - test/dummy/db/migrate/20150313172719_create_app_errors.rb
130
+ - test/dummy/Rakefile
149
131
  - test/dummy/db/schema.rb
150
- - test/dummy/db/seed.test/bar_err/bar.err
151
- - test/dummy/db/seed.test/countries_csv/countries.cfg
152
- - test/dummy/db/seed.test/countries_csv/countries.csv
153
- - test/dummy/db/seed.test/countries_txt/countries.cfg
154
- - test/dummy/db/seed.test/countries_txt/countries.txt
155
- - test/dummy/db/seed.test/foo_err/foo.err
132
+ - test/dummy/db/seed.test/states_yml/states.cfg
133
+ - test/dummy/db/seed.test/states_yml/states.yml
156
134
  - test/dummy/db/seed.test/states_csv/states.csv
135
+ - test/dummy/db/seed.test/foo_err/foo.err
157
136
  - test/dummy/db/seed.test/states_json/states.cfg
158
137
  - test/dummy/db/seed.test/states_json/states.json
138
+ - test/dummy/db/seed.test/bar_err/bar.err
139
+ - test/dummy/db/seed.test/countries_txt/countries.txt
140
+ - test/dummy/db/seed.test/countries_txt/countries.cfg
159
141
  - test/dummy/db/seed.test/states_txt/states.cfg
160
142
  - test/dummy/db/seed.test/states_txt/states.txt
161
- - test/dummy/db/seed.test/states_yml/states.cfg
162
- - test/dummy/db/seed.test/states_yml/states.yml
163
143
  - test/dummy/db/seed.test/zulu_err/zulu.err
164
- - test/dummy/db/test.sqlite3
165
- - test/dummy/log/development.log
166
- - test/dummy/log/test.log
167
- - test/dummy/Rakefile
168
- - test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.cfg
169
- - test/dummy/tmp/db.seed.test.txt.20720/countries_txt/countries.txt
170
- - test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.cfg
171
- - test/dummy/tmp/db.seed.test.txt.20720/states_txt/states.txt
172
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.cfg
173
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5816/states.csv
174
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.cfg
175
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.5907/states.csv
176
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.cfg
177
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7662/states.csv
178
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.cfg
179
- - test/dummy/tmp/db.seed.test.use_line_number_as_id.7690/states.csv
144
+ - test/dummy/db/seed.test/countries_csv/countries.csv
145
+ - test/dummy/db/seed.test/countries_csv/countries.cfg
146
+ - test/dummy/db/migrate/20150313022228_create_states.rb
147
+ - test/dummy/db/migrate/20150313172634_create_apps.rb
148
+ - test/dummy/db/migrate/20150313172719_create_app_errors.rb
149
+ - test/dummy/db/migrate/20150313022149_create_countries.rb
150
+ - test/models/data_seeder/loader_test.rb
180
151
  - test/models/data_seeder_test.rb
152
+ - test/support/seed_helper.rb
181
153
  - test/test_helper.rb
182
- has_rdoc: