Sha256: a99677853ed4c90647cf0ba9737bad701079971365fb7e177426bed186958475
Contents?: true
Size: 678 Bytes
Versions: 15
Compression:
Stored size: 678 Bytes
Contents
# frozen_string_literal: true require "yaml" require "bundler/gem_tasks" require "rspec/core/rake_task" require "rubocop/rake_task" RSpec::Core::RakeTask.new(:spec) RuboCop::RakeTask.new task default: %i[rubocop spec] namespace :definitions do desc "Format definitions.yml" task :format do path = File.join(__dir__, "lib", "definitions.yml") definitions = YAML.safe_load(File.read(path)) definitions.each_value do |kind| kind.each do |name, list| next if name == "with_options" list.sort! end end File.write(path, YAML.dump(definitions)) end end Dir.glob(File.join("lib/tasks/**/*.rake")).each { |file| load file }
Version data entries
15 entries across 15 versions & 1 rubygems