Skip to content

Commit

Permalink
Version bump to v2.2.0 (#56)
Browse files Browse the repository at this point in the history
* Version bump to 2.2.0

* [addons] Makes comment more descriptive
  • Loading branch information
harman28 authored Jan 29, 2018
1 parent 8a00b8b commit b525212
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Changelog for Razorpay-Ruby SDK.

## Unreleased

## [2.2.0] - 2018-01-29
### Added
- Support for Subscriptions

## [2.1.0] - 2017-11-17
### Changed
- Generic `Razorpay::Error` is thrown when server is unreachable
Expand Down Expand Up @@ -61,7 +65,8 @@ Changelog for Razorpay-Ruby SDK.
### Added
- Initial Release

[Unreleased]: https://github.com/razorpay/razorpay-ruby/compare/2.1.0...HEAD
[Unreleased]: https://github.com/razorpay/razorpay-ruby/compare/2.2.0...HEAD
[2.2.0]: https://github.com/razorpay/razorpay-ruby/compare/2.1.0...2.2.0
[2.1.0]: https://github.com/razorpay/razorpay-ruby/compare/2.0.1...2.1.0
[2.1.0.pre]: https://github.com/razorpay/razorpay-ruby/compare/2.0.1...2.1.0.pre
[2.0.1]: https://github.com/razorpay/razorpay-ruby/compare/2.0.0...2.0.1
Expand Down
5 changes: 3 additions & 2 deletions lib/razorpay/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ def self.fetch(id)
request.fetch id
end

# request.post "/subscriptions/#{subscription_id}/addons", options
## results in wrong url /v1/addons//subscriptions/sub_9UIyKhqF0C64AM/addons
def self.create(subscription_id, options)
r = request
# POST /addons is not supported
# Addon creation endpoint is:
# POST subscriptions/{sub_id}/addons
r.request :post, "/subscriptions/#{subscription_id}/addons", options
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/razorpay/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
module Razorpay
BASE_URI = 'https://api.razorpay.com/v1/'.freeze
TEST_URL = 'https://api.razorpay.com/'.freeze
VERSION = '2.1.0'.freeze
VERSION = '2.2.0'.freeze
end

0 comments on commit b525212

Please sign in to comment.