Releases: clajiness/qbop
v0.11.3
This release includes several updates to the qbop
project, focusing on version upgrades and logging improvements. The most important changes include updating the base image in the Dockerfile
, upgrading gem versions in the Gemfile
, and refining log messages in the main script.
Version upgrades:
Dockerfile
: Updated the base image fromruby:3.4-slim
toruby:3.4.1-slim
.Gemfile
: Upgraded thelogger
gem to version1.6.5
and therubocop
gem to version1.70
.
Logging improvements:
qbop.rb
: Enhanced the log message in the loop to include the script version.qbop.rb
: Refined the log message for the forwarded port returned by Proton.
Full Changelog: v0.11.2...v0.11.3
v0.11.1
This release includes a change to the service/counter.rb
file to simplify and improve the set_required_attempts
method. The most important change involves consolidating the conversion and validation of the attempts
parameter to ensure it is properly handled.
Simplification and improvement:
service/counter.rb
: Modified theset_required_attempts
method to combine the conversion ofattempts
to an integer and its validation into a single conditional statement, ensuring@required_attempts
is set only whenattempts
is between 1 and 10.
Full Changelog: v0.11.0...v0.11.1
v0.11.0
This release includes several improvements and additions to the testing framework, as well as some code refactoring and documentation updates. The most important changes include the addition of RSpec tests for the Service::Counter
and Service::Helpers
classes, the initialization of RSpec configuration, and some refactoring to improve code clarity.
https://github.com/clajiness/qbop/pkgs/container/qbop
Testing Framework Enhancements:
spec/service/counter_spec.rb
: Added comprehensive RSpec tests for theService::Counter
class, covering initialization and various methods.spec/service/helpers_spec.rb
: Added comprehensive RSpec tests for theService::Helpers
class, covering environment variables and helper methods..rspec
: Added--require spec_helper
to ensure the spec helper is loaded for all tests.spec/spec_helper.rb
: Initialized RSpec configuration with recommended settings and options for a better testing experience.
Code Refactoring:
service/counter.rb
: Refactoredset_required_attempts
method to improve readability and ensure@required_attempts
is always set. Removed the unusedreset_all
method. [1] [2]service/helpers.rb
: Refactoredparse_loop_frequency
method to provide a default value of 45 if the input is invalid.
Documentation Update:
README.md
: Simplified the installation instructions by removing redundant information about thenatpmpc
command requirement.
Dependency Update:
Gemfile
: Added therspec
gem to the dependencies to support the new tests.
Full Changelog: v0.10.2...v0.11.0
v0.10.2
This release introduces several important changes to the CI/CD workflow, Docker setup, and configuration management for the qbop
project. The changes include adding a GitHub Actions workflow for Docker publishing, updating the Dockerfile
to handle versioning, and modifying the way the version is managed within the application.
CI/CD Workflow:
- Added a new GitHub Actions workflow
.github/workflows/docker-publish.yml
to automate Docker image building and publishing based on tags and pull request events.
Docker Setup:
- Updated the
Dockerfile
to include anARG
andENV
for the version, allowing the version to be passed as a build argument.
Configuration Management:
- Modified
qbop.rb
to use the version from environment variables instead of reading from a file, and adjusted the loop frequency setup. - Updated
service/helpers.rb
to includescript_version
in the environment variables and removed theversion
method. [1] [2] - Removed the
version.yml
file as it is no longer needed for version management.
Full Changelog: v0.9.5...v0.10.2
v0.9.5
This release includes updates to the documentation, code refactoring, and minor grammatical fixes.
Full Changelog: v0.9.3...v0.9.5
v0.9.3
What's Changed
- V0.9 by @clajiness in #10
Full Changelog: v0.8.0...v0.9.3
This release includes several changes to improve the functionality and configuration of the qbop
project. The most important changes include updating the Dockerfile, enhancing the configuration options for Docker Compose, and refactoring the code to use a new Counter
class for tracking attempts.
Dockerfile Update:
- Updated the base image from
ruby:3.3.6-slim
toruby:3.4-slim
in theDockerfile
.
Configuration Enhancements:
- Updated the environment variables section in the
README.md
to reflect new configuration options and improved descriptions. - Added the
REQUIRED_ATTEMPTS
environment variable to thedocker-compose.yml
file for configuring the number of attempts before updating OPNsense and qBit.
Code Refactoring:
- Introduced a new
Counter
class inservice/counter.rb
to track the number of attempts to change the port in OPNsense and qBit, and refactoredqbop.rb
to use this new class. [1] [2] - Added helper methods in
service/helpers.rb
for parsing loop frequency and checking if qBit should be skipped. [1] [2]
Minor Fixes:
- Removed redundant URL prefixes in
service/opnsense.rb
andservice/qbit.rb
to simplify the code. [1] [2] [3] [4] - Updated the version number in
version.yml
from0.8.0
to0.9.3
.
v0.8.0
v0.7.0
What's Changed
- V0.6 by @clajiness in #8
- Replaced Net:HTTP with Faraday to help clean up code base
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- V0.6 by @clajiness in #7
- Removed native installation instructions and associated files. From v0.6.0 and onward, this tool will only be container-based. That said, the code is easily cloned and ran locally or just fork it and do what you want.
Full Changelog: v0.5.2...v0.6.0
v0.5.2
What's Changed
- fixed logic bug in qbit if statement by @clajiness in #6
Full Changelog: v0.5.1...v0.5.2