Rakefile in metaractor-sycamore-0.4.2 vs Rakefile in metaractor-sycamore-0.4.3

- old
+ new

@@ -1,36 +1,35 @@ -require 'bundler/gem_tasks' +require "bundler/gem_tasks" begin - require 'rspec/core/rake_task' + require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) rescue LoadError puts "Couldn't find RSpec core Rake task" end begin - require 'yard' + require "yard" YARD::Rake::YardocTask.new do |t| - t.options = ['--verbose'] - t.files = ['lib/**/*.rb', 'doc/**/*.md'] - t.stats_options = ['--list-undoc'] + t.options = ["--verbose"] + t.files = ["lib/**/*.rb", "doc/**/*.md"] + t.stats_options = ["--list-undoc"] end rescue LoadError puts "Couldn't find YARD" end begin - require 'yard-doctest' + require "yard-doctest" YARD::Doctest::RakeTask.new do |task| task.doctest_opts = %w[] - task.pattern = 'lib/**/*.rb' + task.pattern = "lib/**/*.rb" end rescue LoadError puts "Couldn't find yard-doctest" end -task :default => - if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' - [:spec] - else - [:spec, 'yard:doctest'] - end +task default: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" + [:spec] + else + [:spec, "yard:doctest"] + end