Skip to content

Commit

Permalink
add failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinera committed Nov 14, 2023
1 parent dfb0447 commit 061353e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sig/environment_helpers.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ module EnvironmentHelpers
class InvalidRangeText < InvalidValue
end

class InvalidIntegerText < InvalidValue
end

class InvalidDateText < InvalidValue
end

Expand All @@ -41,7 +38,6 @@ module EnvironmentHelpers

private def fetch_value: (String name, required: bool) -> String?
private def check_default_type: (String | Symbol context, untyped value, *Class types) -> void
private def check_default_value: (String | Symbol context, untyped value, allow: Enumerable[untyped]) -> void
end

module FileHelpers : AccessHelpers
Expand All @@ -50,13 +46,13 @@ module EnvironmentHelpers

module DatetimeHelpers : AccessHelpers
type date_time_result = DateTime? | Time?
def date: (String name, format: String, default: Date?, required: bool) -> Date?
def date: (String name, format: String, default: Integer, required: bool) -> Date?
def date_time: (String name, format: String | Symbol, default: date_time_result, required: bool) -> date_time_result
private def parse_date_from: (String? text, format: String) -> Date?
private def parse_date_time_from: (String? text, format: String | Symbol) -> DateTime?
private def iso8601_date_time: (String) -> DateTime?
private def unix_date_time: (String) -> DateTime?
private def strptime_date_time: (String, format: String) -> DateTime?
private def strptime_date_time: (String, format: Date) -> DateTime?
end

module NumericHelpers : AccessHelpers
Expand Down

0 comments on commit 061353e

Please sign in to comment.