Rakefile in dotcrypt-0.1.2 vs Rakefile in dotcrypt-0.1.3

- old
+ new

@@ -7,6 +7,22 @@ require "rubocop/rake_task" RuboCop::RakeTask.new -task default: [:spec, :rubocop] +namespace :dhall do + dhall_files = Dir["./**/.*.dhall"] + Dir["./**/*.dhall"] + + def dhall(*args) + system("dhall", *args, exception: true) + end + + task :check_fmt do + dhall("format", "--check", *dhall_files) + end + + task :fmt do + dhall("format", *dhall_files) + end +end + +task default: ["dhall:fmt", :spec, :rubocop]