diff --git a/lib/origami/filters/predictors.rb b/lib/origami/filters/predictors.rb index 8c405c1..72c086d 100644 --- a/lib/origami/filters/predictors.rb +++ b/lib/origami/filters/predictors.rb @@ -62,13 +62,13 @@ def initialize(parameters = {}) def pre_prediction(data) return data unless @params.Predictor.is_a?(Integer) - apply_pre_prediction(data, prediction_parameters) + apply_pre_prediction(data, **prediction_parameters) end def post_prediction(data) return data unless @params.Predictor.is_a?(Integer) - apply_post_prediction(data, prediction_parameters) + apply_post_prediction(data, **prediction_parameters) end def prediction_parameters diff --git a/lib/origami/string.rb b/lib/origami/string.rb index 68139e8..4ebb055 100644 --- a/lib/origami/string.rb +++ b/lib/origami/string.rb @@ -417,7 +417,7 @@ def self.parse(str) #:nodoc: date[:utc_offset] = utc_offset end - Origami::Date.new(date) + Origami::Date.new(**date) end # @@ -437,7 +437,7 @@ def self.now utc_offset: now.utc_offset } - Origami::Date.new(date) + Origami::Date.new(**date) end end