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

Update code to avoid Ruby 2.7.0 warnings #183

Merged
merged 2 commits into from
May 5, 2020
Merged
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
2 changes: 1 addition & 1 deletion lib/acme/client/resources/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Acme::Client::Resources::Account

def initialize(client, **arguments)
@client = client
assign_attributes(arguments)
assign_attributes(**arguments)
end

def kid
Expand Down
2 changes: 1 addition & 1 deletion lib/acme/client/resources/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Acme::Client::Resources::Authorization

def initialize(client, **arguments)
@client = client
assign_attributes(arguments)
assign_attributes(**arguments)
end

def deactivate
Expand Down
2 changes: 1 addition & 1 deletion lib/acme/client/resources/challenges/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Acme::Client::Resources::Challenges::Base

def initialize(client, **arguments)
@client = client
assign_attributes(arguments)
assign_attributes(**arguments)
end

def challenge_type
Expand Down
2 changes: 1 addition & 1 deletion lib/acme/client/resources/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Acme::Client::Resources::Order

def initialize(client, **arguments)
@client = client
assign_attributes(arguments)
assign_attributes(**arguments)
end

def reload
Expand Down
4 changes: 0 additions & 4 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'openssl'

DIRECTORY_URL = ENV['ACME_DIRECTORY_URL'] || 'https://127.0.0.1/directory'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

require 'acme/client'

Expand All @@ -19,9 +18,6 @@
require 'tls_helper'
require 'profile_helper' if ENV['RUBY_PROF']

# pebble use self-signed certificate
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

RSpec.configure do |c|
c.include Asn1Helper
c.include HttpHelper
Expand Down