Skip to content

Commit

Permalink
feat: implement Array.wrap to standardize array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aristotelesbr committed Nov 21, 2023
1 parent 785c144 commit e9081c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [Released]

### Added
- New feature for the next release.
## [0.1.1] - 2023-23-11

### Added
- Initial release of the project.
- 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.

### Changed
- Example change to an existing feature.
- Refactored the `put_header` method to use the `Array.wrap` method for more predictable header value handling.
- Renamed methods to have a consistent `assign_` prefix to standardize the API interface:
- `put_header` to `assign_header`
- `write_body` to `assign_body`
- `set_params` to `assign_params`
- `update_status` to `assign_status`

### Deprecated
- Example feature that will be removed in future releases.

### Removed
- Example feature that was removed.

### Fixed
- Example bug fix.

### Security
- Example security fix.

2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lennarb (0.1.0)
lennarb (0.1.1)
colorize (~> 1.1)
puma (~> 6.4)
rack (~> 3.0, >= 3.0.8)
Expand Down

0 comments on commit e9081c9

Please sign in to comment.