Sha256: f5e2ef8fc06523dcaba6fe6dbc48f39d1a1f659bf20a0c29531047ecd3216b06

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

ruby2_specs = 'spec/ruby2/**/*_spec.rb'
rake_task = RSpec::Core::RakeTask.new(:spec)

if RUBY_VERSION < '3'
  rake_task.pattern = 'spec/ruby2/**/*_spec.rb'
  task default: :spec
else
  rake_task.exclude_pattern = 'spec/{ruby2,isolated}/**/*_spec.rb'

  isolated_rake_task = RSpec::Core::RakeTask.new(:isolated_specs)
  isolated_rake_task.pattern = 'spec/isolated/**/*_spec.rb'

  task default: [:spec, :isolated_specs]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby3-backward-compatibility-1.4.0 Rakefile
ruby3-backward-compatibility-1.3.0 Rakefile
ruby3-backward-compatibility-1.2.0 Rakefile