deep_cloneable 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +5 -11
- data/CHANGELOG.md +113 -1
- data/Gemfile +5 -8
- data/Gemfile.lock +4 -52
- data/LICENSE +1 -1
- data/Rakefile +3 -18
- data/deep_cloneable.gemspec +18 -76
- data/init.rb +2 -0
- data/lib/deep_cloneable.rb +2 -0
- data/lib/deep_cloneable/association_not_found_exception.rb +2 -0
- data/lib/deep_cloneable/deep_clone.rb +19 -6
- data/lib/deep_cloneable/skip_validations.rb +2 -0
- data/lib/deep_cloneable/version.rb +3 -0
- data/readme.md +75 -20
- metadata +9 -35
- data/.document +0 -5
- data/.rubocop.yml +0 -20
- data/.travis.yml +0 -100
- data/VERSION +0 -1
- data/gemfiles/3.1.gemfile +0 -17
- data/gemfiles/3.1.gemfile.lock +0 -86
- data/gemfiles/3.2.gemfile +0 -17
- data/gemfiles/3.2.gemfile.lock +0 -86
- data/gemfiles/4.0.gemfile +0 -17
- data/gemfiles/4.0.gemfile.lock +0 -93
- data/gemfiles/4.1.gemfile +0 -17
- data/gemfiles/4.1.gemfile.lock +0 -93
- data/gemfiles/4.2.gemfile +0 -17
- data/gemfiles/4.2.gemfile.lock +0 -91
- data/gemfiles/5.0.gemfile +0 -16
- data/gemfiles/5.0.gemfile.lock +0 -91
- data/gemfiles/5.1.gemfile +0 -16
- data/gemfiles/5.1.gemfile.lock +0 -91
- data/gemfiles/5.2.gemfile +0 -15
- data/gemfiles/5.2.gemfile.lock +0 -91
- data/gemfiles/6.0.gemfile +0 -15
- data/gemfiles/6.0.gemfile.lock +0 -91
- data/test/database.yml +0 -6
- data/test/models.rb +0 -151
- data/test/schema.rb +0 -156
- data/test/test_deep_cloneable.rb +0 -509
- data/test/test_helper.rb +0 -35
data/test/test_helper.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'yaml'
|
3
|
-
require 'sqlite3'
|
4
|
-
|
5
|
-
gem 'minitest'
|
6
|
-
require 'minitest/autorun'
|
7
|
-
|
8
|
-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
9
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
10
|
-
|
11
|
-
require 'active_record'
|
12
|
-
|
13
|
-
I18n.enforce_available_locales = true
|
14
|
-
|
15
|
-
def load_schema
|
16
|
-
config = YAML.load(IO.read(File.dirname(__FILE__) + '/database.yml'))
|
17
|
-
|
18
|
-
ActiveRecord::Base.logger = if defined?(ActiveSupport::BufferedLogger)
|
19
|
-
ActiveSupport::BufferedLogger.new(File.dirname(__FILE__) + '/debug.log')
|
20
|
-
else
|
21
|
-
ActiveSupport::Logger.new(File.dirname(__FILE__) + '/debug.log')
|
22
|
-
end
|
23
|
-
|
24
|
-
db_adapter = ENV['DB']
|
25
|
-
db_adapter ||= 'sqlite3'
|
26
|
-
|
27
|
-
raise 'No DB Adapter selected. Pass the DB= option to pick one, or install Sqlite or Sqlite3.' if db_adapter.nil?
|
28
|
-
|
29
|
-
ActiveRecord::Base.establish_connection(config[db_adapter])
|
30
|
-
load(File.dirname(__FILE__) + '/schema.rb')
|
31
|
-
end
|
32
|
-
|
33
|
-
load_schema
|
34
|
-
require File.dirname(__FILE__) + '/../init.rb'
|
35
|
-
require 'models'
|