chargebee 2.8.5 → 2.8.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b333712c66ffa98e25335aa2dd0d257a14dd084f597b394f0e80d0bdeee39c1c
4
- data.tar.gz: 6ced89dbe2cc28abf11298f454889528a4a56a3f1f634d494a3265382521ae64
3
+ metadata.gz: 46990b6f724d8987af5ca53aa8588d2f71e665993a05bd8ea5cdcbddb166d314
4
+ data.tar.gz: aa12907a95a8738a10d1df728f52a264472184825959c693f7cb0559625b6676
5
5
  SHA512:
6
- metadata.gz: fa308ee3a14f85bea5e343e4ddaee714359d69967cc774a1d1a308f36b6eaab08b6900015489e8bbc832c441174ebe20852beb31bfec5b4b21bdd955c0608b8f
7
- data.tar.gz: ff63da2192c8229791bb0beb50c9fedb7a573670eb5ce280e9d02d62040c100146f787b47999c0a494568ac7930b0dc61c0999d8c308fff0b458d218b7b7b787
6
+ metadata.gz: a3e90c08db516003f2f2a28e7cd27f16ef76915214755dc8eb01a66444e2bf856659b60fab3edb0eb7ab5c22b341e3b7073504905bb74d93a9c30edb6c27000c
7
+ data.tar.gz: 38ac3c32d1b2f7f56924e8798ba087497cc9487e4356c5ac8a45caf108e83104d9a91459a1202e7ba15a595fbe6eaca60f91785448a0b5291916791119f4154b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### v2.8.6 (2021-05-31)
2
+ * * *
3
+ * Added support for Ruby 3.0
4
+
1
5
  ### v2.8.5 (2021-02-04)
2
6
  * * *
3
7
  * fixed: missing requires for Product Catalog V2 resources.
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
  s.required_ruby_version = '>= 1.9.3'
6
6
  s.name = 'chargebee'
7
- s.version = '2.8.5'
8
- s.date = '2021-02-04'
7
+ s.version = '2.8.6'
8
+ s.date = '2021-06-09'
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."
@@ -22,6 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.add_dependency('json_pure', '~> 2.1')
24
24
  s.add_dependency('rest-client', '>= 1.8', '< 3.0')
25
+ s.add_dependency('cgi', '> 0')
25
26
 
26
27
  s.add_development_dependency('rspec', '~> 3.0.0')
27
28
  s.add_development_dependency('mocha')
data/lib/chargebee.rb CHANGED
@@ -53,7 +53,7 @@ require File.dirname(__FILE__) + '/chargebee/models/usage.rb'
53
53
 
54
54
  module ChargeBee
55
55
 
56
- VERSION = '2.8.5'
56
+ VERSION = '2.8.6'
57
57
 
58
58
  @@default_env = nil
59
59
  @@verify_ca_certs = true
@@ -25,4 +25,4 @@ module ChargeBee
25
25
  url = @api_endpoint + url
26
26
  end
27
27
  end
28
- end
28
+ end
@@ -1,8 +1,9 @@
1
1
  require 'uri'
2
+ require 'cgi'
2
3
 
3
4
  module ChargeBee
4
5
  class Model
5
-
6
+
6
7
  def initialize(values, sub_types={}, dependant_types={})
7
8
  @values = values
8
9
  @sub_types = sub_types
@@ -56,7 +57,7 @@ module ChargeBee
56
57
  if(path.nil? || path.strip.length < 1)
57
58
  raise "Id is empty or nil"
58
59
  end
59
- url = "#{url}/#{URI.encode(path.strip)}"
60
+ url = "#{url}/#{CGI.escape(path.strip).gsub("+","%20").gsub("%21","!").gsub("%24","$").gsub("%26","&").gsub("%27","'").gsub("%28","(").gsub("%29", ")").gsub("%2A","*").gsub("%2B","+").gsub("%2C",",").gsub("%2F", "/").gsub("%3A",":").gsub("%3B",";").gsub("%3D","=").gsub("%3F","?").gsub("%40","@").gsub("%5B","[").gsub("%5D","]")}"
60
61
  end
61
62
  return url
62
63
  end
@@ -42,7 +42,7 @@ module ChargeBee
42
42
  :open_timeout => 50,
43
43
  :timeout => 100
44
44
  }.merge(ssl_opts)
45
-
45
+
46
46
  begin
47
47
  response = RestClient::Request.execute(opts)
48
48
  rescue RestClient::ExceptionWithResponse => e
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.5
4
+ version: 2.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
8
8
  - Thiyagarajan T
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-04 00:00:00.000000000 Z
12
+ date: 2021-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -45,6 +45,20 @@ dependencies:
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: cgi
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">"
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
48
62
  - !ruby/object:Gem::Dependency
49
63
  name: rspec
50
64
  requirement: !ruby/object:Gem::Requirement
@@ -155,7 +169,7 @@ homepage: https://apidocs.chargebee.com/api/docs?lang=ruby
155
169
  licenses:
156
170
  - MIT
157
171
  metadata: {}
158
- post_install_message:
172
+ post_install_message:
159
173
  rdoc_options:
160
174
  - "--charset=UTF-8"
161
175
  require_paths:
@@ -172,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
186
  version: '0'
173
187
  requirements: []
174
188
  rubygems_version: 3.0.3
175
- signing_key:
189
+ signing_key:
176
190
  specification_version: 2
177
191
  summary: Ruby client for Chargebee API.
178
192
  test_files: