localvault 1.0.0 → 1.0.1

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: 188e3a7249114892858d65724529b3d537a2c058250fb06a2bbfd63acc4cc387
4
- data.tar.gz: 222bf0d8f5a377d6633f95ae066769c2db16333913c50c158e430b93b89faf7a
3
+ metadata.gz: ffc771f387a2c0f3eab504fc57ea18479e597a0d84ce86d685032a21171f8446
4
+ data.tar.gz: 2f27e3ab465e41a860a1fe8dcefac8e6c67d7d5f69bfb88ccc02d8c069601401
5
5
  SHA512:
6
- metadata.gz: 18cf7cdc7323b02abed37741d870dd20dbc5e81415f3d4f802ffd004286b3171c228cfe22e8b2d9d7a927bf9f276990013014c91d5ddb6ae008abc1c199f557d
7
- data.tar.gz: 28dcf1e3d8c3c9626bd328d021e9870d9da0c1804c6b2bf226c20e8411d14a421ec711646d1a6cbd05add7e513bd2a1989c6a45ce891374d9a252c06bec02fae
6
+ metadata.gz: ab632c8b0096b108127165a6499aba51de5eef091611b809c93f3ce7f38cdb0b675392c8b750d5cc38ced7e09ff5e7b9eb4949e60b6f3c0105d24acf9112abc6
7
+ data.tar.gz: d99d7f1ffa0a16f182e322b57a7964521a7e36781920b009a9723e45ee534803486659109895472431af360612614949abaa5f10fbec6e25a1446f9c0ece49ab
@@ -1,4 +1,25 @@
1
- require "rbnacl"
1
+ begin
2
+ require "rbnacl"
3
+ rescue LoadError => e
4
+ if e.message.include?("libsodium") || e.message.include?("sodium")
5
+ $stderr.puts <<~MSG
6
+
7
+ ERROR: libsodium is not installed.
8
+
9
+ LocalVault requires libsodium for encryption. Install it for your platform:
10
+
11
+ macOS: brew install libsodium
12
+ Ubuntu/Debian: sudo apt-get install libsodium-dev
13
+ Fedora/RHEL: sudo dnf install libsodium-devel
14
+ Arch Linux: sudo pacman -S libsodium
15
+ Alpine: apk add libsodium-dev
16
+
17
+ Then retry: gem install localvault
18
+
19
+ MSG
20
+ end
21
+ raise
22
+ end
2
23
 
3
24
  module LocalVault
4
25
  module Crypto
@@ -1,3 +1,3 @@
1
1
  module LocalVault
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nauman Tariq