capistrano-fanfare 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,4 +1,9 @@
1
1
  language: ruby
2
+
3
+ matrix:
4
+ allow_failures:
5
+ - rvm: ruby-head
6
+
2
7
  rvm:
3
8
  - 1.9.3
4
9
  - 1.9.2
@@ -9,4 +14,5 @@ rvm:
9
14
  - jruby-18mode
10
15
  - ruby-head
11
16
  - jruby-head
17
+
12
18
  env: JRUBY_OPTS=-Xcext.enabled=true
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
 
6
6
  group :test do
7
7
  gem 'rake', '~> 0.9'
8
- gem 'foreman'
8
+ gem 'foreman', '>= 0.48.0'
9
9
  gem 'campy'
10
10
  gem 'airbrake'
11
11
 
@@ -146,7 +146,10 @@ module Capistrano::Fanfare::Campfire
146
146
  unless ENV['QUIET'].to_i > 0
147
147
  before "deploy", "campfire:pre_deploy"
148
148
  after "deploy", "campfire:successful_deploy"
149
+ before "deploy:migrations", "campfire:pre_deploy"
149
150
  after "deploy:migrations", "campfire:successful_deploy"
151
+ before "deploy:cold", "campfire:pre_deploy"
152
+ after "deploy:cold", "campfire:successful_deploy"
150
153
  before "deploy:web:disable", "campfire:web_disable"
151
154
  before "deploy:web:enable", "campfire:web_enable"
152
155
  end
@@ -106,34 +106,34 @@ module Capistrano::Fanfare::Foreman
106
106
  end
107
107
 
108
108
  namespace :start do
109
- procfile.entries.each do |entry|
109
+ procfile.entries do |name, command|
110
110
  send :desc, <<-DESC
111
- Starts #{entry.name} processes managed by the Procfile.
111
+ Starts #{name} processes managed by the Procfile.
112
112
  DESC
113
- send :task, entry.name, :roles => :app, :except => { :no_release => true } do
114
- foreman_strategy.start(entry.name)
113
+ send :task, name, :roles => :app, :except => { :no_release => true } do
114
+ foreman_strategy.start(name)
115
115
  end
116
116
  end
117
117
  end
118
118
 
119
119
  namespace :stop do
120
- procfile.entries.each do |entry|
120
+ procfile.entries do |name, command|
121
121
  send :desc, <<-DESC
122
- Stops #{entry.name} processes managed by the Procfile.
122
+ Stops #{name} processes managed by the Procfile.
123
123
  DESC
124
- send :task, entry.name, :roles => :app, :except => { :no_release => true } do
125
- foreman_strategy.stop(entry.name)
124
+ send :task, name, :roles => :app, :except => { :no_release => true } do
125
+ foreman_strategy.stop(name)
126
126
  end
127
127
  end
128
128
  end
129
129
 
130
130
  namespace :restart do
131
- procfile.entries.each do |entry|
131
+ procfile.entries do |name, command|
132
132
  send :desc, <<-DESC
133
- Restarts #{entry.name} processes managed by the Procfile.
133
+ Restarts #{name} processes managed by the Procfile.
134
134
  DESC
135
- send :task, entry.name, :roles => :app, :except => { :no_release => true } do
136
- foreman_strategy.restart(entry.name)
135
+ send :task, name, :roles => :app, :except => { :no_release => true } do
136
+ foreman_strategy.restart(name)
137
137
  end
138
138
  end
139
139
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Fanfare
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
4
4
  end
5
5
  end
@@ -201,6 +201,14 @@ describe Capistrano::Fanfare::Campfire do
201
201
  it "gets called before deploy task" do
202
202
  @config.must_have_callback_before "deploy", "campfire:pre_deploy"
203
203
  end
204
+
205
+ it "gets called before deploy:migrations task" do
206
+ @config.must_have_callback_before "deploy:migrations", "campfire:pre_deploy"
207
+ end
208
+
209
+ it "gets called before deploy:cold task" do
210
+ @config.must_have_callback_before "deploy:cold", "campfire:pre_deploy"
211
+ end
204
212
  end
205
213
 
206
214
  describe "task :successful_deploy" do
@@ -225,6 +233,10 @@ describe Capistrano::Fanfare::Campfire do
225
233
  it "gets called after deploy:migrations task" do
226
234
  @config.must_have_callback_after "deploy:migrations", "campfire:successful_deploy"
227
235
  end
236
+
237
+ it "gets called after deploy:cold task" do
238
+ @config.must_have_callback_after "deploy:cold", "campfire:successful_deploy"
239
+ end
228
240
  end
229
241
 
230
242
  describe "task :rollback_deploy" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-fanfare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-28 00:00:00.000000000 Z
12
+ date: 2012-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70262670507820 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '2.11'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70262670507820
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.11'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: capistrano_colors
27
- requirement: &70262670506660 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0.5'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70262670506660
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.5'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: sushi
38
- requirement: &70262670505520 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: 0.0.2
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70262670505520
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.2
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: multi_json
49
- requirement: &70262670522360 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '1.0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70262670522360
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: minitest-capistrano
60
- requirement: &70262670519940 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70262670519940
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: timecop
71
- requirement: &70262670518020 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ~>
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0.3'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *70262670518020
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '0.3'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: mocha
82
- requirement: &70262670532560 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ~>
@@ -87,7 +117,12 @@ dependencies:
87
117
  version: '0.10'
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *70262670532560
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '0.10'
91
126
  description: Capistrano recipes (with full test suite) for fanfare application deployment
92
127
  framework
93
128
  email:
@@ -159,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
194
  version: '0'
160
195
  segments:
161
196
  - 0
162
- hash: 1656532185418051096
197
+ hash: -3688449692979042499
163
198
  required_rubygems_version: !ruby/object:Gem::Requirement
164
199
  none: false
165
200
  requirements:
@@ -168,10 +203,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
203
  version: '0'
169
204
  segments:
170
205
  - 0
171
- hash: 1656532185418051096
206
+ hash: -3688449692979042499
172
207
  requirements: []
173
208
  rubyforge_project:
174
- rubygems_version: 1.8.17
209
+ rubygems_version: 1.8.24
175
210
  signing_key:
176
211
  specification_version: 3
177
212
  summary: Capistrano recipes (with full test suite) for fanfare application deployment