puppet-retrospec 1.2.0 → 1.2.1

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: a9bd4527b504e3bed3e18861dae6308ebe725441
4
- data.tar.gz: de5419b0edc23e427d8559e9ddcafc3f18f72109
3
+ metadata.gz: 022b797256a583f5e85ef8b751871581c90014e1
4
+ data.tar.gz: 40dec9863afc4e2abbae8e4a3def3634e7a57927
5
5
  SHA512:
6
- metadata.gz: fa079425ba609de77e12cc553b71602736c63d0ed1ad1c00c4d15ed7b5fe258b2038c0abe561a29b9ce3e96fca26c99ca6df4fbf26f8d5be3d15ceb7132f7cd5
7
- data.tar.gz: 97a2a24de34fcdde1c48515f8de008a1df85770393b208bd3849f43b924dee6e620d9b903fc56b7f1029fffa3a7a4fee25c78bd75fce45c29c2a0f8b589a960f
6
+ metadata.gz: 0fe4e049e0a434964cf2ab9ded54a3a57dcf071ef41b5451e238b3ffa5200489112e82afa004e602325c675d02c43308d12e3b1ef2860f0da01046e8d4123da2
7
+ data.tar.gz: 80e3c5c885a461a1ed6b158eadc7fc4948716c2c8c7b349d6f3e9b85c13237011dd5c6f43ac4b308b755f2ad3ccc2a1e189f08342f7a6daef8bd696a4c054e69
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 1.2.1
2
+ * fix conditional logic preventing hooks from running
1
3
  ## 1.2.0
2
4
  * fixes gh-53 - adds windows support
3
5
  ## 1.1.0
@@ -244,7 +244,7 @@ module Retrospec
244
244
  end
245
245
 
246
246
  def run_hook(hook_file)
247
- return if File.exist?(hook_file)
247
+ return unless File.exist?(hook_file)
248
248
  output = `ruby #{hook_file} #{module_path}`
249
249
  if $CHILD_STATUS.success?
250
250
  puts "Successfully ran hook: #{hook_file}".info
@@ -63,7 +63,7 @@ module Retrospec
63
63
  # externalize them for easier management.
64
64
  def run_clone_hook(template_dir, git_url = nil, branch = nil)
65
65
  hook_file = clone_hook_file(template_dir)
66
- return if File.exist?(hook_file)
66
+ return unless File.exist?(hook_file)
67
67
  output = `ruby #{hook_file} #{template_dir} #{git_url} #{branch}`
68
68
  puts output
69
69
  if $CHILD_STATUS.success?
@@ -1,5 +1,5 @@
1
1
  module Retrospec
2
2
  module Puppet
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-retrospec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman
@@ -119,7 +119,6 @@ files:
119
119
  - LICENSE
120
120
  - README.md
121
121
  - Rakefile
122
- - VERSION
123
122
  - lib/retrospec-puppet.rb
124
123
  - lib/retrospec/plugins/v1/plugin/exceptions.rb
125
124
  - lib/retrospec/plugins/v1/plugin/generators.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.0