closeio 3.4.1 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/closeio/client.rb +1 -0
- data/lib/closeio/resources/webhook.rb +31 -0
- data/lib/closeio/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a8f64ac2d45a492e6cf20a6f0ea5fced6979f284e3827df2868dc01a05cc0a4a
|
4
|
+
data.tar.gz: 6e810da22e6ef82d4c7300d02d8fbd25c29fd4bd2dc41f7511bcbb4561aaa29b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2986511c14df228db0152bba7f29fdf57e3f86a8121a2793ebb9e901a5ff6aed0fa5d618041a2608aebe3f597b40ec4ae56ddd05ece723bca7d737b0eece93db
|
7
|
+
data.tar.gz: 3c995b6e28a736909b8e76444a3c9f82cea7d756477ac48c2f47ac2bc546e1d77ccc15dc222d49452a73d68deadf983504ffd0394380730a8b408b9f51dd102c
|
data/lib/closeio/client.rb
CHANGED
@@ -0,0 +1,31 @@
|
|
1
|
+
module Closeio
|
2
|
+
class Client
|
3
|
+
module Webhook
|
4
|
+
def list_webhooks
|
5
|
+
get(webhook_path)
|
6
|
+
end
|
7
|
+
|
8
|
+
def find_webhook(id)
|
9
|
+
get(webhook_path(id))
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_webhook(options = {})
|
13
|
+
post(webhook_path, options)
|
14
|
+
end
|
15
|
+
|
16
|
+
def update_webhook(id, options = {})
|
17
|
+
put(webhook_path(id), options)
|
18
|
+
end
|
19
|
+
|
20
|
+
def delete_webhook(id)
|
21
|
+
delete(webhook_path(id))
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def webhook_path(id = nil)
|
27
|
+
id ? "webhook/#{id}/" : 'webhook/'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/closeio/version.rb
CHANGED
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.
|
4
|
+
version: 3.5.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:
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- lib/closeio/resources/smart_view.rb
|
163
163
|
- lib/closeio/resources/task.rb
|
164
164
|
- lib/closeio/resources/user.rb
|
165
|
+
- lib/closeio/resources/webhook.rb
|
165
166
|
- lib/closeio/version.rb
|
166
167
|
homepage: https://github.com/taylorbrooks/closeio
|
167
168
|
licenses:
|
@@ -182,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
183
|
- !ruby/object:Gem::Version
|
183
184
|
version: '0'
|
184
185
|
requirements: []
|
185
|
-
|
186
|
-
rubygems_version: 2.4.8
|
186
|
+
rubygems_version: 3.0.1
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: A Ruby wrapper for the CloseIO API
|