Rakefile in akero-1.0.4 vs Rakefile in akero-1.1.0
- old
+ new
@@ -1,29 +1,20 @@
-require "bundler/gem_tasks"
+# frozen_string_literal: true
+require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
-task :default => :test
+task default: :test
-RSpec::Core::RakeTask.new("test:spec") do |t|
- t.pattern = 'spec/**/*_spec.rb'
- t.rspec_opts = '--fail-fast -b -c -f documentation --tag ~benchmark'
+RSpec::Core::RakeTask.new('test:spec') do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ t.rspec_opts = '--fail-fast -b -c -f documentation --tag ~benchmark'
end
desc 'Run test suite'
-task :test => [ 'test:spec' ]
+task test: ['test:spec']
-desc "Run benchmark suite"
+desc 'Run benchmark suite'
task :benchmark do
require 'akero/benchmark'
Akero::Benchmark.run!
-end
-
-namespace :docs do
- task :push do
- `bl_www_sync akero coverage`
- end
-
- task :loc do
- puts `grep -v '^\\s*#' lib/akero.rb | grep -v '^$' | wc -l`
- end
end