Skip to content

Commit

Permalink
Fix some README oversight and restore the clean_whitespace Rake task.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Jan 11, 2012
1 parent 726ee76 commit 38d07be
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ and map-reduce.

## Dependencies

`riak-client` requires i18n and either json or yajl-ruby. For higher
performance on HTTP requests, install the 'curb' or 'excon' gems. The
`riak-client` requires i18n, builder, beefcake, and multi_json. For
higher performance on HTTP requests, install the 'excon' gem. The
cache store implementation requires ActiveSupport 3 or later.

Development dependencies are handled with bundler. Install bundler
Expand Down
19 changes: 19 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ task :release => :gem do
system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
end

desc "Cleans up white space in source files"
task :clean_whitespace do
no_file_cleaned = true

Dir["**/*.rb"].each do |file|
contents = File.read(file)
cleaned_contents = contents.gsub(/([ \t]+)$/, '')
unless cleaned_contents == contents
no_file_cleaned = false
puts " - Cleaned #{file}"
File.open(file, 'w') { |f| f.write(cleaned_contents) }
end
end

if no_file_cleaned
puts "No files with trailing whitespace found"
end
end

desc "Run Unit Specs Only"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = %w[--profile --tag ~integration --tag ~slow]
Expand Down

0 comments on commit 38d07be

Please sign in to comment.