chargebee 2.1.3 → 2.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 620302b4eac825de011b72f8edefc89438e7626b
4
- data.tar.gz: d33120efab852254e71e0a1cacec84b195368a05
3
+ metadata.gz: b2dbd4a6df7459f89079d1c728093503d34888bc
4
+ data.tar.gz: 9a798b1c327f87dcff10e9815b0a60ab5025a8d8
5
5
  SHA512:
6
- metadata.gz: 31ce5a9e7b2fea1ffb0245a5a2cb803576ba73b611b08af7bc8e3951fb7cbf44f913dc779fd651914a574db63b071f77c537279fd7336411c753f274dc308fa2
7
- data.tar.gz: a39d489735d4df8c8c02007a241ad3b40bdb09bf0ffd69440aefeb63d5b5bc815ff3018b1643b3422be8a691540d33d8995de913d17a03846626acef44f20494
6
+ metadata.gz: 602847c2ee3736f04d69744f3d732e6c2cb8ce355de743c7722d2b416ab317447f69d0aee2060f17aa9bfe26627bff281038ab3096a008cdc36e4da81d7ef1b3
7
+ data.tar.gz: 37b6735bb5655f4a55829c54f80bf720eed062f4f50a26ad795b653ec772bad6168829426fa4ebbf7fb64de7f31709cab03b6b214145a8e3affd9b07b267d0d1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ###v2.1.4 (2016-09-21)
2
+ * * *
3
+
4
+ [Pull Request](https://github.com/chargebee/chargebee-ruby/pull/7) have been merged.
5
+
6
+ ** APIs updated**:
7
+ The new Gateway type "gocardless" for card resource is added. See card attributes
8
+ See : https://apidocs.chargebee.com/docs/api/cards#card_attributes
9
+
1
10
  ###v2.1.3 (2016-09-03)
2
11
  * * *
3
12
  ** APIs added**:
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'chargebee'
7
- s.version = '2.1.3'
8
- s.date = '2016-09-03'
7
+ s.version = '2.1.4'
8
+ s.date = '2016-09-21'
9
9
 
10
10
  s.summary = "Ruby client for Chargebee API."
11
11
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
@@ -69,6 +69,7 @@ Gem::Specification.new do |s|
69
69
  lib/ssl/ca-certs.crt
70
70
  spec/chargebee/list_result_spec.rb
71
71
  spec/chargebee_spec.rb
72
+ spec/errors_spec.rb
72
73
  spec/sample_response.rb
73
74
  spec/spec_helper.rb
74
75
  ]
data/lib/chargebee.rb CHANGED
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.1.3'
36
+ VERSION = '2.1.4'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -13,7 +13,7 @@ module ChargeBee
13
13
 
14
14
  class APIError < Error
15
15
 
16
- attr_reader :http_status_code, :message, :type, :api_error_code, :param, :json_obj,
16
+ attr_reader :http_status_code, :type, :api_error_code, :param, :json_obj,
17
17
  #Deprecated attributes
18
18
  :http_code, :http_body, :error_code
19
19
 
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'ChargeBee::InvalidRequestError' do
4
+ let(:invalid_request_json) do
5
+ {
6
+ message: 'id: The value chargebee_account is already present.',
7
+ type: 'invalid_request',
8
+ api_error_code: 'duplicate_entry',
9
+ param: 'id',
10
+ error_code: 'param_not_unique',
11
+ error_msg: 'The value chargebee_account is already present.',
12
+ error_param: 'id',
13
+ http_status_code: 400
14
+ }
15
+ end
16
+
17
+ it "provide message from error api response" do
18
+ error = ChargeBee::InvalidRequestError.new(400, invalid_request_json)
19
+ error.message.should eq 'id: The value chargebee_account is already present.'
20
+ end
21
+
22
+ end
23
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-03 00:00:00.000000000 Z
12
+ date: 2016-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -118,6 +118,7 @@ files:
118
118
  - lib/ssl/ca-certs.crt
119
119
  - spec/chargebee/list_result_spec.rb
120
120
  - spec/chargebee_spec.rb
121
+ - spec/errors_spec.rb
121
122
  - spec/sample_response.rb
122
123
  - spec/spec_helper.rb
123
124
  homepage: https://apidocs.chargebee.com/api/docs?lang=ruby
@@ -147,5 +148,6 @@ summary: Ruby client for Chargebee API.
147
148
  test_files:
148
149
  - spec/chargebee/list_result_spec.rb
149
150
  - spec/chargebee_spec.rb
151
+ - spec/errors_spec.rb
150
152
  - spec/sample_response.rb
151
153
  - spec/spec_helper.rb