mass_insert 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -20
- data/.travis.yml +17 -10
- data/Appraisals +4 -8
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +0 -6
- data/LICENSE.txt +17 -18
- data/README.md +39 -27
- data/Rakefile +3 -3
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/gemfiles/rails_5.2.gemfile +0 -3
- data/gemfiles/rails_5.2.gemfile.lock +82 -89
- data/gemfiles/{rails_4.gemfile → rails_6.0.gemfile} +1 -4
- data/gemfiles/rails_6.0.gemfile.lock +171 -0
- data/lib/mass_insert/version.rb +1 -1
- data/mass_insert.gemspec +19 -12
- metadata +61 -57
- data/.rspec +0 -1
- data/gemfiles/rails_4.gemfile.lock +0 -147
- data/gemfiles/rails_5.gemfile +0 -10
- data/gemfiles/rails_5.gemfile.lock +0 -162
- data/test/adapters/mysql2/example_test.rb +0 -29
- data/test/adapters/postgresql/example_test.rb +0 -3
- data/test/adapters/sqlite3/example_test.rb +0 -3
- data/test/database.yml.example +0 -20
- data/test/models/kind.rb +0 -2
- data/test/models/post.rb +0 -2
- data/test/models/user.rb +0 -2
- data/test/schema.rb +0 -20
- data/test/support/adapters/mysql2.rb +0 -1
- data/test/support/adapters/postgresql.rb +0 -1
- data/test/support/adapters/sqlite3.rb +0 -1
- data/test/support/shared_examples.rb +0 -90
- data/test/test_helper.rb +0 -36
data/test/test_helper.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'coveralls'
|
2
|
-
Coveralls.wear!
|
3
|
-
|
4
|
-
require 'simplecov'
|
5
|
-
SimpleCov.start
|
6
|
-
|
7
|
-
require 'logger'
|
8
|
-
require 'minitest/autorun'
|
9
|
-
require 'active_record'
|
10
|
-
require 'mass_insert'
|
11
|
-
require 'fileutils'
|
12
|
-
|
13
|
-
adapter = ENV['DATABASE_ADAPTER'] || 'sqlite3'
|
14
|
-
|
15
|
-
FileUtils.mkdir_p('tmp')
|
16
|
-
FileUtils.mkdir_p('log')
|
17
|
-
|
18
|
-
ActiveRecord::Base.logger = Logger.new('log/test.log')
|
19
|
-
ActiveRecord::Base.logger.level = Logger::DEBUG
|
20
|
-
|
21
|
-
database_configuration = YAML.load_file(File.dirname(__FILE__) + '/database.yml')[adapter]
|
22
|
-
ActiveRecord::Base.configurations['test'] = database_configuration
|
23
|
-
ActiveRecord::Base.establish_connection(:test)
|
24
|
-
|
25
|
-
begin
|
26
|
-
ActiveRecord::Base.connection
|
27
|
-
rescue
|
28
|
-
# Ensures database exists.
|
29
|
-
ActiveRecord::Tasks::DatabaseTasks.database_configuration = database_configuration
|
30
|
-
ActiveRecord::Tasks::DatabaseTasks.create_current('test')
|
31
|
-
end
|
32
|
-
|
33
|
-
require File.dirname(__FILE__) + '/schema.rb'
|
34
|
-
|
35
|
-
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each{ |file| require file }
|
36
|
-
Dir[File.dirname(__FILE__) + "/models/**/*.rb"].each{ |file| require file }
|