Skip to content

Commit

Permalink
Change rake tasks to improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 17, 2023
1 parent 9cdfe1e commit 73a8374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tasks/console.rake
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# frozen_string_literal: true

desc "Load gem inside irb console"
desc "Load gem inside IRB console"
task :console do
require "irb"
require "irb/completion"
require_relative "../lib/tty-screen"
ARGV.clear
IRB.start
end
task :c => :console

desc "Alias for the :console task"
task c: :console
4 changes: 2 additions & 2 deletions tasks/spec.rake
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ begin
task.pattern = "spec/perf{,/*/**}/*_spec.rb"
end
end

rescue LoadError
%w[spec spec:unit spec:integration spec:perf].each do |name|
desc "Run #{name == "spec" ? "all" : name.split(":").last} specs"
task name do
$stderr.puts "In order to run #{name}, do `gem install rspec`"
warn "In order to run #{name}, do `gem install rspec`"
end
end
end

0 comments on commit 73a8374

Please sign in to comment.