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.
- checksums.yaml +4 -4
- data/lib/promote/versioner.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d316a9ea6001e68fb5427d676538a9072eb3e30
|
4
|
+
data.tar.gz: 0fc122ef2946c25a1d537242941afa309e0504e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b681a4316f945ba1411f8c7666e3e415a4fa38d37a779cbe46fcf2ef80a96b9c4b5f58d5ffadd5c8c9015a91132050ea6bcb4ad00e7565d64f81744cff388a
|
7
|
+
data.tar.gz: 0a61eb79353a14b8eaecd04d4ff4a44c81264bae0c709608f4b16bca49acbf0309f644aa50cb5e0de2718c062c867d1d7ad70503b8bcf0c583e47fbed5c68c89
|
data/lib/promote/versioner.rb
CHANGED
@@ -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|
|