trunk 0.1.1 → 0.1.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +27 -16
  3. data/lib/trunk/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 237505d740522814bab6d0401ae982a01d12b56792dc3913cf1594dcf50d2ad5
4
- data.tar.gz: c9e2b68bdd588fee6e82095662f62bdd025def1c7f948f3085939f83f4d48b51
3
+ metadata.gz: b29f9e978fa30da384e7486f64ee0ae2247371437816634fe7974c2e3c74cc86
4
+ data.tar.gz: 376a4aebd4d069fa753bcfdc55e45cef1b9e2e0a4ae6a907b14d11ada5bf73fa
5
5
  SHA512:
6
- metadata.gz: 7b6900e6f99a1bd58ebd0fa4185535be1c6ec03d9b7649d805263bb19a41715c7a5175d80bc32a13b922e431934c0cd0929ea28a446d7100e22dbd5cd8b9bb8f
7
- data.tar.gz: bf4a7c862bdfb9ef31621f70cf6bcd3da6f2ab08221eb2c4ce0f4de2b8f2524fe986e9867e12317c5f5428b112ccc6b55f7ec52a86ca6f2b5003a1b67ac7fd62
6
+ metadata.gz: b466f5a93bc6b5d915191517787edb3892cbe2f1cf43f2787b1b9936b7f1b545df3da599e993f54cdf7253fc69438961e5eea2fc64e98ea02c70b421b36a377e
7
+ data.tar.gz: 0a1ba17c11adf3e27a5fee54bdabd9c0625dc2cd850f8d8b6f04915fb3f2943fac4032492b0e7ba10e695dae3930fe3cb9837e9f5d71544cc750b2feb47e1cdf
data/README.md CHANGED
@@ -1,38 +1,49 @@
1
1
  # Trunk
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/trunk`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A safe place to put things.
4
+
5
+ I wrote `trunk` as a replacement for [keepassx](https://www.keepassx.org/).
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
6
7
 
7
8
  ## Installation
8
9
 
9
- Add this line to your application's Gemfile:
10
10
 
11
- ```ruby
12
- gem 'trunk'
13
- ```
11
+ Install it:
14
12
 
15
- And then execute:
13
+ $ gem install trunk
16
14
 
17
- $ bundle
15
+ ## Usage
18
16
 
19
- Or install it yourself as:
17
+ The setup command will generate a password protected private key file
18
+ located at `$HOME/.trunk/.trunk.key.enc`.
20
19
 
21
- $ gem install trunk
20
+ ```bash
21
+ $ trunk setup
22
+ ```
22
23
 
23
- ## Usage
24
+ To add a secret to trunk:
25
+
26
+ ```bash
27
+ $ trunk add soundcloud.com mypassword
28
+ ```
29
+
30
+ Or you can can pipe a password in:
31
+
32
+ ```bash
33
+ $ pwgen -s 32 1 | TRUNK_PASSPHRASE=secret trunk add soundcloud.com
34
+ ```
24
35
 
36
+ To copy a password to your clipboard
25
37
  ```bash
26
- $ trunk add key password
27
- $ trunk add key - # read password from stdin
28
- $ trunk show title
38
+ $ TRUNK_PASSPHRASE=secret trunk show soundcloud.com | pbcopy
29
39
  ```
30
40
 
31
41
  Storage Layout
32
42
 
33
43
  ```yaml
34
- # ~/.trunk
35
- development.secret: <encrypted>
44
+ # ~/.trunk/.trunk.enc
45
+ ---
46
+ soundcloud.com: base64(<encrypted>)
36
47
  ```
37
48
 
38
49
  ## Development
@@ -1,3 +1,3 @@
1
1
  module Trunk
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mo