Skip to content

Commit

Permalink
Improve Rakefile
Browse files Browse the repository at this point in the history
- Add Rubocop
- Add Gem tasks to publish releases
- Default to rubocop and rspec
  • Loading branch information
tagliala committed Jan 25, 2025
1 parent 6d1d8cc commit 2896a53
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# frozen_string_literal: true

# Bundler
require 'bundler/setup'
require 'rake'
require 'bundler/gem_tasks'

# RSpec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

# YARD
require 'rubocop/rake_task'
RuboCop::RakeTask.new

require 'yard'
YARD::Rake::YardocTask.new

task default: :spec
desc 'Default: run RuboCop and RSpec.'
task default: %i[rubocop spec]

0 comments on commit 2896a53

Please sign in to comment.