Skip to content
This repository was archived by the owner on Mar 24, 2020. It is now read-only.

Commit dd6bf7d

Browse files
committed
Merge branch 'master' of github.com:recurly/recurly-client-ruby
2 parents 3dad257 + 5278237 commit dd6bf7d

File tree

186 files changed

+4400
-589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+4400
-589
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ doc/*
1111
bin/*
1212
!bin/recurly
1313

14+
# Gems should not checkin lock files
15+
# http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
16+
Gemfile.lock
17+
1418
TODO

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.4.1

.tool-versions-e

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.3.1

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ script:
44
- gem build recurly.gemspec
55
cache: bundler
66
sudo: false
7+
before_install:
8+
- gem update bundler
79
rvm:
8-
- jruby
10+
- jruby-9.1.9.0
11+
- jruby-9000
912
- 1.9.3
1013
- 2.0.0
1114
- 2.1.0
15+
- 2.2.4
16+
- 2.3.0
17+
- 2.4.0
1218
env:
1319
- XML=rexml
1420
- XML=nokogiri
1521
matrix:
1622
allow_failures:
17-
- rvm: jruby-19mode
23+
- rvm: 1.9.3
24+
env: XML=nokogiri
25+
- rvm: 2.0.0
26+
env: XML=nokogiri
27+
- rvm: jruby
1828
env: XML=nokogiri

CHANGELOG.md

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,218 @@
11
<a name="unreleased"></a>
22
## Unreleased
33

4+
<a name="v2.11.1"></a>
5+
## v2.11.1 (2017-10-20)
6+
7+
- Added `subscriptions` link to `Invoice` and `Transaction` [PR](https://github.com/recurly/recurly-client-ruby/pull/342)
8+
9+
<a name="v2.11.0"></a>
10+
## v2.11.0 (2017-10-04)
11+
12+
This release will upgrade us to API version 2.8.
13+
14+
- Added custom invoice notes to `Purchase` [PR](https://github.com/recurly/recurly-client-ruby/pull/340)
15+
- Added `imported_trial` boolean field to `Subscription` [Commit](https://github.com/recurly/recurly-client-ruby/commit/cdfbe9de6203f8f2a3bb533411dd4c16dea138b6)
16+
17+
### Upgrade Notes
18+
19+
There is one breaking change in this API version you must consider. All `country` fields must now contain valid [2 letter ISO 3166 country codes](https://www.iso.org/iso-3166-country-codes.html). If your code fails
20+
validation, you will receive a validation error. This affects anywhere and address is collected.
21+
22+
<a name="v2.10.1"></a>
23+
## v2.10.2 (2017-09-27)
24+
25+
- Fix Subscription constructor API breakage [PR](https://github.com/recurly/recurly-client-ruby/pull/339)
26+
27+
<a name="v2.10.1"></a>
28+
## v2.10.1 (2017-07-03)
29+
30+
**NOTE**: This release contains an accidental breaking change on `Subscription.new`.
31+
See [#338](https://github.com/recurly/recurly-client-ruby/issues/338) for more details.
32+
Upgrade to 2.10.2 for the fix.
33+
34+
This release will upgrade us to API version 2.7.
35+
36+
- Added `updated_account_notification` notification event [PR](https://github.com/recurly/recurly-client-ruby/pull/326)
37+
- Removed Plan#trial_requires_billing_info coercion [PR](https://github.com/recurly/recurly-client-ruby/pull/329)
38+
- Fixed "address" being serialized as "addres" bug [PR](https://github.com/recurly/recurly-client-ruby/pull/330)
39+
- Bump to API v2.7 (Purchase endpoint updates) [PR](https://github.com/recurly/recurly-client-ruby/pull/332)
40+
41+
<a name="v2.10.0"></a>
42+
## v2.10.0 (2017-05-19)
43+
44+
- resource_class option should be class_name and other mislabeled options [PR](https://github.com/recurly/recurly-client-ruby/pull/321)
45+
- Upgrade rake to fix warnings [PR](https://github.com/recurly/recurly-client-ruby/pull/323)
46+
- Purchases endpoint [PR](https://github.com/recurly/recurly-client-ruby/pull/322)
47+
- Removal of X-Records header [PR](https://github.com/recurly/recurly-client-ruby/pull/324)
48+
49+
### Upgrade Notes:
50+
51+
This release will upgrade us to API version 2.6. There are two breaking changes:
52+
53+
1. Since the X-Records header was removed in the pagination endpoint, you can no longer call `count` on a `Pager` and expect it to return a cached response.
54+
From now on, when you call `Pager#count`, it will send a `HEAD` request to the server. So make sure you aren't calling that method in places where you expect the value
55+
to be cached for you. For more info see [PR #324](https://github.com/recurly/recurly-client-ruby/pull/324).
56+
2. For `POST /v2/subscriptions` Sending `nil` for `total_billing_cycles` attribute will now override plan `total_billing_cycles` setting and will make subscription renew forever.
57+
Omitting the attribute will cause the setting to default to the value of plan `total_billing_cycles`.
58+
59+
<a name="v2.9.0"></a>
60+
## v2.9.0 (2017-04-05)
61+
62+
- Remove Nokogiri as a dependency of the recurly gem. If you'd like to continue using it (for that nice speed boost), make sure to add `gem "nokogiri"` to your Gemfile. [PR](https://github.com/recurly/recurly-client-ruby/pull/302)
63+
- Add sort and filter params to Pager rubydocs [PR](https://github.com/recurly/recurly-client-ruby/pull/318)
64+
- Ban nokogiri on dead rubies [PR](https://github.com/recurly/recurly-client-ruby/pull/317)
65+
- Fix Address serialization bug (serialize every attribute on update) [PR](https://github.com/recurly/recurly-client-ruby/pull/315)
66+
- Upgrade webmock so specs can run on ruby 2.4 [PR](https://github.com/recurly/recurly-client-ruby/pull/314)
67+
68+
### Upgrade Notes:
69+
Ruby 1.9 and 2.0 are now deprecated. You may no longer use
70+
nokogiri on these rubies. Please see [PR #317](https://github.com/recurly/recurly-client-ruby/pull/317) for more information.
71+
If you wish to use nokogiri and it's not already required (by rails for instance), you will need to explicitly add it as a dependency and require it.
72+
73+
<a name="v2.8.0"></a>
74+
## v2.8.0 (2017-03-21)
75+
76+
- Finishes API v2.5 updates [PR](https://github.com/recurly/recurly-client-ruby/pull/301)
77+
- Adding product_code to Transactions and Adjustments [PR](https://github.com/recurly/recurly-client-ruby/pull/298)
78+
- Adding all_line_items [PR](https://github.com/recurly/recurly-client-ruby/pull/293)
79+
- Implement fields for Vertex integration [PR](https://github.com/recurly/recurly-client-ruby/pull/289)
80+
- Adds geo_code to billing_info, account address, and shipping address [PR](https://github.com/recurly/recurly-client-ruby/pull/273)
81+
- Guard against passing `Resource.find` empty strings #307 [PR](https://github.com/recurly/recurly-client-ruby/pull/307)
82+
- Add yard docs link #305 [PR](https://github.com/recurly/recurly-client-ruby/pull/305)
83+
84+
### Upgrade Notes:
85+
If you are using `as_json` on a Resource (previously unsupported) we are now returning the attributes as json rather than the resource as json. This means your returned Hash will not have an `attributes` key but will rather BE the `attributes` value. See #295
86+
87+
<a name="v2.7.6"></a>
88+
## v2.7.6 (2017-01-30)
89+
90+
- Fix cloudflare 502 error #296 [PR](https://github.com/recurly/recurly-client-ruby/pull/296)
91+
- Fix stack-level-too-deep for as_json #295 [PR](https://github.com/recurly/recurly-client-ruby/pull/295)
92+
93+
<a name="v2.7.5"></a>
94+
## v2.7.5 (2016-11-30)
95+
96+
- Fix coupon redemption bug on bulk coupons #284 [PR](https://github.com/recurly/recurly-client-ruby/pull/286)
97+
98+
<a name="v2.7.4"></a>
99+
## v2.7.4 (2016-11-17)
100+
101+
- Fix coupon redemption errors [PR](https://github.com/recurly/recurly-client-ruby/pull/271)
102+
- Remove "base" from pretty printed error messages [PR](https://github.com/recurly/recurly-client-ruby/pull/267)
103+
- Fix rails deprecation warning [PR](https://github.com/recurly/recurly-client-ruby/pull/275)
104+
- Add `updated_at` to `MeasuredUnit` [PR](https://github.com/recurly/recurly-client-ruby/pull/263)
105+
- Support gift card `canceled_at` timestamp [PR](https://github.com/recurly/recurly-client-ruby/pull/264)
106+
- Fix AddOns quantity accumulator bug from #226 [PR](https://github.com/recurly/recurly-client-ruby/pull/278)
107+
- Fix Ruby 1.9.3 and jruby testing dependencies [PR](https://github.com/recurly/recurly-client-ruby/pull/279)
108+
- Add new dunning event webhook [PR](https://github.com/recurly/recurly-client-ruby/pull/277)
109+
- Add `timeframe` attribute to `Subscription` [PR](https://github.com/recurly/recurly-client-ruby/pull/283)
110+
111+
<a name="v2.7.3"></a>
112+
## v2.7.3 (2016-08-19)
113+
114+
- Gift cards support was not merged properly in [#257](https://github.com/recurly/recurly-client-ruby/pull/257). This adds it correctly.
115+
116+
<a name="v2.7.2"></a>
117+
## v2.7.2 (2016-08-15)
118+
119+
- Support Shipping Addresses [PR](https://github.com/recurly/recurly-client-ruby/pull/259)
120+
121+
<a name="v2.7.1"></a>
122+
## v2.7.1 (2016-08-04)
123+
124+
Bumps to API version 2.4
125+
126+
- Add `updated_at` fields [PR](https://github.com/recurly/recurly-client-ruby/pull/256)
127+
- Add support for gift cards [PR](https://github.com/recurly/recurly-client-ruby/pull/257)
128+
129+
<a name="v2.7.0"></a>
130+
## v2.7.0 (2016-07-07)
131+
132+
- API Version 2.3 [PR](https://github.com/recurly/recurly-client-ruby/pull/253)
133+
134+
<a name="v2.6.1"></a>
135+
## v2.6.1 (2016-06-01)
136+
137+
* Fix method missing `changed?` in `Account` [PR](https://github.com/recurly/recurly-client-ruby/pull/251)
138+
139+
<a name="v2.6.0"></a>
140+
## v2.6.0 (2016-06-01)
141+
142+
* Add support for free trial coupons [PR](https://github.com/recurly/recurly-client-ruby/pull/245)
143+
* Add support for `roku_billing_agreement_id` [PR](https://github.com/recurly/recurly-client-ruby/pull/246)
144+
* Fix `Account#address_changed?` dirty check [PR](https://github.com/recurly/recurly-client-ruby/pull/248)
145+
* Add support for `<fraud>` if it exists on `Transaction` [PR](https://github.com/recurly/recurly-client-ruby/pull/244)
146+
* Fix updating `unit_amount_in_cents` on `Subscription` [PR](https://github.com/recurly/recurly-client-ruby/pull/241)
147+
* Fix stray `puts` in specs [PR](https://github.com/recurly/recurly-client-ruby/pull/239)
148+
149+
### Upgrade Notes
150+
This version has a bug around creating accounts. We recommend using 2.6.1 or later https://github.com/recurly/recurly-client-ruby/releases/tag/v2.6.1
151+
152+
<a name="v2.5.2"></a>
153+
## v2.5.2 (2016-05-02)
154+
155+
* Remove Gemfile.lock, add more rubies to testing matrix [PR](https://github.com/recurly/recurly-client-ruby/pull/234)
156+
* Remove autoload and reorder requires [PR](https://github.com/recurly/recurly-client-ruby/pull/236)
157+
* Usage Based Billing [PR](https://github.com/recurly/recurly-client-ruby/pull/237)
158+
159+
<a name="v2.5.1"></a>
160+
## v2.5.1 (2016-02-18)
161+
162+
* Add `currency` attribute to `BillingInfo` object so client can pass currency on create/update [PR](https://github.com/recurly/recurly-client-ruby/pull/231)
163+
164+
<a name="v2.5.0"></a>
165+
## v2.5.0 (2016-01-13)
166+
167+
* Fix redemption destroy path for accounts with multiple redemptions [PR](https://github.com/recurly/recurly-client-ruby/pull/227)
168+
169+
### Upgrade Notes
170+
This release has API breaking changes around coupon redemptions. See [PR](https://github.com/recurly/recurly-client-ruby/pull/227) to see if you are affected.
171+
172+
<a name="v2.4.9"></a>
173+
## v2.4.9 (2015-11-18)
174+
175+
* Fixed array change tracking issue around redemptions [PR](https://github.com/recurly/recurly-client-ruby/pull/223)
176+
177+
<a name="v2.4.8"></a>
178+
## v2.4.8 (2015-10-21)
179+
180+
* Add `cc_emails` attribute to `Account` [PR](https://github.com/recurly/recurly-client-ruby/pull/216)
181+
* Add webhooks parsers [PR](https://github.com/recurly/recurly-client-ruby/pull/217)
182+
* Fixed `setup_fee_accounting_code` spec [PR](https://github.com/recurly/recurly-client-ruby/pull/218)
183+
184+
<a name="v2.4.7"></a>
185+
## v2.4.7 (2015-10-02)
186+
187+
* Ignore associations defined in xml but not in the Resource subclasses [PR](https://github.com/recurly/recurly-client-ruby/pull/212)
188+
* Added support for editing and restoring coupons [PR](https://github.com/recurly/recurly-client-ruby/pull/214)
189+
* Added support for bulk coupons and coupon code generation [PR](https://github.com/recurly/recurly-client-ruby/pull/213)
190+
191+
<a name="v2.4.6"></a>
192+
## v2.4.6 (2015-8-31)
193+
194+
* Added `applies_to_non_plan_charges` attribute to `Coupon`
195+
* Adding `gateway_error_code` to `Transaction`
196+
* Adding `redemption_resource` to `Coupon`
197+
* Added `max_redemptions_per_account` attribute to `Coupon`
198+
* Added `redemptions` attribute to `Subscription`
199+
* Added `setup_fee_accounting_code` attribute to `Plan`
200+
* Add support for `Resource.find_each` to be chained with other iterator methods without passing a block
201+
202+
<a name="v2.4.5"></a>
203+
## v2.4.5 (2015-7-31)
204+
205+
* Added ability to enter offline payment [PR](https://github.com/recurly/recurly-client-ruby/pull/189/)
206+
* Add `tax_exempt`, `tax_code`, and `accounting_code` support for one time transactions [PR](https://github.com/recurly/recurly-client-ruby/pull/198)
207+
* Added `duration`, `temporal_unit`, and `temporal_amount` to 'Coupon' [PR](https://github.com/recurly/recurly-client-ruby/pull/202)
208+
209+
<a name="v2.4.4"></a>
210+
## v2.4.4 (2015-6-25)
211+
212+
* Added config to Recurly to allow for per thread configuration of Recurly client. [PR](https://github.com/recurly/recurly-client-ruby/pull/190)
213+
* Add `refund_apply_order` to `Invoice` when creating a refund [PR](https://github.com/recurly/recurly-client-ruby/pull/193)
214+
* Fix association loading when fetching a resource via RJSv2 [PR](https://github.com/recurly/recurly-client-ruby/pull/195)
215+
4216
<a name="v2.4.3"></a>
5217
## v2.4.3 (2015-5-26)
6218

Gemfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
source 'https://rubygems.org'
2-
gemspec
3-
4-
group :development do
5-
gem 'nokogiri', '~> 1.5.0', :group => :test
6-
gem 'jruby-openssl', '~> 0.7.4', :platforms => :jruby # For WebMock.
72

8-
gem 'redcarpet', :platforms => :ruby
9-
gem 'yard'
10-
gem 'rubysl', :platforms => :rbx
11-
gem 'rubysl-resolv', '~> 2.0', :platforms => :rbx
12-
gem 'racc', :platforms => :rbx
13-
end
3+
gemspec

0 commit comments

Comments
 (0)