kitchen_blame 0.6.0 → 0.7.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: 2b6640c05a86ad34344d6e9b5eab9631046af2c4
4
- data.tar.gz: ab9a9325b6407447ef39f6c7f0018c5e9175de4b
3
+ metadata.gz: 9af3a7c5bb62a19e5ad07d916acb4f75030d574d
4
+ data.tar.gz: 2c32d09f3778b34251e032777abe4c3fbea63a06
5
5
  SHA512:
6
- metadata.gz: 039617aa11c65cfc6255729dc8b9f0a43b913b4d6836487503180569a5e345b2e974ada7d957e1aeb006bacde8be14f9520eca8131b7920d57c6584d7b3122d0
7
- data.tar.gz: 32c7cc1412fb2d624096dac5828f616b3eae77e00879c23af36909e2243f38d893928f42945c2de0534632f3492638de3c5934af881733571759e13044429629
6
+ metadata.gz: 7e4acd1d10dcc9df97f2eaab037f3a53546f3a4f93be23b577212a9706263337ee93e49302d0ee8da285fd4713a6dbaa8c14f00faf6821afeb4c7b550784770b
7
+ data.tar.gz: 4bc39831d2319ec2f30d101865033a445e6712ccedf5cfa2ae94f83b1daf6bdbfd2bf625532d920d8c9e4a679bd33b007126dcf0fadf4f696b20813a5b51a7ef
data/CHANGELOG.md CHANGED
@@ -4,11 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
  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
-
8
7
  ## [Unreleased]
9
8
  ### Added
10
9
  -
11
10
 
11
+ ## [0.7.0] - 2017-07-25
12
+ ### Added
13
+ - If specified log match is the term 'latest' analyze the most recent log
14
+
12
15
  ## [0.6.0] - 2017-07-24
13
16
  ### Added
14
17
  - User friendly error message if specified log doesn't exit and default log dir is missing
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module KitchenBlame
17
- VERSION = '0.6.0'.freeze
17
+ VERSION = '0.7.0'.freeze
18
18
  end
data/lib/kitchen_blame.rb CHANGED
@@ -66,6 +66,10 @@ module KitchenBlame
66
66
  LOG_DIR.each_child.select(&:file?).each do |log_dir_entry|
67
67
  return log_dir_entry.to_path if log_dir_entry.basename.fnmatch("*#{log}*")
68
68
  end
69
+ if log == 'latest'
70
+ latest = LOG_DIR.each_child.select(&:file?).sort_by(&:mtime).last
71
+ return latest if latest
72
+ end
69
73
  fail "Unable to fully qualify or find test kitchen log #{log}"
70
74
  end
71
75
 
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.6.0
4
+ version: 0.7.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-24 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler