capistrano-newrelic 0.10.0 → 0.10.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: a8c6cd78406e2f054538c774d7a9129fcf0a9d8c
4
- data.tar.gz: 3a41d3a311bd3bfecf40f3834669cec56b886f32
3
+ metadata.gz: 11eb089179c7acd6dc2df35593d689128f2b17e8
4
+ data.tar.gz: 514e89bb1d5c5ef450b6525500286643fe6205a8
5
5
  SHA512:
6
- metadata.gz: cefdb8e9be08cf5de1d71a96ec81ac84b4de456e4809530ba81764f1b6bc8b1eb24f940808b716958f0e8096673d1126278ebd7b91528890f748c43ffb436815
7
- data.tar.gz: a279b64acfa6382139c4a10e78a534ea98e20d052cab43261649879cc1f502b56df97ecabd58ec58ad8c6678051f2aaab1405d01931f3aca2cb29fb27bf1305b
6
+ metadata.gz: a61531f1e0ddb3311a6ca12175747bd1b34cc6afe50676724315683fd1c8271a30c04aae8cd30adad28e2cee10acee8ef9fce623efe9bec2d45357cacd4d1ff6
7
+ data.tar.gz: 617e36cd8c5703b0757d4e6a9cfc32583432e948e3a4c6e39640742f5855f20dde4b1fa45fb86caa67a1b2476a4ed4c4de7cd5c50a62bebfbb566b5ad523b74d
@@ -2,4 +2,5 @@
2
2
  - [James Kahn] (https://github.com/jisk)
3
3
  - [Wojciech Wnętrzak] (https://github.com/morgoth)
4
4
  - [Bill Kayser (New Relic)] (https://github.com/bkayser)
5
- - [Derek Schneider] (https://github.com/schneiderderek)
5
+ - [Derek Schneider] (https://github.com/schneiderderek)
6
+ - [Nathan Parry] (https://github.com/nparry)
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module NewRelic
3
- VERSION = '0.10.0'
3
+ VERSION = '0.10.1'
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ namespace :newrelic do
6
6
  task :notice_deployment do
7
7
  set :newrelic_appname, fetch(:application)
8
8
  changelog = fetch :newrelic_changelog
9
- if changelog.nil? && fetch(:scm) == :git
9
+ if changelog.nil? && fetch(:scm) == :git && !fetch(:previous_revision).nil?
10
10
  on primary(:app) do
11
11
  within repo_path do
12
12
  changelog = capture(:git, "--no-pager log --no-color --pretty=format:'* %an: %s' --abbrev-commit --no-merges #{fetch(:previous_revision)[/^.*$/]}..#{fetch(:current_revision)}")
@@ -14,15 +14,17 @@ namespace :newrelic do
14
14
  end
15
15
  end
16
16
 
17
+
17
18
  run_locally do
18
19
  deploy_options = {
19
20
  :environment => fetch(:newrelic_env, fetch(:stage, fetch(:rack_env, fetch(:rails_env, fetch(:stage))))),
20
21
  :revision => ENV['NEWRELIC_REVISION'] || fetch(:newrelic_revision, fetch(:current_revision, release_timestamp.strip)),
21
- :changelog => changelog,
22
22
  :description => fetch(:newrelic_desc),
23
23
  :user => fetch(:newrelic_deploy_user)
24
24
  }
25
25
 
26
+ deploy_options[:changelog] = changelog unless changelog.nil?
27
+
26
28
  if deploy_options[:user].nil?
27
29
  case fetch(:scm)
28
30
  when :git
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -81,3 +81,4 @@ signing_key:
81
81
  specification_version: 4
82
82
  summary: New Relic integration for Capistrano
83
83
  test_files: []
84
+ has_rdoc: