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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6c5eabb3330e2c8e39db11ba74aea1a709ab963d
4
- data.tar.gz: b6a84de9c235f91a3c8d7113779a85c53ff37a2a
2
+ SHA256:
3
+ metadata.gz: ea1d5fdaf9489348717b1bc6d2004eb1980be499dd8c5d38f7b64878bf581108
4
+ data.tar.gz: 0e6635bac8c6c4d8d94853a69b8338c0d8c7e3240c2b98ab16fd029820f2f172
5
5
  SHA512:
6
- metadata.gz: 4c59a64c92bf959b4558a69676a66a31dba29c725674f5ba524bc6c8db69ab72d3a5fbe09f92fa48a38d14039a85f0a01d2682d591f717ebf3e10ffd64ed4461
7
- data.tar.gz: d6e02c77bacf2333c4441f492c7769ebc25eaba5f5ee21cfebae93ab99f8fbb6877c5f11d9218f83e54c0dca892650e8ac9a4ea3ef613dfe933bf476b812bac8
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 = hyphenize(key.to_s)
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
@@ -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
- new_key = key.to_s.gsub("_", "-").to_sym
95
- transformed_payload[new_key] = value
94
+ transformed_payload[key] = value
96
95
  end
97
96
  end
98
97
  transformed_payload
@@ -1,3 +1,3 @@
1
1
  class Apisync
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.3
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-21 00:00:00.000000000 Z
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.11
157
+ rubygems_version: 2.7.6
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Official client to apisync.io