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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 330c0c81c192dc214acfce341516f78e29c489316ba2b35cd5c8526cc0d96aa9
4
- data.tar.gz: 52a7adf33e17bb8b6aa284ec9d1295a8c3828c29de54f2e579b293edf5affb90
3
+ metadata.gz: adf612cd76206a2d6b1388fd3c4afce5e73ca62c90d75a49eb7ba39931f336e4
4
+ data.tar.gz: 9a769eb5476c0940e32df04df0cb4d9666cc2bd44fcabf051c356a89d4d44bcc
5
5
  SHA512:
6
- metadata.gz: b3371597f98e9ef233632b9f76c56236fc26d7c05d5d5bddc18057195113acf28c9d0c551fb83774faf6ee3367389ca172ad3b26c28a50b74b08d7844428d360
7
- data.tar.gz: a2a204a4dc6418593d3561427e36a29860eb6f7466e25cc0cb1ebedd9db9b909907e7882e82f384d9b8023177c61a242f4e341f5e80e404565183703d0736ee9
6
+ metadata.gz: c00baa67d0fa9f567d574d89f1b44b4665c608ce9ff73eadcc1660cb48081b4a91dbe13a8139a39e969e03369954646f6a853b0de6a0d8be5a02688579915ef8
7
+ data.tar.gz: eaaa61df9c3864fe67288ae0a8e82699038300ed40e730b8d39a25027d209a6867525496fb68c2b4a7dd7f32055c53491f2c84ef85de1e84d84382765201d532
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyErpApi
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_erp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges