mixlib-install 1.0.9 → 1.0.10

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: c63e09a7ebe4166626811ca0456ea1eff7af1828
4
- data.tar.gz: e5721c290d6d34796f86c9ad6303432265ff6128
3
+ metadata.gz: 03929d3bab7753839718857039be870546202ee5
4
+ data.tar.gz: cc933994d3a8c50a20cf6fcaa328ddf97475e68d
5
5
  SHA512:
6
- metadata.gz: 988bd0f5658f65b6f52a2dcbf7147385a6556cb288ad992b9f8b35fa04d45e7da645a43ba860bbfa6ee0a4a185586bd26d2bf32543d128cb6e4f7d4ec3fcfa9a
7
- data.tar.gz: 6a929fef500e497365835f01aaf4f15b1acd1a300c454604c186d26a3b9868f56e21e5d989054c6d5ecddcc9ae2ba9fbda074a1261741d979ad21173e6f97565
6
+ metadata.gz: d83a3f88f72136251caf55268d7729f02e03ec135963794b29183c5d4d72c1439a8d7e06939a9447a41cea18dffb39da42f8ffbeca3ed85945edcefd06fd7690
7
+ data.tar.gz: 1a1af862a6b4f89e22c58102abc504f3ce2852b41203edee62e35a8f0d729d8ea11eeda662e4e59c2842327f02825e5d1988ba0b57a76482836433376d5c2c5f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.10]
4
+ - Correctly parse architecture for ppc64el.
5
+ - Return chef.bintray.com based urls for solaris9 and solaris10.
6
+ - Handle historical artifacts published for solaris.
7
+
3
8
  ## [1.0.9]
4
9
  - Update platform detection scripts to recognize debian 8 correctly.
5
10
 
@@ -219,7 +219,7 @@ module Mixlib
219
219
  platform_info = parse_platform_info(artifact_map)
220
220
 
221
221
  base_url = case "#{platform_info[:platform]}-#{platform_info[:platform_version]}"
222
- when "freebsd-9", "el-5"
222
+ when "freebsd-9", "el-5", "solaris2-5.9", "solaris2-5.10"
223
223
  COMPAT_DOWNLOAD_URL_ENDPOINT
224
224
  else
225
225
  DOWNLOAD_URL_ENDPOINT
@@ -247,6 +247,7 @@ module Mixlib
247
247
  path = artifact_map["path"].split("/")
248
248
  platform = path[0]
249
249
  platform_version = path[1]
250
+ platform, platform_version = normalize_platform(platform, platform_version)
250
251
 
251
252
  filename = artifact_map["name"]
252
253
  architecture = parse_architecture_from_file_name(filename)
@@ -258,6 +259,29 @@ module Mixlib
258
259
  }
259
260
  end
260
261
 
262
+ #
263
+ # Normalizes platform and platform_version information that we receive
264
+ # from bintray. There are a few entries that we historically published
265
+ # that we need to normalize. They are:
266
+ # * solaris -> solaris2 & 10 -> 5.10 for solaris.
267
+ #
268
+ # @param [String] platform
269
+ # @param [String] platform_version
270
+ #
271
+ # @return Array<String> [platform, platform_version]
272
+ def normalize_platform(platform, platform_version)
273
+ if platform == "solaris"
274
+ platform = "solaris2"
275
+
276
+ # Here platform_version is set to either 10 or 11 and we would like
277
+ # to normalize that to 5.10 and 5.11.
278
+
279
+ platform_version = "5.#{platform_version}"
280
+ end
281
+
282
+ [platform, platform_version]
283
+ end
284
+
261
285
  #
262
286
  # Determines the architecture for which a file is published from from
263
287
  # filename.
@@ -288,8 +312,8 @@ module Mixlib
288
312
  elsif %w{ sparc sun4u sun4v }.fuzzy_include?(filename)
289
313
  "sparc"
290
314
  # Note that ppc64le should come before ppc64 otherwise our search
291
- # will think ppc64le matches ppc64.
292
- elsif %w{ ppc64le }.fuzzy_include?(filename)
315
+ # will think ppc64le matches ppc64. Ubuntu also calls it ppc64el.
316
+ elsif %w{ ppc64le ppc64el }.fuzzy_include?(filename)
293
317
  "ppc64le"
294
318
  elsif %w{ ppc64 }.fuzzy_include?(filename)
295
319
  "ppc64"
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "1.0.9"
3
+ VERSION = "1.0.10"
4
4
  end
5
5
  end
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rspec", "~> 3.3"
27
27
  spec.add_development_dependency "pry"
28
28
  spec.add_development_dependency "vcr"
29
- spec.add_development_dependency "webmock"
29
+ spec.add_development_dependency "webmock", "~> 1.0"
30
30
  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.9
4
+ version: 1.0.10
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-19 00:00:00.000000000 Z
12
+ date: 2016-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artifactory
@@ -127,16 +127,16 @@ dependencies:
127
127
  name: webmock
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ">="
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: '0'
132
+ version: '1.0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ">="
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: '0'
139
+ version: '1.0'
140
140
  description:
141
141
  email:
142
142
  - thom@chef.io