mixlib-install 1.0.7 → 1.0.8

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: 1f97e96c2518ed60e539508862a7a28f5723a3f0
4
- data.tar.gz: 4314c9122dd89b1262f8224c82b23f2c595d4235
3
+ metadata.gz: 87dfa89ef1371eab40d41a59503445ae02e47305
4
+ data.tar.gz: 20795a2be73611e6e4ebfd23de3871558f5593ff
5
5
  SHA512:
6
- metadata.gz: 6ce6fb3c324c3d24af79a4f534ef9f48152f6dbf34726cfb6a494ca915912cd585ab2b9dbe78f9764964b5508744afde09aeb3b66f59195c8752d70e56ee6459
7
- data.tar.gz: c2c452e437715e33a32e30a7e3b0b2cac92919f65378d7d5cfe7effd33f4b2515772972b795b296184f28914d2c66abc7612b34614cdc4676d75d0300d88a863
6
+ metadata.gz: a514cfc57cdca321801d2dacf32b3fa3c57f5ec51f99bd492137aca5720e7163ae4159c5e16fe3aa9a9c635af7f9a395d58d7512b108e419daf5b547ccb8354c
7
+ data.tar.gz: 7fdae041f9eb488546c010e215d40e9f00eeba0d6247b2b35a3d0dd381744f2153a4b0a114507f46e206f7332b122c11af00dec238555e30dcfc116c9716a040
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.8]
4
+ ### Fixed
5
+ - Resolving artifacts from unstable channel properly map the product name to the relative package name when querying Artifactory.
6
+
3
7
  ## [1.0.7]
4
8
  ### Changed
5
9
  - Relax all gemspec dependency versions
@@ -21,6 +21,7 @@ require "json"
21
21
  require "mixlib/install/artifact_info"
22
22
  require "artifactory"
23
23
  require "mixlib/install/backend/base"
24
+ require "mixlib/install/product"
24
25
 
25
26
  module Mixlib
26
27
  class Install
@@ -70,7 +71,7 @@ module Mixlib
70
71
  # Get the list of builds from the REST api.
71
72
  # We do this because a user in the readers group does not have
72
73
  # permissions to run aql against builds.
73
- builds = client.get("/api/build/#{options.product_name}")
74
+ builds = client.get("/api/build/#{package_name}")
74
75
 
75
76
  if builds.nil?
76
77
  raise NoArtifactsError, <<-MSG
@@ -112,7 +113,7 @@ Can not find any builds for #{options.product_name} in #{::Artifactory.endpoint}
112
113
  results = artifactory_query(<<-QUERY
113
114
  items.find(
114
115
  {"repo": "omnibus-#{options.channel}-local"},
115
- {"@omnibus.project": "#{options.product_name}"},
116
+ {"@omnibus.project": "#{package_name}"},
116
117
  {"@omnibus.version": "#{version}"},
117
118
  {"name": {"$nmatch": "*.metadata.json" }}
118
119
  ).include("repo", "path", "name", "property")
@@ -207,6 +208,10 @@ the endpoint is correct and there is an open connection to Chef's private networ
207
208
 
208
209
  results
209
210
  end
211
+
212
+ def package_name
213
+ @package_name ||= PRODUCT_MATRIX.lookup(options.product_name, options.product_version).package_name
214
+ end
210
215
  end
211
216
  end
212
217
  end
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "1.0.7"
3
+ VERSION = "1.0.8"
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: 1.0.7
4
+ version: 1.0.8
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: 2016-04-15 00:00:00.000000000 Z
12
+ date: 2016-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artifactory