bamboo_rails 1.0.0 → 1.0.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.
- data/CHANGELOG +13 -0
- data/README.rdoc +16 -6
- data/Rakefile +1 -1
- data/bamboo_rails.gemspec +4 -4
- data/tasks/bamboo_rails_tasks.rake +26 -4
- metadata +5 -3
data/CHANGELOG
ADDED
data/README.rdoc
CHANGED
@@ -1,14 +1,21 @@
|
|
1
1
|
= Bamboo Rails
|
2
2
|
|
3
|
-
This Rails gem/plugin just contains a couple of tasks that make life easier
|
3
|
+
This Rails gem/plugin just contains a couple of tasks that make life easier
|
4
|
+
when dealing with the Atlassian Bamboo Continuous Integration Server. All it
|
5
|
+
does is to create a rake task, +bamboo+, which will run your full test suite
|
6
|
+
(be it Cucumber, RSpec or Test::Unit) and use the +ci_reporter+ gem to format
|
7
|
+
the results in a manner that Bamboo will happily consume.
|
4
8
|
|
5
9
|
== Installation
|
6
10
|
|
7
|
-
If you're installing as a plugin with a recent version of Rails, it's totally
|
11
|
+
If you're installing as a plugin with a recent version of Rails, it's totally
|
12
|
+
straightforward:
|
8
13
|
|
9
14
|
script/plugin install git://github.com/rubaidh/bamboo_rails.git
|
10
15
|
|
11
|
-
If you want to install it as a gem, that should be straightforward, too, but
|
16
|
+
If you want to install it as a gem, that should be straightforward, too, but
|
17
|
+
currently (as of Rails 2.3.2), it's not quite so straightforward. First of
|
18
|
+
all, install the gem on your development machine:
|
12
19
|
|
13
20
|
sudo gem install bamboo_rails
|
14
21
|
|
@@ -16,17 +23,20 @@ Then configure Rails to load it in +config/environment.rb+:
|
|
16
23
|
|
17
24
|
config.gem "bamboo_rails"
|
18
25
|
|
19
|
-
Now unpack the dependencies into your source tree (because you vendor
|
26
|
+
Now unpack the dependencies into your source tree (because you vendor
|
27
|
+
everything, right?):
|
20
28
|
|
21
29
|
rake gems:unpack:dependencies
|
22
30
|
|
23
31
|
and add them to your source control system.
|
24
32
|
|
25
|
-
Here's the wrinkle.
|
33
|
+
Here's the wrinkle. Rake tasks are not currently loaded from vendored gems.
|
34
|
+
You'll need to add the following to your top-level Rakefile:
|
26
35
|
|
27
36
|
Dir["#{RAILS_ROOT}/vendor/gems/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
|
28
37
|
|
29
|
-
This will autoload you all of the tasks from your vendor gems, including the
|
38
|
+
This will autoload you all of the tasks from your vendor gems, including the
|
39
|
+
Bamboo one.
|
30
40
|
|
31
41
|
== Example
|
32
42
|
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ Rake::GemPackageTask.new(spec) do |t|
|
|
10
10
|
end
|
11
11
|
|
12
12
|
Rake::RDocTask.new do |rdoc|
|
13
|
-
rdoc.rdoc_files += ['README.rdoc', 'MIT-LICENSE', 'lib/bamboo_rails.rb']
|
13
|
+
rdoc.rdoc_files += ['README.rdoc', 'CHANGELOG', 'MIT-LICENSE', 'lib/bamboo_rails.rb']
|
14
14
|
end
|
15
15
|
|
16
16
|
desc "Package and upload the release to RubyForge"
|
data/bamboo_rails.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'bamboo_rails'
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2009-05-
|
4
|
+
s.version = '1.0.1'
|
5
|
+
s.date = '2009-05-07'
|
6
6
|
s.authors = ['Graeme Mathieson', 'Rubaidh Ltd']
|
7
7
|
s.email = 'support@rubaidh.com'
|
8
8
|
s.homepage = 'http://github.com/rubaidh/bamboo_rails'
|
@@ -17,13 +17,13 @@ spec = Gem::Specification.new do |s|
|
|
17
17
|
"in a manner that Bamboo will happily consume."
|
18
18
|
|
19
19
|
s.files = %w(
|
20
|
-
bamboo_rails.gemspec MIT-LICENSE Rakefile README.rdoc
|
20
|
+
bamboo_rails.gemspec CHANGELOG MIT-LICENSE Rakefile README.rdoc
|
21
21
|
tasks/bamboo_rails_tasks.rake
|
22
22
|
lib/bamboo_rails.rb
|
23
23
|
)
|
24
24
|
|
25
25
|
s.has_rdoc = true
|
26
|
-
s.extra_rdoc_files += ['README.rdoc', 'MIT-LICENSE']
|
26
|
+
s.extra_rdoc_files += ['README.rdoc', 'CHANGELOG', 'MIT-LICENSE']
|
27
27
|
s.rdoc_options += [
|
28
28
|
'--title', 'Bamboo Rails', '--main', 'README.rdoc', '--line-numbers'
|
29
29
|
]
|
@@ -7,9 +7,31 @@ task :bamboo do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
namespace :bamboo do
|
10
|
-
task :all => [ :
|
10
|
+
task :all => [ :preflight, :test, :spec, :features ]
|
11
11
|
|
12
|
-
task :
|
13
|
-
|
14
|
-
task :
|
12
|
+
task :preflight => [ "log:clear", :environment, :gems, "db:migrate:reset" ]
|
13
|
+
|
14
|
+
task :gems do
|
15
|
+
if Rake::Task.task_defined?("gems:build:force")
|
16
|
+
Rake::Task["gems:build:force"].invoke
|
17
|
+
else
|
18
|
+
Rake::Task["gems:build"].invoke
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
task :test => [ "ci:setup:testunit", "rake:test" ]
|
23
|
+
|
24
|
+
task :spec do
|
25
|
+
if Rake::Task.task_defined?("spec:rcov")
|
26
|
+
Rake::Task["ci:setup:rspec"].invoke
|
27
|
+
Rake::Task["spec:rcov"].invoke
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
task :features do
|
32
|
+
if Rake::Task.task_defined?("rake:features")
|
33
|
+
Rake::Task["ci:setup:cucumber"].invoke
|
34
|
+
Rake::Task["rake:features"].invoke
|
35
|
+
end
|
36
|
+
end
|
15
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bamboo_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Graeme Mathieson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-05-
|
13
|
+
date: 2009-05-07 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -31,9 +31,11 @@ extensions: []
|
|
31
31
|
|
32
32
|
extra_rdoc_files:
|
33
33
|
- README.rdoc
|
34
|
+
- CHANGELOG
|
34
35
|
- MIT-LICENSE
|
35
36
|
files:
|
36
37
|
- bamboo_rails.gemspec
|
38
|
+
- CHANGELOG
|
37
39
|
- MIT-LICENSE
|
38
40
|
- Rakefile
|
39
41
|
- README.rdoc
|
@@ -67,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
69
|
requirements: []
|
68
70
|
|
69
71
|
rubyforge_project: rubaidh
|
70
|
-
rubygems_version: 1.3.
|
72
|
+
rubygems_version: 1.3.3
|
71
73
|
signing_key:
|
72
74
|
specification_version: 3
|
73
75
|
summary: "[Rails] A bit of assistance for using Bamboo in your Rails applications"
|