zoho_hub 0.1.11 → 0.1.12

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: e281a8267ab893eea4e24d703c925f35f8a502cd00df9fcbb8a502aec5c47c6b
4
- data.tar.gz: d87addb71b60704a885e7afbf724aa089945450d120e815dbe89bade1b161d79
3
+ metadata.gz: 67156688504e908347e4e66a2dfd6aea9135367dd6868fbc6c201edbc4a8c534
4
+ data.tar.gz: 2eeefeb33fe9527ce101b1f155f4ab99134b7da63faeed315f92287d942c515c
5
5
  SHA512:
6
- metadata.gz: d4882911df8348e20b5b887648b6da62887cf9773511e47564ac9d405a897beb52985d23eaa6bb30bb4c2483923014a94104f84669b49fceacc965f45b551e88
7
- data.tar.gz: ee61fc7985866b898412f755c08a19c222f33281be1f3818763f4fc7b25eb6f2fb0f88520212e47964d344616abb3a7610509cae9a6c87b49aa5cc35d0110d96
6
+ metadata.gz: ba59327a8db1ec97fd49a8826759a2cd30e68089f2d2964787eebbdf6f5503176956755f56aa5d1bf198eed3dfcbef16a4514275d9d151364f03648334f2236c
7
+ data.tar.gz: 3ef408bb727c6aa9b1a27a9ef33a2369f2dad5ffab37b15f10ae4a63917d6cd2cc1f978c25ac64868861816ecf0bdf6e2504cc0f54e61138417e83d2473567e9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zoho_hub (0.1.11)
4
+ zoho_hub (0.1.12)
5
5
  activesupport (~> 5.2)
6
6
  addressable (~> 2.5)
7
7
  faraday (~> 0.15)
@@ -22,7 +22,7 @@ GEM
22
22
  ast (2.4.0)
23
23
  byebug (10.0.2)
24
24
  coderay (1.1.2)
25
- concurrent-ruby (1.1.3)
25
+ concurrent-ruby (1.1.4)
26
26
  diff-lcs (1.3)
27
27
  docile (1.3.1)
28
28
  dotenv (2.5.0)
@@ -30,7 +30,7 @@ GEM
30
30
  multipart-post (>= 1.2, < 3)
31
31
  faraday_middleware (0.12.2)
32
32
  faraday (>= 0.7.4, < 1.0)
33
- i18n (1.2.0)
33
+ i18n (1.4.0)
34
34
  concurrent-ruby (~> 1.0)
35
35
  jaro_winkler (1.5.1)
36
36
  json (2.1.0)
@@ -48,7 +48,8 @@ module ZohoHub
48
48
  path = File.join(request_path, 'search')
49
49
 
50
50
  response = get(path, params)
51
- data = response[:data]
51
+
52
+ data = response.nil? ? [] : response[:data]
52
53
 
53
54
  data.map { |info| new(info) }
54
55
  end
@@ -2,10 +2,11 @@
2
2
 
3
3
  module ZohoHub
4
4
  class Product < BaseRecord
5
- attributes :id, :description, :vendor_id, :owner_id
5
+ attributes :id, :description, :vendor_id, :owner_id, :active
6
6
 
7
7
  attribute_translation(
8
- id: :id
8
+ id: :id,
9
+ active: :Product_Active
9
10
  )
10
11
 
11
12
  def initialize(params)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZohoHub
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoho_hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2019-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport