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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cf_light_api/worker.rb +6 -5
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 001c3e9b6a9fa4a183c3ae1d6af5d08ae95a115b
4
- data.tar.gz: c0909f9ec809a856acf0372c6d3e95a8524a3f5f
3
+ metadata.gz: 22b3da0494133ceb61c83acfc8d32db9dc776ec4
4
+ data.tar.gz: 50c7304ace0c402889d3927d5a77ff0f2a097023
5
5
  SHA512:
6
- metadata.gz: c60446f474f4e0f4c226011143c14db2db750407c7bee42d2bf76209a4e5f0eb8cbb4d2c3ae3fd69ebd6a42bea7f489d7f5856843462ef818a5b686f9b5aaa1d
7
- data.tar.gz: cde896df5a7859398a94b0dff96fb5a18b5bac312c675748ef909d7bbe5585723f231a302bbe2ab394a97c0da5a40aa53fec9644d8bfbf9d4d96729d761a2711
6
+ metadata.gz: 6940bfccfb8075be808df599b24b5444363b6070201b3df31a608884145ef8797d00b25492aed4714fe41faf952b05b7a22383efa7034e97cf6092b58313126a
7
+ data.tar.gz: 79dc83e1cf76fb8fe387c4d4b63136e4f221a27cf2edbf51c02324db5eed2e6e5af2ac5a768acacfa87973fd98dc1a9b109ee25761e71b89f61e0809e177a303
@@ -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'] = if buildpack_name.nil? or buildpack_name.empty?
341
- @buildpacks[buildpack_guid]['entity']['name']
342
- else
343
- buildpack_name
344
- end
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.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-21 00:00:00.000000000 Z
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: '0'
155
+ version: 1.3.1
156
156
  requirements: []
157
157
  rubyforge_project:
158
158
  rubygems_version: 2.5.2