Skip to content

Commit 7d9cc19

Browse files
committed
✨ New Options: :ssl_client_cert and :ssl_client_key
Signed-off-by: Peter Boling <[email protected]>
1 parent 06acf79 commit 7d9cc19

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.rubocop_todo.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2021-10-31 21:29:49 UTC using RuboCop version 1.22.3.
3+
# on 2021-11-01 06:50:04 UTC using RuboCop version 1.22.3.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -266,7 +266,7 @@ Layout/InitialIndentation:
266266
Exclude:
267267
- 'lib/oauth/request_proxy/curb_request.rb'
268268

269-
# Offense count: 11
269+
# Offense count: 10
270270
# Cop supports --auto-correct.
271271
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
272272
Layout/LeadingCommentSpace:
@@ -275,7 +275,6 @@ Layout/LeadingCommentSpace:
275275
- '**/*.markdown'
276276
- 'lib/oauth/helper.rb'
277277
- 'lib/oauth/request_proxy.rb'
278-
- 'oauth.gemspec'
279278
- 'test/cases/spec/1_0-final/test_construct_request_url.rb'
280279
- 'test/units/test_request_token.rb'
281280

@@ -559,12 +558,12 @@ Lint/UselessMethodDefinition:
559558
# Offense count: 50
560559
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
561560
Metrics/AbcSize:
562-
Max: 59
561+
Max: 63
563562

564563
# Offense count: 9
565564
# Configuration parameters: CountComments, CountAsOne.
566565
Metrics/ClassLength:
567-
Max: 282
566+
Max: 284
568567

569568
# Offense count: 7
570569
# Configuration parameters: IgnoredMethods.
@@ -584,7 +583,7 @@ Metrics/ParameterLists:
584583
# Offense count: 7
585584
# Configuration parameters: IgnoredMethods.
586585
Metrics/PerceivedComplexity:
587-
Max: 18
586+
Max: 20
588587

589588
# Offense count: 16
590589
# Cop supports --auto-correct.
@@ -760,14 +759,13 @@ Style/AndOr:
760759
- 'lib/oauth/consumer.rb'
761760
- 'lib/oauth/request_proxy/rack_request.rb'
762761

763-
# Offense count: 9
762+
# Offense count: 8
764763
# Cop supports --auto-correct.
765764
Style/ArrayJoin:
766765
Exclude:
767766
- 'lib/oauth/cli/base_command.rb'
768767
- 'lib/oauth/cli/sign_command.rb'
769768
- 'lib/oauth/client/net_http.rb'
770-
- 'lib/oauth/errors/unauthorized.rb'
771769
- 'lib/oauth/helper.rb'
772770
- 'lib/oauth/request_proxy/base.rb'
773771

lib/oauth/consumer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ def create_http(_url = nil)
383383
http_object.read_timeout = http_object.open_timeout = @options[:timeout] || 60
384384
http_object.open_timeout = @options[:open_timeout] if @options[:open_timeout]
385385
http_object.ssl_version = @options[:ssl_version] if @options[:ssl_version]
386+
http_object.cert = @options[:ssl_client_cert] if @options[:ssl_client_cert]
387+
http_object.key = @options[:ssl_client_key] if @options[:ssl_client_key]
386388
http_object.set_debug_output(debug_output) if debug_output
387389

388390
http_object

0 commit comments

Comments
 (0)