Sha256: 51d47672597ce63b849c6607d5e47302c8da0a84d5379c4e1365ec9b433113b7
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
# frozen_string_literal: true DEBUG = ENV.fetch("DEBUG", nil) == "true" ruby_version = Gem::Version.new(RUBY_VERSION) minimum_version = ->(version, engine = "ruby") { ruby_version >= Gem::Version.new(version) && RUBY_ENGINE == engine } actual_version = lambda do |major, minor| actual = Gem::Version.new(ruby_version) major == actual.segments[0] && minor == actual.segments[1] && RUBY_ENGINE == "ruby" end debugging = minimum_version.call("2.7") && DEBUG RUN_COVERAGE = minimum_version.call("2.6") && (ENV.fetch("COVER_ALL", nil) || ENV.fetch("CI_CODECOV", nil) || ENV["CI"].nil?) ALL_FORMATTERS = actual_version.call(2, 7) && (ENV.fetch("COVER_ALL", nil) || ENV.fetch("CI_CODECOV", nil) || ENV.fetch("CI", nil)) if DEBUG if debugging require "byebug" elsif minimum_version.call("2.7", "jruby") require "pry-debugger-jruby" end end require "simplecov" if RUN_COVERAGE # This gem require "rubocop/ruby3_0" # RSpec Configs require "config/rspec/rspec_core"
Version data entries
6 entries across 6 versions & 1 rubygems