rebuy_deployment 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rebuy_deployment/deploy.rb +5 -6
  3. metadata +21 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 384fdef267eecc844aff7c7a89e210fb8ef2fc4b
4
- data.tar.gz: e57cb06c57ed982510554cd35b995936b4a31edd
3
+ metadata.gz: 8a6a6f43977804843df88370878f7082b113f1ff
4
+ data.tar.gz: cef3a97260df802991880c064c10c26b66bd8a6d
5
5
  SHA512:
6
- metadata.gz: 90267a6f62de9b99add0e745ff94b2caf4db89e5b4e64e55a823625b63b7822db55a5e8d7eca6083f6628dd75848ce543c9285ced0e8857915ed45e993b1936d
7
- data.tar.gz: 9bdc73c9d57c4fc34182532d21512424194d316c1a4c4aece2184b3ebc0f491d27eb89fbf95d0fb743380a879a9d95c563b7a9ca537b3574ab200ff9956fecd3
6
+ metadata.gz: 8d162892670ba088271528b88155d13b2168a44b36952b26f7c5fb0142190771a408068809e415e20f5d2e6052317eba7f72008351b96ea4685806663762333e
7
+ data.tar.gz: 79df6db4c14149f93e045b48be65d4ee8c3c59b9ec0e2c0a0783a64389ccb6e576fd0287ecba726c3efcc8ad1552566318801094ec96c541bc683481340a6aae
@@ -21,13 +21,12 @@ end
21
21
  # code based on http://madebynathan.com/2011/03/01/capistrano-task-show-deployed-revisions-diffs/
22
22
  def get_git_log
23
23
  current, previous, latest = current_revision[0,7], previous_revision[0,7], real_revision[0,7]
24
- body = "The application #{application} was deployed.\n"
25
24
 
26
- if exists?(:fqdn) && :fqdn != ""
27
- body << "It was deployed into stage #{stage} (#{fqdn})\n\n"
28
- else
29
- body << "It was deployed into stage #{stage}\n\n"
25
+ deploy_to = "#{stage}"
26
+ if exists?(:fqdn) && ! fqdn.empty?
27
+ deploy_to << " (#{fqdn})"
30
28
  end
29
+ body = "The application #{application} was deployed to #{deployed_to}.\n\n"
31
30
  body << "Master Revision: #{latest}\n"
32
31
  body << "Deployed Revision: #{current}\n"
33
32
  body << "Previous Revision: #{previous}\n\n"
@@ -46,7 +45,7 @@ def get_git_log
46
45
 
47
46
  Dir.chdir tmp_repo do
48
47
  # Show difference between master and deployed revisions.
49
- if (diff = `git log #{base_rev}..#{new_rev} --oneline`) != ""
48
+ if (diff = `git log #{base_rev}..#{new_rev} --pretty=format:'%h (%an) %s'`) != ""
50
49
  diff = " " << diff.gsub("\n", "\n ") << "\n"
51
50
  # Indent commit messages nicely, max 80 chars per line, line has to end with space.
52
51
  diff = diff.split("\n").map{|l|l.scan(/.{1,120}/).join("\n"<<" "*14).gsub(/([^ ]*)\n {14}/m,"\n"<<" "*14<<"\\1")}.join("\n")
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rebuy_deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - reBuy reCommerce GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.15.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.15.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: railsless-deploy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.4.4
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.4.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capistrano-campfire
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 0.2.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.2.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: zookeeper
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 1.4.11
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.4.11
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: zk
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.8.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.8.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: This gem offers deployment for all rebuy.de projects
@@ -145,17 +145,17 @@ require_paths:
145
145
  - lib
146
146
  required_ruby_version: !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - '>='
148
+ - - ">="
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  requirements:
153
- - - '>='
153
+ - - ">="
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.2.5
158
+ rubygems_version: 2.2.2
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Capistrano deployment for rebuy.de projects