closeio 3.5.0 → 3.7.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
  SHA256:
3
- metadata.gz: a8f64ac2d45a492e6cf20a6f0ea5fced6979f284e3827df2868dc01a05cc0a4a
4
- data.tar.gz: 6e810da22e6ef82d4c7300d02d8fbd25c29fd4bd2dc41f7511bcbb4561aaa29b
3
+ metadata.gz: 22d578f4787ecdd833a43e948731ec8e70bfed00e9699d286374d0296cd2f694
4
+ data.tar.gz: 5c68599a29fcef18ac7dd342715e0839bc006f4ae825ef299fea694abcd85e36
5
5
  SHA512:
6
- metadata.gz: 2986511c14df228db0152bba7f29fdf57e3f86a8121a2793ebb9e901a5ff6aed0fa5d618041a2608aebe3f597b40ec4ae56ddd05ece723bca7d737b0eece93db
7
- data.tar.gz: 3c995b6e28a736909b8e76444a3c9f82cea7d756477ac48c2f47ac2bc546e1d77ccc15dc222d49452a73d68deadf983504ffd0394380730a8b408b9f51dd102c
6
+ metadata.gz: fea7e6a3fc6cd61e26bb88f4bd2c27f56321ef0988db718213e568f1244de43b862c3837407c637b5a6133dddaa3322c259288d6894105f098fda1058f1b938c
7
+ data.tar.gz: 285677e287ce76537a39463771efe7005bb194ee3bad250795f0c4fb6e30a88b11d85ed2ae7c6968df3517b7f8e15a6dd7ab8d5680004a2bab02af5cf07c33c3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 3.6.1
2
+
3
+ - Add support for SMS activities
4
+
5
+ ## 3.5.0
6
+
7
+ - Add support for Webhook endpoint
8
+
1
9
  ## 3.4.1
2
10
 
3
11
  - Add support for email sequence subscriptions
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- closeio (2.6.9)
4
+ closeio (3.7.0)
5
5
  faraday
6
6
  faraday_middleware
7
7
  json
@@ -13,16 +13,38 @@ GEM
13
13
  public_suffix (>= 2.0.2, < 4.0)
14
14
  crack (0.4.3)
15
15
  safe_yaml (~> 1.0.0)
16
- faraday (0.13.1)
16
+ faraday (1.9.3)
17
+ faraday-em_http (~> 1.0)
18
+ faraday-em_synchrony (~> 1.0)
19
+ faraday-excon (~> 1.1)
20
+ faraday-httpclient (~> 1.0)
21
+ faraday-multipart (~> 1.0)
22
+ faraday-net_http (~> 1.0)
23
+ faraday-net_http_persistent (~> 1.0)
24
+ faraday-patron (~> 1.0)
25
+ faraday-rack (~> 1.0)
26
+ faraday-retry (~> 1.0)
27
+ ruby2_keywords (>= 0.0.4)
28
+ faraday-em_http (1.0.0)
29
+ faraday-em_synchrony (1.0.0)
30
+ faraday-excon (1.1.0)
31
+ faraday-httpclient (1.0.1)
32
+ faraday-multipart (1.0.3)
17
33
  multipart-post (>= 1.2, < 3)
18
- faraday_middleware (0.12.2)
19
- faraday (>= 0.7.4, < 1.0)
34
+ faraday-net_http (1.0.1)
35
+ faraday-net_http_persistent (1.2.0)
36
+ faraday-patron (1.0.0)
37
+ faraday-rack (1.0.0)
38
+ faraday-retry (1.0.3)
39
+ faraday_middleware (1.2.0)
40
+ faraday (~> 1.0)
20
41
  hashdiff (0.3.6)
21
- json (2.1.0)
42
+ json (2.6.1)
22
43
  minitest (5.10.3)
23
- multipart-post (2.0.0)
44
+ multipart-post (2.1.1)
24
45
  public_suffix (3.0.0)
25
46
  rake (12.0.0)
47
+ ruby2_keywords (0.0.5)
26
48
  safe_yaml (1.0.4)
27
49
  vcr (3.0.3)
28
50
  webmock (3.0.1)
@@ -42,4 +64,4 @@ DEPENDENCIES
42
64
  webmock
43
65
 
44
66
  BUNDLED WITH
45
- 1.15.4
67
+ 1.16.1
data/README.md CHANGED
@@ -1,16 +1,14 @@
1
- ### A Ruby wrapper for the Close.IO API
1
+ ### A Ruby wrapper for the Close.com API
2
2
 
3
- Learn about the Closeio API at http://developer.close.io.
3
+ Learn about the Close API at http://developer.close.com.
4
4
 
5
- I :heart: Close.io, so if you have problems using the gem or would like to see support for new endpoints, please open a GitHub issue -- I'll get it resolved as quick as I can.
6
-
7
- Fwiw, I also run [DripEmails.com](https://www.DripEmails.com) -- a service for building automated email sequences using Close.io
5
+ I :heart: Close, so if you have problems using the gem or would like to see support for new endpoints, please open a GitHub issue -- I'll get it resolved as quick as I can.
8
6
 
9
7
  ### Installation
10
8
  Add this line to your application's Gemfile:
11
9
  ````ruby
12
10
  # in your Gemfile
13
- gem 'closeio', '~> 3.4'
11
+ gem 'closeio', '~> 3.6'
14
12
 
15
13
  # then...
16
14
  bundle install
@@ -110,4 +108,4 @@ Everyone is encouraged to help improve this project. Here are a few ways you can
110
108
  - Suggest or add new features
111
109
 
112
110
  ### Copyright
113
- Copyright (c) 2018 Taylor Brooks. See LICENSE for details.
111
+ Copyright (c) 2019 Taylor Brooks. See LICENSE for details.
@@ -76,7 +76,7 @@ module Closeio
76
76
 
77
77
  def assemble_list_query(query, options)
78
78
  options[:query] = if query.respond_to? :map
79
- query.map { |k, v| "#{k}:'#{v}'" }.join(' ')
79
+ query.map { |k, v| "#{k}:\"#{v}\"" }.join(' ')
80
80
  else
81
81
  query
82
82
  end
@@ -86,7 +86,7 @@ module Closeio
86
86
 
87
87
  def connection
88
88
  Faraday.new(
89
- url: 'https://app.close.io/api/v1',
89
+ url: 'https://api.close.com/api/v1',
90
90
  headers: {
91
91
  accept: 'application/json',
92
92
  'User-Agent' => "closeio-ruby-gem/v#{Closeio::VERSION}",
@@ -77,6 +77,10 @@ module Closeio
77
77
  get(call_path, options)
78
78
  end
79
79
 
80
+ def find_call(id)
81
+ get("#{call_path}#{id}/")
82
+ end
83
+
80
84
  def create_call(options = {})
81
85
  post(call_path, options)
82
86
  end
@@ -85,6 +89,30 @@ module Closeio
85
89
  delete("#{call_path}#{id}/")
86
90
  end
87
91
 
92
+ #
93
+ # SMS Activities
94
+ #
95
+
96
+ def list_sms(options = {})
97
+ get(sms_path, options)
98
+ end
99
+
100
+ def find_sms(id)
101
+ get("#{sms_path}#{id}/")
102
+ end
103
+
104
+ def create_sms(options)
105
+ post(sms_path, options)
106
+ end
107
+
108
+ def update_sms(id, options = {})
109
+ put("#{sms_path}#{id}/", options)
110
+ end
111
+
112
+ def delete_sms(id)
113
+ delete("#{sms_path}#{id}/")
114
+ end
115
+
88
116
  private
89
117
 
90
118
  def activity_path
@@ -92,19 +120,23 @@ module Closeio
92
120
  end
93
121
 
94
122
  def note_path
95
- 'activity/note/'
123
+ "#{activity_path}note/"
96
124
  end
97
125
 
98
126
  def email_path
99
- 'activity/email/'
127
+ "#{activity_path}email/"
100
128
  end
101
129
 
102
130
  def emailthread_path
103
- 'activity/emailthread/'
131
+ "#{activity_path}emailthread/"
104
132
  end
105
133
 
106
134
  def call_path
107
- 'activity/call/'
135
+ "#{activity_path}call/"
136
+ end
137
+
138
+ def sms_path
139
+ "#{activity_path}sms/"
108
140
  end
109
141
  end
110
142
  end
@@ -4,6 +4,10 @@ module Closeio
4
4
  def list_events(options = {})
5
5
  get('event/', options)
6
6
  end
7
+
8
+ def find_event(id)
9
+ get("event/#{id}/")
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.5.0'.freeze
2
+ VERSION = '3.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closeio
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.0
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -168,7 +168,7 @@ homepage: https://github.com/taylorbrooks/closeio
168
168
  licenses:
169
169
  - MIT
170
170
  metadata: {}
171
- post_install_message:
171
+ post_install_message:
172
172
  rdoc_options: []
173
173
  require_paths:
174
174
  - lib
@@ -183,8 +183,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.0.1
187
- signing_key:
186
+ rubygems_version: 3.1.4
187
+ signing_key:
188
188
  specification_version: 4
189
189
  summary: A Ruby wrapper for the CloseIO API
190
190
  test_files: []