🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

ci-queue

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-queue - rubygems Package Compare versions

Comparing version
0.95.0
to
0.96.0
+1
-1
Gemfile.lock
PATH
remote: .
specs:
ci-queue (0.95.0)
ci-queue (0.96.0)
logger

@@ -6,0 +6,0 @@

@@ -175,5 +175,19 @@ # frozen_string_literal: true

def flaky?(test)
@flaky_tests.include?(test.id)
lazy_normalized_flaky_tests.include?(normalize_test_id(test.id))
end
def normalize_test_id(id)
id
end
def lazy_normalized_flaky_tests
@normalized_flaky_tests ||= @flaky_tests.to_set { |test_id| normalize_test_id(test_id) }
end
def test_id_normalizer=(normalizer)
normalizer = normalizer.to_proc if Method === normalizer
define_singleton_method(:normalize_test_id, normalizer)
@normalized_flaky_tests = nil
end
def seed

@@ -180,0 +194,0 @@ @seed || build_id

@@ -5,3 +5,3 @@ # frozen_string_literal: true

module Queue
VERSION = '0.95.0'
VERSION = '0.96.0'
DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)

@@ -8,0 +8,0 @@ RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)

@@ -6,2 +6,3 @@ # frozen_string_literal: true

require 'fileutils'
require 'tempfile'

@@ -44,5 +45,12 @@ module Minitest

FileUtils.mkdir_p(File.dirname(@report_path))
File.open(@report_path, 'w+') do |file|
format_document(generate_document, file)
dir = File.dirname(@report_path)
FileUtils.mkdir_p(dir)
tmp = Tempfile.new([File.basename(@report_path), '.tmp'], dir)
begin
format_document(generate_document, tmp)
tmp.close
File.rename(tmp.path, @report_path)
rescue
tmp.close!
raise
end

@@ -49,0 +57,0 @@ end