main
 1# frozen_string_literal: true
 2
 3require "bundler/gem_tasks"
 4require "rspec/core/rake_task"
 5
 6RSpec::Core::RakeTask.new(:spec)
 7
 8task :files do
 9  IO.popen(%w[git ls-files], chdir: __dir__, err: IO::NULL) do |ls|
10    ls.readlines.each do |f|
11      next if f.start_with?(*%w[bin/ spec/ pkg/ .git .rspec Gemfile Rakefile])
12      next if f.strip.end_with?(*%w[.toml .txt .md])
13
14      puts f
15    end
16  end
17end
18
19task default: %i[spec]