Permalink
Browse files

Fix some README oversight and restore the clean_whitespace Rake task.

  • Loading branch information...
1 parent 726ee76 commit 38d07be7c4cb549720f7ba5267456ead036d202f @seancribbs seancribbs committed Jan 11, 2012
Showing with 21 additions and 2 deletions.
  1. +2 −2 README.markdown
  2. +19 −0 Rakefile
View
@@ -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
View
@@ -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]

0 comments on commit 38d07be

Please sign in to comment.