bamboo_rails 1.0.4 → 1.0.5

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  = Change Log
2
2
 
3
+ == 1.0.5
4
+
5
+ * Make life a little more gem friendly. Moved the tasks into lib/rake/task so that it can be
6
+ required from another Rakefile.
7
+
3
8
  == 1.0.4
4
9
 
5
10
  * Run the "gems" task before any other task as we need gems to be built before
data/README.rdoc CHANGED
@@ -8,35 +8,30 @@ the results in a manner that Bamboo will happily consume.
8
8
 
9
9
  == Installation
10
10
 
11
+ == As a Plugin
12
+
11
13
  If you're installing as a plugin with a recent version of Rails, it's totally
12
14
  straightforward:
13
15
 
14
16
  script/plugin install git://github.com/rubaidh/bamboo_rails.git
15
17
 
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:
19
-
20
- sudo gem install bamboo_rails
18
+ === Gem installation
21
19
 
22
- Then configure Rails to load it in +config/environment.rb+:
23
-
24
- config.gem "bamboo_rails"
25
-
26
- Now unpack the dependencies into your source tree (because you vendor
27
- everything, right?):
20
+ If you want to install it as a gem, that should be straightforward, too, but
21
+ there's an extra couple of steps. First of all configure Rails to load it in
22
+ +config/environment.rb+:
28
23
 
29
- rake gems:unpack:dependencies
24
+ config.gem "bamboo_rails", :lib => false
30
25
 
31
- and add them to your source control system.
26
+ Then make sure the gem is installed:
32
27
 
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:
28
+ sudo rake gems:install
35
29
 
36
- Dir["#{RAILS_ROOT}/vendor/gems/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
30
+ (skipping `sudo` if that's not your thing). Finally, you'll have to create a
31
+ Rakefile which requires the bamboo task. Create the file
32
+ +lib/tasks/bamboo.rake+ in your project with the following content:
37
33
 
38
- This will autoload you all of the tasks from your vendor gems, including the
39
- Bamboo one.
34
+ require 'bamboo_rails/rake/task'
40
35
 
41
36
  == Example
42
37
 
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.4'
5
- s.date = '2009-06-12'
4
+ s.version = '1.0.5'
5
+ s.date = '2009-09-16'
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'
@@ -1,43 +1 @@
1
- desc "Reset the test database and run the entire test suite, formatting results for the Bamboo CI Server."
2
- task :bamboo do
3
- # Force us to be using the test environment so that we can use regular rake
4
- # tasks to manipulate the database.
5
- RAILS_ENV = ENV['RAILS_ENV'] = "test"
6
- Rake::Task["bamboo:all"].invoke
7
- end
8
-
9
- namespace :bamboo do
10
- task :all => [ :preflight, :test, :spec, :features ]
11
-
12
- task :preflight => [ :gems, "log:clear", :environment, :db ]
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 :db do
23
- if defined?(ActiveRecord) && File.exist?(File.join(RAILS_ROOT, "config", "database.yml"))
24
- Rake::Task["db:migrate:reset"].invoke
25
- end
26
- end
27
-
28
- task :test => [ "ci:setup:testunit", "rake:test" ]
29
-
30
- task :spec do
31
- if Rake::Task.task_defined?("spec:rcov")
32
- Rake::Task["ci:setup:rspec"].invoke
33
- Rake::Task["spec:rcov"].invoke
34
- end
35
- end
36
-
37
- task :features do
38
- if Rake::Task.task_defined?("rake:features")
39
- Rake::Task["ci:setup:cucumber"].invoke
40
- Rake::Task["rake:features"].invoke
41
- end
42
- end
43
- end
1
+ load File.join(File.dirname(__FILE__), '..', 'lib', 'bamboo_rails', 'rake', 'task.rb')
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
4
+ version: 1.0.5
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-06-12 00:00:00 +01:00
13
+ date: 2009-09-16 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements: []
72
72
 
73
73
  rubyforge_project: rubaidh
74
- rubygems_version: 1.3.4
74
+ rubygems_version: 1.3.5
75
75
  signing_key:
76
76
  specification_version: 3
77
77
  summary: "[Rails] A bit of assistance for using Bamboo in your Rails applications"