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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae1131d5828c1e2b52eab444c34c89bd82b294a7b3725f62c01ce30d7526f46b
4
- data.tar.gz: 5f0bf2610fef5ad188999259aaca14918e3d96d9d5d2fdc9b6f60a961b02a20f
3
+ metadata.gz: 97aebfdedf7ec34fcc2062c13766c1f80a3fa461819d8182164a7c7a77d7a772
4
+ data.tar.gz: 82b988cae9745444567644481ebddf1876b730424b59a15581bf8ab37ba08033
5
5
  SHA512:
6
- metadata.gz: ac9329e707caa20870ec22035678585a9a344968ea98f5f210a6fb0c25558d85162145ff47d731b77f9b17a71bb0c8d1fb23d57b5a46eba2af4244b2c6f269f6
7
- data.tar.gz: dc0795ccc8916f93ffb9303d703a81da20d3723401b55d2c1ddfef45f8fb2d5879f9988c8b78cb9efe9ea0279e5adb610055bbf56433ff4a01101b9d7c6344e3
6
+ metadata.gz: c0276dc796e050fa5debed6e84d7b645c29e612d53498dd7ec1aa7506a38a9dfc1ced64ea7a6576d2b5984f6ef0d39350d3d0fcd9aa02c6974631017ea297dd6
7
+ data.tar.gz: 9d5273502812d08edf39d9345b9854b97605499713e977bb0c39acf4879a8c7142ad7d04adab481e57c1913cf22afc39a448d170aea0cb3e4adfe0da5a66abb3
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## master (unrealeased)
4
4
 
5
+ ## 1.0.0 (2021-01-21)
6
+
5
7
  ## 1.0.0.rc2 (2021-01-06)
6
8
 
7
9
  - Make Rails fixtures accesible in `before_all`. ([@palkan][])
data/README.md CHANGED
@@ -75,7 +75,7 @@ Add `test-prof` gem to your application:
75
75
 
76
76
  ```ruby
77
77
  group :test do
78
- gem "test-prof"
78
+ gem "test-prof", "~> 1.0"
79
79
  end
80
80
  ```
81
81
 
@@ -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 :file, :reset_pk, :adapter
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestProf
4
- VERSION = "1.0.0.rc2"
4
+ VERSION = "1.0.0"
5
5
  end
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.rc2
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-06 00:00:00.000000000 Z
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: 1.3.1
235
+ version: '0'
236
236
  requirements: []
237
237
  rubygems_version: 3.0.6
238
238
  signing_key: