lazy_lazer 0.8.0 → 0.8.1

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: 55bf334bce0c909389956b65961ebb47509dc3bf
4
- data.tar.gz: d13f32962f1218f44213c5221488396c2a3de4a5
3
+ metadata.gz: 1d7182e78cba5a90dd861a85e330ea1c6e17a692
4
+ data.tar.gz: 2952dc4c3e4ffa6c02e3ee515d473a86160dc10e
5
5
  SHA512:
6
- metadata.gz: 48988bc8b686edf6080fc1468d09ac7385cd77eefec05a7d370657d7248e02ce125c4546cae6940f201dc5349e6235783f4020c8a2c35de800ee616e3428de80
7
- data.tar.gz: e212429d02a6b1de380196d92fab5a79097c32032b9e9fa86edef7e3c4d4fe5a94b5e168ef46c512f92dc86575dc393ea02dc7f66e20db4059c764f9da996ede
6
+ metadata.gz: 86ba1c441b0aa58550fb8aa3eed902248051b7c585048a072cd77957d40825f0ab31051060a7961c4503fc3cfbf01258c74ae85fd00532fe06767937fae07063
7
+ data.tar.gz: c6efade604673a673fc89195432ac1e556d596c1c575145515fa020889c164d32310898160a351fca630a951053431dd1ccba52ea704b435689b8a8e35141e1a
data/Guardfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- guard :rspec, cmd: 'bundle exec rspec --format progress --fail-fast' do
3
+ guard :rspec, cmd: 'bundle exec rspec --format progress --fail-fast --only-failures' do
4
4
  watch(%r{^spec/.+_spec\.rb$})
5
5
  watch(%r{^lib/(.+)\.rb$}) { 'spec' }
6
6
  watch('spec/spec_helper.rb') { 'spec' }
@@ -21,10 +21,10 @@ module LazyLazer
21
21
  # @return [Hash] the converted hash
22
22
  def to_h(strict: false)
23
23
  todo = @key_metadata.keys - @cache.keys
24
- todo.each do |key|
25
- strict ? load_key_strict(key) : load_key_lenient(key)
24
+ todo.each_with_object({}) do |key, hsh|
25
+ loaded_key = (strict ? load_key_strict(key) : load_key_lenient(key))
26
+ hsh[key] = loaded_key if exists_locally?(key)
26
27
  end
27
- @cache.dup
28
28
  end
29
29
 
30
30
  # @return [String] the string representation of the parent
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LazyLazer
4
4
  # The gem's semantic version number.
5
- VERSION = '0.8.0'
5
+ VERSION = '0.8.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_lazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avinash Dwarapu