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 +5 -5
- data/lib/basecrm/services/deals_service.rb +1 -1
- data/lib/basecrm/version.rb +1 -1
- data/spec/services/deals_service_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 88761921e923b850ccbc638210030e189d127c78b6311cfc80b77d627d2330b0
|
4
|
+
data.tar.gz: 5dd57f40287add6123640959a273d7492fa6fa3ad7a3a7df8db8f5f560605371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/basecrm/version.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|