database_rewinder 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +1 -1
- data/Rakefile +1 -0
- data/database_rewinder.gemspec +2 -1
- data/lib/database_rewinder.rb +1 -1
- data/lib/database_rewinder/active_record_monkey.rb +1 -0
- data/lib/database_rewinder/cleaner.rb +1 -0
- data/lib/database_rewinder/compatibility.rb +1 -0
- data/lib/database_rewinder/dummy_model.rb +1 -0
- data/lib/database_rewinder/multiple_statements_executor.rb +1 -0
- data/lib/database_rewinder/railtie.rb +3 -0
- data/test/active_record_monkey_test.rb +1 -0
- data/test/cleaner_test.rb +1 -0
- data/test/database_rewinder_test.rb +1 -0
- data/test/test_helper.rb +1 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b65d98970a4cf3742c0ea0254aedb60cc3d64260f9b3bbca199bad7880a178aa
|
4
|
+
data.tar.gz: 131690c4430bc96b9fb06d00eaf6474bbe23f9bb038e44f18c00240f5ff9372d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02cdab1001bce6f92944c765d696ee94e6ea2cdddb4ffe9b438a184d62fd0adb8ba9cb2521d1c3a655cfbe52a653ab62f56f3259244cc55ea5f420240aa814be
|
7
|
+
data.tar.gz: 11a8155b683374275680fbb16c03b2d6f5f8af4fa51310e6e05e49b1330f6dbf5ba8793643617085cb6d2765372c61d5ef7a0887639e351554b52492c68e0417
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -23,7 +23,7 @@ This strategy was originally devised and implemented by Shingo Morita (@eudoxa)
|
|
23
23
|
|
24
24
|
## Supported versions
|
25
25
|
|
26
|
-
* ActiveRecord 4.0, 4.1, 4.2, 5.0, 5.1, 5.2 (edge)
|
26
|
+
* ActiveRecord 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0 (edge)
|
27
27
|
|
28
28
|
* Ruby 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6 (trunk)
|
29
29
|
|
data/Rakefile
CHANGED
data/database_rewinder.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# frozen_string_literal: true
|
3
|
+
|
3
4
|
lib = File.expand_path('../lib', __FILE__)
|
4
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = "database_rewinder"
|
8
|
-
spec.version = '0.9.
|
9
|
+
spec.version = '0.9.1'
|
9
10
|
spec.authors = ["Akira Matsuda"]
|
10
11
|
spec.email = ["ronnie@dio.jp"]
|
11
12
|
spec.description = "A minimalist's tiny and ultra-fast database cleaner"
|
data/lib/database_rewinder.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require_relative 'database_rewinder/cleaner'
|
3
2
|
|
4
3
|
module DatabaseRewinder
|
5
4
|
VERSION = Gem.loaded_specs['database_rewinder'].version.to_s
|
@@ -91,4 +90,5 @@ begin
|
|
91
90
|
rescue LoadError
|
92
91
|
DatabaseRewinder.init
|
93
92
|
require_relative 'database_rewinder/active_record_monkey'
|
93
|
+
require_relative 'database_rewinder/cleaner'
|
94
94
|
end
|
@@ -1,10 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module DatabaseRewinder
|
3
4
|
class Railtie < ::Rails::Railtie
|
4
5
|
initializer 'database_rewinder', after: 'active_record.initialize_database' do
|
5
6
|
ActiveSupport.on_load :active_record do
|
6
7
|
DatabaseRewinder.init
|
7
8
|
require_relative 'active_record_monkey'
|
9
|
+
|
10
|
+
require_relative 'cleaner'
|
8
11
|
end
|
9
12
|
end
|
10
13
|
end
|
data/test/cleaner_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_rewinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -162,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
|
-
|
166
|
-
rubygems_version: 2.7.7
|
165
|
+
rubygems_version: 3.0.0.beta3
|
167
166
|
signing_key:
|
168
167
|
specification_version: 4
|
169
168
|
summary: A minimalist's tiny and ultra-fast database cleaner
|