manifest-builder 0.5.6 → 0.5.7

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: 5fca672bc384323782ececfc914b4aad61b66e6e
4
- data.tar.gz: 361f062381aa0c5725298087193aefd0ec13a18e
3
+ metadata.gz: 95e147aba1f376b4b337040e53f40e87467c8a65
4
+ data.tar.gz: 8bbffe5a8e5a26d32b7fd69a5724d39b16bab530
5
5
  SHA512:
6
- metadata.gz: df05492e33d0542fb90fd4b803735e7b3729cbabf0822ae5ec965993d012b679b9f3c9a8ce64f296fa32691c4a484094530a9174abbebff51396196fa9356c37
7
- data.tar.gz: 992e851fe4f11a89b2a5794195e954313ecba00e07f1a7ba95dcb6e883cc414f41b84b88ba9e8ab05de3e10906e5534da2616b07c241deacf35541753768cea4
6
+ metadata.gz: 69b4123af234dba7578882ac48e563a59b72c86f450ac77f0c3db9e86df003fd9c66754ba0e605469c9d089cf8d4cd0fc9293c608a8a2adb67cf67bc861c24ad
7
+ data.tar.gz: 59ff919e6bb0c17aa29f8ce65921c536f4c138498a985de1a7d02c8d80c98e72548e4777d55aff9d174cbe0891e6ec218487a9e72acf04433cb41b4f1cf8df94
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- manifest-builder (0.5.6)
4
+ manifest-builder (0.5.7)
5
5
  archive-tar-minitar (= 0.5.2)
6
6
  chefrepo-builder (>= 0.9.27, < 1.1)
7
7
  cicd-builder (>= 0.9.38, < 1.1)
@@ -67,16 +67,17 @@ module CiCd
67
67
  @vars[:return_code] = Errors::NO_PROJECT_NAMES
68
68
  end
69
69
  end
70
+ exts = {}
70
71
  exts = Hash[@vars[:artifacts].map { |a| [a[:data][:name], File.basename(a[:data][:file]).match(CiCd::Builder::Manifest::Build::EXT_RGX)[1]] }]
71
- @manifest.each do |mod, man|
72
- man.each do |prod, build|
73
- projects[prod] = {
74
- name: project_names[prod] || prod,
75
- module: mod,
76
- ext: exts[prod],
77
- class_filter: '',
78
- }
79
- end
72
+ @vars[:artifacts].each do |art|
73
+ prod = art[:data][:name]
74
+ mod = art[:data][:module]
75
+ projects[prod] = {
76
+ name: project_names[prod] || prod,
77
+ module: mod,
78
+ ext: exts[prod],
79
+ class_filter: '',
80
+ }
80
81
  end
81
82
  @logger.info "Save PROJECTS_FILE: #{ENV['PROJECTS_FILE']}"
82
83
  IO.write(ENV['PROJECTS_FILE'], JSON.pretty_generate(projects, {indent: "\t", space: ' '}))
@@ -107,7 +108,7 @@ module CiCd
107
108
  key: amn,
108
109
  data: data.dup,
109
110
  }
110
- manifest[amn]={ amn => "#{@vars[:build_ver]}-#{@vars[:build_num]}" }
111
+ # manifest[amn]={ amn => "#{@vars[:build_ver]}-#{@vars[:build_num]}" }
111
112
 
112
113
  maybeUploadArtifactoryObject(data: data, artifact_module: amn, artifact_version: data[:version] || @vars[:version], file_name: '', file_ext: 'properties')
113
114
  end
@@ -137,7 +138,7 @@ module CiCd
137
138
  data: data.dup,
138
139
  }
139
140
  # noinspection RubyStringKeysInHashInspection
140
- manifest["#{mod}-manifest"]={ "#{mod}-manifest" => "#{@vars[:build_ver]}-#{@vars[:build_num]}" }
141
+ # manifest["#{mod}-manifest"]={ "#{mod}-manifest" => "#{@vars[:build_ver]}-#{@vars[:build_num]}" }
141
142
 
142
143
  maybeUploadArtifactoryObject(data: data, artifact_module: data[:name], artifact_version: data[:version] || @vars[:version], file_name: '', file_ext: 'properties') # -#{@vars[:variant]}
143
144
  end
@@ -2,7 +2,7 @@ module CiCd
2
2
  module Builder
3
3
  module Manifest
4
4
  # manifest-builder version
5
- VERSION = '0.5.6'
5
+ VERSION = '0.5.7'
6
6
  MAJOR, MINOR, TINY = VERSION.split('.')
7
7
  PATCH = TINY
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manifest-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christo De Lange