diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:44:44 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | f85ec381137c6838600b16c353ff9dba3a05452c (patch) | |
tree | 7a2718961e97c56d4c70dc0a6ebe6b17aee005fc /Rakefile | |
parent | ef23b66e9a495206f2bf1cd9ce0df50d363d26ef (diff) | |
download | diff-lcs-f85ec381137c6838600b16c353ff9dba3a05452c.tar.gz |
standardrb --only Style/StringLiterals --fix
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -1,9 +1,9 @@ # frozen_string_literal: true -require 'rubygems' -require 'rspec' -require 'rspec/core/rake_task' -require 'hoe' +require "rubygems" +require "rspec" +require "rspec/core/rake_task" +require "hoe" # This is required until https://github.com/seattlerb/hoe/issues/112 is fixed class Hoe @@ -45,7 +45,7 @@ Hoe.plugin :doofus Hoe.plugin :gemspec2 Hoe.plugin :git -if RUBY_VERSION < '1.9' +if RUBY_VERSION < "1.9" class Array #:nodoc: def to_h Hash[*flatten(1)] @@ -65,22 +65,22 @@ if RUBY_VERSION < '1.9' end end -_spec = Hoe.spec 'diff-lcs' do - developer('Austin Ziegler', 'halostatue@gmail.com') +_spec = Hoe.spec "diff-lcs" do + developer("Austin Ziegler", "halostatue@gmail.com") - require_ruby_version '>= 1.8' + require_ruby_version ">= 1.8" - self.history_file = 'History.md' - self.readme_file = 'README.rdoc' - self.licenses = ['MIT', 'Artistic-2.0', 'GPL-2.0+'] + self.history_file = "History.md" + self.readme_file = "README.rdoc" + self.licenses = ["MIT", "Artistic-2.0", "GPL-2.0+"] - extra_dev_deps << ['hoe-doofus', '~> 1.0'] - extra_dev_deps << ['hoe-gemspec2', '~> 1.1'] - extra_dev_deps << ['hoe-git', '~> 1.6'] - extra_dev_deps << ['hoe-rubygems', '~> 1.0'] - extra_dev_deps << ['rspec', '>= 2.0', '< 4'] - extra_dev_deps << ['rake', '>= 10.0', '< 14'] - extra_dev_deps << ['rdoc', '>= 6.3.1', '< 7'] + extra_dev_deps << ["hoe-doofus", "~> 1.0"] + extra_dev_deps << ["hoe-gemspec2", "~> 1.1"] + extra_dev_deps << ["hoe-git", "~> 1.6"] + extra_dev_deps << ["hoe-rubygems", "~> 1.0"] + extra_dev_deps << ["rspec", ">= 2.0", "< 4"] + extra_dev_deps << ["rake", ">= 10.0", "< 14"] + extra_dev_deps << ["rdoc", ">= 6.3.1", "< 7"] end desc "Run all specifications" @@ -94,12 +94,12 @@ Rake::Task["spec"].actions.uniq! { |a| a.source_location } task :default => :spec unless Rake::Task["default"].prereqs.include?("spec") task :test => :spec unless Rake::Task["test"].prereqs.include?("spec") -if RUBY_VERSION >= '2.0' && RUBY_ENGINE == 'ruby' +if RUBY_VERSION >= "2.0" && RUBY_ENGINE == "ruby" namespace :spec do desc "Runs test coverage. Only works Ruby 2.0+ and assumes 'simplecov' is installed." task :coverage do - ENV['COVERAGE'] = 'yes' - Rake::Task['spec'].execute + ENV["COVERAGE"] = "yes" + Rake::Task["spec"].execute end end end |