selective-ruby-core 0.1.7-x86_64-darwin → 0.1.8-x86_64-darwin

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: 0bcee1f0c11ea957dd90a8f41b3c53fe7975117ff67e2e90ef961d1f8658e7a1
4
- data.tar.gz: 0e37f18b4198d04bf58855db13b8a4f24a0d9be535938b08543738064e3fec93
3
+ metadata.gz: 164b76eb2ba7ea0f2288f2e04caf54856493f60941a135dd5a482b044b8a34b2
4
+ data.tar.gz: c0c7ed6a8abf72672db0e24a89027a2b6a4aaf1ed01e3e41d84f81eb2be91179
5
5
  SHA512:
6
- metadata.gz: de3efdfdea2c7fe2f2556c6ae2679f6239a1b8c89ef0b6b081ef7137fc98f0a1a1ef14c1b7da6d286dffd57c1ff30478e7cc7d97475b385e46508ed34a3a3ec0
7
- data.tar.gz: 1d9d4d0c260981f3cff61bb1d02e669925c3aa94d2e323a9866d074d4c10c65b2a6fd20472ddce1ca42969081368160e615e837385b7e0988810dff93c45fc48
6
+ metadata.gz: c316b0ba6f024fda6ead228365204679b26f107889982266f4829ed5293831b9630686e547777840864ef1f74bad58192317537c766e9f69e3e9efbda998f53e
7
+ data.tar.gz: bb52780b100195417d93a2020ea459b695200517d35830790f22516c719255c09cd26cc3cae73fbb913cbaf919d16fe1e7ffd6fa5dac8aba41089eab8a373fbb
@@ -291,12 +291,12 @@ module Selective
291
291
 
292
292
  def get_diff(num_commits)
293
293
  target_branch = build_env["target_branch"]
294
- return [] if target_branch.nil? || target_branch.empty?
294
+ return if target_branch.nil? || target_branch.empty?
295
295
 
296
296
  Open3.capture2e("git fetch origin #{target_branch} --depth=#{num_commits}").then do |output, status|
297
297
  unless status.success?
298
298
  print_warning "Selective was unable to fetch the target branch. This may result in a sub-optimal test order. If the issue persists, please contact support. The output was:\n\n#{output}"
299
- return []
299
+ return
300
300
  end
301
301
  end
302
302
 
@@ -305,7 +305,7 @@ module Selective
305
305
  output.split("\n")
306
306
  else
307
307
  print_warning "Selective was unable to diff with the target branch. This may result in a sub-optimal test order. If the issue persists, please contact support. The output was:\n\n#{output}"
308
- []
308
+ nil
309
309
  end
310
310
  end
311
311
  end
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.1.7"
6
+ VERSION = "0.1.8"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Benjamin Wood