wisper 3.0.0.rc1 → 3.0.0

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: 051745d94baf4c2ba328de627fde2f5bea42ed5081e2c830520b5ee33bef9c28
4
- data.tar.gz: b069da8aa786e36d2fe0f51f90030295a9a918f5b8733341515e5c93dca92d7b
3
+ metadata.gz: fe67380b4dbc61eaff6f7b72db390e4e01f1c6d9f56ee953c70f44a9944afb5e
4
+ data.tar.gz: 3e9268db0672c5e36d89000d4cf45cf067b33270361537c2237bd3dce30ba1ef
5
5
  SHA512:
6
- metadata.gz: 4c84a5d089a16c2588a3cf2d1c83100ff5bc0a7db191c63e47251a4c7e3c8214ddca68a6f2a06e4b155077f88fb3f78e94537c4fe4e0fd68c5ff72cad929a66c
7
- data.tar.gz: 628455d61676ea7618979695ef6a5babe5654db083162f3c5db9aa5dd833b4ff351b4e27f23730b19b7fb07fb4c440fc51857147657657bde941b37465164a91
6
+ metadata.gz: 5dae128d3bc107b9a50e334791469e767d7441cfeb33fd1b3c88185ce7611f013e520f53a57a26f75ecfcd58fc9416391f3a4bc381ac9483eb776b277afbb6f4
7
+ data.tar.gz: f70b9bc73b992b32a6b81fc9421ee8c8e6d1350c2f5e8b76cfbfabc278ef517ee0d3daab23aab006b38bc8587a13195e794697dbb198f55fe47fafb3a20d657a
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- ��1��eA �%SzcW�E7�^���G����S�؁`�|���M��B�9s7! ���\e
2
- ;tb��������0�t��?Ň{ �Ƹ
3
- �)��W+t_G��7ƞ�&���f�N*;���؟��/ �Ѳu8h�g���
1
+ �&P��F��G�IZ= ����N���iy
2
+ �~Q�$H���Q��ks-����
3
+ ����޵q| >}�����hbZ�<uu ��6���hG�#�;i;��D���xWM.�U���K��!�d���6/��rH?/��kV/�^r���+�FfHM!!n�
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## HEAD (unreleased)
2
2
 
3
+ ## 3.0.0 (23rd May 2024)
4
+
5
+ Authors: maboelnour, kianmeng
6
+
7
+ * docs: fix typos and example code
8
+
3
9
  ## 3.0.0.rc1 (6th July 2023)
4
10
 
5
11
  Authors: Keith Bennett, doits, jstoks, merringtion, thirunjuguna
@@ -60,7 +66,7 @@ Authors: Kris Leech
60
66
  Authors: Kris Leech
61
67
 
62
68
  * feature: allow events to be published asynchronously
63
- * feature: broadcasting of events is plugable and configurable
69
+ * feature: broadcasting of events is pluggable and configurable
64
70
  * feature: broadcasters can be aliased via a symbol
65
71
  * feature: logging broadcaster
66
72
 
data/CONTRIBUTING.md CHANGED
@@ -10,7 +10,7 @@ and contributors are expected to adhere to the
10
10
 
11
11
  Please first check the existing [Issues](https://github.com/krisleech/wisper/issues)
12
12
  and [Pull Requests](https://github.com/krisleech/wisper/pulls) to ensure your
13
- issue has not already been discused.
13
+ issue has not already been discussed.
14
14
 
15
15
  ## Bugs
16
16
 
@@ -20,7 +20,7 @@ and Ruby you are using and a small code sample (or better yet a failing test).
20
20
  ## Features
21
21
 
22
22
  Please open an issue with your proposed feature. We can discuss the feature and
23
- if it is acceptable we can also discuss implimentation details. You will in
23
+ if it is acceptable we can also discuss implementation details. You will in
24
24
  most cases have to submit a PR which adds the feature.
25
25
 
26
26
  Wisper is a micro library and will remain lean. Some features would be most
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  * Connect objects based on context without permanence
13
13
  * Publish events synchronously or asynchronously
14
14
 
15
- Note: Wisper was originally extracted from a Rails codebase but is not dependant on Rails.
15
+ Note: Wisper was originally extracted from a Rails codebase but is not dependent on Rails.
16
16
 
17
17
  Please also see the [Wiki](https://github.com/krisleech/wisper/wiki) for more additional information and articles.
18
18
 
@@ -202,6 +202,8 @@ In a Rails app you might want to add your global listeners in an initializer lik
202
202
  ```ruby
203
203
  # config/initializers/listeners.rb
204
204
  Rails.application.reloader.to_prepare do
205
+ Wisper.clear if Rails.env.development?
206
+
205
207
  Wisper.subscribe(MyListener.new)
206
208
  end
207
209
  ```
@@ -1,3 +1,3 @@
1
1
  module Wisper
2
- VERSION = "3.0.0.rc1"
2
+ VERSION = "3.0.0"
3
3
  end
@@ -114,19 +114,19 @@ describe Wisper::Publisher do
114
114
  let(:listener_2) { double('Listener') }
115
115
 
116
116
  it 'scopes listener to given class' do
117
- expect(listener_1).to receive(:it_happended)
118
- expect(listener_2).not_to receive(:it_happended)
117
+ expect(listener_1).to receive(:it_happened)
118
+ expect(listener_2).not_to receive(:it_happened)
119
119
  publisher.subscribe(listener_1, :scope => publisher.class)
120
120
  publisher.subscribe(listener_2, :scope => Class.new)
121
- publisher.send(:broadcast, 'it_happended')
121
+ publisher.send(:broadcast, 'it_happened')
122
122
  end
123
123
 
124
124
  it 'scopes listener to given class string' do
125
- expect(listener_1).to receive(:it_happended)
126
- expect(listener_2).not_to receive(:it_happended)
125
+ expect(listener_1).to receive(:it_happened)
126
+ expect(listener_2).not_to receive(:it_happened)
127
127
  publisher.subscribe(listener_1, :scope => publisher.class.to_s)
128
128
  publisher.subscribe(listener_2, :scope => Class.new.to_s)
129
- publisher.send(:broadcast, 'it_happended')
129
+ publisher.send(:broadcast, 'it_happened')
130
130
  end
131
131
 
132
132
  it 'includes all subclasses of given class' do
@@ -134,12 +134,12 @@ describe Wisper::Publisher do
134
134
  publisher_sub_klass = Class.new(publisher_super_klass)
135
135
 
136
136
  listener = double('Listener')
137
- expect(listener).to receive(:it_happended).once
137
+ expect(listener).to receive(:it_happened).once
138
138
 
139
139
  publisher = publisher_sub_klass.new
140
140
 
141
141
  publisher.subscribe(listener, :scope => publisher_super_klass)
142
- publisher.send(:broadcast, 'it_happended')
142
+ publisher.send(:broadcast, 'it_happened')
143
143
  end
144
144
  end
145
145
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wisper
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Leech
@@ -28,7 +28,7 @@ cert_chain:
28
28
  tiGTXMVCk/fOTj04HvFZi/P11KUmQ6HsevziemEgQOnG2lCp+BkyNN0Y4XVW/mno
29
29
  x7Y=
30
30
  -----END CERTIFICATE-----
31
- date: 2023-07-06 00:00:00.000000000 Z
31
+ date: 2024-05-23 00:00:00.000000000 Z
32
32
  dependencies: []
33
33
  description: |2
34
34
  A micro library providing objects with Publish-Subscribe capabilities.
@@ -92,11 +92,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '2.7'
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ">"
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
- version: 1.3.1
97
+ version: '0'
98
98
  requirements: []
99
- rubygems_version: 3.3.26
99
+ rubygems_version: 3.4.10
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: A micro library providing objects with Publish-Subscribe capabilities
metadata.gz.sig CHANGED
Binary file