Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ruby 2.7 keyword arguments warnings #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/origami/filters/predictors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/origami/string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def self.parse(str) #:nodoc:
date[:utc_offset] = utc_offset
end

Origami::Date.new(date)
Origami::Date.new(**date)
end

#
Expand All @@ -437,7 +437,7 @@ def self.now
utc_offset: now.utc_offset
}

Origami::Date.new(date)
Origami::Date.new(**date)
end
end

Expand Down