crisalid_odoo_client 1.2.3 → 1.2.4

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: 27da7e001560a67af94c8a534ff612639a9fd85ee0855209f8578448c3a2222a
4
- data.tar.gz: 84182a561687386c4178cbb5dec8a5b38db25beff65a060db01f97f80078e6b7
3
+ metadata.gz: b1e621d494600cfce376de0c40f6ef4c61ec75c79c119d43d8c69d71553b9594
4
+ data.tar.gz: a068e59d3d471bc9219ea0796ff97b05967bd7dd82a5552ef985cfc0cb33b812
5
5
  SHA512:
6
- metadata.gz: 4e02a675c8f9ad4a1ce9add416e24b1eb1227d9f4d8b46348e1ce355315cb16c28962e6efe5a485243163750affc55619cd8fa77d5d13a23e28bb23525408629
7
- data.tar.gz: d72c3a9f17f2f56b098225a5e6c389879bf35011646c11c51e9360cfea77bac265004dc446fd36b07da0061e93d1ca1b7e56dee4a75ad8eebefa7a3dd5dc4091
6
+ metadata.gz: d0633234c6fe8c7082128551cf8b15da6439e12d93047404047ca52007b38f71b2edd807432f61be49b0ac62cf8cde793ad245687990fdb3a655a11d44cf0808
7
+ data.tar.gz: 82126cdaadd810d3b8902c820f175d3ce717b3f7a366b7cdc8eeb6e79a68ee0136812781e11ce8905f23227c9003bae54c5b654e3362623df7351991519ede12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crisalid_odoo_client (1.2.3)
4
+ crisalid_odoo_client (1.2.4)
5
5
  xmlrpc (~> 0.3.0)
6
6
 
7
7
  GEM
@@ -60,7 +60,7 @@ module CrisalidOdooClient
60
60
  if params.is_a?(Hash) && params.size > 0
61
61
  @models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'create', [params])
62
62
  else
63
- raise CrisalidOdooClient::Error::OdooResourceManagerError
63
+ raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Hash')
64
64
  end
65
65
  end
66
66
 
@@ -69,10 +69,10 @@ module CrisalidOdooClient
69
69
  if params.is_a?(Array) && params.size > 0 && params.first.is_a?(Array) && params.first.size == headers.size
70
70
  @models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'load', [headers, params])["ids"]
71
71
  else
72
- raise CrisalidOdooClient::Error::OdooResourceManagerError
72
+ raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Array of Array who has the same size as headers')
73
73
  end
74
74
  else
75
- raise CrisalidOdooClient::Error::OdooResourceManagerError
75
+ raise CrisalidOdooClient::Error::OdooResourceManagerError.new('headers must be a non empty Array')
76
76
  end
77
77
  end
78
78
 
@@ -80,7 +80,7 @@ module CrisalidOdooClient
80
80
  if params.is_a?(Hash) && params.size > 0 && ids.is_a?(Array) && ids.size > 0
81
81
  @models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'write', [ids, params])
82
82
  else
83
- raise CrisalidOdooClient::Error::OdooResourceManagerError
83
+ raise CrisalidOdooClient::Error::OdooResourceManagerError.new('params must be a non empty Hash and ids must be a non empty Array')
84
84
  end
85
85
  end
86
86
 
@@ -88,7 +88,7 @@ module CrisalidOdooClient
88
88
  if ids.is_a?(Array) && ids.size > 0
89
89
  @models.execute_kw(@odoo_db, @uid, @odoo_pass, table, 'unlink', [ids])
90
90
  else
91
- raise CrisalidOdooClient::Error::OdooResourceManagerError
91
+ raise CrisalidOdooClient::Error::OdooResourceManagerError.new('ids must be a non empty Array')
92
92
  end
93
93
  end
94
94
 
@@ -104,7 +104,7 @@ module CrisalidOdooClient
104
104
  common.call('version')
105
105
  common.call('authenticate', @odoo_db, @odoo_user, @odoo_pass, {})
106
106
  rescue
107
- raise CrisalidOdooClient::Error::OdooConnectionError
107
+ raise CrisalidOdooClient::Error::OdooConnectionError.new('Error on connection, check the url and the database values')
108
108
  end
109
109
  end
110
110
 
@@ -1,3 +1,3 @@
1
1
  module CrisalidOdooClient
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crisalid_odoo_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Palanchini