jets-api 0.1.2 → 0.1.4

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
  SHA256:
3
- metadata.gz: dc4e95788b9a90a96ee85f3bae26143819933de6ab691659428887e1a3fb2bf1
4
- data.tar.gz: '0613930942f7c0f0ee61981665be280a3e38dd2f45065cbb50a982cc7420c4d4'
3
+ metadata.gz: a8bfcde5b1b65d3ada97aeaa69da02a8278607054e005428ce36bafe3aaee4e8
4
+ data.tar.gz: b6573a3d273e0c6c64c20464bda8b237cefaafd0dcfd2c83be5d4217313bae34
5
5
  SHA512:
6
- metadata.gz: f3044367c395b6a9bc397fc6e3241221f34a8adb990a1b5eb9300a5abec59d48c8d1a4baf14467fcd60b3fff61a967a32b53af1bf903500d2e8fd64b26160a6e
7
- data.tar.gz: 6d6769a1ec035b97254d8e3ae2c38c7c484bed695f4683a1e0a0a0ef6ade5259823dedbe8d51c04344e957bd396d8abe86799af1681356b0b3190215cd416302
6
+ metadata.gz: 6500630b443fd7c72d3ad68aea1e17e16ced37056c8f1b34e94dc9b0dbe8bc0e99de05b219411f0590c8b11982208b96b6a984a09fbccd6e208432411e09e9ba
7
+ data.tar.gz: 02cff09adbf45a83262cb547c55ff4932312cac492f7b67aa5e77b6316f54134784209946d5d1f9ad1ced3f3e3eeea6e8f1c53c28ce2b75506fcae0c7dd6f66c
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.1.4] - 2023-12-11
7
+ - stack delete
8
+
9
+ ## [0.1.3] - 2023-12-11
10
+ - [#1](https://github.com/rubyonjets/jets-api/pull/1) 2xx and 4xx responses are processable
11
+
6
12
  ## [0.1.2] - 2023-12-04
7
13
  - use key field for token
8
14
 
data/lib/jets/api/core.rb CHANGED
@@ -66,10 +66,11 @@ module Jets::Api
66
66
  end
67
67
  end
68
68
 
69
- # Note: 422 is Unprocessable Entity. This means an invalid data payload was sent.
70
- # We want that to error and raise
69
+ # 422 Unprocessable Entity: Server understands the content type of the request entity, and
70
+ # the syntax of the request entity is correct, but it was unable to process the contained
71
+ # instructions.
71
72
  def processable?(http_code)
72
- http_code =~ /^20/ || http_code =~ /^40/
73
+ http_code =~ /^2/ || http_code =~ /^4/
73
74
  end
74
75
 
75
76
  def http
@@ -10,6 +10,11 @@ module Jets::Api
10
10
  params = global_params.merge(params)
11
11
  api.get("stacks/#{id}", params)
12
12
  end
13
+
14
+ def delete(id, params={})
15
+ params = global_params.merge(params)
16
+ api.delete("stacks/#{id}", params)
17
+ end
13
18
  end
14
19
  end
15
20
  end
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Api
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: