Sha256: 81ce2185494171fb47805d3d1c255e150572f943f307107ae2dd4291d88b9ec0
Contents?: true
Size: 859 Bytes
Versions: 14
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" require "syntax_tree/rake_tasks" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end task default: :test configure = ->(task) do task.source_files = FileList[%w[Gemfile Rakefile syntax_tree.gemspec lib/**/*.rb test/*.rb]] # Since Syntax Tree supports back to Ruby 2.7.0, we need to make sure that we # format our code such that it's compatible with that version. This actually # has very little effect on the output, the only change at the moment is that # Ruby < 2.7.3 didn't allow a newline before the closing brace of a hash # pattern. task.target_ruby_version = Gem::Version.new("2.7.0") end SyntaxTree::Rake::CheckTask.new(&configure) SyntaxTree::Rake::WriteTask.new(&configure)
Version data entries
14 entries across 14 versions & 1 rubygems