lazy_lazer 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
  SHA1:
3
- metadata.gz: 1ad5be6027b7147b22c96236407c5700e29cc7fe
4
- data.tar.gz: 742cdb3547d6ede2afe121fd14f9e113af4d8de1
3
+ metadata.gz: 87770d766cb1cb91b1a3ce364d73798d4755b3c7
4
+ data.tar.gz: 9836626f19ab5a49e6b5e77e1839da36c3c6d4e3
5
5
  SHA512:
6
- metadata.gz: d4ca6f7e61971cc4f12bdd5d7d9b9b30555d0f1b84777261b1bdafa65bcfed0c18b8b26cbdf6d29b78b2edc7c6272d38dff28fd52aba5405cae0c1b482232088
7
- data.tar.gz: 2a89cd5569b7f43292810b9fbbdbf75bf5d1b33ee339a578c56d89058a5aa7b1cddb8575324602214525c37a0eb7641ad09707b4e98e96440d916e7275ed1a38
6
+ metadata.gz: 8edcaba9086ee82a9faf1a967dc96bc2c70788b1203b897afd9fca8e009cbb4c4bdf2521c035fc70f26f1f1267fafbc4381b417f8d0c9391e7d22e21d1a69ca1
7
+ data.tar.gz: 21860070fa84bbc2c19d12f1d535cd0227c235e6ebf8af5ed49275d4c0928d25001bb82a70809871fdda68ec15dfb1c69759fe58e5ea55f4ff7035d01afbd63e
@@ -92,8 +92,8 @@ module LazyLazer
92
92
  def load_key_from_source(key_name)
93
93
  meta = ensure_metadata_exists(key_name)
94
94
  ensure_key_is_loaded(meta.source_key, meta.runtime_required?)
95
- raw_value = @source_hash.fetch(meta.source_key) { fetch_default(meta.default) }
96
- transform_value(raw_value, meta.transform)
95
+ return fetch_default(meta.default) unless @source_hash.key?(meta.source_key)
96
+ transform_value(@source_hash[meta.source_key], meta.transform)
97
97
  end
98
98
 
99
99
  # Ensure the metadata is found.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LazyLazer
4
4
  # The gem's semantic version number.
5
- VERSION = '0.6.0'
5
+ VERSION = '0.7.0'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_lazer
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
  - Avinash Dwarapu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-01 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler