donjon 1.0.0 → 1.0.1

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: 6ae00f5c1b0a0783f05510d0fdff9d524833d06c
4
- data.tar.gz: 30cb196ffcb81db7e751b076b489cf62f94d20b2
3
+ metadata.gz: 940c4424826fe9f8701b29bb26a9af71af4f217c
4
+ data.tar.gz: c637c714b56d5682b6d0752b6b4cafb44d8c08ad
5
5
  SHA512:
6
- metadata.gz: bc06e84ac49878f945ff248234f017b299632b31304325f93b5e013173885075ee6013672c65481bbc6ca7bbe1bcf166c9b516f51a31b88e767b72d145000adb
7
- data.tar.gz: 456709ca6cd3aa251b30c83083e903919e8589752f99f4e33b86ea43bc16da909a7e6638617a184f31787dc991317502623756e042c39a503433740b6666b883
6
+ metadata.gz: 0a00ccb3a4016e2886e419000acf945246d4e9f7c08cdd69da88c51d7c609ae0a5740d1c5c58f067236d711b34872e0b010365073381e52f38450376bda8b5d0
7
+ data.tar.gz: 5811899c6508678844795cc3eee9bc47469a556b289fb17cf48bf4fc200ca21ee5bb0266e7f75644b4f99b1bd2344239a2b03473e6333af321055000e784b281
@@ -6,6 +6,9 @@ module Donjon
6
6
  desc 'config:set KEY=VALUE ...', 'Encrypts KEY and VALUE in the vault'
7
7
  decl 'config:set'
8
8
 
9
+ desc 'config:fset KEY FILE', 'Encrypts KEY and the contents of FILE in the vault'
10
+ decl 'config:fset'
11
+
9
12
  desc 'config:get KEY...', 'Decrypts the value for KEY from the vault'
10
13
  decl 'config:get'
11
14
 
@@ -26,6 +29,10 @@ module Donjon
26
29
  end
27
30
  end
28
31
 
32
+ def config_fset(key, path)
33
+ database[key] = Pathname(path).read
34
+ end
35
+
29
36
  def config_get(*keys)
30
37
  keys.each do |key|
31
38
  puts "#{key}: #{database[key]}"
@@ -1,3 +1,3 @@
1
1
  module Donjon
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: donjon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-07 00:00:00.000000000 Z
11
+ date: 2014-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor