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 +4 -4
- data/CHANGELOG.md +15 -1
- data/lib/lennarb/version.rb +1 -1
- data/lib/lennarb.rb +0 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f3ac7cfbc2516f8bae7fd4e5d9fdbab7b02fc8c8545423bc434f7462e7e11b2
|
|
4
|
+
data.tar.gz: 00ada2a17115680425bc16d478f22419e769944b2919d5d2ab5ad266884aba94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
## [
|
|
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`
|
data/lib/lennarb/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|