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: f9ddf76551e39e0d2564d060fcf9a142b8462c7c
4
- data.tar.gz: 7cd13f3d108660e57a4857aae1ec89648260d897
3
+ metadata.gz: 368e2cda89d2a393f0d950eab902b63d9ff7929a
4
+ data.tar.gz: c5593b3a51382730ce904c25338deb30a8685e0c
5
5
  SHA512:
6
- metadata.gz: 10fd45c4b7c924ee7b6550223461bfb44455bbf284fb7987273035100edf2ad2e2eb825687c9a2443637678cb686831df53f40a14eaad53536ac427c7ba2ea17
7
- data.tar.gz: 0a056a01e1e64cbf82acf53c153836b99d9bbc160e2ffd357d6a3d08e6839f5c76b77cbbc21d42d58ce9c4a691b7e1b05d55f09d82db3337af5e660f4691578d
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(/#{filename}\s*$/)
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
 
@@ -1,3 +1,3 @@
1
1
  module Imagemaster3000
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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-12 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler