gpgenv 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gpgenv/set_command.rb +4 -3
- data/lib/gpgenv/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: bb4b8db87247ce551fa156006c9595d45820b106
|
4
|
+
data.tar.gz: 2942677c42d1d1ff87f7a7f50c507c53cd35d5be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db99e4d665e814948d2f32bd8afb7de90e232a9632467d692ae2fb457c816be87f89945498572789ff0b167c8c0607a7bb08566288c95e7b0feb2ade29e65114
|
7
|
+
data.tar.gz: fbf7d4c01c66ecee229cbbf6a63216af56b22fdf4cf685d913929db03c9719db44a428018c4fb84455750e121fe4a11c5c7d85e4baf630f8646de93d2a3a330c
|
data/lib/gpgenv/set_command.rb
CHANGED
@@ -3,20 +3,21 @@ require 'gpgenv'
|
|
3
3
|
require 'gpgenv/base_command'
|
4
4
|
|
5
5
|
class Gpgenv
|
6
|
-
class SetCommand < Gpgenv::BaseCommand
|
6
|
+
class SetCommand < Gpgenv::BaseCommand
|
7
7
|
|
8
8
|
parameter "ARGUMENTS ...", "arguments", :attribute_name => :args
|
9
9
|
|
10
10
|
def execute
|
11
|
-
FileUtils.mkdir_p(
|
11
|
+
FileUtils.mkdir_p(gpgenv.dir)
|
12
12
|
if args.size == 1
|
13
13
|
gpgenv.set(args[0], STDIN.read)
|
14
14
|
elsif args.size == 2
|
15
15
|
gpgenv.set(args.first, args.last)
|
16
|
-
else
|
16
|
+
else
|
17
17
|
fail("Usage: gpgset KEY [VALUE]")
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
+
|
21
22
|
end
|
22
23
|
end
|
data/lib/gpgenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gpgenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Shea
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|