apisync 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/apisync/http/query_string.rb +1 -6
- data/lib/apisync/http_client.rb +1 -2
- data/lib/apisync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ea1d5fdaf9489348717b1bc6d2004eb1980be499dd8c5d38f7b64878bf581108
|
4
|
+
data.tar.gz: 0e6635bac8c6c4d8d94853a69b8338c0d8c7e3240c2b98ab16fd029820f2f172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d732a9cef7ebaa416294b217db1178bf51a3766b465ad4d7ee0114e176501e36e35ab04993a95f00962594443951215ee4c13debe506da9cf95600db1b8b99c4
|
7
|
+
data.tar.gz: 48c3fb3ac10c5dbddc51ea29f2451fa3fb8aee40ed59c532e98c8240572774dcb5c686ed60b205b50baae1790e9605c7569b8f8f1a30f6d0ab959765af52da54
|
@@ -46,7 +46,7 @@ class Apisync
|
|
46
46
|
def recursive_brackets(hash, prefix = "")
|
47
47
|
result = []
|
48
48
|
hash.each do |key, value|
|
49
|
-
key =
|
49
|
+
key = key.to_s
|
50
50
|
if value.is_a?(Hash)
|
51
51
|
prefix = "#{prefix}[#{key}]"
|
52
52
|
top_nodes = recursive_brackets(value, prefix)
|
@@ -58,11 +58,6 @@ class Apisync
|
|
58
58
|
|
59
59
|
result
|
60
60
|
end
|
61
|
-
|
62
|
-
# Converts application_id in application-id.
|
63
|
-
def hyphenize(string)
|
64
|
-
string.gsub(/_/, "-")
|
65
|
-
end
|
66
61
|
end
|
67
62
|
end
|
68
63
|
end
|
data/lib/apisync/http_client.rb
CHANGED
@@ -91,8 +91,7 @@ class Apisync
|
|
91
91
|
if value.is_a?(Hash)
|
92
92
|
transformed_payload[key.to_s] = payload_from_data(value)
|
93
93
|
else
|
94
|
-
|
95
|
-
transformed_payload[new_key] = value
|
94
|
+
transformed_payload[key] = value
|
96
95
|
end
|
97
96
|
end
|
98
97
|
transformed_payload
|
data/lib/apisync/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apisync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre de Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09
|
11
|
+
date: 2018-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.6
|
157
|
+
rubygems_version: 2.7.6
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Official client to apisync.io
|