database_rewinder 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/database_rewinder.gemspec +1 -1
- data/lib/database_rewinder.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee33c2d9a1ffd6b4fc293c215959ab1af83813f6
|
4
|
+
data.tar.gz: eb14adbd9150c594b0da819848968128bd771fb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3be4968e470fbcff3d1b4cfcfef4f48fd706038d05802136bf0c25b5c8778ed39f27ae5dac42b008919202239cd26ba349d53828d3c28f23f5385330da53446f
|
7
|
+
data.tar.gz: 16c0c14ea06967a64dc15c8b2b605d52d20e1bf658356a1a9d27430d5c86e6e5994828cf511388237ad215eadc3e9ea97486866fa79badb3b48c47a80f536fea
|
data/database_rewinder.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "database_rewinder"
|
8
|
-
spec.version = '0.8.
|
8
|
+
spec.version = '0.8.2'
|
9
9
|
spec.authors = ["Akira Matsuda"]
|
10
10
|
spec.email = ["ronnie@dio.jp"]
|
11
11
|
spec.description = "A minimalist's tiny and ultra-fast database cleaner"
|
data/lib/database_rewinder.rb
CHANGED
@@ -39,7 +39,7 @@ module DatabaseRewinder
|
|
39
39
|
config = connection.instance_variable_get(:'@config')
|
40
40
|
database = config[:database]
|
41
41
|
#NOTE What's the best way to get the app dir besides Rails.root? I know Dir.pwd here might not be the right solution, but it should work in most cases...
|
42
|
-
root_dir = defined?(Rails) ? Rails.root : Dir.pwd
|
42
|
+
root_dir = defined?(Rails) && Rails.respond_to?(:root) ? Rails.root : Dir.pwd
|
43
43
|
cleaner = cleaners.detect do |c|
|
44
44
|
if (config[:adapter] == 'sqlite3') && (config[:database] != ':memory:')
|
45
45
|
File.expand_path(c.db, root_dir) == File.expand_path(database, root_dir)
|
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.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.6.
|
165
|
+
rubygems_version: 2.6.12
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: A minimalist's tiny and ultra-fast database cleaner
|