ravioli 0.1.6 → 0.1.7

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: a0f1dc00885f0dfdf291b2e81d158f093808d5200c062ebec79a534332b88f9b
4
- data.tar.gz: 6cf7a6e99487f216c3ca1ca0de08d57e7b2b0b2b7a2a5b69c7a23ee58912297b
3
+ metadata.gz: a42c50f1ae58ea21c70956c3a2fda57084dc20042efc3e163c26b80a8ecc8c58
4
+ data.tar.gz: 2fafc358079f1bab16f25e36563dc5f843fedd7d85e32b8e34ca337b2c3c23ee
5
5
  SHA512:
6
- metadata.gz: 32c99eb0bd607e0ea8a700397edf49db62079b03c5e54684e4f53302abafdbbb368a0cfc014ccffd2e67f2a2beff2b6110c65cda437c620267be3af8e0389587
7
- data.tar.gz: aa552b5b5f826d14fb483b9af2c56de0003fca8d7500dcc97ba842568c91be7b01dfe77bea53ef5775b278ca338913a855a08d0c5a84fb8b4f1a663ea9aa5ee9
6
+ metadata.gz: bf02967cc19dfba1c24a0db7da932999896c278635a8be0c45d6966d4d9e76d2517290770a8d608842b4978beb9c05621b532023ffd2bbd8eed484155c3327b8
7
+ data.tar.gz: 77bdfbaeb3210f7033e9837d7c52003118fc45edaec020595276f455260cb13a186c1c1239c3bf96e5e4965acb3c3f1b250fc0766e1f5d6957c89d662c633d5e
@@ -213,7 +213,7 @@ module Ravioli
213
213
  @reload_credentials.add(@current_credentials)
214
214
  end
215
215
 
216
- configuration.send(*args, &block)
216
+ configuration.fetch_env_key_for(args) { configuration.send(*args, &block) }
217
217
  end
218
218
  # rubocop:enable Style/MissingRespondToMissing
219
219
  # rubocop:enable Style/MethodMissingSuper
@@ -45,6 +45,11 @@ module Ravioli
45
45
  dig(*keys) || yield
46
46
  end
47
47
 
48
+ def fetch_env_key_for(keys, &block)
49
+ env_key = key_path_for(keys).join("_").upcase
50
+ ENV.fetch(env_key, &block)
51
+ end
52
+
48
53
  def pretty_print(printer = nil)
49
54
  table.pretty_print(printer)
50
55
  end
@@ -80,11 +85,6 @@ module Ravioli
80
85
  end
81
86
  end
82
87
 
83
- def fetch_env_key_for(keys, &block)
84
- env_key = key_path_for(keys).join("_").upcase
85
- ENV.fetch(env_key, &block)
86
- end
87
-
88
88
  def key_path_for(keys)
89
89
  Array(key_path) + Array(keys)
90
90
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ravioli
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravioli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flip Sasser