phobos_db_checkpoint 2.1.0 → 2.2.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
  SHA1:
3
- metadata.gz: ea63b526570ad002da5a794c62996da502e5c1a0
4
- data.tar.gz: aa0d11a57a7b1a8e1e4fae8cbf2b44b355a8820c
3
+ metadata.gz: 13a63376197697c40c39c9bdf591800eb664e94a
4
+ data.tar.gz: 6eb6a3c254683519a39a0170ae17f640109c97fd
5
5
  SHA512:
6
- metadata.gz: 29faf1557b51e8f2f018a1e909bfef242835407be93852b248a349a800ace8e0c095cf431e79c9bc9608393d04b9d11c672e7402584d485759f507267dd238af
7
- data.tar.gz: 41ba356743214315af3435827c92d5772fd4fcc0ad54f7d0549d0ffcbbd82a6f964ff431b716b885dff038fcbe24f6b87abcb393a7028ec683fc1c31b0193438
6
+ metadata.gz: e19cdd1f43137d43ca368bbcdeb5fe3681d9ab77fc0a17e679e0472e7c042ed1e29fbdccf2c9f5694d70922987c04ecaddad77135caa37ae421e06040b5ebebe
7
+ data.tar.gz: e0db0427dec26307dde803eb362c13a47088e706947b9ec4ac20e95d867939482cd17ad2e0ac87951a2e4082887ec2153dc5bde694bc99df27337efc61844852
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 2.2.0 (2017-03-08)
8
+
9
+ - [enhancement] Add delete failure end point
10
+
7
11
  ## 2.1.0 (2017-03-07)
8
12
 
9
13
  - [enhancement] When retrying failures, an event is created if they return an ack
data/README.md CHANGED
@@ -210,6 +210,7 @@ The available routes are:
210
210
  * `event_type`
211
211
  * POST `/v1/events/:id/retry`
212
212
  * GET `/v1/failures/:id`
213
+ * DELETE `/v1/failures/:id`
213
214
  * GET `/v1/failures` This route accepts the following params:
214
215
  * `limit`, default: 20
215
216
  * `offset`, default: 0
@@ -107,6 +107,16 @@ module PhobosDBCheckpoint
107
107
  .to_json
108
108
  end
109
109
 
110
+ delete "/#{VERSION}/failures/:id" do
111
+ content_type :json
112
+
113
+ PhobosDBCheckpoint::Failure
114
+ .find(params['id'])
115
+ .destroy
116
+
117
+ { acknowledged: true }.to_json
118
+ end
119
+
110
120
  post "/#{VERSION}/failures/:id/retry" do
111
121
  content_type :json
112
122
  failure = PhobosDBCheckpoint::Failure.find(params['id'])
@@ -1,3 +1,3 @@
1
1
  module PhobosDBCheckpoint
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phobos_db_checkpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Túlio Ornelas