kitchen_blame 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49d7e3e2a1216fb99003b1ae0ecc917f14217a5e
4
- data.tar.gz: a95032a8972ab0df665e7f63a0f2dd62689a7d9b
3
+ metadata.gz: a4c520d76719a4015379b6fdd4539b9eecb10f61
4
+ data.tar.gz: 257e66eb87ba3ac2191ffae8cfbfc0c608747db7
5
5
  SHA512:
6
- metadata.gz: 9ec4b4030315ede1ea630e9a36b1b04bd81d71e21a4a564b2a857fb81568093baf63d19bdd13eb8612ebbd1fc9c39ce2f4c340cc9a8b37435d2acfad1da60c35
7
- data.tar.gz: 308de4af7c1ccd2555ee2cfb1ae53f620359b9c863dbc5b3808e3f98d2f1a22dfaf59370d72b7055fca2b83cde8da693efe326df52d6effe059c186aaf04f424
6
+ metadata.gz: f926441ca786350af2365fe65013951b1cc7f555d04a71e56231a5c7906abd65c029da18ee5a2f0c140affe870a284ac47cd8a485ff982e069903b85b7459946
7
+ data.tar.gz: dee096dd0a35465c74b9d6d43f737d5c184d8e21b8db98cf83065f3d5733b5dc02fcc53d0676efad6bf1b9e47425b2931dff20edf6325b4e8acdc822a1a1545c
data/CHANGELOG.md CHANGED
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ### Added
9
+ - Fuzzy matching on log name
8
10
 
9
11
  ## [0.3.0] - 2017-07-06
10
12
  ### Added
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module KitchenBlame
17
- VERSION = '0.3.0'.freeze
17
+ VERSION = '0.4.0'.freeze
18
18
  end
data/lib/kitchen_blame.rb CHANGED
@@ -52,8 +52,11 @@ module KitchenBlame
52
52
  log_path = Pathname.new(log)
53
53
  return log_path.to_path if log_path.exist? && log_path.file?
54
54
  log_path = LOG_DIR + log_path
55
- fail "Unable to fully qualify or find test kitchen log #{log}" unless log_path.exist? && log_path.file?
56
- log_path.to_path
55
+ return log_path.to_path if log_path.exist? && log_path.file?
56
+ LOG_DIR.each_child.select(&:file?).each do |log_dir_entry|
57
+ return log_dir_entry.to_path if log_dir_entry.basename.fnmatch("*#{log}*")
58
+ end
59
+ fail "Unable to fully qualify or find test kitchen log #{log}"
57
60
  end
58
61
 
59
62
  def self.analyze_create(key_path, log)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen_blame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian O'Connell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-06 00:00:00.000000000 Z
11
+ date: 2017-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler