lib/mixlib/install/backend/artifactory.rb in mixlib-install-0.8.0.alpha.6 vs lib/mixlib/install/backend/artifactory.rb in mixlib-install-0.8.0.alpha.7

- old
+ new

@@ -44,14 +44,14 @@ # @return [ArtifactInfo] arifact info for the configured # channel, product name, product version and platform info # def info artifacts = if options.latest_version? - artifactory_latest - else - artifactory_artifacts(options.product_version) - end + artifactory_latest + else + artifactory_artifacts(options.product_version) + end if options.platform artifacts.select! do |a| a.platform == options.platform && a.platform_version == options.platform_version && @@ -92,10 +92,10 @@ # Now check if the build is in the requested channel or not # Note that if you do this for any channel other than :unstable # it will run a high number of queries but it is fine because we # are using artifactory only for :unstable channel builds["buildsNumbers"].each do |build| - version = build["uri"].gsub("/", "") + version = build["uri"].delete("/") artifacts = artifactory_artifacts(version) return artifacts unless artifacts.empty? end