capsule_crm 1.9.3 → 1.10.0

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: f6292743c5cec43004147b4f110dcb0aabdabf6b
4
- data.tar.gz: c976c1a60d1e61dd7e82cc533a7e659ced52b9eb
3
+ metadata.gz: 28d0bd5424ec6ae08ccdaa7c81b235706f6c37d6
4
+ data.tar.gz: d45ba3ba3553d8c3fd214689e59d8b3fc1e15dfc
5
5
  SHA512:
6
- metadata.gz: 3858588b161caba6b10b35ee13fb40b7f685ecc6deabc8a337ba79987cdb7e0e19b0f6a183732c1c52e74410c08ebb91f36ba64c30dd8d0a33de876a0e7c760e
7
- data.tar.gz: 0a8fa25799f85c342ceb865e842050206b5f1eb2c4cb93ab963c82bb73aaa25cec7ed26565e070547d1f9bb24b40a56a10855176bd1c73942ad5dd5dc167f64e
6
+ metadata.gz: b00db629f68f4ccf65a66bade733b70cd298d3c87a1fd22d7776939de24da5ba19fee3370176c4d64157cae1c06982825033f7bab9d643411109eff0e0b7afd5
7
+ data.tar.gz: 01445e0a30410c79c120ca76818efa5fa083320715f58f657aaba0abc363c5e90c05f15ecb910c79c8c3dd681ae137ee914b1f34c4790a7306221798369d81a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.10.0
4
+
5
+ - Add ```#opportunities``` method to ```party```, ```person```
6
+ and ```organization```. - Thanks to @chrisradford
7
+ [#86](https://github.com/mattbeedle/capsule_crm/pull/86)
8
+
3
9
  ## 1.9.3
4
10
 
5
11
  - Fix issue where opportunities could not be saved if they had an associated
@@ -86,5 +86,10 @@ module CapsuleCRM
86
86
  CapsuleCRM::Connection.get('/api/opportunity/deleted', since: since)
87
87
  )
88
88
  end
89
+
90
+ class << self
91
+ alias :_for_organization :_for_party
92
+ alias :_for_person :_for_party
93
+ end
89
94
  end
90
95
  end
@@ -19,7 +19,7 @@ class CapsuleCRM::Party
19
19
  has_many :tasks
20
20
  has_many :custom_fields, embedded: true
21
21
  has_many :cases
22
-
22
+ has_many :opportunities
23
23
 
24
24
  private
25
25
 
@@ -1,3 +1,3 @@
1
1
  module CapsuleCrm
2
- VERSION = '1.9.3'
2
+ VERSION = '1.10.0'
3
3
  end
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.3
4
+ version: 1.10.0
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-11-20 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -418,7 +418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
418
418
  version: '0'
419
419
  requirements: []
420
420
  rubyforge_project:
421
- rubygems_version: 2.4.2
421
+ rubygems_version: 2.2.2
422
422
  signing_key:
423
423
  specification_version: 4
424
424
  summary: Gem to communicate with CapsuleCRM