Skip to content

v0.11.0

Compare
Choose a tag to compare
@clajiness clajiness released this 10 Jan 03:11
· 9 commits to main since this release

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 the Service::Counter class, covering initialization and various methods.
  • spec/service/helpers_spec.rb: Added comprehensive RSpec tests for the Service::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: Refactored set_required_attempts method to improve readability and ensure @required_attempts is always set. Removed the unused reset_all method. [1] [2]
  • service/helpers.rb: Refactored parse_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 the natpmpc command requirement.

Dependency Update:

  • Gemfile: Added the rspec gem to the dependencies to support the new tests.

Full Changelog: v0.10.2...v0.11.0