Rakefile in cocoapods-plugins-0.1.0 vs Rakefile in cocoapods-plugins-0.1.1

- old
+ new

@@ -1,26 +1,26 @@ -require "bundler/gem_tasks" +require 'bundler/gem_tasks' -task :default => "spec" +task :default => 'spec' # Bootstrap #-----------------------------------------------------------------------------# task :bootstrap do - sh "bundle install" + sh 'bundle install' end # Spec #-----------------------------------------------------------------------------# -desc "Runs all the specs" +desc 'Runs all the specs' task :spec do start_time = Time.now sh "bundle exec bacon #{specs('**')}" duration = Time.now - start_time puts "Tests completed in #{duration}s" - Rake::Task["rubocop"].invoke + Rake::Task['rubocop'].invoke end def specs(dir) FileList["spec/#{dir}/*_spec.rb"].shuffle.join(' ') end @@ -34,8 +34,8 @@ require 'rubocop' cli = Rubocop::CLI.new result = cli.run(FileList['{spec,lib}/**/*.rb']) abort('RuboCop failed!') unless result == 0 else - puts "[!] Ruby > 1.9 is required to run style checks" + puts '[!] Ruby > 1.9 is required to run style checks' end end