close 0.1.1 → 0.1.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/Gemfile.lock +2 -1
- data/README.md +9 -2
- data/close-0.1.1.gem +0 -0
- data/lib/close/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ae57ff51e41efeb5bcf5464bca8b5e23a6388806e71fc73378d389be7d652a1
|
|
4
|
+
data.tar.gz: 61eec10200545f071801b978090b9c43e8608e2dc3230207ecbe07bb903106ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84e59c4ef43627a67343d39f93ef6cf888aa5c038dfa54ee65d23ee3d38d54422788ce44ea6b8b9410e57a0a4bcb7527671d3ef20a5723232895127c177b8509
|
|
7
|
+
data.tar.gz: 776e2d4bedb0051203e458e200ee6e45b016904dbb3d1b6cdaf180988bd3c482ff43408eb981c678389cc1db1cdefd8f2d9dd1cb25a16f8e724a64484bd06a34
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Close
|
|
2
2
|
|
|
3
|
+
[](https://badge.fury.io/rb/close) [](https://codeclimate.com/github/joynerd/close/test_coverage)
|
|
4
|
+
|
|
3
5
|
This a ruby gem that provides a robust way to interact with the Close
|
|
4
6
|
CRM API.
|
|
5
7
|
|
|
@@ -59,13 +61,12 @@ leads = Close::Lead.list
|
|
|
59
61
|
# Get a single lead
|
|
60
62
|
lead = Close::Lead.retrieve('lead_id')
|
|
61
63
|
|
|
62
|
-
# Update the name
|
|
64
|
+
# Update the name (and other attributes) of a lead. These are not persisted to the API until you call save.
|
|
63
65
|
lead.name = 'New Name'
|
|
64
66
|
|
|
65
67
|
# Save the changes
|
|
66
68
|
lead.save
|
|
67
69
|
|
|
68
|
-
|
|
69
70
|
```
|
|
70
71
|
|
|
71
72
|
## Supported Resources
|
|
@@ -84,9 +85,15 @@ An example of an advanced filter query:
|
|
|
84
85
|
# Run a prebuilt query
|
|
85
86
|
Close::AdvancedFilter.run('find_leads_by_email', {email: 'buster.bluth@gmail.com'})
|
|
86
87
|
|
|
88
|
+
# Add a new query
|
|
89
|
+
Close::AdvancedFilter.add('find_leads_by_phone_number', {phone_number: '%PHONE_NUMBER%'})
|
|
87
90
|
|
|
91
|
+
# Run the new query
|
|
92
|
+
Close::AdvancedFilter.run('find_leads_by_phone_number', {phone_number: '555-555-5555'})
|
|
88
93
|
```
|
|
89
94
|
|
|
95
|
+
If you think you have a common query or one that would be useful to others, please open an issue with a new query and I will add it to the gem. Or you can submit a PR with the JSON for the query added to the repo.
|
|
96
|
+
|
|
90
97
|
### Leads
|
|
91
98
|
[Close API Docs](https://developer.close.com/resources/leads/)
|
|
92
99
|
|
data/close-0.1.1.gem
ADDED
|
Binary file
|
data/lib/close/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: close
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JoyNerd LLC
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 2.0.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 2.0.0
|
|
41
41
|
description: A ruby wrapper for the close.com API that offers caching.
|
|
42
42
|
email:
|
|
43
43
|
- developers@joynerd.io
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- README.md
|
|
56
56
|
- Rakefile
|
|
57
57
|
- close-0.1.0.gem
|
|
58
|
+
- close-0.1.1.gem
|
|
58
59
|
- lib/close.rb
|
|
59
60
|
- lib/close/api_operations.rb
|
|
60
61
|
- lib/close/api_resource.rb
|
|
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
92
93
|
- !ruby/object:Gem::Version
|
|
93
94
|
version: '0'
|
|
94
95
|
requirements: []
|
|
95
|
-
rubygems_version: 3.
|
|
96
|
+
rubygems_version: 3.0.9
|
|
96
97
|
signing_key:
|
|
97
98
|
specification_version: 4
|
|
98
99
|
summary: A ruby wrapper for the close.com API
|