diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a06566..5d8247f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Unreleased +## 0.10.1 - 2021-08-30 + +### Fixed + +- Compatibility with anyway_config 1.x gem (which is automatically used on older Rubies, older then minimal Ruby 2.5 for anyway_config 2.x) + ## 0.10.0 - 2021-07-21 ### Added diff --git a/lib/yabeda/config.rb b/lib/yabeda/config.rb index 5c0faed..5f744cf 100644 --- a/lib/yabeda/config.rb +++ b/lib/yabeda/config.rb @@ -9,5 +9,8 @@ class Config < ::Anyway::Config # Declare and collect metrics about Yabeda performance attr_config debug: false + + # Implement predicate method from AnywayConfig 2.x to support AnywayConfig 1.x users + alias debug? debug unless instance_methods.include?(:debug?) end end diff --git a/lib/yabeda/version.rb b/lib/yabeda/version.rb index febcc8e..824e40a 100644 --- a/lib/yabeda/version.rb +++ b/lib/yabeda/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Yabeda - VERSION = "0.10.0" + VERSION = "0.10.1" end diff --git a/yabeda.gemspec b/yabeda.gemspec index 91e5693..0eaa770 100644 --- a/yabeda.gemspec +++ b/yabeda.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_dependency "anyway_config", ">= 1.3", "< 3" + spec.add_dependency "anyway_config", ">= 1.0", "< 3" spec.add_dependency "concurrent-ruby" spec.add_dependency "dry-initializer"