clc-promote 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/promote/versioner.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a603c503996b8d89c7de91b3ffb24295967fe30
4
- data.tar.gz: 8e6c206fcaf9053bfa8d020cc6dc945ea938f80c
3
+ metadata.gz: 6d316a9ea6001e68fb5427d676538a9072eb3e30
4
+ data.tar.gz: 0fc122ef2946c25a1d537242941afa309e0504e0
5
5
  SHA512:
6
- metadata.gz: 5dbb89dfcb77be54438b34374792cdaff889d74eda89c9da4b254aa8dda5ec8ca46325468728622edc93f14ac4cbdcde9477d6fcde6082646075106b52bedf6c
7
- data.tar.gz: ad16149483246bdc6ba0e70ccfd736f1a02d317e0b0b64878e24745325a31a1000210c3f0d5f6a8188f72e92b7c8873405c1c6d299fd6595173da47302d749b6
6
+ metadata.gz: 17b681a4316f945ba1411f8c7666e3e415a4fa38d37a779cbe46fcf2ef80a96b9c4b5f58d5ffadd5c8c9015a91132050ea6bcb4ad00e7565d64f81744cff388a
7
+ data.tar.gz: 0a61eb79353a14b8eaecd04d4ff4a44c81264bae0c709608f4b16bca49acbf0309f644aa50cb5e0de2718c062c867d1d7ad70503b8bcf0c583e47fbed5c68c89
@@ -82,11 +82,11 @@ module Promote
82
82
  content_hash = content
83
83
  end
84
84
 
85
- if content_hash.has_key?(version_string)
85
+ if !content_hash.nil? && content_hash.has_key?(version_string)
86
86
  current_version = content_hash[version_string]
87
87
  end
88
88
 
89
- if current_version != version
89
+ if !content_hash.nil? && current_version != version
90
90
  content_hash[version_string] = version
91
91
  content_hash['sha1'] = repo.sha1
92
92
  File.open(file, 'w') do |out|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-promote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud