Skip to content

Commit

Permalink
0.10.1: Fix compatibility with anyway_config 1.x on Ruby older than 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Envek committed Aug 30, 2021
1 parent 889ccf1 commit 830363f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/yabeda/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/yabeda/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Yabeda
VERSION = "0.10.0"
VERSION = "0.10.1"
end
2 changes: 1 addition & 1 deletion yabeda.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 830363f

Please sign in to comment.