Skip to content

Commit

Permalink
Merge pull request #11 from Kaligo/bugfix/add-back-activesupport
Browse files Browse the repository at this point in the history
Revert failed removal of ActiveSupport#class_attribute
  • Loading branch information
Drenmi authored Mar 26, 2021
2 parents 9a2164c + 997b47c commit 7242baf
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions lib/stimpack/event_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions lib/stimpack/result_monad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/stimpack/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Stimpack
VERSION = "0.5.5"
VERSION = "0.5.6"
end

0 comments on commit 7242baf

Please sign in to comment.