info_vault 0.0.1 → 0.0.2

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: 39f2a1f2f67a7ebf07e66c25ddad6cc1b0468de3
4
- data.tar.gz: 546d9c05925b69d8497d746748019214b5e04654
3
+ metadata.gz: 6040507bfc1eff33d13c70f87cbdb7469e3fd705
4
+ data.tar.gz: 1e3e75867b65862d960b7dfcbac71ea1fd39b7c6
5
5
  SHA512:
6
- metadata.gz: 6636611c3886bbfa28af503830fbc7dbdf6935e6852781da558c370abf18465ea3aa9d3d9a41ce4df8a6a7b70ce6a885eef70e78df23297c4485f871910c5ff5
7
- data.tar.gz: 6706570018708488ce3031f906f933dd872ba95665b2d714dcd350c09bae09aa525021b80b6b0e773e68d33a138374fa871c3b6614fc0c672f6b6bcac0260927
6
+ metadata.gz: 329af5d01487c83ee894967e240a252f13471a9ce8099bb94434498a07ebecbe6c9ff61b6c5ca816dbb622a81011d06f9416be916654b76ea6217b381c412060
7
+ data.tar.gz: 49d2fcc5f827d951bc7074dbc93a4d4f895a86194c6262a75a120e38bd5949bbd17e941e408a439603f7051163fddfebf36c6de9345eb2226d91352d7b21818a
data/bin/infovault CHANGED
@@ -3,4 +3,6 @@
3
3
  info_vault_path = File.expand_path('../../lib', __FILE__)
4
4
  $:.unshift(info_vault_path)
5
5
 
6
- require 'info_vault/cli'
6
+ require 'info_vault/cli'
7
+
8
+ Reorganizing? Think Again
@@ -7,7 +7,7 @@ class Infovault < Thor
7
7
  # Encrypt
8
8
  # encrypt("key","value","password",OpenSSL::Random.random_bytes(8))
9
9
  def encrypt(key,value,pass_phrase,salt=OpenSSL::Random.random_bytes(8),file="")
10
- file = File.open(File.expand_path(File.join('config','protected_info.yaml')),'r') if file.empty?
10
+ file = File.open(File.expand_path(File.join('config','protected_info.yaml')),'w') if file.empty?
11
11
  encrypter = OpenSSL::Cipher.new 'AES-128-CBC'
12
12
  encrypter.encrypt
13
13
  encrypter.pkcs5_keyivgen pass_phrase, salt
@@ -1,3 +1,3 @@
1
1
  module InfoVault
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: info_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Franko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-05 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler