dotenv-vault 0.6.0 → 0.7.0

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
  SHA256:
3
- metadata.gz: 84e1fef6b134d93f790a2fea8c723ab7a824035ce634abf4b28b59d4926c429b
4
- data.tar.gz: 0be721f78ed10b1a1fadaf76bb2ba39f37179e7f22dc91005f6ae99ffa0d98b9
3
+ metadata.gz: aa34c1f736b3d975ebfa6908c4fd2fda654195397eacd4f49b87c740730665e3
4
+ data.tar.gz: bd4422daf3d333171025198d72e69e844d22a692f251beb18ddf435d9915a64f
5
5
  SHA512:
6
- metadata.gz: e269b0db8d1657b41d1913d092ae08e6ce3b717e2fcd3cde12ffe8c49fae30bafb3f1b63c610909f44e659815dae24ba119a5e1a9e4bf85f0c4b49450895f487
7
- data.tar.gz: 707dac136468912d26dfca5e9b2ac0f3b29488dee6e27f0be9aac43b98d289b2fd4a251909b261fb2ab0d98324dbb585339b2c8a2773df3d922472b46b6bfa08
6
+ metadata.gz: 004b6558fd5609bf8bbd2839efb586c49f6037a4834a6b50487350d9f203d389ad9d0a25372b902ded05b839db021f649918cc5b3626b2f9acadc6aaf74631ff
7
+ data.tar.gz: 791957d771aa5f0d0eab157730ad96ee9249a95a5ea2ca7525f30657b0d62e08fc9996e852faccd0b7ee41389df08bd6d38457fb3b223804c27bbb8fefbaeb32
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dotenv-vault (0.6.0)
4
+ dotenv-vault (0.7.0)
5
5
  dotenv
6
6
  lockbox
7
- dotenv-vault-rails (0.6.0)
7
+ dotenv-vault-rails (0.7.0)
8
8
  dotenv-rails
9
- dotenv-vault (= 0.6.0)
9
+ dotenv-vault (= 0.7.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module DotenvVault
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
data/lib/dotenv-vault.rb CHANGED
@@ -2,6 +2,7 @@ require "uri"
2
2
  require "dotenv"
3
3
  require "lockbox"
4
4
  require "dotenv-vault/version"
5
+ require "logger"
5
6
 
6
7
  module DotenvVault
7
8
  class NotFoundDotenvKey < ArgumentError; end
@@ -14,6 +15,10 @@ module DotenvVault
14
15
 
15
16
  class << self
16
17
  attr_accessor :instrumenter
18
+
19
+ def logger
20
+ @logger ||= Logger.new(STDOUT)
21
+ end
17
22
  end
18
23
 
19
24
  module_function
@@ -85,6 +90,8 @@ module DotenvVault
85
90
  #
86
91
  # Decrypts and loads to ENV
87
92
  def load_vault(*filenames)
93
+ DotenvVault.logger.info("[dotenv-vault] Loading .env.vault") if DotenvVault.logger
94
+
88
95
  parsed = parse_vault(*filenames)
89
96
 
90
97
  # Set ENV
@@ -97,6 +104,8 @@ module DotenvVault
97
104
  #
98
105
  # Decrypts and overloads to ENV
99
106
  def overload_vault(*filenames)
107
+ DotenvVault.logger.info("[dotenv-vault] Overloading .env.vault") if DotenvVault.logger
108
+
100
109
  parsed = parse_vault(*filenames)
101
110
 
102
111
  # Set ENV
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dotenv-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - motdotla