cerberus 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.txt +6 -0
- data/Copyright.txt +3 -1
- data/Rakefile +8 -0
- data/lib/cerberus/constants.rb +1 -1
- data/lib/cerberus/manager.rb +1 -2
- data/lib/cerberus/publisher/mail.rb +2 -0
- data/test/functional_test.rb +1 -0
- metadata +15 -4
data/Changelog.txt
CHANGED
data/Copyright.txt
CHANGED
data/Rakefile
CHANGED
@@ -78,10 +78,12 @@ Rake::GemPackageTask.new(GEM_SPEC) do |p|
|
|
78
78
|
p.need_zip = true
|
79
79
|
end
|
80
80
|
|
81
|
+
desc "install gem from pkg/ directory after running clean and test"
|
81
82
|
task :install => [:clean, :test, :package] do
|
82
83
|
system "gem install pkg/#{PKG_NAME}-#{PKG_VERSION}.gem"
|
83
84
|
end
|
84
85
|
|
86
|
+
desc "uninstall gem"
|
85
87
|
task :uninstall => [:clean] do
|
86
88
|
system "gem uninstall #{PKG_NAME}"
|
87
89
|
end
|
@@ -91,6 +93,7 @@ task :todo do
|
|
91
93
|
FileList.new(File.dirname(__FILE__)+'/lib/cerberus/**/*.rb').egrep(/#.*(FIXME|TODO|TBD|DEPRECATED)/i)
|
92
94
|
end
|
93
95
|
|
96
|
+
desc "uninstall and reinstall gem"
|
94
97
|
task :reinstall => [:uninstall, :install]
|
95
98
|
|
96
99
|
begin
|
@@ -103,10 +106,12 @@ begin
|
|
103
106
|
rescue Object
|
104
107
|
end
|
105
108
|
|
109
|
+
desc "copy coverage directory to RubyForge site"
|
106
110
|
task :site_coverage => [:rcov] do
|
107
111
|
sh %{ scp -r coverage/* #{RUBYFORGE_USER}@rubyforge.org:/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/coverage/ }
|
108
112
|
end
|
109
113
|
|
114
|
+
desc "Release files to RubyForge"
|
110
115
|
task :release_files => [:clean, :package] do
|
111
116
|
require 'meta_project'
|
112
117
|
project = MetaProject::Project::XForge::RubyForge.new(RUBYFORGE_PROJECT)
|
@@ -127,6 +132,7 @@ task :release_files => [:clean, :package] do
|
|
127
132
|
|
128
133
|
end
|
129
134
|
|
135
|
+
desc "Publish news update to RubyForge"
|
130
136
|
task :publish_news do
|
131
137
|
require 'meta_project'
|
132
138
|
|
@@ -151,8 +157,10 @@ rescue Gem::LoadError
|
|
151
157
|
puts "webgen gem is required to build website output"
|
152
158
|
end
|
153
159
|
|
160
|
+
desc "Update cerberus.rubyforge.org website"
|
154
161
|
task :publish_site => :webgen do
|
155
162
|
sh %{scp -r -q doc/site/out/* #{RUBYFORGE_USER}@rubyforge.org:/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/}
|
156
163
|
end
|
157
164
|
|
165
|
+
desc "Run release_files, publish_news, publish_site"
|
158
166
|
task :release => [:release_files, :publish_news, :publish_site]
|
data/lib/cerberus/constants.rb
CHANGED
data/lib/cerberus/manager.rb
CHANGED
@@ -111,8 +111,7 @@ module Cerberus
|
|
111
111
|
begin
|
112
112
|
Latch.lock("#{HOME}/work/#{@config[:application_name]}/.lock", :lock_ttl => 2 * LOCK_WAIT) do
|
113
113
|
@scm.update!
|
114
|
-
|
115
|
-
if @scm.has_changes? or @config[:force] or @status.previous_build_successful.nil?
|
114
|
+
if @scm.has_changes? or @config[:force] or !@status.previous_build_successful
|
116
115
|
Dir.chdir File.join(@config[:application_root], @config[:build_dir] || '')
|
117
116
|
@setup_script_output = `#{@config[:setup_script]}` if @config[:setup_script]
|
118
117
|
|
data/test/functional_test.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cerberus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
9
|
+
- 9
|
10
|
+
version: 0.7.9
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Craig P Jolicoeur
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-01-25 00:00:00 -05:00
|
18
19
|
default_executable: cerberus
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: actionmailer
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ~>
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 2
|
29
32
|
- 0
|
@@ -34,9 +37,11 @@ dependencies:
|
|
34
37
|
name: activesupport
|
35
38
|
prerelease: false
|
36
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
37
41
|
requirements:
|
38
42
|
- - ~>
|
39
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
40
45
|
segments:
|
41
46
|
- 2
|
42
47
|
- 0
|
@@ -47,9 +52,11 @@ dependencies:
|
|
47
52
|
name: rake
|
48
53
|
prerelease: false
|
49
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
50
56
|
requirements:
|
51
57
|
- - ">="
|
52
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 5
|
53
60
|
segments:
|
54
61
|
- 0
|
55
62
|
- 7
|
@@ -437,25 +444,29 @@ rdoc_options: []
|
|
437
444
|
require_paths:
|
438
445
|
- lib
|
439
446
|
required_ruby_version: !ruby/object:Gem::Requirement
|
447
|
+
none: false
|
440
448
|
requirements:
|
441
449
|
- - ">="
|
442
450
|
- !ruby/object:Gem::Version
|
451
|
+
hash: 51
|
443
452
|
segments:
|
444
453
|
- 1
|
445
454
|
- 8
|
446
455
|
- 2
|
447
456
|
version: 1.8.2
|
448
457
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
458
|
+
none: false
|
449
459
|
requirements:
|
450
460
|
- - ">="
|
451
461
|
- !ruby/object:Gem::Version
|
462
|
+
hash: 3
|
452
463
|
segments:
|
453
464
|
- 0
|
454
465
|
version: "0"
|
455
466
|
requirements: []
|
456
467
|
|
457
468
|
rubyforge_project: cerberus
|
458
|
-
rubygems_version: 1.3.
|
469
|
+
rubygems_version: 1.3.7
|
459
470
|
signing_key:
|
460
471
|
specification_version: 3
|
461
472
|
summary: Cerberus is a Continuous Integration tool that could be easily run from Cron.
|