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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3147194692e7318c22f39a09a2c59b4714dd1a01
4
- data.tar.gz: e9d78af9e652173b1ae9f2a40e2f99eba605ed94
3
+ metadata.gz: 24bcb53336b9b2df6edad4be3d0b960adf09a54e
4
+ data.tar.gz: afe5f63cc64c2c7216a484470ef5238096eda4be
5
5
  SHA512:
6
- metadata.gz: fe9f577a3935563f0c90025c755ec489067b4d897e18bbbecaa85512e8a9ef59cfd165a3d973923601538c1b42662254dea5e15d634cfe0192eba16a7c1d9d1c
7
- data.tar.gz: d5c12c97645677147b3225fc01be82358fa8eb75430ea7fff2dba4ab155d569e48daedf4c383246aa8a1aca90ea54c039e7aa4306ef88fc8156c2123cbd4631d
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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
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.6
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-01 00:00:00.000000000 Z
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