-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gemwork update v0.5.0: New Rubocop cops added
Fix up new offenses after adding new Rubocop cops. Update all gems.
- Loading branch information
Showing
8 changed files
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
spec = Gem::Specification.find_by_name("gemwork") | ||
|
||
# Load additional tasks defined by Gemwork. | ||
Gem::Specification.find_by_name("gemwork").tap do |gemspec| | ||
Rake.load_rakefile("#{gemspec.gem_dir}/lib/tasks/Rakefile") | ||
Dir.glob( | ||
Pathname.new(spec.gem_dir). | ||
join("lib", "tasks", "{util,rubocop,reek,test}.rake")) do |task| | ||
load(task) | ||
end | ||
|
||
# Redefine the default `rake` task. | ||
task :default do | ||
run_tasks(%i[ | ||
test | ||
rubocop | ||
reek | ||
]) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters