tiny_erp_api 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_erp_api/client.rb +2 -2
- data/lib/tiny_erp_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adf612cd76206a2d6b1388fd3c4afce5e73ca62c90d75a49eb7ba39931f336e4
|
4
|
+
data.tar.gz: 9a769eb5476c0940e32df04df0cb4d9666cc2bd44fcabf051c356a89d4d44bcc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c00baa67d0fa9f567d574d89f1b44b4665c608ce9ff73eadcc1660cb48081b4a91dbe13a8139a39e969e03369954646f6a853b0de6a0d8be5a02688579915ef8
|
7
|
+
data.tar.gz: eaaa61df9c3864fe67288ae0a8e82699038300ed40e730b8d39a25027d209a6867525496fb68c2b4a7dd7f32055c53491f2c84ef85de1e84d84382765201d532
|
data/lib/tiny_erp_api/client.rb
CHANGED
@@ -68,11 +68,11 @@ module TinyErpApi
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def create_order(order)
|
71
|
-
params = "#{@query_params}&pedido=#{URI.encode_www_form_component(order)}"
|
71
|
+
params = "#{@query_params}&pedido=#{URI.encode_www_form_component(JSON.dump(order))}"
|
72
72
|
response = post("/pedido.incluir.php?#{params}")
|
73
73
|
response.json["retorno"]["registros"][0]["registro"]
|
74
74
|
end
|
75
75
|
|
76
76
|
|
77
77
|
end
|
78
|
-
end
|
78
|
+
end
|
data/lib/tiny_erp_api/version.rb
CHANGED