closeio 3.5.1 → 3.6.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: 0e28984e22a800234765b294dbdaf0f34f7373f90b1d7da32a88e8abc76870f2
4
- data.tar.gz: 6623425713d188e226a3fa7a431200f4749933aee0d33f36f926718d20c41fe3
3
+ metadata.gz: f4a4e7b8c6577770ecc51432276648e9ecb8c82337ecbec6eb3e2bdf7bb602a0
4
+ data.tar.gz: abcde33802d4712fcbba211f2d66ade01898cb8e6a8d98b52cb6037098f423c3
5
5
  SHA512:
6
- metadata.gz: 74ce0dff7ab16b9a3f56c5d841ad93d84c74fe8244f501f4f1ff678b316721311f6d65b5a26dfa36df48a2f17a90bf6658c724f15f4c8f81124539c028976f0a
7
- data.tar.gz: 1eb77c79276ec7b4d372904b81a8691a406f5d5c8794a596aff19eaf36180e32f84bf6919387eb9e57e08a7e89cc2be4ab0034ee1d0fc4f068aa2c3afe805e60
6
+ metadata.gz: 2971f3cc9f884950bdf07edca4fa6322cdf1c62104926c69519d52eb5447c85e3d2149cbb95a8bcecd373bf196ab24ddbd01213ec2c009dd314dff82ecf6a191
7
+ data.tar.gz: d3e14036b50c616c6bf2e488d049dd93dc13a70652f951cf6f6bb237349f98b3c105d25f6d4f4b0f1579b5d255bfc3e2285aa06779296ba2bc26a7b1de81df75
@@ -1,3 +1,7 @@
1
+ ## 3.6.0
2
+
3
+ - Add support for SMS activities
4
+
1
5
  ## 3.5.0
2
6
 
3
7
  - Add support for Webhook endpoint
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.
@@ -85,6 +85,30 @@ module Closeio
85
85
  delete("#{call_path}#{id}/")
86
86
  end
87
87
 
88
+ #
89
+ # SMS Activities
90
+ #
91
+
92
+ def list_sms(options = {})
93
+ get(sms_path, options)
94
+ end
95
+
96
+ def find_sms(id)
97
+ get("#{sms_path}#{id}/")
98
+ end
99
+
100
+ def create_sms
101
+ post(sms_path, options)
102
+ end
103
+
104
+ def update_sms
105
+ put("#{sms_path}#{id}/", options)
106
+ end
107
+
108
+ def delete_sms(id)
109
+ delete("#{sms_path}#{id}/")
110
+ end
111
+
88
112
  private
89
113
 
90
114
  def activity_path
@@ -92,19 +116,23 @@ module Closeio
92
116
  end
93
117
 
94
118
  def note_path
95
- 'activity/note/'
119
+ "#{activity_path}note/"
96
120
  end
97
121
 
98
122
  def email_path
99
- 'activity/email/'
123
+ "#{activity_path}email/"
100
124
  end
101
125
 
102
126
  def emailthread_path
103
- 'activity/emailthread/'
127
+ "#{activity_path}emailthread/"
104
128
  end
105
129
 
106
130
  def call_path
107
- 'activity/call/'
131
+ "#{activity_path}call/"
132
+ end
133
+
134
+ def sms_path
135
+ "#{activity_path}sms/"
108
136
  end
109
137
  end
110
138
  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.1'.freeze
2
+ VERSION = '3.6.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.1
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-20 00:00:00.000000000 Z
11
+ date: 2020-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday