cicd-builder 0.9.39 → 0.9.40
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cicd/builder/mixlib/build.rb +5 -1
- data/lib/cicd/builder/version.rb +1 -1
- 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: 18260696b0b012ac7829365baf9563565d756772
|
4
|
+
data.tar.gz: 3f62a59b205626956a73875be89bd1ef52b5ba2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35e767175775594fa15a1156b54e6d33fa521ab23d2002ed97b1de252a4d171a5f5caf428f39c8f5809b52b008d81c3aaf43ee2775104a9d979ad6934ef6e7d4
|
7
|
+
data.tar.gz: 3257f84bf9bbd4a24346cc6d106f3a602815a039d380b5d4cff0a1f2cb88d64abe5c48ce6204b12a32f8cf596f504cac54508f9fd2679051f4ce6742b973a804
|
data/Gemfile.lock
CHANGED
@@ -180,6 +180,7 @@ module CiCd
|
|
180
180
|
stat = File.stat(local)
|
181
181
|
size = stat.size
|
182
182
|
end
|
183
|
+
@logger.debug "Calculate etag to match #{etag}"
|
183
184
|
match = etag.match(%r'-(\d+)$')
|
184
185
|
check = if match
|
185
186
|
require 's3etag'
|
@@ -189,13 +190,16 @@ module CiCd
|
|
189
190
|
part_size = mbs * 1024 * 1024
|
190
191
|
chkit = S3Etag.calc(file: local, threshold: part_size, min_part_size: part_size, max_parts: parts)
|
191
192
|
@logger.debug "S3Etag Calculated #{chkit} : (#{size} / #{part_size}) <= #{parts}"
|
192
|
-
|
193
|
+
chunks = size / part_size
|
194
|
+
while chkit != etag and chunks <= parts and chunks > 0 and (size > part_size)
|
193
195
|
# Go one larger if a modulus remains and we have the right number of parts
|
194
196
|
mbs += 1
|
195
197
|
part_size = mbs * 1024 * 1024
|
198
|
+
chunks = size.to_f / part_size
|
196
199
|
chkit = S3Etag.calc(file: local, threshold: part_size, min_part_size: part_size, max_parts: parts)
|
197
200
|
@logger.debug "S3Etag Calculated #{chkit} : (#{size} / #{part_size}) <= #{parts}"
|
198
201
|
end
|
202
|
+
raise "Unable to match etag #{etag}!" if chkit != etag
|
199
203
|
chkit
|
200
204
|
else
|
201
205
|
Digest::MD5.file(local).hexdigest
|
data/lib/cicd/builder/version.rb
CHANGED
@@ -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.
|
7
|
+
version = '0.9.40'
|
8
8
|
VERSION = version unless const_defined?('VERSION')
|
9
9
|
major, minor, tiny = VERSION.split('.')
|
10
10
|
MAJOR = major unless const_defined?('MAJOR')
|