Rakefile in cocoapods-plugins-0.2.0 vs Rakefile in cocoapods-plugins-0.3.0

- old
+ new

@@ -5,11 +5,11 @@ if system('which bundle') sh 'bundle install' else $stderr.puts "\033[0;31m" \ "[!] Please install the bundler gem manually:\n" \ - " $ [sudo] gem install bundler" \ + ' $ [sudo] gem install bundler' \ "\e[0m" exit 1 end end @@ -17,11 +17,10 @@ require 'bundler/gem_tasks' task :default => 'spec' - # Spec #-----------------------------------------------------------------------------# desc 'Runs all the specs' task :spec do @@ -41,10 +40,10 @@ desc 'Checks code style' task :rubocop do if RUBY_VERSION >= '1.9.3' require 'rubocop' - cli = Rubocop::CLI.new + 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' end