affected_tests 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbb2179c4fffe41e99f31697dc10b161f5d0063776a4e844b88591013c33a97c
4
- data.tar.gz: 1c4b1596a80fea2d05dc754d4ddc7219843dacb53b022afd0ddab06acc663c31
3
+ metadata.gz: dcc672116e5bb9b0e2da893b7210c77f11e5b95e3c64fc4c217edb1f06f2e7d2
4
+ data.tar.gz: 1f03fe6932d5f970ee5606501412f30cc397163e86b3a543fe1e95c2d04c3dbd
5
5
  SHA512:
6
- metadata.gz: 58d176dc48c68f09fa0ff3a610879e1c3c90d6d360eb33cc2b48306810996a7dd762b7490dc47fd63c9bddee22a44005bfbce7262c88043ab4352e41ead236bc
7
- data.tar.gz: 484bade7034e6ccf3259dd84419b2c80cac33f17a0171f842d59d1cad5d2db252dbaf487ec6082cead83bca000ea2540ee718963d6562c7ba4b8a336f7a5d28b
6
+ metadata.gz: 2f92a2f7dd2d2f322d27ca90ebeeaffb18d765145d51efcd6b2df571dd95ffe6a67ba27b3a16e25736853cc148f07f3d064fee1b28f843cbfe43150872757d8e
7
+ data.tar.gz: ac127737a5b1555e35d18eb3ce9b0cde6adfd679b8bb852482934296e0ec371ed9f14027c1614af98e436f52896c59053094be5b6016c296a481f3b45ffd5078
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AffectedTests
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -14,7 +14,7 @@ module AffectedTests
14
14
  @project_path = project_path
15
15
  @test_dir_path = test_dir_path
16
16
  @output_path = output_path
17
- @revision = revision || build_revision
17
+ @revision = revision
18
18
  @rotoscope = Rotoscope.new do |call|
19
19
  next if self == call.receiver
20
20
 
@@ -55,7 +55,7 @@ module AffectedTests
55
55
  end
56
56
 
57
57
  def dump
58
- data = { revision: @revision, map: cache.transform_values(&:to_a) }
58
+ data = { revision: @revision || build_revision, map: cache.transform_values(&:to_a) }
59
59
  File.write(@output_path, JSON.dump(data))
60
60
  ensure
61
61
  @rotoscope.stop_trace if @rotoscope.tracing?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: affected_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shia