gocardless-pro 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/circle.yml +0 -15
- data/gocardless-pro.gemspec +1 -2
- data/lib/gocardless-pro.rb +0 -2
- data/lib/gocardless-pro/list_response.rb +2 -2
- data/lib/gocardless-pro/response.rb +1 -1
- data/lib/gocardless-pro/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4743079901f623f99893a58f597217374d0b149b
|
4
|
+
data.tar.gz: 921dcc074feefd8c1a34169a7dea5510d81144b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1c2e0828a1910b4b94009a69d8d051cbaa4bbb8bd99394811afa03587e1e0f6ea9ae6008780c458a9eadd5cc97fc9d2b1720e3ca6025b2b55b64140af85506
|
7
|
+
data.tar.gz: 538fd99d6696cd8b21b9fe66de2121071b847c92ef60346923bd620cede1afc3fa9685d4cebcce0c9ab7cb50190978755cb71dadc0f4a13438da85967b39f848
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
# Client for GoCardless Enterprise API
|
1
|
+
# Ruby Client for GoCardless Enterprise API
|
2
2
|
|
3
|
+
- [YARD Docs](http://gocardless.github.io/pro-client-ruby/)
|
4
|
+
- [GoCardless Pro API Docs](https://developer.gocardless.com/pro/)
|
5
|
+
- [RubyGems](https://rubygems.org/gems/gocardless-pro)
|
6
|
+
|
7
|
+
This client is still in beta and is subject to change. Until a stable major version is released you should expect breaking changes.
|
3
8
|
|
4
9
|
Add this line to your application's Gemfile:
|
5
10
|
|
@@ -7,6 +12,12 @@ Add this line to your application's Gemfile:
|
|
7
12
|
gem 'gocardless-pro'
|
8
13
|
```
|
9
14
|
|
15
|
+
And then load it into your application:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'gocardless-pro'
|
19
|
+
```
|
20
|
+
|
10
21
|
## Usage Examples
|
11
22
|
|
12
23
|
- In the case of a single response, the client will return you an instance of the resource
|
@@ -34,7 +45,7 @@ You can make a request to get a list of resources using the `list` method:
|
|
34
45
|
@client.customers.list
|
35
46
|
```
|
36
47
|
|
37
|
-
This README will use `customers` throughout but each of the resources in the API is available in this library. They are defined in [`gocardless.rb`](https://github.com/gocardless/pro-client-ruby/blob/master/lib/gocardless.rb#L87).
|
48
|
+
This README will use `customers` throughout but each of the resources in the API is available in this library. They are defined in [`gocardless.rb`](https://github.com/gocardless/pro-client-ruby/blob/master/lib/gocardless-pro.rb#L87).
|
38
49
|
|
39
50
|
If you need to pass any options, the last (or in the absence of URL params, the only) argument is an options hash. This is used to pass query parameters for `GET` requests:
|
40
51
|
|
data/circle.yml
CHANGED
@@ -1,18 +1,3 @@
|
|
1
1
|
machine:
|
2
2
|
ruby:
|
3
3
|
version: 2.0.0-p353
|
4
|
-
|
5
|
-
deployment:
|
6
|
-
git:
|
7
|
-
branch: master
|
8
|
-
commands:
|
9
|
-
- bundle exec yard doc
|
10
|
-
- git config user.name "Circle CI"
|
11
|
-
- git config user.email "robot+circleci@gocardless.com"
|
12
|
-
- git checkout gh-pages
|
13
|
-
- rm -r css GoCardless js
|
14
|
-
- mv doc/* .
|
15
|
-
- touch .nojekyll
|
16
|
-
- git add .
|
17
|
-
- git commit -m "[ci skip] Generate Yard Doc"
|
18
|
-
- git push origin gh-pages
|
data/gocardless-pro.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = %w(GoCardless)
|
10
10
|
spec.email = %w(engineering@gocardless.com)
|
11
11
|
spec.summary = %q{A gem for calling the GoCardless Pro API}
|
12
|
-
spec.homepage = "https://
|
12
|
+
spec.homepage = "https://github.com/gocardless/gocardless-pro-ruby"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -23,5 +23,4 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'yard', '~> 0.8.7.6'
|
24
24
|
|
25
25
|
spec.add_dependency 'faraday', '~> 0.8.9'
|
26
|
-
spec.add_dependency 'activesupport', '~> 4.1'
|
27
26
|
end
|
data/lib/gocardless-pro.rb
CHANGED
@@ -23,12 +23,12 @@ module GoCardless
|
|
23
23
|
|
24
24
|
# return the before cursor for paginating
|
25
25
|
def before
|
26
|
-
@raw_response.body[
|
26
|
+
@raw_response.body['meta']['cursors']['before']
|
27
27
|
end
|
28
28
|
|
29
29
|
# return the after cursor for paginating
|
30
30
|
def after
|
31
|
-
@raw_response.body[
|
31
|
+
@raw_response.body['meta']['cursors']['after']
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gocardless-pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.8.9
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: activesupport
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '4.1'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ~>
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '4.1'
|
97
83
|
description:
|
98
84
|
email:
|
99
85
|
- engineering@gocardless.com
|
@@ -190,7 +176,7 @@ files:
|
|
190
176
|
- spec/services/subscription_service_spec.rb
|
191
177
|
- spec/services/user_service_spec.rb
|
192
178
|
- spec/spec_helper.rb
|
193
|
-
homepage: https://
|
179
|
+
homepage: https://github.com/gocardless/gocardless-pro-ruby
|
194
180
|
licenses:
|
195
181
|
- MIT
|
196
182
|
metadata: {}
|
@@ -210,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
196
|
version: '0'
|
211
197
|
requirements: []
|
212
198
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.4.
|
199
|
+
rubygems_version: 2.4.1
|
214
200
|
signing_key:
|
215
201
|
specification_version: 4
|
216
202
|
summary: A gem for calling the GoCardless Pro API
|