From 8f08da456a3da6732751fd5a04218870f2514df9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Jan 2022 18:26:10 +0000 Subject: [PATCH 1/2] Update gc_ruboconfig requirement from ~> 2.30.0 to ~> 2.31.0 Updates the requirements on [gc_ruboconfig](https://github.com/gocardless/ruboconfig) to permit the latest version. - [Release notes](https://github.com/gocardless/ruboconfig/releases) - [Changelog](https://github.com/gocardless/gc_ruboconfig/blob/master/CHANGELOG.md) - [Commits](https://github.com/gocardless/ruboconfig/compare/v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: gc_ruboconfig dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- business.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business.gemspec b/business.gemspec index 2c7eee4..16a3ba6 100644 --- a/business.gemspec +++ b/business.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_development_dependency "gc_ruboconfig", "~> 2.30.0" + spec.add_development_dependency "gc_ruboconfig", "~> 2.31.0" spec.add_development_dependency "rspec", "~> 3.1" spec.add_development_dependency "rspec_junit_formatter", "~> 0.5.1" spec.add_development_dependency "rubocop", "~> 1.25.0" From 4a2406e1d466d7a4357bb70c3de70923a260e6ae Mon Sep 17 00:00:00 2001 From: Joseph Southan Date: Mon, 31 Jan 2022 18:28:36 +0000 Subject: [PATCH 2/2] gc_rubocop autocorrect v2.31.0 --- lib/business/calendar.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/business/calendar.rb b/lib/business/calendar.rb index a1b98c2..0aab1f4 100644 --- a/lib/business/calendar.rb +++ b/lib/business/calendar.rb @@ -156,7 +156,6 @@ def subtract_business_days(date, delta) # Count the number of business days between two dates. # This method counts from start of date1 to start of date2. So, # business_days_between(mon, weds) = 2 (assuming no holidays) - # rubocop:disable Metrics/AbcSize def business_days_between(date1, date2) date1 = date1.to_date date2 = date2.to_date @@ -190,7 +189,6 @@ def business_days_between(date1, date2) num_biz_days + remaining_range.count { |a| business_day?(a) } end - # rubocop:enable Metrics/AbcSize def day_interval_for(date) date.is_a?(Date) ? 1 : 3600 * 24 end