Sha256: 6942686248c3c2e743f3b41ece877a96052060341c1985a08ffcd371a13777ae

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

require "bundler/gem_tasks"

task :test do
  system %(rubocop -c config/rubocop.yml)
  system %(rubocop -c config/rubocop-rails.yml)
end

task :fix do
  system %(rubocop -c rubocop.yml -a)
end

task :extract do
  require "yaml"
  require_relative "lib/the_bath_of_zahn/utility/extractor"

  extract = TheBathOfZahn::Utility::Extractor.new

  Dir.chdir("config/internal") do
    File.write("style_guide.yml", extract.rules_plain.to_yaml)
    File.write("rails_style_guide.yml", extract.rules_rails.to_yaml)
  end
end

task default: :test

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
the_bath_of_zahn-0.0.5 Rakefile
the_bath_of_zahn-0.0.4 Rakefile
the_bath_of_zahn-0.0.3 Rakefile