Skip to content

Commit

Permalink
chore: upgrade v0.2 base
Browse files Browse the repository at this point in the history
  • Loading branch information
aristotelesbr committed Jan 8, 2024
1 parent 3d155ed commit c563c3f
Show file tree
Hide file tree
Showing 56 changed files with 601 additions and 3,218 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ root = true
[*]
indent_style = tab
indent_size = 2

[*.{yml,yaml}]
indent_style = space
indent_size = 2
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- macos

ruby:
- "3.2"
- "3.3"

steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true

- uses: actions/download-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true

- name: Installing packages
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- "3.0"
- "3.1"
- "3.2"
- "3.3"

experimental: [false]

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
/gems.locked
/.covered.db
/external
/docs
5 changes: 3 additions & 2 deletions bake/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Released under the MIT License.
# Copyright, 2023, by Aristóteles Coutinho.

require 'colorize'
require 'open3'

# Run tests.
Expand All @@ -14,7 +15,7 @@ def test(test: nil)
all_tests_command = "Dir.glob(\"./#{test_dir}/**/test_*.rb\").each { require _1 }"
test_command = test ? "ruby -I#{test_dir} #{test}" : "ruby -I#{test_dir} -e '#{all_tests_command}'"

stdout, _stderr, _status = ::Open3.capture3(test_command)
stdout, _stderr, _status = Open3.capture3(test_command)

puts "Output padrão:\n#{stdout}"
puts stdout.green
end
21 changes: 21 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ 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).

## [0.2.0] - 2024-08-01

### Removed

- Remove `zeitwerk` gem to load the files in the project.
- Remove `console` gem to print the logs in the console.
- Remove `Lenna` module. Now, the `Lennarb` class is the main class of the project.
- Remove `Middleware` module.
- Remove `CLI` module.
- Remove `Cache` module

### Changed

- Change `Lennarb::Application` class to `Lennarb` class.
- Request class and Response class now are in `Lennarb` class
- Change `Lennarb::Router` class to `Lennarb` class

### Fixed

- Improve performance of the RPS (Requests per second), memory and CPU usage. Now the performance is similar to the [Roda](https://github.com/jeremyevans/roda/tree/master).

## [0.1.7] - 2023-23-12

### Added
Expand Down
6 changes: 2 additions & 4 deletions exe/lenna
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#
require 'lennarb'

# Call the CLI to start the server
# Show the version
#
# @private `Since v0.1`
#
Lenna::Cli::App.run!(ARGV)
puts Lennarb::VERSION
12 changes: 4 additions & 8 deletions gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@
# [https://rubygems.org/gems/colorize]
# Colorize is a Ruby gem used to color text in terminals.
gem 'colorize', '~> 1.1'
# [https://rubygems.org/gems/console]
# Console is a Ruby gem used to create interactive command line applications.
gem 'console', '~> 1.23'
# [htpps://rubygems.org/gems/zeitwerk
# Zeitwerk implements constant autoloading with Ruby semantics.
# Each gem and application may have their own independent autoloader, with its
# own configuration, inflector, and logger.
gem 'zeitwerk', '~> 2.6', '>= 2.6.12'

group :maintenance, optional: true do
# [https://rubygems.org/gems/bake-gem]
Expand Down Expand Up @@ -74,4 +66,8 @@
# its own or as a reusable starting point for Web frameworks and testing
# libraries to build on.
gem 'rack-test', '~> 2.1'
# [https://rubygems.org/gems/rake]
# Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
# specified in standard Ruby syntax. Rake has the following features:
gem 'rake', '~> 13.1'
end
41 changes: 0 additions & 41 deletions lennarb.gemspec

This file was deleted.

53 changes: 0 additions & 53 deletions lib/lenna/application.rb

This file was deleted.

39 changes: 0 additions & 39 deletions lib/lenna/cli/app.rb

This file was deleted.

125 changes: 0 additions & 125 deletions lib/lenna/cli/commands/create_project.rb

This file was deleted.

Loading

0 comments on commit c563c3f

Please sign in to comment.