Skip to content

Commit

Permalink
Integrate with my new gemwork gem
Browse files Browse the repository at this point in the history
The new gemwork gem is my attempt at a commonized gem framework. This
includes e.g. style guide settings as well as rake files for running
them, etc. Gemwork is just getting started.

Update RuboCop config to source from gemwork gem instead of the now
no-longer existing pdobb-style gem.
  • Loading branch information
Paul DobbinSchmaltz committed Nov 25, 2023
1 parent c105a5f commit e1d7c51
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 60 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/
.byebug_history
*.gem

.DS_Store
11 changes: 10 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Load Rubocop plugins.
require:
- rubocop-rake
- rubocop-minitest
- rubocop-performance

inherit_gem:
pdobb-style: .rubocop.yml
gemwork: lib/rubocop/.rubocop.yml

AllCops:
TargetRubyVersion: 2.7
25 changes: 0 additions & 25 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,3 @@
# See ./rakelib/ for additional tasks automatically loaded by rake.

require "bundler/gem_tasks"

task :default do
run_tasks(%i[
test
rubocop
reek
yard
])
end

def run_tasks(tasks)
tasks.each_with_index do |name, index|
annotate_run(name) do
Rake::Task[name].invoke
end

puts unless index.next == tasks.size
end
end

def annotate_run(name)
puts "= Running #{name} #{"=" * (71 - name.size)}\n"
yield
puts "= Done #{"=" * 75}"
end
2 changes: 1 addition & 1 deletion object_inspector.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "benchmark-ips"
spec.add_development_dependency "bundler"
spec.add_development_dependency "byebug"
spec.add_development_dependency "gemwork"
spec.add_development_dependency "minitest"
spec.add_development_dependency "minitest-reporters"
spec.add_development_dependency "object_identifier"
spec.add_development_dependency "pdobb-style"
spec.add_development_dependency "pry"
spec.add_development_dependency "pry-byebug"
spec.add_development_dependency "rake"
Expand Down
6 changes: 6 additions & 0 deletions rakelib/gemwork.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

# Load additional tasks defined by Gemwork.
Gem::Specification.find_by_name("gemwork").tap do |gemspec|
Rake.load_rakefile("#{gemspec.gem_dir}/lib/tasks/Rakefile")
end
7 changes: 0 additions & 7 deletions rakelib/reek.rake

This file was deleted.

7 changes: 0 additions & 7 deletions rakelib/rubocop.rake

This file was deleted.

9 changes: 0 additions & 9 deletions rakelib/tests.rake

This file was deleted.

7 changes: 0 additions & 7 deletions rakelib/yard.rake

This file was deleted.

0 comments on commit e1d7c51

Please sign in to comment.