From 6bd7a9570240eb7498e99e087fe09588549cc6f6 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Tue, 29 Jun 2021 10:52:01 +0100 Subject: [PATCH] Fix warning by using Integer class rather than Fixnum Fixnum and Bignum have been integrated as a single Integer class. Previously this gave the warning: constant ::Fixnum is deprecated. https://bugs.ruby-lang.org/issues/12005 --- lib/uk_planning_scraper/authority_scrape_params.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/uk_planning_scraper/authority_scrape_params.rb b/lib/uk_planning_scraper/authority_scrape_params.rb index b3170e2..9b012a5 100644 --- a/lib/uk_planning_scraper/authority_scrape_params.rb +++ b/lib/uk_planning_scraper/authority_scrape_params.rb @@ -12,7 +12,7 @@ module UKPlanningScraper def validated_days(n) # Validated within the last n days # Assumes that every scraper/system can do a date range search - check_class(n, Fixnum) + check_class(n, Integer) unless n > 0 raise ArgumentError.new("validated_days must be greater than 0") @@ -26,7 +26,7 @@ module UKPlanningScraper def received_days(n) # received within the last n days # Assumes that every scraper/system can do a date range search - check_class(n, Fixnum) + check_class(n, Integer) unless n > 0 raise ArgumentError.new("received_days must be greater than 0") @@ -40,7 +40,7 @@ module UKPlanningScraper def decided_days(n) # decided within the last n days # Assumes that every scraper/system can do a date range search - check_class(n, Fixnum) + check_class(n, Integer) unless n > 0 raise ArgumentError.new("decided_days must be greater than 0")