Rakefile in cocoapods-try-1.1.0 vs Rakefile in cocoapods-try-1.2.0
- old
+ new
@@ -1,9 +1,9 @@
# Bootstrap
#-----------------------------------------------------------------------------#
-task :bootstrap, :use_bundle_dir? do |t, args|
+task :bootstrap, :use_bundle_dir? do |_t, args|
if system('which bundle')
if args[:use_bundle_dir?]
sh 'bundle install --path ./travis_bundle_dir'
else
sh 'bundle install'
@@ -16,11 +16,10 @@
exit 1
end
end
begin
-
require 'bundler/gem_tasks'
task :default => 'spec'
# Spec
@@ -45,10 +44,9 @@
if RUBY_VERSION >= '1.9.3'
require 'rubocop/rake_task'
RuboCop::RakeTask.new
end
-
rescue LoadError
$stderr.puts "\033[0;31m" \
'[!] Some Rake tasks haven been disabled because the environment' \
' couldn’t be loaded. Be sure to run `rake bootstrap` first.' \
"\e[0m"