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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 10507bfa70a2597d1ea091c1b5fbe7178b4e7878
4
- data.tar.gz: a03aa9f69c2388b5fe1f9b9f3a7568fdb57b99c9
2
+ SHA256:
3
+ metadata.gz: a8f64ac2d45a492e6cf20a6f0ea5fced6979f284e3827df2868dc01a05cc0a4a
4
+ data.tar.gz: 6e810da22e6ef82d4c7300d02d8fbd25c29fd4bd2dc41f7511bcbb4561aaa29b
5
5
  SHA512:
6
- metadata.gz: fb7014fdd5aa6cef76394e1f6b011c65004df4198f843ffb5a378cce28dfe536505fa77b7007ae345f2e6380265a5b8aabb54c7d42c4d475b32678d1471cc9ce
7
- data.tar.gz: d3669fa00bcd9088cc3cd4df39deb2d4c527da0ae6054e111b857bfc154dca29d187fd8ade0948e2e56c7a5d549a811c7b1622db04539c2ea940650debbde11f
6
+ metadata.gz: 2986511c14df228db0152bba7f29fdf57e3f86a8121a2793ebb9e901a5ff6aed0fa5d618041a2608aebe3f597b40ec4ae56ddd05ece723bca7d737b0eece93db
7
+ data.tar.gz: 3c995b6e28a736909b8e76444a3c9f82cea7d756477ac48c2f47ac2bc546e1d77ccc15dc222d49452a73d68deadf983504ffd0394380730a8b408b9f51dd102c
@@ -27,6 +27,7 @@ module Closeio
27
27
  include Closeio::Client::SmartView
28
28
  include Closeio::Client::Task
29
29
  include Closeio::Client::User
30
+ include Closeio::Client::Webhook
30
31
 
31
32
  attr_reader :api_key, :logger, :ca_file, :errors, :utc_offset
32
33
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = '3.4.1'.freeze
2
+ VERSION = '3.5.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.4.1
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: 2018-12-03 00:00:00.000000000 Z
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
- rubyforge_project:
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