wjordan-mixlib-install 0.8.0.alpha.6 → 0.8.0.fork.7

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: a8dcb1c8c186b62fc6349e1ba9d7c0ed6ee055b6
4
- data.tar.gz: 6651b86304ae0ee9ae96dfd862f28aa0f4f9257f
3
+ metadata.gz: 0d0824f1a03fe613c10e0ee60a44cde61fe9c974
4
+ data.tar.gz: c56f5a828e41b58fe8f37592a8c66efc372a02a8
5
5
  SHA512:
6
- metadata.gz: 50e9eca0ce56ce29d66510a69361dd513436d114099ce55c311f81885104420027aafd97b2f2e27e591677fe669fe0ab1f7c4c790feae0bc8076ed7294f2cab3
7
- data.tar.gz: b3a357238d315fcc6d8b14f4c84c68a8f3a2b6e83227ab93c4089f384e89c494cad1777791bc8efe22d9b34bfda55591b6807eee1dab7104082a75c0871749b7
6
+ metadata.gz: 00c1b9c6b1715a49c2f03f02eb3ffd448171835f32c931d58c05faf8bb182d57253428e59ce0c270ae303b2e3c3f41e6b74d401f3bdbfee771f7644277596c5b
7
+ data.tar.gz: b12381cf602c6fb9989bec5eda25f57c338fdb62ec54ae4a348a7b0212c53e8f9b9ac2af0e1ba1911d03703bcb727f86dfbb687403a9961b596b772a55a1e788
@@ -37,8 +37,10 @@ module Mixlib
37
37
  #
38
38
  # Fetch artifact metadata information
39
39
  #
40
- # @return [ArtifactInfo] fetched artifact data
41
- #
40
+ # @return [Array<ArtifactInfo>] list of fetched artifact data for the configured
41
+ # channel, product name, and product version.
42
+ # @return [ArtifactInfo] fetched artifact data for the configured
43
+ # channel, product name, product version and platform info
42
44
  def artifact_info
43
45
  Backend.info(options)
44
46
  end
@@ -94,7 +96,9 @@ module Mixlib
94
96
  def upgrade_available?
95
97
  return true if current_version.nil?
96
98
 
97
- available_ver = Mixlib::Versioning.parse(artifact_info.first.version)
99
+ artifact = artifact_info
100
+ artifact = artifact.first if artifact.is_a? Array
101
+ available_ver = Mixlib::Versioning.parse(artifact.version)
98
102
  current_ver = Mixlib::Versioning.parse(current_version)
99
103
  (available_ver > current_ver)
100
104
  end
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "0.8.0.alpha.6"
3
+ VERSION = "0.8.0.fork.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wjordan-mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.alpha.6
4
+ version: 0.8.0.fork.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Jordan