localvault 1.11.1 → 1.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9410cbaa6bef6d91974153c36555f7e8c799350adfa59ddf821ec261cb4dafc7
4
- data.tar.gz: 9df3cc0ac84194f0f1259b12b411bfec083c3c690467741879f212046fc535c4
3
+ metadata.gz: 1f7a9ef056579778ef2dabd22148af8fe8fbd19b2e0b4aefafde3c9eb6a454ee
4
+ data.tar.gz: e5006419cb47849c63a7f4c123ba661e6c95bd2f93fe8ef3230faff2ab5fe7ec
5
5
  SHA512:
6
- metadata.gz: ad55628d78a992ff835b090871ddf20331118d306c536db173c57109efe05886d90c874d5fdb74d850a5623e4fd0a5d56ca825b28ec84da1de72fb43a86905ad
7
- data.tar.gz: 62960222621adc9edaf9d469f35a6a8868284f0b6a01f99b9a09ebadd3b32ac162a6838ad37f281cc8384f4ed5c2ca9b2d144b16a992ec6f7acfd2d91e62ae25
6
+ metadata.gz: 9cfc5a0d2635e86601077c1600f58339252262960663d39e45213ff59aeca09ec47c8a8e392e2ad16a0d4e7b2731b500b33d268c239e44b2567ea2b09cd51ef0
7
+ data.tar.gz: 8a14b7b627c493f710c89738c0726f2cc4bca895996a76fcfca4801ff46aaf5047f27a7480aec157b876e807c757f0b3cb9dd3e9bfbe0ffe9d3313ce7dcfe5f8
data/README.md CHANGED
@@ -19,7 +19,7 @@ brew install inventlist/tap/localvault
19
19
  ### Install script (no Homebrew)
20
20
 
21
21
  ```bash
22
- curl -sSL https://raw.githubusercontent.com/inventlist/localvault/main/install.sh | sh
22
+ curl -sSL https://inventlist.com/tools/localvault/install.sh | sh
23
23
  ```
24
24
 
25
25
  Installs into an isolated prefix (`~/.localvault/runtime`) and writes a wrapper
@@ -32,7 +32,11 @@ module LocalVault
32
32
  end
33
33
 
34
34
  passphrase = prompt_passphrase("Passphrase for '#{vault_name}': ")
35
- return nil if passphrase.nil? || passphrase.empty?
35
+ if passphrase.nil? || passphrase.empty?
36
+ $stderr.puts "Error: Vault '#{vault_name}' is locked and no passphrase was entered."
37
+ $stderr.puts "Run: localvault unlock #{vault_name} # caches the passphrase for this session"
38
+ return nil
39
+ end
36
40
 
37
41
  vault = Vault.open(name: vault_name, passphrase: passphrase)
38
42
  vault.all # raises Crypto::DecryptionError on wrong passphrase
@@ -1,3 +1,3 @@
1
1
  module LocalVault
2
- VERSION = "1.11.1"
2
+ VERSION = "1.11.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localvault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.1
4
+ version: 1.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nauman Tariq