cf_light_api 3.1.0.pre1 → 3.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cf_light_api/worker.rb +4 -4
- 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: 7ff78a68989ce35ccf9869ef70ae1b6e4d1d3e4c
|
4
|
+
data.tar.gz: 006fd1b13c50b3c6fa3f502df3ebe19fab613332
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d73e55f15c3c80fa249d018ea4c140e21e018b0cec9195bfbf02283a370af54f2adca9b52a91719b235f5ae3dfca79a06a0413fa4905a62fb2d60bdb4b8027a
|
7
|
+
data.tar.gz: c10d31c86449d42217af2af3db5e9bfbf40923f48e5d29e47ce4be6899ea515afd689165ae1f4cb649c5b356116168be854956e1cb3ace8fe6a101705ca1cf48
|
data/lib/cf_light_api/worker.rb
CHANGED
@@ -337,10 +337,10 @@ class CFLightAPIWorker
|
|
337
337
|
buildpack_name = app['entity']['buildpack']
|
338
338
|
buildpack_guid = app['entity']['detected_buildpack_guid']
|
339
339
|
|
340
|
-
v2_document['buildpack_name'] = buildpack_name
|
341
|
-
|
342
|
-
|
343
|
-
|
340
|
+
v2_document['buildpack_name'] = if buildpack_name.nil? or buildpack_name.empty?
|
341
|
+
@buildpacks[buildpack_guid]['entity']['name']
|
342
|
+
else
|
343
|
+
buildpack_name
|
344
344
|
end
|
345
345
|
|
346
346
|
# Add space, stack and org names as a top level string attribute for ease of use:
|