jets-api 0.1.2 → 0.1.3

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: eebbd3b1d3d7417cf7a517130e078b1935d33f67f53f985b355121d04352fb2e
4
+ data.tar.gz: 0e30e1126921621558943e61de620ba6bf1510de41d6a52c8bb095a3f0652980
5
5
  SHA512:
6
- metadata.gz: f3044367c395b6a9bc397fc6e3241221f34a8adb990a1b5eb9300a5abec59d48c8d1a4baf14467fcd60b3fff61a967a32b53af1bf903500d2e8fd64b26160a6e
7
- data.tar.gz: 6d6769a1ec035b97254d8e3ae2c38c7c484bed695f4683a1e0a0a0ef6ade5259823dedbe8d51c04344e957bd396d8abe86799af1681356b0b3190215cd416302
6
+ metadata.gz: e570c4333fa1c2d32b4d6b8c8f7855cd9c721d782e3d48822053436d8d4a0872d13a9c4090fea6cf696bfb1cc75d1dc663c937f19f576e9a81bb7f2d277e2989
7
+ data.tar.gz: f3a65e8ca78d3bffe0f32190bb561d3a81dd632ad0230cde6985c5a3c1b8995d6f25db96538febf4e275d42fa197170dab1d82b886b75f961fdc28b08fba0252
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
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.3] - 2023-12-11
7
+ - [#1](https://github.com/rubyonjets/jets-api/pull/1) 2xx and 4xx responses are processable
8
+
6
9
  ## [0.1.2] - 2023-12-04
7
10
  - use key field for token
8
11
 
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
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Api
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.3
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: