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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2854258a74b425cbfcde648007a00465eebb1c42b41ea3dcb5dd8b9af558839e
4
- data.tar.gz: e1032fe4a32b4927b50d1aedf0bbfb6eb85b8af6e81f20a04fa77141f77f9ace
3
+ metadata.gz: 4ae57ff51e41efeb5bcf5464bca8b5e23a6388806e71fc73378d389be7d652a1
4
+ data.tar.gz: 61eec10200545f071801b978090b9c43e8608e2dc3230207ecbe07bb903106ce
5
5
  SHA512:
6
- metadata.gz: 5506272793581e06aee3d9ca3f7302f512436978aaab7e9826dc8c68cedd2d91165a24dcff21ce549af48d05151e68b83930aea5e93679c7142ef7d37c788186
7
- data.tar.gz: 815914f77867cbe2152eb143ffe4ace620b297ed0a0283512d324c55ae2520564138c26043ccb2e229cae735980801e61864de7664ceccf3d704f34dcad7ff8f
6
+ metadata.gz: 84e59c4ef43627a67343d39f93ef6cf888aa5c038dfa54ee65d23ee3d38d54422788ce44ea6b8b9410e57a0a4bcb7527671d3ef20a5723232895127c177b8509
7
+ data.tar.gz: 776e2d4bedb0051203e458e200ee6e45b016904dbb3d1b6cdaf180988bd3c482ff43408eb981c678389cc1db1cdefd8f2d9dd1cb25a16f8e724a64484bd06a34
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- close (0.1.0)
4
+ close (0.1.1)
5
5
  faraday
6
6
  ostruct
7
7
 
@@ -75,6 +75,7 @@ GEM
75
75
 
76
76
  PLATFORMS
77
77
  arm64-darwin-21
78
+ ruby
78
79
 
79
80
  DEPENDENCIES
80
81
  close!
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Close
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/close.svg)](https://badge.fury.io/rb/close) [![Test Coverage](https://api.codeclimate.com/v1/badges/d83380e81bfb459ea027/test_coverage)](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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Close
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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: '0'
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: '0'
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.2.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