mixlib-install 3.5.0 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cbca7cb9a853574779432ba1d0e08f2444bf925
4
- data.tar.gz: 01151257065ddfdd27a4665198c35781727bcc01
3
+ metadata.gz: 224dcc037895554bd5679293fef66f390ce7cb76
4
+ data.tar.gz: bdc66954227ce1851bb604cd0eff7ec23a8a0ad7
5
5
  SHA512:
6
- metadata.gz: a0f8a54590f1f33f8e45ffc4d73925e435cf1c229ce6778960251811e3c3ca60465693e7bb08c70a1f76006ca8e09262a78a642530a985202ba43b83cb0d682d
7
- data.tar.gz: 0e2b10d4207acf6ee5fcc551f1011d4cc927a9dc1ff511c1437f8bbf4b9209866353b6c994ba87131e88befe2ae8f6e227fb7d249784cc889daafdf645abf7e1
6
+ metadata.gz: 12ef14553be2d62a37f6b117c8057f40a6eaf88801b4e4b7f819403db452d2c33c4b55c6f55e3b7987c3544e525176c8e12ef249feb1a7d4b0bd3cc0a31146d5
7
+ data.tar.gz: 8857e431fb8d93eddabae414f16de27d9be945abe185b339de17ad8bd4eecacc5b0616722e75615e4effdd472866d0668efbb84aa35879cb74e7aa7a26fdeb3f
@@ -1,9 +1,10 @@
1
1
  # Mixlib::Install Changes
2
2
 
3
- <!-- latest_release unreleased -->
4
- ## Unreleased
3
+ <!-- latest_release 3.5.1 -->
4
+ ## [v3.5.1](https://github.com/chef/mixlib-install/tree/v3.5.1) (2017-09-08)
5
5
 
6
6
  #### Merged Pull Requests
7
+ - Return nil when looking up non-existing products [#241](https://github.com/chef/mixlib-install/pull/241) ([adamleff](https://github.com/adamleff))
7
8
  - v3.5.0 [#239](https://github.com/chef/mixlib-install/pull/239) ([wrightp](https://github.com/wrightp))
8
9
  - download url override and checksum updates [#237](https://github.com/chef/mixlib-install/pull/237) ([wrightp](https://github.com/wrightp))
9
10
  <!-- latest_release -->
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.5.0
1
+ 3.5.1
@@ -162,6 +162,9 @@ module Mixlib
162
162
  #
163
163
  # @return [Product]
164
164
  def lookup(key, version = :latest)
165
+ # return nil unless the product exists
166
+ return nil unless @product_map.key?(key)
167
+
165
168
  product = @product_map[key]
166
169
  # We set the lookup version for the product to a very high number in
167
170
  # order to mimic :latest so that one does not need to handle this
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.5.0"
3
+ VERSION = "3.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-31 00:00:00.000000000 Z
12
+ date: 2017-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout