dry-events 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3004460342bf022f6f7e6b62f4b7d5b97882f216afe182aa7c18b832b6fa7a48
4
- data.tar.gz: 4f74a7772c2349e148776e0f47f3016c143249793459e9049f543c5cf2c7a429
3
+ metadata.gz: 983fa384a773f8ee0d4fe85e39498d7835181e3b078db4b6b8468570073af308
4
+ data.tar.gz: 0c6eb00bf412b71a82c532bb8cc6676b8653d6c22481865530bcacae98aa1768
5
5
  SHA512:
6
- metadata.gz: fe4f87790cf0ba23499dbd9f46ec0e2bf1b5d6521fda001db03b71b0659bc647e97f0d414e6f82088bc7589c7f7fc8f17749c3d49ac3b50748b8159bad2a54ce
7
- data.tar.gz: 6c8641f674be30503f66e6dde6f220386608a9ca76250f14cbd94ec52cc795d18bc099875ba46d1bc773011f483dcb14011293b462bda23b884e00054c36edbd
6
+ metadata.gz: 7956480989534c8f40eaa40f7346e9579e85ee9b8ec42b8a1b3e779a5800bbd31ab6634825ac2da4f9dca8820995242376d2bab3bec6208251ee50f9d06d352d
7
+ data.tar.gz: aef2606682398f69a76b958c395354f51f5c93a5c03a7dd0b47e4473d7484109c8c9f330be8f9b544634efa606cc56b906d706f8dc08a5e27a63ed2f171b236b
data/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  ## 1.0.0 2022-11-04
4
4
 
5
5
 
6
+ ### Fixed
7
+
8
+ - Make listeners hash thread-safe (via #16) (@mensfeld)
9
+
10
+ ### Changed
11
+
12
+ - This version is compatible with recently released dry-rb dependencies (@flash-gordon)
13
+ - Bumped version to 1.0.0 (@solnic)
14
+
15
+ [Compare v1.0.0...v1.0.0](https://github.com/dry-rb/dry-events/compare/v1.0.0...v1.0.0)
16
+
17
+ ## 1.0.0 2022-11-04
18
+
19
+
20
+ ### Fixed
21
+
22
+ - Make listeners hash thread-safe (via #16) (@mensfeld)
23
+
6
24
  ### Changed
7
25
 
8
26
  - This version is compatible with recently released dry-rb dependencies (@flash-gordon)
@@ -6,6 +6,8 @@ module Dry
6
6
  module Events
7
7
  include Dry::Core::Constants
8
8
 
9
- LISTENERS_HASH = Concurrent::Map.new { |h, k| h[k] = [] }
9
+ LISTENERS_HASH = Concurrent::Map.new do |h, k|
10
+ h.compute_if_absent(k) { [] }
11
+ end
10
12
  end
11
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dry
4
4
  module Events
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-events
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-04 00:00:00.000000000 Z
11
+ date: 2022-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby