Permalink
Browse files

Clean up the Rakefile for style consistency

  • Loading branch information...
1 parent 5164d46 commit 7f5fd99ef3a564487d0ca7b6d63e05d4397423ad @laserlemon committed Mar 6, 2013
Showing with 13 additions and 13 deletions.
  1. +13 −13 Rakefile
View
@@ -1,13 +1,13 @@
-require 'bundler/gem_helper'
-require 'rspec/core/rake_task'
+require "bundler/gem_helper"
+require "rspec/core/rake_task"
-Bundler::GemHelper.install_tasks(:name => 'periscope')
-Bundler::GemHelper.install_tasks(:name => 'periscope-activerecord')
-Bundler::GemHelper.install_tasks(:name => 'periscope-mongo_mapper')
-Bundler::GemHelper.install_tasks(:name => 'periscope-mongoid')
-Bundler::GemHelper.install_tasks(:name => 'periscope-data_mapper')
+Bundler::GemHelper.install_tasks(name: "periscope")
+Bundler::GemHelper.install_tasks(name: "periscope-activerecord")
+Bundler::GemHelper.install_tasks(name: "periscope-mongo_mapper")
+Bundler::GemHelper.install_tasks(name: "periscope-mongoid")
+Bundler::GemHelper.install_tasks(name: "periscope-data_mapper")
-ADAPTERS = %w(active_record mongo_mapper mongoid data_mapper)
+ADAPTERS = %w(active_record data_mapper mongo_mapper mongoid)
ADAPTERS.each do |adapter|
desc "Run RSpec code examples for #{adapter} adapter"
@@ -17,17 +17,17 @@ ADAPTERS.each do |adapter|
namespace adapter do
task :env do
- ENV['ADAPTER'] = adapter
+ ENV["ADAPTER"] = adapter
end
end
end
-RSpec::Core::RakeTask.new(:spec => (ADAPTERS + [:env])) do |t|
- t.pattern = 'spec/periscope_spec.rb'
+RSpec::Core::RakeTask.new(spec: (ADAPTERS + [:env])) do |t|
+ t.pattern = "spec/periscope_spec.rb"
end
task :env do
- ENV['ADAPTER'] = nil
+ ENV["ADAPTER"] = nil
end
-task :default => :spec
+task default: :spec

0 comments on commit 7f5fd99

Please sign in to comment.