-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added individual tasks. * Added default settings to fix errors.
- Loading branch information
Hallison Batista
committed
Jul 9, 2009
1 parent
598b731
commit 8d188ab
Showing
7 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
.session | ||
*.tmp | ||
test.* | ||
config/settings.yml | ||
posts | ||
*.html | ||
|
||
pkg |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,24 @@ | ||
require 'rake/testtask' | ||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__)) | ||
|
||
Rake::TestTask.new | ||
require 'lib/postview' | ||
|
||
def banner(message) | ||
printf "\n%s\n", Postview | ||
printf "\n%s\n\n", message | ||
end | ||
|
||
def prompt(label, default = nil) | ||
while true | ||
printf((default ? "%s [%s]: " : "%s: "), "#{label}", "#{default}") | ||
value = $stdin.readline.chomp.strip | ||
value = default if value.empty? | ||
return value unless value.nil? || value.to_s.empty? | ||
end | ||
end | ||
|
||
Dir["tasks/*.rake"].each do |task| | ||
load task | ||
end | ||
|
||
task :default => :test | ||
|
||
task :default => [ :test ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
require 'rake/testtask' | ||
|
||
Rake::TestTask.new | ||
|