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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29c744d726eab18982e537fc2dbc2b2abe5aeae1
4
- data.tar.gz: 38e7a3dc2966ce087a7e5011bf6d05b9643d7186
3
+ metadata.gz: 42d2d5ce65abcd564341744f0a4a2ad5fadff273
4
+ data.tar.gz: fa5032dd1464b5fce45f57aa8ca6e5514f0b984b
5
5
  SHA512:
6
- metadata.gz: 17e82211356257035c5866060dc0627ddfeebfc52551a0d693b991625a105296311829c3645f1bb921f83a7fb6b1719162f6688ba8f78cf1b3ae8c69cff48691
7
- data.tar.gz: 3eb230b87322f0770fb685bc4e550195bfbcf16f2abed6fd27ae65c357bda9eefc7f930b7561d935bf6f12a18fac4075e52e942f9d832ab67202dd63e4a16f94
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module KBSecret
4
4
  # kbsecret's current version
5
- VERSION = "1.0.1"
5
+ VERSION = "1.1.0"
6
6
  end
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.1
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-27 00:00:00.000000000 Z
11
+ date: 2018-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba