capsule_crm 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/capsule_crm/opportunity.rb +1 -1
- data/lib/capsule_crm/version.rb +1 -1
- data/spec/lib/capsule_crm/opportunity_spec.rb +21 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 414e3a2c36416c972fd33e994962191045ffca64
|
4
|
+
data.tar.gz: d9031b6667aeb96e973a5e443f429167d9087c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61fa42e87b6f2c97555337f51082e9a55d075d1ba19cb32e80a7ad659e23c702b221d042ba4fa38701888fad8aad1ec5921bc86dd6126b978fa376767b59c35e
|
7
|
+
data.tar.gz: 4845edb01a36ba40d43d658decd4e9964d1d2a77c046ccb2411d35413dda0bb5b1dbde4dfc827d59e968ce44c962608833b64e5cdf3d14bf4ef454fd78817505
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/capsule_crm/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|