gpgenv 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb7e56a10c4fb2a257540ed6925a0ebd94e35c0b
4
- data.tar.gz: 09b6122ed57599edcb69c85439b50fd0be8001d7
3
+ metadata.gz: b1f98097e67e8b91a24e1709664130b90bf3d9bd
4
+ data.tar.gz: c4cf7d2892247b5dbca66b5dfee82d86fcaaf395
5
5
  SHA512:
6
- metadata.gz: a2e81b56069dc51166fd66995b74a7747550af5f8d7266438b1ec386fc77c7dc7972bf774eb47fc29cb654cce20140ab2509663e363c39549874149efb7199df
7
- data.tar.gz: e28f4a77979dca21b37c7909ec30f3cad731ea1e2acd576120e12e8ab41941634733691a267474ef2691972e5fb6a15f2f3dbe88648ff3fe2411877dff2dd7e0
6
+ metadata.gz: 57e4cd252fe7e49da72fd388e5ddd2afd59297d5a31ec36b24223426352b3588fadb6aa384ba1df1bbed8a651b51c9b212938eee3497e87bea8b015db143aa8e
7
+ data.tar.gz: 8518188f949febded4201b6c0c247a0baf10e03c61bbb3abefbe79fee4b4d0400caf84dcaad4352516e8944526b34be4cafca5c75f31e26f704933eaaf8ed14f
@@ -1,11 +1,16 @@
1
1
  require 'clamp'
2
+ require 'fileutils'
2
3
  class Gpgenv
3
4
  class BaseCommand < Clamp::Command
4
5
 
5
6
  option ['-d', '--dir'], "DIR", "Directory to read env files from", default: "./.gpgenv"
6
7
 
7
8
  def gpgenv
8
- @gpgenv ||= Gpgenv.new(dir: dir)
9
+ # Create a new empty directory if we're using the default.
10
+ if dir == './.gpgenv'
11
+ FileUtils.mkdir_p(dir)
12
+ end
13
+ @gpgenv ||= Gpgenv.new(dir: dir)
9
14
  end
10
15
 
11
16
  end
@@ -1,3 +1,3 @@
1
1
  class Gpgenv
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
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.9
4
+ version: 0.1.10
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-01-19 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp