Sha256: ab04c1ff156c3dc0d068642e04c4337991233aeb12f179942e859a8753cc2d0c

Contents?: true

Size: 608 Bytes

Versions: 12

Compression:

Stored size: 608 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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
grumlin-0.19.4 Rakefile
grumlin-0.19.3 Rakefile
grumlin-0.19.2 Rakefile
grumlin-0.19.1 Rakefile
grumlin-0.19.0 Rakefile
grumlin-0.18.1 Rakefile
grumlin-0.18.0 Rakefile
grumlin-0.17.0 Rakefile
grumlin-0.16.1 Rakefile
grumlin-0.16.0 Rakefile
grumlin-0.15.6 Rakefile
grumlin-0.15.4 Rakefile