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

Version Path
grumlin-0.23.0 Rakefile
grumlin-0.22.5 Rakefile
grumlin-0.22.4 Rakefile
grumlin-0.22.3 Rakefile
grumlin-0.22.2 Rakefile
grumlin-0.22.1 Rakefile
grumlin-0.22.0 Rakefile
grumlin-0.21.1 Rakefile
grumlin-0.21.0 Rakefile
grumlin-0.20.2 Rakefile
grumlin-0.20.1 Rakefile
grumlin-0.20.0 Rakefile
grumlin-0.19.7 Rakefile
grumlin-0.19.6 Rakefile
grumlin-0.19.5 Rakefile