recurly 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.github_changelog_generator +1 -1
- data/.travis.yml +1 -0
- data/CHANGELOG.md +96 -0
- data/CODE_OF_CONDUCT.md +130 -0
- data/CONTRIBUTING.md +4 -0
- data/README.md +3 -0
- data/lib/recurly/client.rb +14 -9
- data/lib/recurly/client/operations.rb +1 -2
- data/lib/recurly/pager.rb +2 -2
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +38 -58
- data/scripts/build +2 -2
- data/scripts/format +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363aee14af2df360e4440e215556f60535e2a5293c413b37204371e46dba7f30
|
4
|
+
data.tar.gz: 83bae016d349769eebe8206f4ba8e02d2cd072c6d1fccee519054fc433bbde62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99d4ee6a951df8b4714c56c31c35b0c6ae27f29c7dc77e22a6ddd57dd743174980a280d65013350fa89c18b14523a885c56e3214ea05bdf6388c5876b3d28ec1
|
7
|
+
data.tar.gz: 96584a101083b1d7b3678bed505fd1e91bf9c1747bc9a7834467c9e7d6fb2c4f1f18ce17af4f4ff366fe5f0c32f39996f87566f7ea6c15f7c62172fe2b6d3047
|
data/.bumpversion.cfg
CHANGED
data/.github_changelog_generator
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.0.1](https://github.com/recurly/recurly-client-ruby/tree/4.0.1) (2021-03-19)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.0.0...4.0.1)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Release 4.0.1 [\#682](https://github.com/recurly/recurly-client-ruby/pull/682) ([douglasmiller](https://github.com/douglasmiller))
|
10
|
+
- More ruby 3.0 [\#680](https://github.com/recurly/recurly-client-ruby/pull/680) ([douglasmiller](https://github.com/douglasmiller))
|
11
|
+
- Additional fix for ruby 3.x [\#679](https://github.com/recurly/recurly-client-ruby/pull/679) ([douglasmiller](https://github.com/douglasmiller))
|
12
|
+
- Generated Latest Changes for v2021-02-25 [\#678](https://github.com/recurly/recurly-client-ruby/pull/678) ([recurly-integrations](https://github.com/recurly-integrations))
|
13
|
+
- Sync updates not ported from 3.x client [\#671](https://github.com/recurly/recurly-client-ruby/pull/671) ([douglasmiller](https://github.com/douglasmiller))
|
14
|
+
|
3
15
|
## [4.0.0](https://github.com/recurly/recurly-client-ruby/tree/4.0.0) (2021-03-01)
|
4
16
|
|
5
17
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.18.1...4.0.0)
|
@@ -90,42 +102,126 @@ All changes to the core API are documented in the [Developer Portal changelog](h
|
|
90
102
|
|
91
103
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.18.0...3.18.1)
|
92
104
|
|
105
|
+
**Fixed bugs:**
|
106
|
+
|
107
|
+
- Fixing issues with ruby 3.0 [\#665](https://github.com/recurly/recurly-client-ruby/pull/665) ([douglasmiller](https://github.com/douglasmiller))
|
108
|
+
|
109
|
+
**Merged pull requests:**
|
110
|
+
|
111
|
+
- Release 3.18.1 [\#666](https://github.com/recurly/recurly-client-ruby/pull/666) ([douglasmiller](https://github.com/douglasmiller))
|
112
|
+
|
93
113
|
## [3.18.0](https://github.com/recurly/recurly-client-ruby/tree/3.18.0) (2021-01-22)
|
94
114
|
|
95
115
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.17.0...3.18.0)
|
96
116
|
|
117
|
+
**Implemented enhancements:**
|
118
|
+
|
119
|
+
- Latest Changes for 2019-10-10 [\#660](https://github.com/recurly/recurly-client-ruby/pull/660) ([douglasmiller](https://github.com/douglasmiller))
|
120
|
+
|
121
|
+
**Merged pull requests:**
|
122
|
+
|
123
|
+
- Release 3.18.0 [\#661](https://github.com/recurly/recurly-client-ruby/pull/661) ([douglasmiller](https://github.com/douglasmiller))
|
124
|
+
|
97
125
|
## [3.17.0](https://github.com/recurly/recurly-client-ruby/tree/3.17.0) (2020-12-08)
|
98
126
|
|
99
127
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.16.0...3.17.0)
|
100
128
|
|
129
|
+
**Implemented enhancements:**
|
130
|
+
|
131
|
+
- Latest Changes for 2019-10-10 [\#657](https://github.com/recurly/recurly-client-ruby/pull/657) ([douglasmiller](https://github.com/douglasmiller))
|
132
|
+
|
133
|
+
**Merged pull requests:**
|
134
|
+
|
135
|
+
- Release 3.17.0 [\#658](https://github.com/recurly/recurly-client-ruby/pull/658) ([douglasmiller](https://github.com/douglasmiller))
|
136
|
+
|
101
137
|
## [3.16.0](https://github.com/recurly/recurly-client-ruby/tree/3.16.0) (2020-11-24)
|
102
138
|
|
103
139
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.15.0...3.16.0)
|
104
140
|
|
141
|
+
**Implemented enhancements:**
|
142
|
+
|
143
|
+
- Latest Changes for 2019-10-10 \(tax\_identifier / tax\_identifier\_type\) [\#654](https://github.com/recurly/recurly-client-ruby/pull/654) ([douglasmiller](https://github.com/douglasmiller))
|
144
|
+
- Latest Changes for 2019-10-10 [\#651](https://github.com/recurly/recurly-client-ruby/pull/651) ([douglasmiller](https://github.com/douglasmiller))
|
145
|
+
|
146
|
+
**Merged pull requests:**
|
147
|
+
|
148
|
+
- Release 3.16.0 [\#656](https://github.com/recurly/recurly-client-ruby/pull/656) ([douglasmiller](https://github.com/douglasmiller))
|
149
|
+
|
105
150
|
## [3.15.0](https://github.com/recurly/recurly-client-ruby/tree/3.15.0) (2020-11-06)
|
106
151
|
|
107
152
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.14.0...3.15.0)
|
108
153
|
|
154
|
+
**Implemented enhancements:**
|
155
|
+
|
156
|
+
- Latest Changes for 2019-10-10 \(Wallet, Item Coupons\) [\#645](https://github.com/recurly/recurly-client-ruby/pull/645) ([douglasmiller](https://github.com/douglasmiller))
|
157
|
+
|
158
|
+
**Merged pull requests:**
|
159
|
+
|
160
|
+
- Release 3.15.0 [\#647](https://github.com/recurly/recurly-client-ruby/pull/647) ([douglasmiller](https://github.com/douglasmiller))
|
161
|
+
|
109
162
|
## [3.14.0](https://github.com/recurly/recurly-client-ruby/tree/3.14.0) (2020-10-20)
|
110
163
|
|
111
164
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.13.0...3.14.0)
|
112
165
|
|
166
|
+
**Implemented enhancements:**
|
167
|
+
|
168
|
+
- Mon Oct 19 20:38:03 UTC 2020 Upgrade API version v2019-10-10 [\#642](https://github.com/recurly/recurly-client-ruby/pull/642) ([douglasmiller](https://github.com/douglasmiller))
|
169
|
+
|
170
|
+
**Merged pull requests:**
|
171
|
+
|
172
|
+
- Release 3.14.0 [\#643](https://github.com/recurly/recurly-client-ruby/pull/643) ([douglasmiller](https://github.com/douglasmiller))
|
173
|
+
- Fixes uninitialized constant `Recurly::Errors::ServiceNotAvailableError` [\#641](https://github.com/recurly/recurly-client-ruby/pull/641) ([ruyrocha](https://github.com/ruyrocha))
|
174
|
+
|
113
175
|
## [3.13.0](https://github.com/recurly/recurly-client-ruby/tree/3.13.0) (2020-09-22)
|
114
176
|
|
115
177
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.12.0...3.13.0)
|
116
178
|
|
179
|
+
**Implemented enhancements:**
|
180
|
+
|
181
|
+
- Latest Changes for 2019-10-10 \(Automated Exports, additional resource data attributes\) [\#638](https://github.com/recurly/recurly-client-ruby/pull/638) ([douglasmiller](https://github.com/douglasmiller))
|
182
|
+
|
183
|
+
**Merged pull requests:**
|
184
|
+
|
185
|
+
- Release 3.13.0 [\#639](https://github.com/recurly/recurly-client-ruby/pull/639) ([douglasmiller](https://github.com/douglasmiller))
|
186
|
+
|
117
187
|
## [3.12.0](https://github.com/recurly/recurly-client-ruby/tree/3.12.0) (2020-08-31)
|
118
188
|
|
119
189
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.11.0...3.12.0)
|
120
190
|
|
191
|
+
**Implemented enhancements:**
|
192
|
+
|
193
|
+
- Mon Aug 31 19:44:58 UTC 2020 Upgrade API version v2019-10-10 [\#632](https://github.com/recurly/recurly-client-ruby/pull/632) ([douglasmiller](https://github.com/douglasmiller))
|
194
|
+
|
195
|
+
**Merged pull requests:**
|
196
|
+
|
197
|
+
- Release 3.12.0 [\#633](https://github.com/recurly/recurly-client-ruby/pull/633) ([douglasmiller](https://github.com/douglasmiller))
|
198
|
+
- Code of Conduct [\#631](https://github.com/recurly/recurly-client-ruby/pull/631) ([bhelx](https://github.com/bhelx))
|
199
|
+
|
121
200
|
## [3.11.0](https://github.com/recurly/recurly-client-ruby/tree/3.11.0) (2020-08-21)
|
122
201
|
|
123
202
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.10.0...3.11.0)
|
124
203
|
|
204
|
+
**Implemented enhancements:**
|
205
|
+
|
206
|
+
- Fri Aug 21 16:17:28 UTC 2020 Upgrade API version v2019-10-10 [\#629](https://github.com/recurly/recurly-client-ruby/pull/629) ([douglasmiller](https://github.com/douglasmiller))
|
207
|
+
|
208
|
+
**Merged pull requests:**
|
209
|
+
|
210
|
+
- Release 3.11.0 [\#630](https://github.com/recurly/recurly-client-ruby/pull/630) ([douglasmiller](https://github.com/douglasmiller))
|
211
|
+
|
125
212
|
## [3.10.0](https://github.com/recurly/recurly-client-ruby/tree/3.10.0) (2020-07-31)
|
126
213
|
|
127
214
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.9.0...3.10.0)
|
128
215
|
|
216
|
+
**Implemented enhancements:**
|
217
|
+
|
218
|
+
- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#621](https://github.com/recurly/recurly-client-ruby/pull/621) ([bhelx](https://github.com/bhelx))
|
219
|
+
- Adding hierarchical errors [\#610](https://github.com/recurly/recurly-client-ruby/pull/610) ([douglasmiller](https://github.com/douglasmiller))
|
220
|
+
|
221
|
+
**Merged pull requests:**
|
222
|
+
|
223
|
+
- Release 3.10.0 [\#623](https://github.com/recurly/recurly-client-ruby/pull/623) ([douglasmiller](https://github.com/douglasmiller))
|
224
|
+
|
129
225
|
## [3.9.0](https://github.com/recurly/recurly-client-ruby/tree/3.9.0) (2020-07-06)
|
130
226
|
|
131
227
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.8.0...3.9.0)
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
|
2
|
+
# Contributor Covenant Code of Conduct
|
3
|
+
|
4
|
+
## Our Pledge
|
5
|
+
|
6
|
+
We as members, contributors, and leaders pledge to make participation in our
|
7
|
+
community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
9
|
+
identity and expression, level of experience, education, socio-economic status,
|
10
|
+
nationality, personal appearance, race, religion, or sexual identity
|
11
|
+
and orientation.
|
12
|
+
|
13
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
14
|
+
diverse, inclusive, and healthy community.
|
15
|
+
|
16
|
+
## Our Standards
|
17
|
+
|
18
|
+
Examples of behavior that contributes to a positive environment for our
|
19
|
+
community include:
|
20
|
+
|
21
|
+
* Demonstrating empathy and kindness toward other people
|
22
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
23
|
+
* Giving and gracefully accepting constructive feedback
|
24
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
25
|
+
and learning from the experience
|
26
|
+
* Focusing on what is best not just for us as individuals, but for the
|
27
|
+
overall community
|
28
|
+
|
29
|
+
Examples of unacceptable behavior include:
|
30
|
+
|
31
|
+
* The use of sexualized language or imagery, and sexual attention or
|
32
|
+
advances of any kind
|
33
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
34
|
+
* Public or private harassment
|
35
|
+
* Publishing others' private information, such as a physical or email
|
36
|
+
address, without their explicit permission
|
37
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
38
|
+
professional setting
|
39
|
+
|
40
|
+
## Enforcement Responsibilities
|
41
|
+
|
42
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
43
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
44
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
45
|
+
or harmful.
|
46
|
+
|
47
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
48
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
49
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
50
|
+
decisions when appropriate.
|
51
|
+
|
52
|
+
## Scope
|
53
|
+
|
54
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
55
|
+
an individual is officially representing the community in public spaces.
|
56
|
+
Examples of representing our community include using an official e-mail address,
|
57
|
+
posting via an official social media account, or acting as an appointed
|
58
|
+
representative at an online or offline event.
|
59
|
+
|
60
|
+
## Enforcement
|
61
|
+
|
62
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
63
|
+
reported to the community leaders responsible for enforcement at
|
64
|
+
dx@recurly.com.
|
65
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
66
|
+
|
67
|
+
All community leaders are obligated to respect the privacy and security of the
|
68
|
+
reporter of any incident.
|
69
|
+
|
70
|
+
## Enforcement Guidelines
|
71
|
+
|
72
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
73
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
74
|
+
|
75
|
+
### 1. Correction
|
76
|
+
|
77
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
78
|
+
unprofessional or unwelcome in the community.
|
79
|
+
|
80
|
+
**Consequence**: A private, written warning from community leaders, providing
|
81
|
+
clarity around the nature of the violation and an explanation of why the
|
82
|
+
behavior was inappropriate. A public apology may be requested.
|
83
|
+
|
84
|
+
### 2. Warning
|
85
|
+
|
86
|
+
**Community Impact**: A violation through a single incident or series
|
87
|
+
of actions.
|
88
|
+
|
89
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
90
|
+
interaction with the people involved, including unsolicited interaction with
|
91
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
92
|
+
includes avoiding interactions in community spaces as well as external channels
|
93
|
+
like social media. Violating these terms may lead to a temporary or
|
94
|
+
permanent ban.
|
95
|
+
|
96
|
+
### 3. Temporary Ban
|
97
|
+
|
98
|
+
**Community Impact**: A serious violation of community standards, including
|
99
|
+
sustained inappropriate behavior.
|
100
|
+
|
101
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
102
|
+
communication with the community for a specified period of time. No public or
|
103
|
+
private interaction with the people involved, including unsolicited interaction
|
104
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
105
|
+
Violating these terms may lead to a permanent ban.
|
106
|
+
|
107
|
+
### 4. Permanent Ban
|
108
|
+
|
109
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
110
|
+
standards, including sustained inappropriate behavior, harassment of an
|
111
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
112
|
+
|
113
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
114
|
+
the community.
|
115
|
+
|
116
|
+
## Attribution
|
117
|
+
|
118
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
119
|
+
version 2.0, available at
|
120
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
121
|
+
|
122
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
123
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
124
|
+
|
125
|
+
[homepage]: https://www.contributor-covenant.org
|
126
|
+
|
127
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
128
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
129
|
+
https://www.contributor-covenant.org/translations.
|
130
|
+
|
data/CONTRIBUTING.md
CHANGED
@@ -7,6 +7,10 @@ however, we may not get to these right away. Although we try to be quick, our pr
|
|
7
7
|
writing code. If you want a timely response (especially if you have an emergency), we recommend
|
8
8
|
you contact our [official support team](https://support.recurly.com/).
|
9
9
|
|
10
|
+
## Code of Conduct
|
11
|
+
|
12
|
+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|
13
|
+
|
10
14
|
#### Table Of Contents
|
11
15
|
|
12
16
|
* [I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Recurly
|
2
2
|
|
3
|
+
[![Rubygems](https://img.shields.io/static/v1?label=rubygems&message=recurly&color=purple)](https://rubygems.org/gems/recurly)
|
4
|
+
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
|
5
|
+
|
3
6
|
This repository houses the official ruby client for Recurly's V3 API.
|
4
7
|
|
5
8
|
> *Note*:
|
data/lib/recurly/client.rb
CHANGED
@@ -96,7 +96,7 @@ module Recurly
|
|
96
96
|
end
|
97
97
|
|
98
98
|
def head(path, **options)
|
99
|
-
validate_options!(options)
|
99
|
+
validate_options!(**options)
|
100
100
|
request = Net::HTTP::Head.new build_url(path, options)
|
101
101
|
set_headers(request, options[:headers])
|
102
102
|
http_response = run_request(request, options)
|
@@ -104,7 +104,7 @@ module Recurly
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def get(path, **options)
|
107
|
-
validate_options!(options)
|
107
|
+
validate_options!(**options)
|
108
108
|
request = Net::HTTP::Get.new build_url(path, options)
|
109
109
|
set_headers(request, options[:headers])
|
110
110
|
http_response = run_request(request, options)
|
@@ -112,7 +112,7 @@ module Recurly
|
|
112
112
|
end
|
113
113
|
|
114
114
|
def post(path, request_data, request_class, **options)
|
115
|
-
validate_options!(options)
|
115
|
+
validate_options!(**options)
|
116
116
|
request_class.new(request_data).validate!
|
117
117
|
request = Net::HTTP::Post.new build_url(path, options)
|
118
118
|
request.set_content_type(JSON_CONTENT_TYPE)
|
@@ -123,7 +123,7 @@ module Recurly
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def put(path, request_data = nil, request_class = nil, **options)
|
126
|
-
validate_options!(options)
|
126
|
+
validate_options!(**options)
|
127
127
|
request = Net::HTTP::Put.new build_url(path, options)
|
128
128
|
request.set_content_type(JSON_CONTENT_TYPE)
|
129
129
|
set_headers(request, options[:headers])
|
@@ -137,7 +137,7 @@ module Recurly
|
|
137
137
|
end
|
138
138
|
|
139
139
|
def delete(path, **options)
|
140
|
-
validate_options!(options)
|
140
|
+
validate_options!(**options)
|
141
141
|
request = Net::HTTP::Delete.new build_url(path, options)
|
142
142
|
set_headers(request, options[:headers])
|
143
143
|
http_response = run_request(request, options)
|
@@ -264,8 +264,13 @@ module Recurly
|
|
264
264
|
def raise_api_error!(http_response, response)
|
265
265
|
if response.content_type.include?(JSON_CONTENT_TYPE)
|
266
266
|
error = JSONParser.parse(self, response.body)
|
267
|
-
|
268
|
-
|
267
|
+
begin
|
268
|
+
error_class = Errors::APIError.error_class(error.type)
|
269
|
+
raise error_class.new(error.message, response, error)
|
270
|
+
rescue NameError
|
271
|
+
error_class = Errors::APIError.from_response(http_response)
|
272
|
+
raise error_class.new("Unknown Error", response, error)
|
273
|
+
end
|
269
274
|
end
|
270
275
|
|
271
276
|
error_class = Errors::APIError.from_response(http_response)
|
@@ -316,7 +321,7 @@ module Recurly
|
|
316
321
|
end
|
317
322
|
|
318
323
|
def interpolate_path(path, **options)
|
319
|
-
validate_path_parameters!(options)
|
324
|
+
validate_path_parameters!(**options)
|
320
325
|
options.each do |k, v|
|
321
326
|
# We need to encode the values for the url
|
322
327
|
options[k] = ERB::Util.url_encode(v.to_s)
|
@@ -348,7 +353,7 @@ module Recurly
|
|
348
353
|
end.to_h
|
349
354
|
end
|
350
355
|
|
351
|
-
def scope_by_site(path,
|
356
|
+
def scope_by_site(path, options)
|
352
357
|
if site = site_id || options[:site_id]
|
353
358
|
# Ensure that we are only including the site_id once because the Pager operations
|
354
359
|
# will use the cursor returned from the API which may already have these components
|
@@ -3142,8 +3142,7 @@ module Recurly
|
|
3142
3142
|
# subscription_create = {
|
3143
3143
|
# plan_code: plan_code,
|
3144
3144
|
# currency: "USD",
|
3145
|
-
# # This can be an existing account or
|
3146
|
-
# # a new acocunt
|
3145
|
+
# # This can be an existing account or a new account
|
3147
3146
|
# account: {
|
3148
3147
|
# code: account_code,
|
3149
3148
|
# }
|
data/lib/recurly/pager.rb
CHANGED
@@ -24,7 +24,7 @@ module Recurly
|
|
24
24
|
|
25
25
|
# Makes a HEAD request to the API to determine how many total records exist.
|
26
26
|
def count
|
27
|
-
resource = @client.send(:head, self.next,
|
27
|
+
resource = @client.send(:head, self.next, **@options)
|
28
28
|
resource.get_response.total_records
|
29
29
|
end
|
30
30
|
|
@@ -116,7 +116,7 @@ module Recurly
|
|
116
116
|
|
117
117
|
def fetch_next!(options)
|
118
118
|
path = extract_path(self.next)
|
119
|
-
page = @client.send(:get, path, options)
|
119
|
+
page = @client.send(:get, path, **options)
|
120
120
|
@data = page.data.map { |d| JSONParser.from_json(d) }
|
121
121
|
@has_more = page.has_more
|
122
122
|
@next = page.next
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -24,6 +24,42 @@ info:
|
|
24
24
|
Recurly-Version: recurly.v2021-02-25
|
25
25
|
```
|
26
26
|
|
27
|
+
Recurly's client libraries correspond with API versions as listed below.
|
28
|
+
|
29
|
+
<table>
|
30
|
+
<tr>
|
31
|
+
<th>API Version</th>
|
32
|
+
<th>Client Library Version</th>
|
33
|
+
</tr>
|
34
|
+
<tr>
|
35
|
+
<td>v2021-02-25</td>
|
36
|
+
<td>4.x</td>
|
37
|
+
</tr>
|
38
|
+
<tr>
|
39
|
+
<td>v2019-10-10</td>
|
40
|
+
<td>3.x</td>
|
41
|
+
</tr>
|
42
|
+
</table>
|
43
|
+
|
44
|
+
Client library releases:
|
45
|
+
|
46
|
+
* [Node.js](https://github.com/recurly/recurly-client-node/releases)
|
47
|
+
* [Python](https://github.com/recurly/recurly-client-python/releases)
|
48
|
+
* [.NET](https://github.com/recurly/recurly-client-dotnet/releases)
|
49
|
+
* [Ruby](https://github.com/recurly/recurly-client-ruby/releases)
|
50
|
+
* [Java](https://github.com/recurly/recurly-client-java/releases)
|
51
|
+
* [PHP](https://github.com/recurly/recurly-client-php/releases)
|
52
|
+
* [Go](https://github.com/recurly/recurly-client-go/releases)
|
53
|
+
|
54
|
+
Client libraries follow semantic versioning. For example, [Ruby client library
|
55
|
+
version 3.18.1](https://github.com/recurly/recurly-client-ruby/releases/tag/3.18.1)
|
56
|
+
represents major version `3`, minor version `18` with patch `1`.
|
57
|
+
|
58
|
+
We encourage you to update to the latest version of the API and corresponding client library,
|
59
|
+
as most recent versions are more performant than their predecessors. See the
|
60
|
+
[changelog](https://developers.recurly.com/api/changelog.html) for a comprehensive list of changes
|
61
|
+
introduced in the latest API version.
|
62
|
+
|
27
63
|
### Default Versions
|
28
64
|
Specifying a version is required to get a successful response. If you wish to
|
29
65
|
receive the latest version and are willing to accept the risk of breaking changes,
|
@@ -1256,7 +1292,6 @@ paths:
|
|
1256
1292
|
- "$ref": "#/components/parameters/account_id"
|
1257
1293
|
get:
|
1258
1294
|
tags:
|
1259
|
-
- account
|
1260
1295
|
- account_acquisition
|
1261
1296
|
operationId: get_account_acquisition
|
1262
1297
|
summary: Fetch an account's acquisition data
|
@@ -1365,7 +1400,6 @@ paths:
|
|
1365
1400
|
Acquisition: %v\", accountAcq.Id)"
|
1366
1401
|
put:
|
1367
1402
|
tags:
|
1368
|
-
- account
|
1369
1403
|
- account_acquisition
|
1370
1404
|
operationId: update_account_acquisition
|
1371
1405
|
summary: Update an account's acquisition data
|
@@ -1533,7 +1567,6 @@ paths:
|
|
1533
1567
|
Acquisition: %s\", account.Id)"
|
1534
1568
|
delete:
|
1535
1569
|
tags:
|
1536
|
-
- account
|
1537
1570
|
- account_acquisition
|
1538
1571
|
operationId: remove_account_acquisition
|
1539
1572
|
summary: Remove an account's acquisition data
|
@@ -1877,7 +1910,6 @@ paths:
|
|
1877
1910
|
"/accounts/{account_id}/billing_info":
|
1878
1911
|
get:
|
1879
1912
|
tags:
|
1880
|
-
- account
|
1881
1913
|
- billing_info
|
1882
1914
|
operationId: get_billing_info
|
1883
1915
|
summary: Fetch an account's billing information
|
@@ -1995,7 +2027,6 @@ paths:
|
|
1995
2027
|
Info: %v\", billingInfo)"
|
1996
2028
|
put:
|
1997
2029
|
tags:
|
1998
|
-
- account
|
1999
2030
|
- billing_info
|
2000
2031
|
operationId: update_billing_info
|
2001
2032
|
summary: Set an account's billing information
|
@@ -2170,7 +2201,6 @@ paths:
|
|
2170
2201
|
Info: %s\", billingInfo)"
|
2171
2202
|
delete:
|
2172
2203
|
tags:
|
2173
|
-
- account
|
2174
2204
|
- billing_info
|
2175
2205
|
operationId: remove_billing_info
|
2176
2206
|
summary: Remove an account's billing information
|
@@ -2280,7 +2310,6 @@ paths:
|
|
2280
2310
|
"/accounts/{account_id}/billing_infos":
|
2281
2311
|
get:
|
2282
2312
|
tags:
|
2283
|
-
- account
|
2284
2313
|
- billing_info
|
2285
2314
|
operationId: list_billing_infos
|
2286
2315
|
summary: Get the list of billing information associated with an account
|
@@ -2315,7 +2344,6 @@ paths:
|
|
2315
2344
|
x-code-samples: []
|
2316
2345
|
post:
|
2317
2346
|
tags:
|
2318
|
-
- account
|
2319
2347
|
- billing_info
|
2320
2348
|
operationId: create_billing_info
|
2321
2349
|
summary: Set an account's billing information when the wallet feature is enabled
|
@@ -2377,7 +2405,6 @@ paths:
|
|
2377
2405
|
"/accounts/{account_id}/billing_infos/{billing_info_id}":
|
2378
2406
|
get:
|
2379
2407
|
tags:
|
2380
|
-
- account
|
2381
2408
|
- billing_info
|
2382
2409
|
operationId: get_a_billing_info
|
2383
2410
|
summary: Fetch a billing info
|
@@ -2401,7 +2428,6 @@ paths:
|
|
2401
2428
|
x-code-samples: []
|
2402
2429
|
put:
|
2403
2430
|
tags:
|
2404
|
-
- account
|
2405
2431
|
- billing_info
|
2406
2432
|
operationId: update_a_billing_info
|
2407
2433
|
summary: Update an account's billing information
|
@@ -2463,7 +2489,6 @@ paths:
|
|
2463
2489
|
x-code-samples: []
|
2464
2490
|
delete:
|
2465
2491
|
tags:
|
2466
|
-
- account
|
2467
2492
|
- billing_info
|
2468
2493
|
operationId: remove_a_billing_info
|
2469
2494
|
summary: Remove an account's billing information
|
@@ -2495,7 +2520,6 @@ paths:
|
|
2495
2520
|
"/accounts/{account_id}/coupon_redemptions":
|
2496
2521
|
get:
|
2497
2522
|
tags:
|
2498
|
-
- account
|
2499
2523
|
- coupon_redemption
|
2500
2524
|
operationId: list_account_coupon_redemptions
|
2501
2525
|
summary: Show the coupon redemptions for an account
|
@@ -2594,7 +2618,6 @@ paths:
|
|
2594
2618
|
"/accounts/{account_id}/coupon_redemptions/active":
|
2595
2619
|
get:
|
2596
2620
|
tags:
|
2597
|
-
- account
|
2598
2621
|
- coupon_redemption
|
2599
2622
|
operationId: list_active_coupon_redemptions
|
2600
2623
|
summary: Show the coupon redemptions that are active on an account
|
@@ -2680,7 +2703,6 @@ paths:
|
|
2680
2703
|
}
|
2681
2704
|
post:
|
2682
2705
|
tags:
|
2683
|
-
- account
|
2684
2706
|
- coupon_redemption
|
2685
2707
|
operationId: create_coupon_redemption
|
2686
2708
|
summary: Generate an active coupon redemption on an account or subscription
|
@@ -2812,7 +2834,6 @@ paths:
|
|
2812
2834
|
Redemption: %v\", couponRedemption)"
|
2813
2835
|
delete:
|
2814
2836
|
tags:
|
2815
|
-
- account
|
2816
2837
|
- coupon_redemption
|
2817
2838
|
operationId: remove_coupon_redemption
|
2818
2839
|
summary: Delete the active coupon redemption from an account
|
@@ -2928,7 +2949,6 @@ paths:
|
|
2928
2949
|
"/accounts/{account_id}/credit_payments":
|
2929
2950
|
get:
|
2930
2951
|
tags:
|
2931
|
-
- account
|
2932
2952
|
- credit_payment
|
2933
2953
|
operationId: list_account_credit_payments
|
2934
2954
|
summary: List an account's credit payments
|
@@ -3038,7 +3058,6 @@ paths:
|
|
3038
3058
|
get:
|
3039
3059
|
tags:
|
3040
3060
|
- invoice
|
3041
|
-
- account
|
3042
3061
|
operationId: list_account_invoices
|
3043
3062
|
summary: List an account's invoices
|
3044
3063
|
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
@@ -3143,7 +3162,6 @@ paths:
|
|
3143
3162
|
post:
|
3144
3163
|
tags:
|
3145
3164
|
- invoice
|
3146
|
-
- account
|
3147
3165
|
operationId: create_invoice
|
3148
3166
|
summary: Create an invoice for pending line items
|
3149
3167
|
parameters:
|
@@ -3315,7 +3333,6 @@ paths:
|
|
3315
3333
|
post:
|
3316
3334
|
tags:
|
3317
3335
|
- invoice
|
3318
|
-
- account
|
3319
3336
|
operationId: preview_invoice
|
3320
3337
|
summary: Preview new invoice for pending line items
|
3321
3338
|
parameters:
|
@@ -3485,7 +3502,6 @@ paths:
|
|
3485
3502
|
"/accounts/{account_id}/line_items":
|
3486
3503
|
get:
|
3487
3504
|
tags:
|
3488
|
-
- account
|
3489
3505
|
- line_item
|
3490
3506
|
operationId: list_account_line_items
|
3491
3507
|
summary: List an account's line items
|
@@ -3593,7 +3609,6 @@ paths:
|
|
3593
3609
|
Line Item %3d: %s\\n\",\n\t\t\ti,\n\t\t\tlineItem.Id,\n\t\t)\n\t}\n}"
|
3594
3610
|
post:
|
3595
3611
|
tags:
|
3596
|
-
- account
|
3597
3612
|
- line_item
|
3598
3613
|
operationId: create_line_item
|
3599
3614
|
summary: Create a new line item for the account
|
@@ -3763,7 +3778,6 @@ paths:
|
|
3763
3778
|
"/accounts/{account_id}/notes":
|
3764
3779
|
get:
|
3765
3780
|
tags:
|
3766
|
-
- account
|
3767
3781
|
- note
|
3768
3782
|
operationId: list_account_notes
|
3769
3783
|
summary: Fetch a list of an account's notes
|
@@ -3853,7 +3867,6 @@ paths:
|
|
3853
3867
|
"/accounts/{account_id}/notes/{account_note_id}":
|
3854
3868
|
get:
|
3855
3869
|
tags:
|
3856
|
-
- account
|
3857
3870
|
- note
|
3858
3871
|
operationId: get_account_note
|
3859
3872
|
summary: Fetch an account note
|
@@ -3981,7 +3994,6 @@ paths:
|
|
3981
3994
|
"/accounts/{account_id}/shipping_addresses":
|
3982
3995
|
get:
|
3983
3996
|
tags:
|
3984
|
-
- account
|
3985
3997
|
- shipping_address
|
3986
3998
|
operationId: list_shipping_addresses
|
3987
3999
|
summary: Fetch a list of an account's shipping addresses
|
@@ -4079,7 +4091,6 @@ paths:
|
|
4079
4091
|
Address %3d: %s, %s\\n\",\n\t\t\ti,\n\t\t\tshippingAddress.Id,\n\t\t\tshippingAddress.Street1,\n\t\t)\n\t}\n}"
|
4080
4092
|
post:
|
4081
4093
|
tags:
|
4082
|
-
- account
|
4083
4094
|
- shipping_address
|
4084
4095
|
operationId: create_shipping_address
|
4085
4096
|
summary: Create a new shipping address for the account
|
@@ -4270,7 +4281,6 @@ paths:
|
|
4270
4281
|
"/accounts/{account_id}/shipping_addresses/{shipping_address_id}":
|
4271
4282
|
get:
|
4272
4283
|
tags:
|
4273
|
-
- account
|
4274
4284
|
- shipping_address
|
4275
4285
|
operationId: get_shipping_address
|
4276
4286
|
summary: Fetch an account's shipping address
|
@@ -4391,7 +4401,6 @@ paths:
|
|
4391
4401
|
Address: %v\", shippingAddress)"
|
4392
4402
|
put:
|
4393
4403
|
tags:
|
4394
|
-
- account
|
4395
4404
|
- shipping_address
|
4396
4405
|
operationId: update_shipping_address
|
4397
4406
|
summary: Update an account's shipping address
|
@@ -4563,7 +4572,6 @@ paths:
|
|
4563
4572
|
shippingAddress)"
|
4564
4573
|
delete:
|
4565
4574
|
tags:
|
4566
|
-
- account
|
4567
4575
|
- shipping_address
|
4568
4576
|
operationId: remove_shipping_address
|
4569
4577
|
summary: Remove an account's shipping address
|
@@ -4674,7 +4682,6 @@ paths:
|
|
4674
4682
|
get:
|
4675
4683
|
tags:
|
4676
4684
|
- subscription
|
4677
|
-
- account
|
4678
4685
|
operationId: list_account_subscriptions
|
4679
4686
|
summary: List an account's subscriptions
|
4680
4687
|
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
@@ -4779,7 +4786,6 @@ paths:
|
|
4779
4786
|
"/accounts/{account_id}/transactions":
|
4780
4787
|
get:
|
4781
4788
|
tags:
|
4782
|
-
- account
|
4783
4789
|
- transaction
|
4784
4790
|
operationId: list_account_transactions
|
4785
4791
|
summary: List an account's transactions
|
@@ -5750,7 +5756,6 @@ paths:
|
|
5750
5756
|
"/coupons/{coupon_id}/generate":
|
5751
5757
|
post:
|
5752
5758
|
tags:
|
5753
|
-
- coupon
|
5754
5759
|
- unique_coupon_code
|
5755
5760
|
operationId: generate_unique_coupon_codes
|
5756
5761
|
summary: Generate unique coupon codes
|
@@ -5844,7 +5849,6 @@ paths:
|
|
5844
5849
|
"/coupons/{coupon_id}/unique_coupon_codes":
|
5845
5850
|
get:
|
5846
5851
|
tags:
|
5847
|
-
- coupon
|
5848
5852
|
- unique_coupon_code
|
5849
5853
|
operationId: list_unique_coupon_codes
|
5850
5854
|
summary: List unique coupon codes associated with a bulk coupon
|
@@ -8464,7 +8468,6 @@ paths:
|
|
8464
8468
|
"/invoices/{invoice_id}/line_items":
|
8465
8469
|
get:
|
8466
8470
|
tags:
|
8467
|
-
- invoice
|
8468
8471
|
- line_item
|
8469
8472
|
operationId: list_invoice_line_items
|
8470
8473
|
summary: List an invoice's line items
|
@@ -8576,7 +8579,6 @@ paths:
|
|
8576
8579
|
"/invoices/{invoice_id}/coupon_redemptions":
|
8577
8580
|
get:
|
8578
8581
|
tags:
|
8579
|
-
- invoice
|
8580
8582
|
- coupon_redemption
|
8581
8583
|
operationId: list_invoice_coupon_redemptions
|
8582
8584
|
summary: Show the coupon redemptions applied to an invoice
|
@@ -9954,7 +9956,6 @@ paths:
|
|
9954
9956
|
get:
|
9955
9957
|
tags:
|
9956
9958
|
- add-on
|
9957
|
-
- plan
|
9958
9959
|
operationId: list_plan_add_ons
|
9959
9960
|
summary: List a plan's add-ons
|
9960
9961
|
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
@@ -10059,7 +10060,6 @@ paths:
|
|
10059
10060
|
post:
|
10060
10061
|
tags:
|
10061
10062
|
- add-on
|
10062
|
-
- plan
|
10063
10063
|
operationId: create_plan_add_on
|
10064
10064
|
summary: Create an add-on
|
10065
10065
|
parameters:
|
@@ -10257,7 +10257,6 @@ paths:
|
|
10257
10257
|
"/plans/{plan_id}/add_ons/{add_on_id}":
|
10258
10258
|
get:
|
10259
10259
|
tags:
|
10260
|
-
- plan
|
10261
10260
|
- add-on
|
10262
10261
|
operationId: get_plan_add_on
|
10263
10262
|
summary: Fetch a plan's add-on
|
@@ -10377,7 +10376,6 @@ paths:
|
|
10377
10376
|
Add-On: %v\", planAddOn)"
|
10378
10377
|
put:
|
10379
10378
|
tags:
|
10380
|
-
- plan
|
10381
10379
|
- add-on
|
10382
10380
|
operationId: update_plan_add_on
|
10383
10381
|
summary: Update an add-on
|
@@ -10521,7 +10519,6 @@ paths:
|
|
10521
10519
|
Add-On: %v\", planAddOn)"
|
10522
10520
|
delete:
|
10523
10521
|
tags:
|
10524
|
-
- plan
|
10525
10522
|
- add-on
|
10526
10523
|
operationId: remove_plan_add_on
|
10527
10524
|
summary: Remove an add-on
|
@@ -11314,8 +11311,7 @@ paths:
|
|
11314
11311
|
subscription_create = {
|
11315
11312
|
plan_code: plan_code,
|
11316
11313
|
currency: "USD",
|
11317
|
-
# This can be an existing account or
|
11318
|
-
# a new acocunt
|
11314
|
+
# This can be an existing account or a new account
|
11319
11315
|
account: {
|
11320
11316
|
code: account_code,
|
11321
11317
|
}
|
@@ -12410,7 +12406,6 @@ paths:
|
|
12410
12406
|
"/subscriptions/{subscription_id}/change":
|
12411
12407
|
get:
|
12412
12408
|
tags:
|
12413
|
-
- subscription
|
12414
12409
|
- subscription_change
|
12415
12410
|
operationId: get_subscription_change
|
12416
12411
|
summary: Fetch a subscription's pending change
|
@@ -12542,7 +12537,6 @@ paths:
|
|
12542
12537
|
change: %s\", subscriptionChange.Id)"
|
12543
12538
|
post:
|
12544
12539
|
tags:
|
12545
|
-
- subscription
|
12546
12540
|
- subscription_change
|
12547
12541
|
operationId: create_subscription_change
|
12548
12542
|
summary: Create a new subscription change
|
@@ -12702,7 +12696,6 @@ paths:
|
|
12702
12696
|
changed: %s\", subscriptionChange.Id)"
|
12703
12697
|
delete:
|
12704
12698
|
tags:
|
12705
|
-
- subscription
|
12706
12699
|
- subscription_change
|
12707
12700
|
operationId: remove_subscription_change
|
12708
12701
|
summary: Delete the pending subscription change
|
@@ -12818,7 +12811,6 @@ paths:
|
|
12818
12811
|
"/subscriptions/{subscription_id}/change/preview":
|
12819
12812
|
post:
|
12820
12813
|
tags:
|
12821
|
-
- subscription
|
12822
12814
|
- subscription_change
|
12823
12815
|
operationId: preview_subscription_change
|
12824
12816
|
summary: Preview a new subscription change
|
@@ -12864,7 +12856,6 @@ paths:
|
|
12864
12856
|
get:
|
12865
12857
|
tags:
|
12866
12858
|
- invoice
|
12867
|
-
- subscription
|
12868
12859
|
operationId: list_subscription_invoices
|
12869
12860
|
summary: List a subscription's invoices
|
12870
12861
|
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
@@ -12969,7 +12960,7 @@ paths:
|
|
12969
12960
|
"/subscriptions/{subscription_id}/line_items":
|
12970
12961
|
get:
|
12971
12962
|
tags:
|
12972
|
-
-
|
12963
|
+
- line_item
|
12973
12964
|
operationId: list_subscription_line_items
|
12974
12965
|
summary: List a subscription's line items
|
12975
12966
|
description: See the [Pagination Guide](/guides/pagination.html) to learn how
|
@@ -13077,7 +13068,6 @@ paths:
|
|
13077
13068
|
"/subscriptions/{subscription_id}/coupon_redemptions":
|
13078
13069
|
get:
|
13079
13070
|
tags:
|
13080
|
-
- subscription
|
13081
13071
|
- coupon_redemption
|
13082
13072
|
operationId: list_subscription_coupon_redemptions
|
13083
13073
|
summary: Show the coupon redemptions for a subscription
|
@@ -13176,8 +13166,6 @@ paths:
|
|
13176
13166
|
"/subscriptions/{subscription_id}/add_ons/{add_on_id}/usage":
|
13177
13167
|
get:
|
13178
13168
|
tags:
|
13179
|
-
- invoice
|
13180
|
-
- subscription
|
13181
13169
|
- usage
|
13182
13170
|
operationId: list_usage
|
13183
13171
|
summary: List a subscription add-on's usage records
|
@@ -13220,8 +13208,6 @@ paths:
|
|
13220
13208
|
x-code-samples: []
|
13221
13209
|
post:
|
13222
13210
|
tags:
|
13223
|
-
- invoice
|
13224
|
-
- subscription
|
13225
13211
|
- usage
|
13226
13212
|
operationId: create_usage
|
13227
13213
|
summary: Log a usage record on this subscription add-on
|
@@ -13270,8 +13256,6 @@ paths:
|
|
13270
13256
|
"/usage/{usage_id}":
|
13271
13257
|
get:
|
13272
13258
|
tags:
|
13273
|
-
- invoice
|
13274
|
-
- subscription
|
13275
13259
|
- usage
|
13276
13260
|
operationId: get_usage
|
13277
13261
|
summary: Get a usage record
|
@@ -13306,8 +13290,6 @@ paths:
|
|
13306
13290
|
x-code-samples: []
|
13307
13291
|
put:
|
13308
13292
|
tags:
|
13309
|
-
- invoice
|
13310
|
-
- subscription
|
13311
13293
|
- usage
|
13312
13294
|
operationId: update_usage
|
13313
13295
|
summary: Update a usage record
|
@@ -13354,8 +13336,6 @@ paths:
|
|
13354
13336
|
x-code-samples: []
|
13355
13337
|
delete:
|
13356
13338
|
tags:
|
13357
|
-
- invoice
|
13358
|
-
- subscription
|
13359
13339
|
- usage
|
13360
13340
|
operationId: remove_usage
|
13361
13341
|
summary: Delete a usage record.
|
data/scripts/build
CHANGED
data/scripts/format
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
if [ "$1" == "--check" ]; then
|
4
|
-
|
4
|
+
bundle exec rufo . --check
|
5
5
|
RESULT=$?
|
6
6
|
if [ $RESULT != 0 ]; then
|
7
7
|
echo "Code is not properly formatted. Please execute ./scripts/format to autoformat the code."
|
8
8
|
exit $RESULT
|
9
9
|
fi
|
10
10
|
else
|
11
|
-
|
11
|
+
bundle exec rufo . -x
|
12
12
|
fi
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- ".travis.yml"
|
126
126
|
- ".yardopts"
|
127
127
|
- CHANGELOG.md
|
128
|
+
- CODE_OF_CONDUCT.md
|
128
129
|
- CONTRIBUTING.md
|
129
130
|
- GETTING_STARTED.md
|
130
131
|
- Gemfile
|
@@ -293,7 +294,7 @@ metadata:
|
|
293
294
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
294
295
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
295
296
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
296
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.
|
297
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0.1
|
297
298
|
post_install_message:
|
298
299
|
rdoc_options: []
|
299
300
|
require_paths:
|