capistrano-newrelic 0.10.0 → 0.10.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 +4 -4
- data/CONTRIBUTORS.md +2 -1
- data/lib/capistrano/newrelic/version.rb +1 -1
- data/lib/capistrano/tasks/newrelic.rake +4 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11eb089179c7acd6dc2df35593d689128f2b17e8
|
|
4
|
+
data.tar.gz: 514e89bb1d5c5ef450b6525500286643fe6205a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a61531f1e0ddb3311a6ca12175747bd1b34cc6afe50676724315683fd1c8271a30c04aae8cd30adad28e2cee10acee8ef9fce623efe9bec2d45357cacd4d1ff6
|
|
7
|
+
data.tar.gz: 617e36cd8c5703b0757d4e6a9cfc32583432e948e3a4c6e39640742f5855f20dde4b1fa45fb86caa67a1b2476a4ed4c4de7cd5c50a62bebfbb566b5ad523b74d
|
data/CONTRIBUTORS.md
CHANGED
|
@@ -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)
|
|
@@ -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.
|
|
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-
|
|
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:
|