manifest-builder 0.5.2 → 0.5.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60db236a806378564e531600878a0f8b04c7364c
|
4
|
+
data.tar.gz: 08cc016081a8f04a9a2fca6c0034aabe9591f0e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86e83f836a183772433dd1c63323fd0e4fdaa0465f0c4115929170815c7b4228ea1964c48bc491db0312f7b18a4f5e50b233c8adceadeb2eb563bca51b9f3956
|
7
|
+
data.tar.gz: 36731d0cc6942426305adee38cfadaddb23228f8ed004d6bd8adcccfb20d0ab60bea70f8cedf006e963c045f2ca8abb70117e689d70757a113feffa47ce7637d
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
manifest-builder (0.5.
|
4
|
+
manifest-builder (0.5.4)
|
5
5
|
archive-tar-minitar (= 0.5.2)
|
6
6
|
chefrepo-builder (>= 0.9.27, < 1.1)
|
7
|
-
cicd-builder (>= 0.9.
|
7
|
+
cicd-builder (>= 0.9.37, < 1.1)
|
8
8
|
json (>= 1.8.1, < 1.9)
|
9
9
|
s3etag (>= 0.0.1, < 0.1.0)
|
10
10
|
|
@@ -18,7 +18,7 @@ PATH
|
|
18
18
|
PATH
|
19
19
|
remote: ../cicd-builder
|
20
20
|
specs:
|
21
|
-
cicd-builder (0.9.
|
21
|
+
cicd-builder (0.9.37)
|
22
22
|
artifactory (>= 2.2.1, < 2.3)
|
23
23
|
awesome_print (>= 1.6, < 2.0)
|
24
24
|
aws-sdk (>= 2.0, < 2.1)
|
@@ -70,10 +70,11 @@ module CiCd
|
|
70
70
|
|
71
71
|
VER_RGX = %r'^\d+\.\d+(\.?\d)*$'
|
72
72
|
MMP_RGX = %r'^(\d+\.?){2,3}$'
|
73
|
+
EXT_RGX = %r'\.*(tar\.gz|tgz|tar.bzip2|bzip2|bz2|jar|war|[a-z]+)$'
|
73
74
|
# ---------------------------------------------------------------------------------------------------------------
|
74
75
|
def getVersionBuildFromName(artifact)
|
75
76
|
version = artifact.dup
|
76
|
-
version.gsub!(
|
77
|
+
version.gsub!(EXT_RGX, '')
|
77
78
|
version.gsub!(%r'^[a-zA-Z\-._]+', '')
|
78
79
|
build = ''
|
79
80
|
if version.match(VER_RGX)
|
@@ -48,13 +48,13 @@ module CiCd
|
|
48
48
|
unless ENV['PROJECT_NAMES'].nil?
|
49
49
|
if File.exists?(ENV['PROJECT_NAMES'])
|
50
50
|
@logger.info "Load PROJECT_NAMES: #{ENV['PROJECT_NAMES']}"
|
51
|
-
project_names = JSON.load(IO.read(ENV['PROJECT_NAMES']))
|
51
|
+
project_names = JSON.load(IO.read(ENV['PROJECT_NAMES'])) || {}
|
52
52
|
else
|
53
53
|
@logger.error "The PROJECT_NAMES file (#{ENV['PROJECT_NAMES']}) does not exist!"
|
54
54
|
@vars[:return_code] = Errors::NO_PROJECT_NAMES
|
55
55
|
end
|
56
56
|
end
|
57
|
-
exts = Hash[@vars[:artifacts].map { |a| [a[:data][:name], File.
|
57
|
+
exts = Hash[@vars[:artifacts].map { |a| [a[:data][:name], File.basename(a[:data][:file]).match(CiCd::Builder::Manifest::Build::EXT_RGX)[1]] }]
|
58
58
|
@manifest.each do |mod, man|
|
59
59
|
man.each do |prod, build|
|
60
60
|
projects[prod] = {
|
data/manifest-builder.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
-
gem.add_dependency 'cicd-builder', '>= 0.9.
|
20
|
+
gem.add_dependency 'cicd-builder', '>= 0.9.37', '< 1.1'
|
21
21
|
gem.add_dependency 'chefrepo-builder', '>= 0.9.27', '< 1.1'
|
22
22
|
# gem.add_dependency 'ansiblerepo-builder', '>= 0.3.7', '< 0.5'
|
23
23
|
gem.add_dependency 'json', '>= 1.8.1', '< 1.9'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifest-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christo De Lange
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cicd-builder
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.37
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '1.1'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.9.
|
29
|
+
version: 0.9.37
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '1.1'
|