Rakefile in httplog-1.0.2 vs Rakefile in httplog-1.0.3

- old
+ new

@@ -1,6 +1,8 @@ #!/usr/bin/env rake +# frozen_string_literal: true + begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end @@ -11,14 +13,14 @@ require 'rake/rdoctask' RDoc::Task = Rake::RDocTask end require 'rspec/core/rake_task' -desc "Run specs" +desc 'Run specs' RSpec::Core::RakeTask.new(:spec) -desc "Generate documentation" +desc 'Generate documentation' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'HttpLog' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') @@ -34,11 +36,11 @@ t.verbose = false end # ----- Packaging ----- task :build do - sh "gem build httplog.gemspec" + sh 'gem build httplog.gemspec' mkdir_p 'pkg' - sh "mv *.gem pkg/ " + sh 'mv *.gem pkg/ ' end -task :default => :spec +task default: :spec