bard-rake 0.1.0 → 0.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/bard-rake.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bard-rake}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Micah Geisel"]
12
- s.date = %q{2010-05-03}
12
+ s.date = %q{2010-05-04}
13
13
  s.description = %q{Rake tasks for all bard projects.
14
14
  * Bootstrap projects
15
15
  * Database backup}
@@ -10,7 +10,7 @@ namespace :bootstrap do
10
10
  desc "Bootstrap project to run tests"
11
11
  task :test => :bootstrap do
12
12
  system "rake gems:install db:create db:schema:load RAILS_ENV=test"
13
- system "rake gems:install RAILS_ENV=cucumber"
13
+ system "rake gems:install RAILS_ENV=cucumber" unless bundler_used?
14
14
  end
15
15
 
16
16
  desc "Bootstrap project to run in production"
@@ -1,16 +1,9 @@
1
- # replace rails 2.3's gems tasks with bundler-aware versions
2
- if File.exist? "Gemfile"
3
- Rake::Task[:gems].clear
4
- desc "Asks bundler for the status of the gem dependencies."
5
- task :gems do
6
- system "bundle show"
7
- end
1
+ # clear out rails 2.3's gems tasks if bundler is used for the current project
2
+ def bundler_used?
3
+ File.exist? "Gemfile"
4
+ end
8
5
 
6
+ if bundler_used?
7
+ Rake::Task[:gems].clear
9
8
  Rake::Task[:"gems:install"].clear
10
- namespace :gems do
11
- desc "Invoke bundle install if the dependencies aren't satisfied."
12
- task :install do
13
- system "bundle install" unless system "bundle check"
14
- end
15
- end
16
9
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Micah Geisel
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-03 00:00:00 -05:00
17
+ date: 2010-05-04 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency