Skip to content

Commit b525212

Browse files
authored
Version bump to v2.2.0 (#56)
* Version bump to 2.2.0 * [addons] Makes comment more descriptive
1 parent 8a00b8b commit b525212

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Changelog for Razorpay-Ruby SDK.
44

55
## Unreleased
66

7+
## [2.2.0] - 2018-01-29
8+
### Added
9+
- Support for Subscriptions
10+
711
## [2.1.0] - 2017-11-17
812
### Changed
913
- Generic `Razorpay::Error` is thrown when server is unreachable
@@ -61,7 +65,8 @@ Changelog for Razorpay-Ruby SDK.
6165
### Added
6266
- Initial Release
6367

64-
[Unreleased]: https://github.com/razorpay/razorpay-ruby/compare/2.1.0...HEAD
68+
[Unreleased]: https://github.com/razorpay/razorpay-ruby/compare/2.2.0...HEAD
69+
[2.2.0]: https://github.com/razorpay/razorpay-ruby/compare/2.1.0...2.2.0
6570
[2.1.0]: https://github.com/razorpay/razorpay-ruby/compare/2.0.1...2.1.0
6671
[2.1.0.pre]: https://github.com/razorpay/razorpay-ruby/compare/2.0.1...2.1.0.pre
6772
[2.0.1]: https://github.com/razorpay/razorpay-ruby/compare/2.0.0...2.0.1

lib/razorpay/addon.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ def self.fetch(id)
1313
request.fetch id
1414
end
1515

16-
# request.post "/subscriptions/#{subscription_id}/addons", options
17-
## results in wrong url /v1/addons//subscriptions/sub_9UIyKhqF0C64AM/addons
1816
def self.create(subscription_id, options)
1917
r = request
18+
# POST /addons is not supported
19+
# Addon creation endpoint is:
20+
# POST subscriptions/{sub_id}/addons
2021
r.request :post, "/subscriptions/#{subscription_id}/addons", options
2122
end
2223
end

lib/razorpay/constants.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
module Razorpay
33
BASE_URI = 'https://api.razorpay.com/v1/'.freeze
44
TEST_URL = 'https://api.razorpay.com/'.freeze
5-
VERSION = '2.1.0'.freeze
5+
VERSION = '2.2.0'.freeze
66
end

0 commit comments

Comments
 (0)