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 +4 -4
- data/CHANGELOG.md +4 -0
- data/chargebee.gemspec +3 -2
- data/lib/chargebee.rb +1 -1
- data/lib/chargebee/environment.rb +1 -1
- data/lib/chargebee/models/model.rb +3 -2
- data/lib/chargebee/rest.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46990b6f724d8987af5ca53aa8588d2f71e665993a05bd8ea5cdcbddb166d314
|
4
|
+
data.tar.gz: aa12907a95a8738a10d1df728f52a264472184825959c693f7cb0559625b6676
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3e90c08db516003f2f2a28e7cd27f16ef76915214755dc8eb01a66444e2bf856659b60fab3edb0eb7ab5c22b341e3b7073504905bb74d93a9c30edb6c27000c
|
7
|
+
data.tar.gz: 38ac3c32d1b2f7f56924e8798ba087497cc9487e4356c5ac8a45caf108e83104d9a91459a1202e7ba15a595fbe6eaca60f91785448a0b5291916791119f4154b
|
data/CHANGELOG.md
CHANGED
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.
|
8
|
-
s.date = '2021-
|
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
@@ -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}/#{
|
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
|
data/lib/chargebee/rest.rb
CHANGED
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.
|
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-
|
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:
|