Sha256: b9db2a6b80441b2816d3a732cca33e43567ff5aff6fef5ecacb7bea2b6ed84c9
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
# frozen_string_literal: true require "silent_stream" compat_lib = begin require "awesome_print" puts "Testing with awesome_print" :ap rescue LoadError # rubocop:disable Lint/SuppressedException end || begin require "colored2" puts "Testing with colored2" :c2 rescue LoadError # rubocop:disable Lint/SuppressedException end || begin require "colorized_string" puts "Testing with colorized_string" :cs rescue LoadError # rubocop:disable Lint/SuppressedException end COMPAT_LIB = compat_lib DEBUG = ENV["DEBUG"] == "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["COVER_ALL"] || ENV["CI_CODECOV"] || ENV["CI"].nil?) ALL_FORMATTERS = actual_version.call(2, 7) && (ENV["COVER_ALL"] || ENV["CI_CODECOV"] || ENV["CI"]) 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 "pretty_feed" # RSpec Configs require "config/rspec/rspec_core" require "config/rspec/silent_stream" # Support Files require "support/example_classes"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pretty_feed-0.2.0 | spec/spec_helper.rb |
pretty_feed-0.1.1 | spec/spec_helper.rb |