Sha256: 95a203b595ca8a8d2567f652b349a67dba1b29ae1664e07e9ea078a228f48756
Contents?: true
Size: 1.1 KB
Versions: 4
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/ruby2_5" # RSpec Configs require "config/rspec/rspec_core"
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubocop-ruby2_5-1.0.3 | spec/spec_helper.rb |
rubocop-ruby2_5-1.0.2 | spec/spec_helper.rb |
rubocop-ruby2_5-1.0.1 | spec/spec_helper.rb |
rubocop-ruby2_5-1.0.0 | spec/spec_helper.rb |