moss

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit cbf2d07dc01cd7672bfe5373b203f6021567f442
parent da2874cd98a9fb7e857300c379c7fdad25011ac5
Author: Daniel Barlow <dan@telent.net>
Date:   Thu, 12 Aug 2021 23:09:19 +0100

whitespace

Diffstat:
Mmoss.rb | 2+-
Mspec/cli_spec.rb | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/moss.rb b/moss.rb @@ -117,7 +117,7 @@ class Moss def read_secret(name) pathname = store.join("#{name}.age") - File.exist?(pathname) or raise "Can't open #{pathname}: $!" + File.exist?(pathname) or raise "Can't open non-existent file #{pathname}" capture_output([AGE, "-i", identity_file, "-d", pathname]) diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb @@ -14,7 +14,7 @@ class <<cli # end command :encrypt, "scramble a file" do |file:, signed: false| - # + # end command :mail, "send email" do |rcpt:, subject: "(no subject)"| "/usr/lib/sendmail #{rcpt} -s #{subject.inspect}" @@ -50,7 +50,7 @@ RSpec.describe CLI do it "parses flags with values" do expect(cli.parse_arguments ["mail", "dan", "--subject=hello dan"]). - to match([:mail, { rcpt: "dan", subject: "hello dan" }]) + to match([:mail, { rcpt: "dan", subject: "hello dan" }]) end it "parses rest parameters" do