Skip to content

Commit

Permalink
Merge pull request #110 from gocardless/dependabot/bundler/gc_rubocon…
Browse files Browse the repository at this point in the history
…fig-tw-2.31.0

Update gc_ruboconfig requirement from ~> 2.30.0 to ~> 2.31.0
  • Loading branch information
JoeSouthan authored Jan 31, 2022
2 parents 3a95929 + 4a2406e commit 6f50233
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion business.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 0 additions & 2 deletions lib/business/calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f50233

Please sign in to comment.