Rakefile in rails_semantic_logger-4.0.0 vs Rakefile in rails_semantic_logger-4.0.1

- old
+ new

@@ -1,11 +1,12 @@ -require 'rake/clean' +# Setup bundler to avoid having to run bundle exec all the time. +require 'rubygems' +require 'bundler/setup' + require 'rake/testtask' +require_relative 'lib/rails_semantic_logger/version' -$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) -require 'rails_semantic_logger/version' - task :gem do system 'gem build rails_semantic_logger.gemspec' end task :publish => :gem do @@ -19,6 +20,12 @@ t.pattern = 'test/**/*_test.rb' t.verbose = true t.warning = false end -task default: :test +# By default run tests against all appraisals +if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"] + require 'appraisal' + task default: :appraisal +else + task default: :test +end