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" 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