basecrm 1.3.0 → 1.3.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
- SHA1:
3
- metadata.gz: b8926293016d60459867e6e9ebf95d981b4c05b1
4
- data.tar.gz: b1893e2462cd97f6133945ac6ee2bea1586317b6
2
+ SHA256:
3
+ metadata.gz: 88761921e923b850ccbc638210030e189d127c78b6311cfc80b77d627d2330b0
4
+ data.tar.gz: 5dd57f40287add6123640959a273d7492fa6fa3ad7a3a7df8db8f5f560605371
5
5
  SHA512:
6
- metadata.gz: 27725431587ba2b68687a559ad14efdcb7bd64d45232102e26708cbd967983c2d5612cf88f486db172071fdee1675f2a20f224185f05cf58ac53e0b76f157b5f
7
- data.tar.gz: e86129dcf65d434cfecbd98a664e36e9125d84356efc2b8ebbfe979fe2256dfc832ef9455d8dfbc59d33fcd7348783e3253a62c43b420747597e3760a3dc1178
6
+ metadata.gz: bee7621373635902f674517cf4a88d3342968b51a559971ace04d1f6e79dcd57f3c7cfb9af09a166f7c5acaeff10559cc97f7b3a9bdcc0dbb2490d50c5c52590
7
+ data.tar.gz: 3f022e27eb46babad11cc02e9a4479f714851fb0c5a31e62e13cd3c2351ca22afce0960b81a7717b2456bf028e1e710ceafb4aa432bdb149c093dad85e71fa04
@@ -133,7 +133,7 @@ module BaseCRM
133
133
 
134
134
  def sanitize(deal)
135
135
  deal_hash = deal.to_h.select { |k, _| OPTS_KEYS_TO_PERSIST.include?(k) }
136
- deal_hash[:value] = Coercion.to_string(deal_hash[:value])
136
+ deal_hash[:value] = Coercion.to_string(deal_hash[:value]) if deal_hash[:value]
137
137
  deal_hash
138
138
  end
139
139
  end
@@ -1,3 +1,3 @@
1
1
  module BaseCRM
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
@@ -52,6 +52,11 @@ describe BaseCRM::DealsService do
52
52
  @deal = create(:deal)
53
53
  expect(client.deals.update(@deal)).to be_instance_of BaseCRM::Deal
54
54
  end
55
+
56
+ it "allows to skip deal value in payload" do
57
+ @deal = create(:deal, value: nil)
58
+ expect(client.deals.update(@deal)).to be_instance_of BaseCRM::Deal
59
+ end
55
60
  end
56
61
 
57
62
  describe :destroy do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecrm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BaseCRM developers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  requirements: []
239
239
  rubyforge_project:
240
- rubygems_version: 2.6.13
240
+ rubygems_version: 2.7.3
241
241
  signing_key:
242
242
  specification_version: 4
243
243
  summary: BaseCRM Official API V2 library client for ruby