mixlib-install 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7929d1cc91a8524f883dcb8b1bfab5b2172b4bb3
4
- data.tar.gz: b9f9e0442984900dde13142e393b78a9e2751c76
3
+ metadata.gz: 1b9844b39b2a0f932cc0c28d8ea483257be98e66
4
+ data.tar.gz: 6a57e3f38c78962adbbb4a49fb9af22f33689dfc
5
5
  SHA512:
6
- metadata.gz: 3515ad67a51e57f7dd96e9fb22ca37b62b342dd21a0a0364926858b175472d1c29d9e92d035f46ede72cb5afc53b5813cf2444f40caa81e1a8d398367f7c715c
7
- data.tar.gz: a6595942db9137fbd265226cc584c53d9d79a051f90b569d969565e74ec592a9bc53ee2a44ca192e62970cd4a1826aa0fdb70cb98d6728d320ac9a5f2b6c4ce5
6
+ metadata.gz: 20883ba88a6dc6886422e4396fe4ef01340c905c7f1f81fd6d67800b83ede9856a0b975f93b24958c12c613831b0dbe326c7b0afd97d2d3483d5e3f1bcfa8092
7
+ data.tar.gz: 2da868dcb318fd3973833004dc09235cae1b948771aab3fceba9a2fbda51262c5ac4e869ec091f96527079e2e099341bcbcd3c81d4f0040eb02065f55fd87ec0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [2.0.4]
4
+ - Normalize auto detect platform architectures
5
+
3
6
  ## [2.0.3]
4
7
  - Add harmony as a supported product
5
8
 
@@ -175,6 +175,25 @@ module Mixlib
175
175
 
176
176
  [platform, platform_version]
177
177
  end
178
+
179
+ #
180
+ # Normalizes architecture information that we receive from omnibus.architecture
181
+ #
182
+ # @param [String] architecture
183
+ #
184
+ # @return String [architecture]
185
+ def normalize_architecture(architecture)
186
+ case architecture
187
+ when "amd64"
188
+ "x86_64"
189
+ when "x86", "i86pc", "i686"
190
+ "i386"
191
+ when "sun4u", "sun4v"
192
+ "sparc"
193
+ else
194
+ architecture
195
+ end
196
+ end
178
197
  end
179
198
  end
180
199
  end
@@ -42,7 +42,6 @@ module Mixlib
42
42
  else
43
43
  artifacts_for_version(options.product_version)
44
44
  end
45
-
46
45
  windows_artifact_fixup!(artifacts)
47
46
  end
48
47
 
@@ -226,20 +225,6 @@ Can not find any builds for #{options.product_name} in #{endpoint}.
226
225
  def omnibus_project
227
226
  @omnibus_project ||= PRODUCT_MATRIX.lookup(options.product_name, options.product_version).omnibus_project
228
227
  end
229
-
230
- #
231
- # Normalizes architecture information that we receive.
232
- #
233
- # @param [String] architecture
234
- #
235
- # @return String [architecture]
236
- def normalize_architecture(architecture)
237
- if %w{ sun4u sun4v }.include?(architecture)
238
- architecture = "sparc"
239
- end
240
-
241
- architecture
242
- end
243
228
  end
244
229
  end
245
230
  end
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "2.0.3"
3
+ VERSION = "2.0.4"
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: 2.0.3
4
+ version: 2.0.4
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-10-03 00:00:00.000000000 Z
12
+ date: 2016-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artifactory