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