lennarb 0.1.2 → 0.1.3

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: 28626110518fdb3c7d63bc8cfb08492e0918b725a7a338d4e12f1bdfe8a290e5
4
- data.tar.gz: 30508de72bcc44f69cbc9c3046674ff66fc5c6c9dd3ae495088d62ede7caa5fa
3
+ metadata.gz: 4f3ac7cfbc2516f8bae7fd4e5d9fdbab7b02fc8c8545423bc434f7462e7e11b2
4
+ data.tar.gz: 00ada2a17115680425bc16d478f22419e769944b2919d5d2ab5ad266884aba94
5
5
  SHA512:
6
- metadata.gz: e9fb2a91d64f58bec3a126129b72ab80fc8aecddff4663673a55336a517b3adba27fe7ed8cc97ab3050583cdae4f57bc8a1d63f3672175e8664edf3a9d874d79
7
- data.tar.gz: 988b9af0d8222c02918d0639b3d9894d16b88f742620aff870a6ecb3ed50b00c74b75e809b53cdf5103fca6904d3a36167cc9877c95b8d8f006c6515a8bbdc95
6
+ metadata.gz: bbdef1cf8b5415106566aaa73dfe94ea99e56f5fe4bb808f57742bcf0d2e575952b1b4cb6cdbd0edcce102fbb8d6b9ec386ec7f60aa4d29e0edcce699f3950e7
7
+ data.tar.gz: 75f1097c8a992d9256f8faf3d5a967d9e7ab1926703e7228b87a75bc95d119ba1d52281726d8d6e8bd5e62ebf0bf693d5c9dab2de3cc4cb64f68e0a30024daa0
data/CHANGELOG.md CHANGED
@@ -4,14 +4,28 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [Released]
7
+ ## [0.1.2] - 2023-23-11
8
+
9
+ ### Added
10
+
11
+ - Implemented a specific error handler for Content-Type related errors, enhancing the system's ability to respond appropriately based on whether the request Content-Type is JSON or HTML.
12
+
13
+ ### Removed
14
+
15
+ - Removed the debug gem from development dependencies, streamlining the development environment setup.
16
+
17
+ ### Fixed
18
+
19
+ - Fixed a bug that prevented the correct reading of the Content-Type header in requests, ensuring proper handling of content types.
8
20
 
9
21
  ## [0.1.1] - 2023-23-11
10
22
 
11
23
  ### Added
24
+
12
25
  - Introduced `Array.wrap` extension to the `Array` class for more reliable conversion of objects to arrays within the Lennarb router environment. This method ensures consistent array wrapping of single objects and `nil` values.
13
26
 
14
27
  ### Changed
28
+
15
29
  - Refactored the `put_header` method to use the `Array.wrap` method for more predictable header value handling.
16
30
  - Renamed methods to have a consistent `assign_` prefix to standardize the API interface:
17
31
  - `put_header` to `assign_header`
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lennarb
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
 
6
6
  public_constant :VERSION
7
7
  end
data/lib/lennarb.rb CHANGED
@@ -6,12 +6,3 @@ require 'lennarb/array_extensions'
6
6
  # Base class for Lennarb
7
7
  require 'lenna/base'
8
8
  require 'lennarb/version'
9
-
10
- app = Lenna::Base.new
11
-
12
- app.get '/' do |_req, res|
13
- raise foo
14
- res.json(data: { error: 'Hello, world!' })
15
- end
16
-
17
- app.listen(8080)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lennarb
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
  - Aristóteles Coutinho
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-21 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize