Skip to content

Commit 0bb6ea0

Browse files
committed
cops
1 parent d6d0662 commit 0bb6ea0

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

lib/paymentrails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
require 'paymentrails/InvoicePayment'
2323

2424
module PaymentRails
25-
VERSION = '0.2.14'
25+
VERSION = '0.2.14'.freeze
2626

2727
def self.client(key, secret, environment = 'production', **optionals)
2828
Gateway.new(Configuration.new(key, secret, environment, **optionals))

lib/paymentrails/Client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def send_request(endPoint, method, body = '')
4545
'Authorization': generate_authorization(time, endPoint, method, body),
4646
'Content-Type': 'application/json',
4747
'Trolley-Source': "ruby-sdk_#{::PaymentRails::VERSION}"}
48-
48+
4949
if method === "GET"
5050
request = Net::HTTP::Get.new(uri.request_uri, headers)
5151
elsif method === "POST"

lib/paymentrails/gateways/GatewayHelper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module PaymentRails
22
module GatewayHelper
3+
# rubocop:disable Lint/SuppressedException
34
def loosely_hydrate_model(klass_instance, attributes)
45
attributes.each do |k, v|
56
begin
@@ -12,5 +13,6 @@ def loosely_hydrate_model(klass_instance, attributes)
1213

1314
klass_instance
1415
end
16+
# rubocop:enable Lint/SuppressedException
1517
end
1618
end

spec/integration/RecipientTest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def test_lifecycle
4949
assert_equal(recipient.status, 'archived')
5050
end
5151

52+
# rubocop:disable Metrics/MethodLength
5253
def test_account
5354
uuid = SecureRandom.uuid.to_s
5455
recipient = @client.recipient.create(
@@ -88,4 +89,5 @@ def test_account
8889
accountList = @client.recipient_account.all(recipient.id)
8990
assert_equal(1, accountList.count)
9091
end
92+
# rubocop:enable Metrics/MethodLength
9193
end

0 commit comments

Comments
 (0)