cf_light_api 3.1.1 → 3.1.2.pre
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 +6 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b3da0494133ceb61c83acfc8d32db9dc776ec4
|
4
|
+
data.tar.gz: 50c7304ace0c402889d3927d5a77ff0f2a097023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6940bfccfb8075be808df599b24b5444363b6070201b3df31a608884145ef8797d00b25492aed4714fe41faf952b05b7a22383efa7034e97cf6092b58313126a
|
7
|
+
data.tar.gz: 79dc83e1cf76fb8fe387c4d4b63136e4f221a27cf2edbf51c02324db5eed2e6e5af2ac5a768acacfa87973fd98dc1a9b109ee25761e71b89f61e0809e177a303
|
data/lib/cf_light_api/worker.rb
CHANGED
@@ -337,11 +337,12 @@ 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'] =
|
341
|
-
@buildpacks
|
342
|
-
|
343
|
-
|
344
|
-
|
340
|
+
v2_document['buildpack_name'] =
|
341
|
+
if @buildpacks.has_key?(buildpack_guid) and (buildpack_name.nil? or buildpack_name.empty?)
|
342
|
+
@buildpacks[buildpack_guid]['entity']['name']
|
343
|
+
else
|
344
|
+
buildpack_name
|
345
|
+
end
|
345
346
|
|
346
347
|
# Add space, stack and org names as a top level string attribute for ease of use:
|
347
348
|
v2_document['stack'] = app['entity']['stack']['entity']['name']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf_light_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Springer Platform Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cfoundry
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
|
-
- - "
|
153
|
+
- - ">"
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
155
|
+
version: 1.3.1
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
158
|
rubygems_version: 2.5.2
|