gemstack-http 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cbadcf688b9a992018d023466d08ca082e49323441d528e23375ba26a0d89fc
4
- data.tar.gz: ba64e5a829531d7ab7cd73ab70ea453dffa4a4cc0ecb9c66a67d444fe9ff4f19
3
+ metadata.gz: 0b27874e0a910a9a3d436b7e931ee5e1c6381ae5c7a76d56ce245b70ba5eb9e8
4
+ data.tar.gz: cd036dafa378939944ccc3ec11468d9a6999eaa8e102cc0d72c702066da98cea
5
5
  SHA512:
6
- metadata.gz: fc46b5f8dcc656eab4661289d22451475fa0999e94ec446e04ece6568e26bfefa08326da54bc1d26d594a55dc3d4c53254a8865ff03497a648b680b9b2915acc
7
- data.tar.gz: 325a5da3292c61de2f4fad3bbee3d2c52ad7db1bb893056bbb09b3e407a7b0f508cb0112627843e434dfd6c42984b7709f6138f116a7577af45f8f01f90f33a6
6
+ metadata.gz: 62a5b55aab536cb4a3f6e16612cff8c8bdfe673bafaba035281c3ce26c3be20616ff7da80a7d75cf82dd5a11ef974ae67f74426048bbf37453667cb4f86e28a0
7
+ data.tar.gz: 06be05ba183e327696e7837f747aa40e34392fab849ca2e0e78568b459057ff50a1a77f63fb0999102b76240fb6a949d7685b663d1943f65c78e8e94b3e71705
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.5
4
+
5
+ See the [GemStack changelog](https://github.com/gemstack-rb/gemstack/blob/main/CHANGELOG.md).
6
+
3
7
  ## 0.2.4
4
8
 
5
9
  See the [GemStack changelog](https://github.com/gemstack-rb/gemstack/blob/main/CHANGELOG.md).
@@ -71,7 +71,7 @@ module GemStack
71
71
  end
72
72
 
73
73
  # Declares the request schema for actions; `input` returns the
74
- # validated, coerced data inside those actions (DECISIONS D-021).
74
+ # validated, coerced data inside those actions.
75
75
  #
76
76
  # accepts :create, with: Product.input_schema
77
77
  # accepts :update, with: Product.input_schema, partial: true
@@ -4,7 +4,7 @@ require "json"
4
4
 
5
5
  module GemStack
6
6
  module HTTP
7
- # Turns an exception into the standard JSON error envelope (DECISIONS D-015):
7
+ # Turns an exception into the standard JSON error envelope:
8
8
  #
9
9
  # {"error": {"code": "not_found", "message": "Not Found", "request_id": "..."},
10
10
  # "errors": {"name": ["is required"]}}
@@ -5,7 +5,7 @@ require "zlib"
5
5
  module GemStack
6
6
  module HTTP
7
7
  module Middleware
8
- # Response compression with content negotiation (DECISIONS D-033).
8
+ # Response compression with content negotiation.
9
9
  #
10
10
  # - Negotiates Accept-Encoding (with q-values): Brotli when the `brotli`
11
11
  # gem is available, otherwise gzip.
@@ -20,7 +20,7 @@ module GemStack
20
20
  return response if response[0] < 500
21
21
 
22
22
  report(e, env)
23
- # Development: a browser opening the URL gets a readable page (DECISIONS D-055).
23
+ # Development: a browser opening the URL gets a readable page.
24
24
  @show_exceptions && ErrorPage.browser?(env) ? ErrorPage.render(e, env, request_id: env[REQUEST_ID]) : response
25
25
  end
26
26
 
@@ -4,7 +4,7 @@ module GemStack
4
4
  module HTTP
5
5
  module Middleware
6
6
  # Answers GET/HEAD config.http.health_path with 200 {"status":"ok"}
7
- # without touching the router (DECISIONS D-016).
7
+ # without touching the router.
8
8
  class HealthCheck
9
9
  BODY = '{"status":"ok"}'
10
10
 
@@ -3,7 +3,7 @@
3
3
  module GemStack
4
4
  module HTTP
5
5
  # One page of a collection, rendered as the pagination envelope
6
- # (DECISIONS D-034):
6
+ # (docs/pagination.md):
7
7
  #
8
8
  # { "data": [ ... ], "meta": { "page": 2, "per_page": 25, "total": 180, "total_pages": 8 } }
9
9
  #
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GemStack
4
4
  module HTTP
5
- # Routes requests to controllers or Rack apps (DECISIONS D-004, D-005).
5
+ # Routes requests to controllers or Rack apps.
6
6
  #
7
7
  # router = Router.new(prefix: "/api")
8
8
  # router.draw do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemstack-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adware Technologies
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.4
19
+ version: 0.2.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.4
26
+ version: 0.2.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemstack-schema
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.4
33
+ version: 0.2.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.4
40
+ version: 0.2.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement