civo 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/webhook.rb +13 -0
- data/lib/civo/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bcb53336b9b2df6edad4be3d0b960adf09a54e
|
4
|
+
data.tar.gz: afe5f63cc64c2c7216a484470ef5238096eda4be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54d4449810163960ecf393f1d95c7bf9a48e1d92771a67c6564169d73ba7ae5f386ba356978f639561895834809cd231c72bec99cb49ed31f5cdd4445a5e87f1
|
7
|
+
data.tar.gz: 377c095d6b12acbfe80364c23408758a2660555278ae3444a8f7acabce4d88ac7100f0ceeb8f58c54e7f0115d427563eb102ad6e2896ee4e28b3988d43674954
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Civo
|
2
|
+
class Webhook < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/webhooks"
|
4
|
+
put :save, "/v#{ENV["CIVO_API_VERSION"] || "1"}/webhooks/:id"
|
5
|
+
post :test, "/v#{ENV["CIVO_API_VERSION"] || "1"}/webhooks/:id/test"
|
6
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/webhooks", required: [:name, :url]
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/webhooks/:id", send_delete_body: true
|
8
|
+
end
|
9
|
+
|
10
|
+
def to_partial_path
|
11
|
+
"civo/webhook"
|
12
|
+
end
|
13
|
+
end
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- app/models/civo/team.rb
|
99
99
|
- app/models/civo/template.rb
|
100
100
|
- app/models/civo/user.rb
|
101
|
+
- app/models/civo/webhook.rb
|
101
102
|
- config/routes.rb
|
102
103
|
- lib/civo.rb
|
103
104
|
- lib/civo/engine.rb
|