diff --git a/.env.dhall b/.env.dhall index b2d67d8..424f5dc 100644 --- a/.env.dhall +++ b/.env.dhall @@ -1,11 +1,11 @@ let some_variable = "some value'" -in { - some_string = some_variable, - some_record = { - some_string = some_variable, - some_naturals = [1,2,3], - some_doubles = [1.2, 2.3], - some_strings = ["value1", "value2"], - some_nil = None + +in { some_string = some_variable + , some_record = + { some_string = some_variable + , some_naturals = [ 1, 2, 3 ] + , some_doubles = [ 1.2, 2.3 ] + , some_strings = [ "value1", "value2" ] + , some_nil = None } } diff --git a/Gemfile.lock b/Gemfile.lock index 7d1dc99..1c3ac43 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dotcrypt (0.1.2) + dotcrypt (0.1.3) bootsnap (~> 1.15.0) dhall (~> 0.5.0) thor (~> 1.2.0) diff --git a/Rakefile b/Rakefile index 23e0614..27c5230 100644 --- a/Rakefile +++ b/Rakefile @@ -9,4 +9,20 @@ 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] diff --git a/lib/dotcrypt.rb b/lib/dotcrypt.rb index 180f678..2e784c6 100644 --- a/lib/dotcrypt.rb +++ b/lib/dotcrypt.rb @@ -17,6 +17,9 @@ loader.setup +module Dotcrypt +end + class Dotcrypt::Error < StandardError # Your code goes here... end diff --git a/lib/dotcrypt/version.rb b/lib/dotcrypt/version.rb index cbc5e32..2341423 100644 --- a/lib/dotcrypt/version.rb +++ b/lib/dotcrypt/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Dotcrypt - VERSION = "0.1.2" + VERSION = "0.1.3" end