Skip to content

Commit 46b02b9

Browse files
committed
Support Ruby 2 keyword arguments
1 parent e7a6b4a commit 46b02b9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/flipper/named_configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def cloud?
106106

107107
# Internal: Resolve named credentials with explicit isolation from the
108108
# existing default Cloud environment variables.
109-
def resolve_cloud_credentials(credentials = {}, env: ENV)
109+
def resolve_cloud_credentials(credentials = {}, env = ENV)
110110
return @resolved_cloud_options if @resolved_cloud_options
111111

112112
prefix = "FLIPPER_CLOUD_#{name.to_s.upcase}"

spec/flipper/engine_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def initialize
224224
@get_all_calls = 0
225225
end
226226

227-
def get_all
227+
def get_all(**_kwargs)
228228
@get_all_calls += 1
229229
super
230230
end

0 commit comments

Comments
 (0)