imagemaster3000 0.2.0 → 0.2.1
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: 368e2cda89d2a393f0d950eab902b63d9ff7929a
|
4
|
+
data.tar.gz: c5593b3a51382730ce904c25338deb30a8685e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c670a87521f69e0f055c0d8d62eee44d2f68fe255077f1cc2e29359dffb10c39c097b8d889a6a31158d661e5ffa1047e5db8a152dfd1c6b8206778f76476354
|
7
|
+
data.tar.gz: 91da3ca7b6cd891c3f868091dc303ceccd63a69a73eb66bd2d2fa953003a425a980423d34a5d75030f34de85506babc7978f79cfda4d77e3ac4636dff9edeb4e
|
@@ -7,7 +7,7 @@ module Imagemaster3000
|
|
7
7
|
return unless File.exist? CLEAN_FILE
|
8
8
|
|
9
9
|
logger.debug 'Cleaning old images'
|
10
|
-
files = File.read(CLEAN_FILE).lines.map(&:strip)
|
10
|
+
files = File.read(CLEAN_FILE).lines.reject { |line| line =~ /^\s+$/ }.map(&:strip)
|
11
11
|
files.each do |file|
|
12
12
|
logger.debug "Removing file #{file.inspect}"
|
13
13
|
File.delete file if File.exist? file
|
@@ -27,7 +27,7 @@ module Imagemaster3000
|
|
27
27
|
|
28
28
|
logger.debug "Looking for filename #{filename.inspect} in list \n#{checksum_list}"
|
29
29
|
|
30
|
-
found_lines = checksum_list.lines.grep(
|
30
|
+
found_lines = checksum_list.lines.grep(/\s+#{filename}\s*$/)
|
31
31
|
raise Imagemaster3000::Errors::VerificationError, "Cannot identify checksum for file #{file.inspect}" \
|
32
32
|
unless found_lines.count == 1
|
33
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagemaster3000
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michal Kimle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|