square.rb 9.1.0.20210317 → 9.1.1.20210317
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/square/api/base_api.rb +1 -1
- data/lib/square/api_helper.rb +5 -5
- data/lib/square/client.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5daa9230376e0d7e260342e846b5118b92e12aa89fe226ad0df404c5aed13dfa
|
4
|
+
data.tar.gz: c0ba7b58ac6d2ae2d511344c66bdc4b670aef159e4a20045bfd8d8b160e00649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f78aa71da656d92d0aee4afa1af82d7c783bdf37bead5ec7a8f007ea84131e6457c3d413d4cec15cee4b2f15de7a7afd399c32d8c8a331b82ec5902a610c823d
|
7
|
+
data.tar.gz: e9d14b674b48660e2b499e07e730fe818447aedad773fe063d2a40b28286a7f4296d93efd0a9e310dae4c56032c7f377809555c993979207e28e544466fd5503
|
data/lib/square/api/base_api.rb
CHANGED
data/lib/square/api_helper.rb
CHANGED
@@ -63,9 +63,7 @@ module Square
|
|
63
63
|
# Appends the given set of parameters to the given query string.
|
64
64
|
# @param [String] The query string builder to add the query parameters to.
|
65
65
|
# @param [Hash] The parameters to append.
|
66
|
-
|
67
|
-
def self.append_url_with_query_parameters(query_builder, parameters,
|
68
|
-
array_serialization: 'indexed')
|
66
|
+
def self.append_url_with_query_parameters(query_builder, parameters)
|
69
67
|
# Perform parameter validation.
|
70
68
|
unless query_builder.instance_of? String
|
71
69
|
raise ArgumentError, 'Given value for parameter \"query_builder\"
|
@@ -75,6 +73,8 @@ module Square
|
|
75
73
|
# Return if there are no parameters to replace.
|
76
74
|
return query_builder if parameters.nil?
|
77
75
|
|
76
|
+
array_serialization = 'indexed'
|
77
|
+
|
78
78
|
parameters.each do |key, value|
|
79
79
|
seperator = query_builder.include?('?') ? '&' : '?'
|
80
80
|
unless value.nil?
|
@@ -151,8 +151,8 @@ module Square
|
|
151
151
|
# Form encodes a hash of parameters.
|
152
152
|
# @param [Hash] The hash of parameters to encode.
|
153
153
|
# @return [Hash] A hash with the same parameters form encoded.
|
154
|
-
def self.form_encode_parameters(form_parameters
|
155
|
-
|
154
|
+
def self.form_encode_parameters(form_parameters)
|
155
|
+
array_serialization = 'indexed'
|
156
156
|
encoded = {}
|
157
157
|
form_parameters.each do |key, value|
|
158
158
|
encoded.merge!(APIHelper.form_encode(value, key, formatting:
|
data/lib/square/client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: square.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.1.
|
4
|
+
version: 9.1.1.20210317
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Square Developer Platform
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|