diff --git a/Gemfile b/Gemfile index 1399f61..7986c31 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,8 @@ gem "folio_client", "~> 0.13.0" gem "mail", "~> 2.8" +gem 'rake' + group :development, :test do gem 'byebug' gem 'rspec' diff --git a/Gemfile.lock b/Gemfile.lock index e0f3510..4997423 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,7 +10,7 @@ GEM addressable (2.8.5) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) - base64 (0.1.1) + base64 (0.2.0) byebug (11.1.3) concurrent-ruby (1.2.2) crack (0.4.5) @@ -22,7 +22,7 @@ GEM json (~> 2.1, >= 2.1.0) jwt (~> 2.1.0) typhoeus (~> 1.0, >= 1.0.1) - date (3.3.3) + date (3.3.4) diff-lcs (1.5.0) dry-core (1.0.0) concurrent-ruby (~> 1.0) @@ -68,7 +68,7 @@ GEM net-protocol net-pop (0.1.2) net-protocol - net-protocol (0.2.1) + net-protocol (0.2.2) timeout net-smtp (0.4.0) net-protocol @@ -77,8 +77,9 @@ GEM ast (~> 2.4.1) racc public_suffix (5.0.3) - racc (1.7.1) + racc (1.7.3) rainbow (3.1.1) + rake (13.1.0) regexp_parser (2.8.2) rexml (3.2.6) rspec (3.12.0) @@ -94,8 +95,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.12.0) rspec-support (3.12.1) - rubocop (1.57.1) - base64 (~> 0.1.1) + rubocop (1.57.2) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -106,7 +106,7 @@ GEM rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.29.0) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) rubocop-capybara (2.19.0) rubocop (~> 1.41) @@ -115,21 +115,21 @@ GEM rubocop-performance (1.19.1) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rspec (2.24.1) - rubocop (~> 1.33) + rubocop-rspec (2.25.0) + rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) scrub_rb (1.0.1) - timeout (0.4.0) + timeout (0.4.1) typhoeus (1.4.0) ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unf (0.1.4) unf_ext - unf_ext (0.0.8.2) + unf_ext (0.0.9.1) unicode-display_width (2.5.0) webmock (3.19.1) addressable (>= 2.8.0) @@ -145,6 +145,7 @@ DEPENDENCIES cybersource_rest_client (= 0.0.31) folio_client (~> 0.13.0) mail (~> 2.8) + rake rspec rubocop rubocop-performance diff --git a/Rakefile b/Rakefile index dcc0d15..46a6890 100644 --- a/Rakefile +++ b/Rakefile @@ -9,3 +9,6 @@ end # Import external rake tasks Dir.glob('tasks/**/*.rake').each { |r| import r } + +desc 'Run report and email results' +task report_and_mail: %i[download_report mail]