crisalid_odoo_client 1.2.0 → 1.2.1

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: 2404839be69c1435311cc064b513c8ed78da68c5c3f879a729f1a6f45dae298a
4
- data.tar.gz: 0a1b7cc6da15c7fd8e76c78317dc286311b7f0b2ff6caafdb874345d2d062fb2
3
+ metadata.gz: 35457358f22b14b15878bbe1d400bc995b738b58cb616c57e760db3ced1d8516
4
+ data.tar.gz: 2b5f4cd1e8e39321a609ac37518f3079d6a5633e2401fca36976988b0a7e2275
5
5
  SHA512:
6
- metadata.gz: d39d579086447246fe25e6b99fd7db81b1d45427f18d001459e04a62f4fe234172c99545fbbc5d3de5178f9618fc5272a15b2c408cc715b5bd2460cabe8a4ac8
7
- data.tar.gz: c912bc06e43a6ad822b339c41fb5995d548972fc6fc1e51f8766e08e83bc657ca892e276cfd31170dd96ac3be2809e008f05d20f80245562b8192cdd5673b71d
6
+ metadata.gz: 64e4438ec65e67abc59fe381158e75855d1d61c8c3b1e333cf22c02b8d220e721659e9d94a54de3c6b50a4b0f997213529b81d2f385b5196b6727780d526766b
7
+ data.tar.gz: e83a202d138829af6a7feb0e5b1a26d38d5df26027d89ddff091b7b4cb1b4d7f61c9bae15e79aad2310a6c813e688f29d84e419ee7c9aba35f5edc3bf9bdd4de
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crisalid_odoo_client (1.2.0)
4
+ crisalid_odoo_client (1.2.1)
5
5
  xmlrpc
6
6
 
7
7
  GEM
@@ -1,5 +1,7 @@
1
1
  module CrisalidOdooClient
2
2
  class Client
3
+ DEFAULT_TIMEOUT = 60
4
+
3
5
  require 'xmlrpc/client'
4
6
 
5
7
  attr_reader :odoo_url
@@ -19,7 +21,7 @@ module CrisalidOdooClient
19
21
  end
20
22
 
21
23
  if @uid != false
22
- @models = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/object").proxy
24
+ @models = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/object", nil, DEFAULT_TIMEOUT).proxy
23
25
  # Client connected
24
26
  else
25
27
  # Client not connected
@@ -98,7 +100,7 @@ module CrisalidOdooClient
98
100
 
99
101
  def connect
100
102
  begin
101
- common = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/common")
103
+ common = XMLRPC::Client.new2("#{@odoo_url}/xmlrpc/2/common", nil, DEFAULT_TIMEOUT)
102
104
  common.call('version')
103
105
  common.call('authenticate', @odoo_db, @odoo_user, @odoo_pass, {})
104
106
  rescue
@@ -1,3 +1,3 @@
1
1
  module CrisalidOdooClient
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
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.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Palanchini