capsule_crm 1.10.0 → 1.10.3
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/.gitignore +1 -0
- data/.travis.yml +4 -0
- data/CHANGELOG.md +16 -0
- data/capsule_crm.gemspec +1 -0
- data/lib/capsule_crm/querying/find_one.rb +4 -1
- data/lib/capsule_crm/serializer.rb +1 -6
- data/lib/capsule_crm/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1285e326a851d39a7de50ac4877a021e3244ca17
|
|
4
|
+
data.tar.gz: 5f5668ee2771528bf0cd99a51b90c503dc91fd13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19272f32c360e946216faff6d1180f1eb130267b9818bab93cf5bdee54c4e4d4725d9844a18b5bdf604a4fcbee5a2965be291fd0aaab9cb1ddb8653373e72354
|
|
7
|
+
data.tar.gz: 51823fe7fe4fc47419f57c763f77db1c06bbbc6586e683c5fa336c253706671ad98d4c4840d66894eaeeca8c9f3846ebb3c07fa9356f7acf6929e2b9c5e5647e
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
sudo: false
|
|
1
2
|
language: ruby
|
|
2
3
|
cache: bundler
|
|
3
4
|
rvm:
|
|
5
|
+
- 2.2.0
|
|
4
6
|
- 2.1.0
|
|
5
7
|
- 2.0.0
|
|
6
8
|
before_install:
|
|
@@ -9,4 +11,6 @@ before_install:
|
|
|
9
11
|
- gem install rake
|
|
10
12
|
script:
|
|
11
13
|
- bundle exec rspec spec/
|
|
14
|
+
env:
|
|
15
|
+
- CODECLIMATE_REPO_TOKEN=68e8f8d2a064fe34ade1c684a1e4c68838fd3c6305d5e48139ff2b85b0ba4991
|
|
12
16
|
bundler_args: --binstubs=./bundler_stubs
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.10.3
|
|
4
|
+
|
|
5
|
+
- Fix regression introduced in 1.10.1 where any records that do not respond
|
|
6
|
+
to #contacts could not be reloaded.
|
|
7
|
+
|
|
8
|
+
## 1.10.2
|
|
9
|
+
|
|
10
|
+
- Stop serializing the result of CapsuleCRM::Serializer#serialize. It causes
|
|
11
|
+
the serialized version of an object to become stale.
|
|
12
|
+
[#90](https://github.com/mattbeedle/capsule_crm/pull/90)
|
|
13
|
+
|
|
14
|
+
## 1.10.1
|
|
15
|
+
|
|
16
|
+
- #reload now also reloads the contacts information. More information
|
|
17
|
+
[here](https://github.com/mattbeedle/capsule_crm/issues/89#issuecomment-71309322)
|
|
18
|
+
|
|
3
19
|
## 1.10.0
|
|
4
20
|
|
|
5
21
|
- Add ```#opportunities``` method to ```party```, ```person```
|
data/capsule_crm.gemspec
CHANGED
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |gem|
|
|
|
25
25
|
gem.add_runtime_dependency('faraday_middleware')
|
|
26
26
|
gem.add_runtime_dependency('virtus', '~> 1.0.0')
|
|
27
27
|
|
|
28
|
+
gem.add_development_dependency('codeclimate-test-reporter')
|
|
28
29
|
gem.add_development_dependency('coveralls')
|
|
29
30
|
gem.add_development_dependency('cucumber')
|
|
30
31
|
gem.add_development_dependency('fabrication')
|
|
@@ -11,7 +11,10 @@ module CapsuleCRM
|
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def reload
|
|
14
|
-
self.
|
|
14
|
+
self.class.find(id).tap do |latest|
|
|
15
|
+
self.attributes = latest.attributes
|
|
16
|
+
self.contacts = latest.contacts if respond_to?(:contacts)
|
|
17
|
+
end
|
|
15
18
|
associations.keys.each do |association_name|
|
|
16
19
|
instance_variable_set(:"@#{association_name}", nil)
|
|
17
20
|
end
|
|
@@ -8,12 +8,7 @@ module CapsuleCRM
|
|
|
8
8
|
|
|
9
9
|
def serialize(object)
|
|
10
10
|
@object = object
|
|
11
|
-
|
|
12
|
-
if include_root?
|
|
13
|
-
serialize_with_root
|
|
14
|
-
else
|
|
15
|
-
serialize_without_root
|
|
16
|
-
end
|
|
11
|
+
include_root? ? serialize_with_root : serialize_without_root
|
|
17
12
|
end
|
|
18
13
|
|
|
19
14
|
def self.serialize_collection(klass, collection)
|
data/lib/capsule_crm/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.10.
|
|
4
|
+
version: 1.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Beedle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -80,6 +80,20 @@ dependencies:
|
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: 1.0.0
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: codeclimate-test-reporter
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - ">="
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
83
97
|
- !ruby/object:Gem::Dependency
|
|
84
98
|
name: coveralls
|
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -418,7 +432,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
418
432
|
version: '0'
|
|
419
433
|
requirements: []
|
|
420
434
|
rubyforge_project:
|
|
421
|
-
rubygems_version: 2.
|
|
435
|
+
rubygems_version: 2.4.5
|
|
422
436
|
signing_key:
|
|
423
437
|
specification_version: 4
|
|
424
438
|
summary: Gem to communicate with CapsuleCRM
|