From 6c539f00a7c6572743b8b679367dd7649bcefaaa Mon Sep 17 00:00:00 2001 From: Jon Cowie Date: Thu, 26 Feb 2015 10:22:12 +0000 Subject: [PATCH] Formatting fix, changelog and gemspec for 1.5.1 --- CHANGELOG.md | 7 +++++++ knife-spork.gemspec | 2 +- lib/knife-spork/plugins/hipchat.rb | 10 +++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec0e31b..8674f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.5.1(26th February, 2015) + +Bugfixes: + + - Fix 'undefined local variable' error in Hipchat plugin (Thanks to @danieleva https://github.com/jonlives/knife-spork/pull/177) + + ## 1.5.0(30th January, 2015) Features: diff --git a/knife-spork.gemspec b/knife-spork.gemspec index b36a5de..fd208f2 100644 --- a/knife-spork.gemspec +++ b/knife-spork.gemspec @@ -2,7 +2,7 @@ $:.push File.expand_path('../lib', __FILE__) Gem::Specification.new do |gem| gem.name = 'knife-spork' - gem.version = '1.5.0' + gem.version = '1.5.1' gem.authors = ["Jon Cowie"] gem.email = 'jonlives@gmail.com' gem.homepage = 'https://github.com/jonlives/knife-spork' diff --git a/lib/knife-spork/plugins/hipchat.rb b/lib/knife-spork/plugins/hipchat.rb index dda2813..df7869e 100644 --- a/lib/knife-spork/plugins/hipchat.rb +++ b/lib/knife-spork/plugins/hipchat.rb @@ -12,11 +12,11 @@ def after_upload end def after_promote_remote - environments.each do |environment| - diff = environment_diffs[environment.name] - env_gist = env_gist(environment, diff) if config.gist - hipchat "#{organization}#{current_user} promoted the following cookbooks:\n#{cookbooks.collect{ |c| " #{c.name}@#{c.version}" }.join("\n")} to #{environment} #{env_gist}" - end + environments.each do |environment| + diff = environment_diffs[environment.name] + env_gist = env_gist(environment, diff) if config.gist + hipchat "#{organization}#{current_user} promoted the following cookbooks:\n#{cookbooks.collect{ |c| " #{c.name}@#{c.version}" }.join("\n")} to #{environment} #{env_gist}" + end end def after_environmentfromfile