Skip to content

Commit

Permalink
Run specific tasks with Rake/RSpec; work on copying documents.
Browse files Browse the repository at this point in the history
  • Loading branch information
louismullie committed Mar 15, 2012
1 parent a0ccc40 commit 2b62ba9
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 108 deletions.
9 changes: 7 additions & 2 deletions Rakefile
Expand Up @@ -4,9 +4,14 @@ require 'rspec/core/rake_task'
namespace :treat do

task :default => :spec

RSpec::Core::RakeTask.new do |t|
t.pattern = "./spec/**/*.rb"
task = ARGV[0].scan(/\[([a-z]*)\]/)
if task.size == 0
t.pattern = "./spec/*.rb"
else
t.pattern = "./spec/#{task[0][0]}.rb"
end
end

task :version do
Expand Down
2 changes: 1 addition & 1 deletion lib/treat/downloader.rb
Expand Up @@ -9,7 +9,7 @@ class << self
attr_accessor :show_progress
end

self.show_progress = true
self.show_progress = false

# Download a file into destination, and return
# the path to the downloaded file.
Expand Down

0 comments on commit 2b62ba9

Please sign in to comment.