kbsecret 1.0.1 → 1.1.0
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 +4 -4
- data/lib/kbsecret/cli/kbsecret-env +3 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42d2d5ce65abcd564341744f0a4a2ad5fadff273
|
|
4
|
+
data.tar.gz: fa5032dd1464b5fce45f57aa8ca6e5514f0b984b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e1cb4d393ad69dbe78302ec3de2d572678d277d3c6fdfdcbee0878432fbad93f7bcc2e0471cf25bc2919c24a9b5d69088f87d5fbd37f862cc16e1bd1c7a2246
|
|
7
|
+
data.tar.gz: 2d42a0c3257004cfabac814cbacd2a61f2deaaa42a396f9ea5a273251da69542296f87f27463c8811cef51f91ced178b9e250d51370d2b86b74e99c0a29b03ac
|
|
@@ -16,6 +16,7 @@ cmd = CLI.create do |c|
|
|
|
16
16
|
o.bool "-a", "--all", "retrieve all environment records, not just listed ones"
|
|
17
17
|
o.bool "-v", "--value-only", "print only the environment value, not the key"
|
|
18
18
|
o.bool "-n", "--no-export", "print only VAR=val keypairs without `export`"
|
|
19
|
+
o.bool "-u", "--unescape-plus", "escape any pluses in the variable and/or value"
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
unless c.opts.all?
|
|
@@ -47,4 +48,6 @@ env_output = if cmd.opts.no_export?
|
|
|
47
48
|
selected_records.map(&:to_export).join("\n")
|
|
48
49
|
end
|
|
49
50
|
|
|
51
|
+
env_output.gsub!("\\+", "+") if cmd.opts.unescape_plus?
|
|
52
|
+
|
|
50
53
|
puts env_output
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kbsecret
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Woodruff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01
|
|
11
|
+
date: 2018-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aruba
|