capsule_crm 1.9.1 → 1.9.2

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: bbf4dbaf303bbf0fd71fa6512aa6ee75e37564ef
4
- data.tar.gz: 49c8d15e30ffe1751c34174b881c6d10d0888440
3
+ metadata.gz: 414e3a2c36416c972fd33e994962191045ffca64
4
+ data.tar.gz: d9031b6667aeb96e973a5e443f429167d9087c23
5
5
  SHA512:
6
- metadata.gz: 1d0e9468526f5b052b004c1aea14cb699cc2d9ff6ed704582192e25d07235f9c265ddf25498adf701bde492757124da8d29b32c7f429de27654a50659be76694
7
- data.tar.gz: 135e06abfe0f0810d3f40b729313fc9329411eeb6deaaf17b281cd61d1f595c1e0041da8a403dd1e35d08a6811f630749fbc7e117191fe34220213da1f303e1e
6
+ metadata.gz: 61fa42e87b6f2c97555337f51082e9a55d075d1ba19cb32e80a7ad659e23c702b221d042ba4fa38701888fad8aad1ec5921bc86dd6126b978fa376767b59c35e
7
+ data.tar.gz: 4845edb01a36ba40d43d658decd4e9964d1d2a77c046ccb2411d35413dda0bb5b1dbde4dfc827d59e968ce44c962608833b64e5cdf3d14bf4ef454fd78817505
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.2
4
+
5
+ - Fix issue where opportunities would never persist because they were
6
+ serializing and sending the ```probability``` attribute to capsule which
7
+ capsule did not want. - Thanks to @whitecl
8
+ [#82](https://github.com/mattbeedle/capsule_crm/pull/82)
9
+
3
10
  ## 1.9.1
4
11
 
5
12
  - Task#category is now persisted correctly
@@ -14,7 +14,7 @@ module CapsuleCRM
14
14
  include CapsuleCRM::Serializable
15
15
 
16
16
  serializable_config do |config|
17
- config.excluded_keys = [:track_id]
17
+ config.excluded_keys = [:track_id, :probability]
18
18
  end
19
19
 
20
20
  queryable_config do |config|
@@ -1,3 +1,3 @@
1
1
  module CapsuleCrm
2
- VERSION = '1.9.1'
2
+ VERSION = '1.9.2'
3
3
  end
@@ -157,6 +157,27 @@ describe CapsuleCRM::Opportunity do
157
157
  end
158
158
  end
159
159
 
160
+ describe '#to_capsule_json' do
161
+ let(:opportunity) do
162
+ Fabricate.build(:opportunity,
163
+ value: 23.0,
164
+ currency: 'USD',
165
+ probability: 50.0
166
+ )
167
+ end
168
+
169
+ subject {opportunity.to_capsule_json['opportunity']}
170
+
171
+ it { should have_key('name') }
172
+ it { should have_key('milestoneId') }
173
+ it { should have_key('partyId') }
174
+ it { should have_key('value') }
175
+ it { should have_key('currency') }
176
+
177
+ it { should_not have_key('probability')}
178
+ it { should_not have_key('trackId')}
179
+ end
180
+
160
181
  describe '.deleted' do
161
182
  before do
162
183
  stub_request(:get, /.*/).
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capsule_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Beedle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-17 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel