p006/api/img/octicons/10.0.0/lib/octicons_gem/Rakefile

23 lines
542 B
Ruby
Raw Normal View History

2022-11-29 22:06:03 +05:00
require "rake/testtask"
require "rubocop/rake_task"
require "bundler/gem_tasks"
RuboCop::RakeTask.new(:lint) do |t|
t.options = ["--display-cop-names"]
end
Rake::TestTask.new do |t|
t.libs = ["lib", "test"]
t.test_files = FileList["test/*_test.rb"]
end
task :version, [:v] do |t, args|
out = "module Octicons\n"\
" VERSION = \"#{args[:v]}\".freeze\n"\
"end"
File.open(File.expand_path("../lib/octicons/version.rb", __FILE__), "w") { |file| file.puts out }
end
desc "Run tests"
task default: :test