amorail 0.3.3 → 0.3.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
  SHA1:
3
- metadata.gz: 8e253f1e56792978fb0a62a879cb4e664e541cbf
4
- data.tar.gz: 194bf0bd46984a0412dc698016ae3193912fe68e
3
+ metadata.gz: 8db673fd4edfbf45eb53a5d0f975a89d7895fdba
4
+ data.tar.gz: 356888cd7462e7c1ec8c0b427f422faf6b2da05e
5
5
  SHA512:
6
- metadata.gz: 8ebd35962ff10305089e74387e24647064f65915de5b4f91dbf69df02fabe110f64ad982a9c47d39b88ee5762ac0534282ea9d8341e217035daf38b00a433bb4
7
- data.tar.gz: 1f3d42de192b1e09dfc8aa6515da4a2476907b6ed776820b9d1d079050b153f96923512660745f03112fe6a8f1c63dedbc80401cd2ca0b44ee7e83b805a6dc7c
6
+ metadata.gz: 97c770c6157118cb4613528c1b0f3ce57f958bb973426b3113bf5c5ee0f7da40d197dc516401568ca0fcc615764484de9936e3ff8f82df2d0c4f59dd406aacd2
7
+ data.tar.gz: 965e56642519d357ba3eba530bfdd1a8b1f967bb0d8e11ab0dc54ccab032ef82ae40c97a91c0ed396f4cd3a19e72f8a796ea306afae7513616cc0023422fcb64
@@ -52,7 +52,7 @@ module Amorail # :nodoc: all
52
52
  remote_url('list'),
53
53
  id: id
54
54
  )
55
- handle_response(response, 'load')
55
+ handle_response(response, 'load') || nil
56
56
  end
57
57
 
58
58
  private
@@ -1,4 +1,4 @@
1
1
  # Amorail version
2
2
  module Amorail
3
- VERSION = "0.3.3".freeze
3
+ VERSION = "0.3.4".freeze
4
4
  end
data/spec/contact_spec.rb CHANGED
@@ -83,7 +83,7 @@ describe Amorail::Contact do
83
83
 
84
84
  it "returns nil" do
85
85
  obj = described_class.find(102)
86
- expect(obj).to be_falsey
86
+ expect(obj).to be_nil
87
87
  end
88
88
 
89
89
  it "raise error" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amorail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - alekseenkoss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-04 00:00:00.000000000 Z
12
+ date: 2017-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  version: '0'
253
253
  requirements: []
254
254
  rubyforge_project:
255
- rubygems_version: 2.6.4
255
+ rubygems_version: 2.6.11
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Ruby API client for AmoCRM