diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-04-16 04:50:34 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2019-04-16 04:50:34 -0600 |
| commit | bcae07d8c558f4368bafdf2b6c21ad8a9aae9ebe (patch) | |
| tree | c53f5dbfe1523bc7bab6cddad019b6d1ca2b3c4d /tasks | |
| parent | c5c21d624a21b6adc7e6577fa41cc80116bb4899 (diff) | |
use shorthand rescue syntax and modern Hash syntax in rake tasks [skip ci]
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/bundler.rake | 4 | ||||
| -rw-r--r-- | tasks/console.rake | 2 | ||||
| -rw-r--r-- | tasks/cucumber.rake | 4 | ||||
| -rw-r--r-- | tasks/test.rake | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tasks/bundler.rake b/tasks/bundler.rake index 47f3ef1a..e8b55b9c 100644 --- a/tasks/bundler.rake +++ b/tasks/bundler.rake @@ -1,6 +1,6 @@ # frozen_string_literal: true begin require 'bundler/gem_tasks' -rescue LoadError => e - warn e.message +rescue LoadError + warn $!.message end diff --git a/tasks/console.rake b/tasks/console.rake index a6f6856a..fcd6e3ce 100644 --- a/tasks/console.rake +++ b/tasks/console.rake @@ -1,5 +1,5 @@ # frozen_string_literal: true desc 'Open an irb session preloaded with this library' task :console do - sh 'bundle console', :verbose => false + sh 'bundle console', verbose: false end diff --git a/tasks/cucumber.rake b/tasks/cucumber.rake index 9b49ce22..8237597e 100644 --- a/tasks/cucumber.rake +++ b/tasks/cucumber.rake @@ -5,6 +5,6 @@ begin t.cucumber_opts = %w(-f progress) t.cucumber_opts << '--no-color' if ENV['CI'] end -rescue LoadError => e - warn e.message +rescue LoadError + warn $!.message end diff --git a/tasks/test.rake b/tasks/test.rake index 3a3615b8..04805289 100644 --- a/tasks/test.rake +++ b/tasks/test.rake @@ -20,11 +20,11 @@ begin t.verbose = true t.warning = true end -rescue LoadError => e - warn e.message +rescue LoadError + warn $!.message end namespace :test do desc 'Run unit and feature tests' - task :all => [:test, :features] + task all: [:test, :features] end |
