bard-rake 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -4,16 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{bard-rake}
8
- s.version = "0.4.1"
7
+ s.name = "bard-rake"
8
+ s.version = "0.4.2"
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{2012-01-09}
13
- s.description = %q{Rake tasks for all bard projects.
14
- * Bootstrap projects
15
- * Database backup}
16
- s.email = %q{micah@botandrose.com}
12
+ s.date = "2012-01-23"
13
+ s.description = "Rake tasks for all bard projects.\n* Bootstrap projects\n* Database backup"
14
+ s.email = "micah@botandrose.com"
17
15
  s.extra_rdoc_files = [
18
16
  "LICENSE",
19
17
  "README.rdoc"
@@ -35,10 +33,10 @@ Gem::Specification.new do |s|
35
33
  "spec/spec.opts",
36
34
  "spec/spec_helper.rb"
37
35
  ]
38
- s.homepage = %q{http://github.com/botandrose/bard-rake}
36
+ s.homepage = "http://github.com/botandrose/bard-rake"
39
37
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.6.2}
41
- s.summary = %q{Rake tasks for all bard projects.}
38
+ s.rubygems_version = "1.8.15"
39
+ s.summary = "Rake tasks for all bard projects."
42
40
 
43
41
  if s.respond_to? :specification_version then
44
42
  s.specification_version = 3
@@ -13,9 +13,9 @@ namespace :bootstrap do
13
13
  Sass::Plugin.options[:always_update] = true;
14
14
  Sass::Plugin.update_stylesheets
15
15
  end
16
- Rake::Task["barista:brew"].invoke if Rake::Task.task_defined?("barista:brew")
17
- Rake::Task["asset:packager:build_all"].invoke if File.exist?("vendor/plugins/asset_packager")
18
- Rake::Task["bootstrap:production:post"].invoke if Rake::Task.task_defined?("bootstrap:production:post")
16
+ invoke_task_if_exists "barista:brew"
17
+ invoke_task_if_exists "asset:packager:build_all"
18
+ invoke_task_if_exists "bootstrap:production:post"
19
19
  Rake::Task["restart"].execute
20
20
  end
21
21
 
@@ -35,6 +35,16 @@ end
35
35
 
36
36
  Rake::Task[:default].clear if Rake::Task.task_defined?(:default)
37
37
  desc "Bootstrap the current project and run the tests."
38
- task :default do
39
- system "rake bootstrap spec cucumber RAILS_ENV=test"
38
+ task :default => [:set_test_env, :bootstrap, :spec] do
39
+ invoke_task_if_exists "cucumber"
40
+ invoke_task_if_exists "spec:javascripts"
41
+ end
42
+
43
+ task :set_test_env do
44
+ ENV["RAILS_ENV"] = "test"
45
+ RAILS_ENV = "test"
46
+ end
47
+
48
+ def invoke_task_if_exists task_name
49
+ Rake::Task[task_name].invoke if Rake::Task.task_defined? task_name
40
50
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-rake
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Micah Geisel
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-09 00:00:00 -08:00
19
- default_executable:
18
+ date: 2012-01-23 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rspec
@@ -62,7 +61,6 @@ files:
62
61
  - spec/bard-rake_spec.rb
63
62
  - spec/spec.opts
64
63
  - spec/spec_helper.rb
65
- has_rdoc: true
66
64
  homepage: http://github.com/botandrose/bard-rake
67
65
  licenses: []
68
66
 
@@ -92,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
90
  requirements: []
93
91
 
94
92
  rubyforge_project:
95
- rubygems_version: 1.6.2
93
+ rubygems_version: 1.8.15
96
94
  signing_key:
97
95
  specification_version: 3
98
96
  summary: Rake tasks for all bard projects.