capsule_crm 1.9.2 → 1.9.3

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: 414e3a2c36416c972fd33e994962191045ffca64
4
- data.tar.gz: d9031b6667aeb96e973a5e443f429167d9087c23
3
+ metadata.gz: f6292743c5cec43004147b4f110dcb0aabdabf6b
4
+ data.tar.gz: c976c1a60d1e61dd7e82cc533a7e659ced52b9eb
5
5
  SHA512:
6
- metadata.gz: 61fa42e87b6f2c97555337f51082e9a55d075d1ba19cb32e80a7ad659e23c702b221d042ba4fa38701888fad8aad1ec5921bc86dd6126b978fa376767b59c35e
7
- data.tar.gz: 4845edb01a36ba40d43d658decd4e9964d1d2a77c046ccb2411d35413dda0bb5b1dbde4dfc827d59e968ce44c962608833b64e5cdf3d14bf4ef454fd78817505
6
+ metadata.gz: 3858588b161caba6b10b35ee13fb40b7f685ecc6deabc8a337ba79987cdb7e0e19b0f6a183732c1c52e74410c08ebb91f36ba64c30dd8d0a33de876a0e7c760e
7
+ data.tar.gz: 0a8fa25799f85c342ceb865e842050206b5f1eb2c4cb93ab963c82bb73aaa25cec7ed26565e070547d1f9bb24b40a56a10855176bd1c73942ad5dd5dc167f64e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.3
4
+
5
+ - Fix issue where opportunities could not be saved if they had an associated
6
+ track. Track.find method was missing. - Thanks to @jonathansimmons
7
+ [#84](https://github.com/mattbeedle/capsule_crm/pull/84)
8
+
3
9
  ## 1.9.2
4
10
 
5
11
  - Fix issue where opportunities would never persist because they were
data/README.md CHANGED
@@ -12,10 +12,13 @@ Status](https://gemnasium.com/mattbeedle/capsule_crm.png)](https://gemnasium.com
12
12
  Ready](http://badge.waffle.io/mattbeedle/capsule_crm.png)](http://waffle.io/mattbeedle/capsule_crm)
13
13
  [![Gitter
14
14
  chat](https://badges.gitter.im/mattbeedle/capsule_crm.png)](https://gitter.im/mattbeedle/capsule_crm)
15
+ [![tip for next
16
+ commit](https://tip4commit.com/projects/1022.svg)](https://tip4commit.com/github/mattbeedle/capsule_crm)
15
17
 
16
18
  # CapsuleCRM
17
19
 
18
- CapsuleCRM provides an ActiveModel compliant interface to the capsulecrm API
20
+ CapsuleCRM provides an ActiveModel compliant interface to the
21
+ [capsulecrm.com](http://capsulecrm.com) API
19
22
 
20
23
  ## Installation
21
24
 
@@ -198,6 +201,9 @@ person.emails << CapsuleCRM::Email.new(email_address: 'test@test.com')
198
201
 
199
202
  ### Tracks
200
203
  ```ruby
204
+ # Find a track
205
+ Track = CapsuleCRM::Track.find(ID)
206
+
201
207
  # List tracks
202
208
  tracks = CapsuleCRM::Track.all
203
209
  ```
@@ -356,7 +362,6 @@ Please use github issues to give feedback. If you have a bug to report then an
356
362
  accompanying failing test would be great. Extra points for a full pull request
357
363
  with fix.
358
364
 
359
-
360
365
  ## Contributing
361
366
 
362
367
  1. Fork it
@@ -374,9 +379,27 @@ Many thanks to the following contributers:
374
379
  - [@danthompson](https://github.com/danthompson)
375
380
  - [@ryanbooker](https://github.com/ryanbooker)
376
381
  - [@ghiculescu](https://github.com/ghiculescu)
382
+ - [@whitecl](https://github.com/whitecl)
383
+ - [@jonathansimmons](https://github.com/jonathansimmons)
377
384
 
378
385
  ## Alternatives
379
386
 
380
387
  - [placebo](https://github.com/adrianpike/placebo)
381
388
  - [capsulecrm](https://github.com/ahmedrb/capsulecrm) - most active fork seems
382
389
  to be [here](https://github.com/theodi/capsulecrm)
390
+
391
+ ## Donations
392
+
393
+ CapsuleCRM gem is completely free and open source.
394
+ However, if you would like to tip me for the hours I put in, you would of course
395
+ be very welcome to send Bitcoins to 1EcMFGtrw97qA3VXnQwM2Me5ruEkapCVio
396
+
397
+ ## License
398
+
399
+ Copyright (c) 2013-2014 Matthew Beedle
400
+
401
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
402
+
403
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
404
+
405
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -20,5 +20,13 @@ module CapsuleCRM
20
20
  has_many :cases
21
21
 
22
22
  validates :id, numericality: { allow_blank: true }
23
+
24
+ def self.find(id)
25
+ all.select { |item| item.id == id }.first
26
+ end
27
+
28
+ def self.find_by_name(name)
29
+ all.select { |item| item.name == name }.first
30
+ end
23
31
  end
24
32
  end
@@ -1,3 +1,3 @@
1
1
  module CapsuleCrm
2
- VERSION = '1.9.2'
2
+ VERSION = '1.9.3'
3
3
  end
@@ -227,7 +227,7 @@ shared_examples 'persistable' do |location, id|
227
227
  expect(WebMock).to have_requested(
228
228
  :put,
229
229
  "https://1234:@company.capsulecrm.com#{subject.build_update_path}"
230
- ).with(subject.to_capsule_json)
230
+ ).with(body: subject.to_capsule_json)
231
231
  end
232
232
  end
233
233
 
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.2
4
+ version: 1.9.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: 2014-09-30 00:00:00.000000000 Z
11
+ date: 2014-11-20 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.2.2
421
+ rubygems_version: 2.4.2
422
422
  signing_key:
423
423
  specification_version: 4
424
424
  summary: Gem to communicate with CapsuleCRM