diff --git a/CHANGELOG.md b/CHANGELOG.md index deabfd3..20914df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.5.6 + +### Bug fixes + +- Add back dependency on `ActiveSupport#class_attribute` which was dropped + prematurely. + ## 0.5.5 ### New features diff --git a/lib/stimpack/event_source.rb b/lib/stimpack/event_source.rb index b75f932..12c1772 100644 --- a/lib/stimpack/event_source.rb +++ b/lib/stimpack/event_source.rb @@ -38,11 +38,11 @@ module ClassMethods # def self.extended(klass) klass.class_eval do - @event_listeners = Hash.new { |h, k| h[k] = [] } - - class << self - attr_reader :event_listeners - end + # TODO: Remove dependency on ActiveSupport. + # + class_attribute :event_listeners, + instance_accessor: false, + default: Hash.new { |h, k| h[k] = [] } end end diff --git a/lib/stimpack/result_monad.rb b/lib/stimpack/result_monad.rb index c9ca5e2..cc93e3b 100644 --- a/lib/stimpack/result_monad.rb +++ b/lib/stimpack/result_monad.rb @@ -51,11 +51,11 @@ module ClassMethods # def self.extended(klass) klass.class_eval do - @callbacks = Hash.new { |h, k| h[k] = [] } - - class << self - attr_reader :callbacks - end + # TODO: Remove dependency on ActiveSupport. + # + class_attribute :callbacks, + instance_accessor: false, + default: Hash.new { |h, k| h[k] = [] } end end diff --git a/lib/stimpack/version.rb b/lib/stimpack/version.rb index fcb31f3..d698a01 100644 --- a/lib/stimpack/version.rb +++ b/lib/stimpack/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Stimpack - VERSION = "0.5.5" + VERSION = "0.5.6" end