recurly 3.2.0 → 3.2.1
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 +4 -4
- data/.bumpversion.cfg +1 -1
- data/lib/recurly/pager.rb +11 -1
- data/lib/recurly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81648c1be2e9fb74eef222bfa82c1633a05293e689f26b5501776cf9c80529b7
|
|
4
|
+
data.tar.gz: d8b7be78ba697a3a37a503e5c51416290ecadf070154149fb4b18b4083ee184a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 639c25cbd19d6b69425f96c642f639206a3bc4dd55319f810a2ca74aec88e4bccd5cfd65bb3e8a4df4913af6e298b271825f8e5b14e1daf062b02d9e916da48c
|
|
7
|
+
data.tar.gz: d03648e2fad3942b812d3a156080a7b0ce944110692279aaaab0c27a9bbc8e52c4dfbb74a2d07047adbde447f1e4b6911ad6e2bd3a04d190f3662566e6e2f897
|
data/.bumpversion.cfg
CHANGED
data/lib/recurly/pager.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Recurly
|
|
|
6
6
|
def initialize(client:, path:, options: {})
|
|
7
7
|
@client = client
|
|
8
8
|
@path = path
|
|
9
|
-
@options = options
|
|
9
|
+
@options = map_array_params(options)
|
|
10
10
|
@next = build_path(@path, @options)
|
|
11
11
|
end
|
|
12
12
|
|
|
@@ -113,5 +113,15 @@ module Recurly
|
|
|
113
113
|
"#{path}?#{URI.encode_www_form(options)}"
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
|
+
|
|
117
|
+
# Converts array parameters to CSV strings to maintain consistency with
|
|
118
|
+
# how the server expects the request to be formatted while providing the
|
|
119
|
+
# developer with an array type to maintain developer happiness!
|
|
120
|
+
def map_array_params(params)
|
|
121
|
+
@options = params.map do |key, param|
|
|
122
|
+
new_param = param.is_a?(Array) ? param.join(",") : param
|
|
123
|
+
[key, new_param]
|
|
124
|
+
end
|
|
125
|
+
end
|
|
116
126
|
end
|
|
117
127
|
end
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recurly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Recurly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-12-
|
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
315
315
|
- !ruby/object:Gem::Version
|
|
316
316
|
version: '0'
|
|
317
317
|
requirements: []
|
|
318
|
-
rubygems_version: 3.0.
|
|
318
|
+
rubygems_version: 3.0.3
|
|
319
319
|
signing_key:
|
|
320
320
|
specification_version: 4
|
|
321
321
|
summary: The ruby client for Recurly's V3 API
|