dry-events 0.4.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: 9f63e13681ddc16b48063d8ccbbf9b134fed50d351ac7bef19fe6e31b17d2df8
4
- data.tar.gz: e1a22779ae49b59a04bc65ffb9ff1d53d49b066a9f06a4b9b487cea36f4b7c22
3
+ metadata.gz: 983fa384a773f8ee0d4fe85e39498d7835181e3b078db4b6b8468570073af308
4
+ data.tar.gz: 0c6eb00bf412b71a82c532bb8cc6676b8653d6c22481865530bcacae98aa1768
5
5
  SHA512:
6
- metadata.gz: 3d42a5f782d005c813929877e729f607cb1089164607a4a496806c265159b1746bf3aa6554c769bddfde3fd40eb019dad3744eb60b670a58bcf3598dd480041e
7
- data.tar.gz: 824f3bc90447b278138a1421988ec8cb6fb92f7851c0c9021f56309e895600233b222e79ffc223a25b46ed2e22a0a47f245653d917ae9ffbc7686f78151fb25c
6
+ metadata.gz: 7956480989534c8f40eaa40f7346e9579e85ee9b8ec42b8a1b3e779a5800bbd31ab6634825ac2da4f9dca8820995242376d2bab3bec6208251ee50f9d06d352d
7
+ data.tar.gz: aef2606682398f69a76b958c395354f51f5c93a5c03a7dd0b47e4473d7484109c8c9f330be8f9b544634efa606cc56b906d706f8dc08a5e27a63ed2f171b236b
data/CHANGELOG.md CHANGED
@@ -1,14 +1,45 @@
1
1
  <!--- DO NOT EDIT THIS FILE - IT'S AUTOMATICALLY GENERATED VIA DEVTOOLS --->
2
2
 
3
- ## unreleased
3
+ ## 1.0.0 2022-11-04
4
+
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
+
24
+ ### Changed
25
+
26
+ - This version is compatible with recently released dry-rb dependencies (@flash-gordon)
27
+ - Bumped version to 1.0.0 (@solnic)
28
+
29
+ [Compare v0.4.0...v1.0.0](https://github.com/dry-rb/dry-events/compare/v0.4.0...v1.0.0)
30
+
31
+ ## 0.4.0 2022-10-15
4
32
 
5
33
 
6
34
  ### Fixed
7
35
 
8
36
  - `subscribed?` now detects instance method blocks too (via #15) (@guilherme-andrade)
9
37
 
38
+ ### Changed
39
+
40
+ - Use zeitwerk for auto-loading (@flash-gordon)
10
41
 
11
- [Compare v0.3.0...master](https://github.com/dry-rb/dry-events/compare/v0.3.0...master)
42
+ [Compare v0.3.0...v0.4.0](https://github.com/dry-rb/dry-events/compare/v0.3.0...v0.4.0)
12
43
 
13
44
  ## 0.3.0 2021-04-11
14
45
 
data/dry-events.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  # to update dependencies edit project.yml
32
32
  spec.add_runtime_dependency "concurrent-ruby", "~> 1.0"
33
- spec.add_runtime_dependency "dry-core", "~> 0.9", ">= 0.9"
33
+ spec.add_runtime_dependency "dry-core", "~> 1.0", "< 2"
34
34
 
35
35
  spec.add_development_dependency "bundler"
36
36
  spec.add_development_dependency "rake"
@@ -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 = "0.4.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: 0.4.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-10-15 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
@@ -30,20 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
34
- - - ">="
33
+ version: '1.0'
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '0.9'
36
+ version: '2'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '0.9'
44
- - - ">="
43
+ version: '1.0'
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.9'
46
+ version: '2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement