lhs 5.6.3 → 5.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhs/concerns/record/request.rb +1 -1
- data/lib/lhs/version.rb +1 -1
- data/spec/record/includes_spec.rb +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d5463ddb8aecb066995d59a8ef055bafd5b98ea
|
4
|
+
data.tar.gz: 13ff6360d6817f2615adde2c9a833abd3681e6d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153293dfe1a6c8619a50e43d2f64d4616bd5fae5045aa95052b719d10bac03735aa0fe81f184792c74ef29ab31d83423b6b6b6662fadc8e8ea0c880cff57493f
|
7
|
+
data.tar.gz: 947150959ead6112b621ea868e8f4e3481195397e5cbc4277caacbefabaae31beb9558bb0f8bb6ef458eb7b2df1f1428e00740ee00d04d8b265ed456033953bb
|
data/lib/lhs/version.rb
CHANGED
@@ -292,4 +292,24 @@ describe LHS::Record do
|
|
292
292
|
expect(place.relations[1].name).to eq 'ZeFrank'
|
293
293
|
end
|
294
294
|
end
|
295
|
+
|
296
|
+
context 'empty collections' do
|
297
|
+
it 'skips including empty collections' do
|
298
|
+
class Place < LHS::Record
|
299
|
+
endpoint ':datastore/place'
|
300
|
+
endpoint ':datastore/place/:id'
|
301
|
+
end
|
302
|
+
|
303
|
+
stub_request(:get, "#{datastore}/place/1")
|
304
|
+
.to_return(body: {
|
305
|
+
'available_products' => {
|
306
|
+
"url" => "#{datastore}/place/1/products",
|
307
|
+
"items" => []
|
308
|
+
}
|
309
|
+
}.to_json)
|
310
|
+
|
311
|
+
place = Place.includes(:available_products).find(1)
|
312
|
+
expect(place.available_products.empty?).to eq true
|
313
|
+
end
|
314
|
+
end
|
295
315
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhs/graphs/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lhc
|