bamboo_rails 1.0.1 → 1.0.2

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,11 @@
1
1
  = Change Log
2
2
 
3
+ == 1.0.2
4
+
5
+ * Some apps don't use a database at all. In that situation, don't bother
6
+ trying to prepare a database.
7
+
8
+
3
9
  == 1.0.1
4
10
 
5
11
  * Cope with projects that don't use Cucumber or RSpec.
@@ -1,7 +1,7 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'bamboo_rails'
4
- s.version = '1.0.1'
4
+ s.version = '1.0.2'
5
5
  s.date = '2009-05-07'
6
6
  s.authors = ['Graeme Mathieson', 'Rubaidh Ltd']
7
7
  s.email = 'support@rubaidh.com'
@@ -9,7 +9,7 @@ end
9
9
  namespace :bamboo do
10
10
  task :all => [ :preflight, :test, :spec, :features ]
11
11
 
12
- task :preflight => [ "log:clear", :environment, :gems, "db:migrate:reset" ]
12
+ task :preflight => [ "log:clear", :environment, :gems, :db ]
13
13
 
14
14
  task :gems do
15
15
  if Rake::Task.task_defined?("gems:build:force")
@@ -19,6 +19,12 @@ namespace :bamboo do
19
19
  end
20
20
  end
21
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
+
22
28
  task :test => [ "ci:setup:testunit", "rake:test" ]
23
29
 
24
30
  task :spec do
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Graeme Mathieson