lazy_lazer 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Guardfile +1 -1
- data/lib/lazy_lazer/internal_model.rb +3 -3
- data/lib/lazy_lazer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d7182e78cba5a90dd861a85e330ea1c6e17a692
|
4
|
+
data.tar.gz: 2952dc4c3e4ffa6c02e3ee515d473a86160dc10e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/lazy_lazer/version.rb
CHANGED