recurly 3.2.0 → 3.2.1

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: c07fea3f3bce8c902e347f05eced638a99af676d33c39deb3d9ba291db19fa3f
4
- data.tar.gz: a75a5c8dbbe5fa8e96397cbeccfdf2c58732a73208b86d4dd7f06438363dc04a
3
+ metadata.gz: 81648c1be2e9fb74eef222bfa82c1633a05293e689f26b5501776cf9c80529b7
4
+ data.tar.gz: d8b7be78ba697a3a37a503e5c51416290ecadf070154149fb4b18b4083ee184a
5
5
  SHA512:
6
- metadata.gz: e08c3842bbc769b7a52e6c0829b29ad465eddc5d2e158545ca34f83242b226a18ba51a2bb49e7bcaf77724bdbc39dd49f47530ce61f361605ca8f20d52937407
7
- data.tar.gz: 525a150807f10b837462e514a22c21607a03f83b7c94fc7fa64588ae6accb9755d2367863f64923a61639fe82999eb2fca6d9351f1f53b0aaf31d8bf76aae2a6
6
+ metadata.gz: 639c25cbd19d6b69425f96c642f639206a3bc4dd55319f810a2ca74aec88e4bccd5cfd65bb3e8a4df4913af6e298b271825f8e5b14e1daf062b02d9e916da48c
7
+ data.tar.gz: d03648e2fad3942b812d3a156080a7b0ce944110692279aaaab0c27a9bbc8e52c4dfbb74a2d07047adbde447f1e4b6911ad6e2bd3a04d190f3662566e6e2f897
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 3.2.0
2
+ current_version = 3.2.1
3
3
  parse = (?P<major>\d+)
4
4
  \.(?P<minor>\d+)
5
5
  \.(?P<patch>\d+)
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
@@ -1,3 +1,3 @@
1
1
  module Recurly
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
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.0
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-03 00:00:00.000000000 Z
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.6
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