test-prof 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +1 -1
- data/lib/test_prof/any_fixture/dump.rb +7 -2
- data/lib/test_prof/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97aebfdedf7ec34fcc2062c13766c1f80a3fa461819d8182164a7c7a77d7a772
|
4
|
+
data.tar.gz: 82b988cae9745444567644481ebddf1876b730424b59a15581bf8ab37ba08033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0276dc796e050fa5debed6e84d7b645c29e612d53498dd7ec1aa7506a38a9dfc1ced64ea7a6576d2b5984f6ef0d39350d3d0fcd9aa02c6974631017ea297dd6
|
7
|
+
data.tar.gz: 9d5273502812d08edf39d9345b9854b97605499713e977bb0c39acf4879a8c7142ad7d04adab481e57c1913cf22afc39a448d170aea0cb3e4adfe0da5a66abb3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -45,7 +45,6 @@ module TestProf
|
|
45
45
|
@adapter = adapter
|
46
46
|
@tmp_path = path + ".tmp"
|
47
47
|
@reset_pk = Set.new
|
48
|
-
@file = File.open(tmp_path, "w")
|
49
48
|
end
|
50
49
|
|
51
50
|
def start(_event, _id, payload)
|
@@ -70,6 +69,8 @@ module TestProf
|
|
70
69
|
end
|
71
70
|
|
72
71
|
def commit
|
72
|
+
return unless defined?(:@file)
|
73
|
+
|
73
74
|
file.close
|
74
75
|
|
75
76
|
FileUtils.mv(tmp_path, path)
|
@@ -77,7 +78,11 @@ module TestProf
|
|
77
78
|
|
78
79
|
private
|
79
80
|
|
80
|
-
attr_reader :
|
81
|
+
attr_reader :reset_pk, :adapter
|
82
|
+
|
83
|
+
def file
|
84
|
+
@file ||= File.open(tmp_path, "w")
|
85
|
+
end
|
81
86
|
|
82
87
|
def reset_pk!(table_name)
|
83
88
|
return if /sqlite_sequence/.match?(table_name)
|
data/lib/test_prof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -230,9 +230,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: 2.5.0
|
231
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
|
-
- - "
|
233
|
+
- - ">="
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
version:
|
235
|
+
version: '0'
|
236
236
|
requirements: []
|
237
237
|
rubygems_version: 3.0.6
|
238
238
|
signing_key:
|