Skip to content

Commit d6d0662

Browse files
committed
fixup inaccessible version
1 parent 050231d commit d6d0662

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/paymentrails.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
require 'paymentrails/InvoicePayment'
2323

2424
module PaymentRails
25+
VERSION = '0.2.14'
26+
2527
def self.client(key, secret, environment = 'production', **optionals)
2628
Gateway.new(Configuration.new(key, secret, environment, **optionals))
2729
end

lib/paymentrails/Client.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,11 @@ def send_request(endPoint, method, body = '')
4040
)
4141
http.use_ssl = @config.useSsl?
4242

43-
spec = Gem::Specification.load("paymentrails.gemspec")
44-
4543
time = Time.now.to_i
4644
headers = {'X-PR-Timestamp': time.to_s,
4745
'Authorization': generate_authorization(time, endPoint, method, body),
4846
'Content-Type': 'application/json',
49-
'Trolley-Source': "ruby-sdk_#{spec.version}"}
47+
'Trolley-Source': "ruby-sdk_#{::PaymentRails::VERSION}"}
5048

5149
if method === "GET"
5250
request = Net::HTTP::Get.new(uri.request_uri, headers)

paymentrails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
44
s.name = "paymentrails"
55
s.summary = "Trolley Ruby SDK"
66
s.description = "Ruby SDK for interacting with the Trolley API"
7-
s.version = '0.2.13'
7+
s.version = '0.2.14'
88
s.homepage = 'https://trolley.com/'
99
s.email = ['developer-tools@trolley.com']
1010
s.license = "MIT"

0 commit comments

Comments
 (0)