Skip to content

Commit c0fc4aa

Browse files
author
Aman Aalam
authored
Merge pull request #63 from trolley/repo-update
Changed repo name from PaymentRails to Trolley
2 parents eb726c9 + a094997 commit c0fc4aa

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

.rubocop_todo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Style/ConditionalAssignment:
141141
# Cop supports --auto-correct.
142142
Style/ExpandPathArguments:
143143
Exclude:
144-
- 'paymentrails.gemspec'
144+
- 'trolley.gemspec'
145145

146146
# Offense count: 23
147147
# Cop supports --auto-correct.
@@ -178,7 +178,7 @@ Style/StringLiterals:
178178
Exclude:
179179
- 'Gemfile'
180180
- 'lib/trolley/Client.rb'
181-
- 'paymentrails.gemspec'
181+
- 'trolley.gemspec'
182182

183183
# Offense count: 49
184184
# Cop supports --auto-correct.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Trolley Ruby SDK
22

3-
[![Latest Stable Version](https://poser.pugx.org/paymentrails/ruby-sdk/v/stable.png)](https://packagist.org/packages/paymentrails/ruby-sdk)
4-
53
The Trolley Ruby SDK provides integration access to the Trolley API.
64

75
## Requirements
@@ -22,7 +20,7 @@ gem install trolley
2220
### Clone the SDK
2321

2422
```bash
25-
git clone https://github.com/PaymentRails/ruby-sdk.git
23+
git clone https://github.com/Trolley/ruby-sdk.git
2624
```
2725

2826
### Build & Install the gem

lib/trolley.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
require 'trolley/InvoicePayment'
2626

2727
module Trolley
28-
VERSION = '1.0.0'.freeze
28+
VERSION = '1.0.3'.freeze
2929

3030
def self.client(key, secret, **optionals)
3131
Gateway.new(Configuration.new(key, secret, **optionals))

lib/trolley/utils/ResponseMapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def loosely_hydrate_model(resource_data)
5454
instance.send("#{k}=", v)
5555
rescue NoMethodError
5656
# TODO: The API is showing non-public attributes, once we remove them from the API response we can re-add this warning.
57-
# warn "[PaymentRails] Unknown attribute #{k} for class #{klass_instance.class.name}"
57+
# warn "[Trolley] Unknown attribute #{k} for class #{klass_instance.class.name}"
5858
end
5959

6060
instance

spec/unit/TrolleyTest.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require_relative '../../lib/trolley'
22
require 'test/unit'
33

4-
class PaymentRailsTest < Test::Unit::TestCase
4+
class TrolleyTest < Test::Unit::TestCase
55
def test_client
66
Trolley.client('key', 'secret', proxy_uri: 'http://user:[email protected]:80')
77
end

trolley.gemspec

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,22 @@ Gem::Specification.new do |s|
44
s.name = 'trolley'
55
s.summary = 'Trolley Ruby SDK'
66
s.description = 'Ruby SDK for interacting with the Trolley API'
7-
s.version = '1.0.1'
8-
s.homepage = 'https://trolley.com/'
7+
s.version = '1.0.3'
8+
s.homepage = "https://github.com/trolley/ruby-sdk"
99
s.email = ['[email protected]']
1010
s.license = 'MIT'
11-
s.author = 'Trolley'
11+
s.authors = ['Trolley']
1212
s.files = Dir.glob ['README.rdoc', 'LICENSE', 'lib/**/*.{rb,crt}', 'spec/**/*', '*.gemspec']
1313
s.required_ruby_version = '>= 2.7'
1414
s.add_development_dependency 'dotenv', '~> 2'
1515
s.add_development_dependency 'rake', '~> 13'
1616
s.add_development_dependency 'rubocop', '~> 1'
1717
s.add_development_dependency 'test-unit', '~> 3'
18+
s.metadata = {
19+
"bug_tracker_uri" => "https://github.com/trolley/ruby-sdk/issues",
20+
"changelog_uri" => "https://github.com/trolley/ruby-sdk/releases",
21+
"documentation_uri" => "https://docs.trolley.com",
22+
"homepage_uri" => "https://github.com/trolley/ruby-sdk/",
23+
"source_code_uri" => "https://github.com/trolley/ruby-sdk.git",
24+
}
1825
end

0 commit comments

Comments
 (0)