cicd-builder 0.9.21 → 0.9.22

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: b5997ce016935933a16e31bad2374ad28170d0b6
4
- data.tar.gz: 0f45b8e40deb168995ece08164ec54e5d06832b6
3
+ metadata.gz: 60f6cd173013c2c4343cae48bee777fc75b450a1
4
+ data.tar.gz: 10722c4dc8d8d9693e8d1ad030cb7b39fa56bd33
5
5
  SHA512:
6
- metadata.gz: ae39720b981c4c094797a05fa94a997b564b658c3621d04845ded682c43d34f3769991635bbcc7b9d02606088e6693d48b1f241d5cf4059cb341fedc1d5c8474
7
- data.tar.gz: 33b2c63fccad7840fc74b7712f983f4a8a6ae23fa75bdda4435989eede55458ea8bc40ddc6909c0d64fd99dd325e5d49dc18f2fc03b06418ab543ac1ac42717b
6
+ metadata.gz: abd58c4b4f76a280959291e5ee9c82499887a390d029f2d2eee2cf5adecfb58c433da86c4461d26b10010340922b6f07315161cab4a141f595ea6cb200c2cae0
7
+ data.tar.gz: 51195a5fe1bc78f58f4c7a24f1e9d2f56c1e3a25880d06af7f83fa3b55c246ee6b8c53921050dd656c2e0841f6ffa7cc8e356d28671fc81c6b275ed2077c41f4
@@ -40,7 +40,8 @@ module CiCd
40
40
  if ENV.has_key?('RELEASE')
41
41
  @vars[:release] = ENV['RELEASE']
42
42
  elsif File.exists?((version_file=File.join(ENV['REPO_DIR'], 'RELEASE')))
43
- @vars[:release] = File.readlines(version_file).shift
43
+ lines = File.readlines(version_file)
44
+ @vars[:release] = lines.shift.chomp() if lines.count > 0
44
45
  else
45
46
  raise "'RELEASE' was not provided in either environment or #{version_file} file"
46
47
  end
@@ -48,7 +49,8 @@ module CiCd
48
49
  if ENV.has_key?('VERSION')
49
50
  @vars[:version] = ENV['VERSION']
50
51
  elsif File.exists?((version_file=File.join(ENV['REPO_DIR'], 'VERSION')))
51
- @vars[:version] = File.readlines(version_file).shift
52
+ lines = File.readlines(version_file)
53
+ @vars[:version] = lines.shift.chomp() if lines.count > 0
52
54
  else
53
55
  raise "'VERSION' was not provided in either environment or #{version_file} file"
54
56
  end
@@ -4,7 +4,7 @@ module CiCd
4
4
  # file = File.expand_path("#{File.dirname(__FILE__)}/../../../VERSION")
5
5
  # lines = File.readlines(file)
6
6
  # version = lines[0]
7
- version = '0.9.21'
7
+ version = '0.9.22'
8
8
  VERSION = version unless const_defined?('VERSION')
9
9
  major, minor, tiny = VERSION.split('.')
10
10
  MAJOR = major unless const_defined?('MAJOR')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cicd-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.21
4
+ version: 0.9.22
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: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print