cable_ready 4.3.0 → 4.4.0.pre0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c64f56b02d7ac814d1909149267d2a10903fa8cc1fd4996af065135ef4fca5a
4
- data.tar.gz: 47d94429d8fba53a4cb3b9f5f105bf53da68830d1d4d512c2cc7e017936ddb1d
3
+ metadata.gz: f9e80c88ee4b5f489f4dae10d4fa4928ec1f2fe122045e079edfb60b67671c17
4
+ data.tar.gz: 1785e8a0e3e44eb48c07c8dd5d78de0e7ccce0de26578d8e1aec0a3145f32376
5
5
  SHA512:
6
- metadata.gz: b5fef3ec938193b59e0ff8c7bd7e1c6737f48ba1e48d467daaeb9839c2ced7aa65304aa35db9519ac07eecb7629c1a58a6b7c614ff404b89fb4725510e9f58d0
7
- data.tar.gz: bb409409c7ad06fbd3a7e46aa8277b030f4e27414b20aaed4cd18c7b21be8440f891ab9cf57570636bea0733220f4a4d1116893ff0044001fa1297943d121deb
6
+ metadata.gz: 99a851b96f1ec3165e690b3c8aba93a1ffb39776092bce8972164912ea65de51e8a0ce91043507ca1750259000afac3f1f099e190537362f5bcd8a859134d9a3
7
+ data.tar.gz: 4cd74f4379d0e71ab516269df9cbd7804d673b77a5229f401c50cde36e2a4bed603db02e15b6487156f8e187510d8ed6dec76ee34691bd7bdb1c9b2b9f8eb595
@@ -0,0 +1,294 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/hopsoft/cable_ready/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0...HEAD)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Add a shared mutex to avoid concurrency issues in Channels [\#65](https://github.com/hopsoft/cable_ready/pull/65) ([barrywoolgar](https://github.com/barrywoolgar))
10
+
11
+ **Closed issues:**
12
+
13
+ - Using morph with a document fragment appears to do a full replace instead of a morph [\#67](https://github.com/hopsoft/cable_ready/issues/67)
14
+ - documentation: Mention cable.yml adapter configuration [\#66](https://github.com/hopsoft/cable_ready/issues/66)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - Provide an async perform method [\#63](https://github.com/hopsoft/cable_ready/pull/63) ([julianrubisch](https://github.com/julianrubisch))
19
+ - Add braces to hash parameter to remove warning [\#61](https://github.com/hopsoft/cable_ready/pull/61) ([dabit](https://github.com/dabit))
20
+ - only pass inner html if childrenOnly is false [\#58](https://github.com/hopsoft/cable_ready/pull/58) ([joshleblanc](https://github.com/joshleblanc))
21
+
22
+ ## [v4.3.0](https://github.com/hopsoft/cable_ready/tree/v4.3.0) (2020-07-02)
23
+
24
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0.pre2...v4.3.0)
25
+
26
+ ## [v4.3.0.pre2](https://github.com/hopsoft/cable_ready/tree/v4.3.0.pre2) (2020-06-27)
27
+
28
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0-pre1...v4.3.0.pre2)
29
+
30
+ **Implemented enhancements:**
31
+
32
+ - Notifications [\#55](https://github.com/hopsoft/cable_ready/pull/55) ([leastbad](https://github.com/leastbad))
33
+
34
+ **Closed issues:**
35
+
36
+ - current\_user concerns? [\#54](https://github.com/hopsoft/cable_ready/issues/54)
37
+ - Update documentation [\#52](https://github.com/hopsoft/cable_ready/issues/52)
38
+
39
+ **Merged pull requests:**
40
+
41
+ - Bump rack from 2.2.2 to 2.2.3 [\#57](https://github.com/hopsoft/cable_ready/pull/57) ([dependabot[bot]](https://github.com/apps/dependabot))
42
+ - Bump actionpack from 6.0.3.1 to 6.0.3.2 [\#56](https://github.com/hopsoft/cable_ready/pull/56) ([dependabot[bot]](https://github.com/apps/dependabot))
43
+
44
+ ## [v4.3.0-pre1](https://github.com/hopsoft/cable_ready/tree/v4.3.0-pre1) (2020-06-15)
45
+
46
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0.pre1...v4.3.0-pre1)
47
+
48
+ ## [v4.3.0.pre1](https://github.com/hopsoft/cable_ready/tree/v4.3.0.pre1) (2020-06-15)
49
+
50
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.3.0.pre0...v4.3.0.pre1)
51
+
52
+ **Merged pull requests:**
53
+
54
+ - text\_content is missing from 4.3.0.pre0 [\#53](https://github.com/hopsoft/cable_ready/pull/53) ([leastbad](https://github.com/leastbad))
55
+
56
+ ## [v4.3.0.pre0](https://github.com/hopsoft/cable_ready/tree/v4.3.0.pre0) (2020-06-13)
57
+
58
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.2.0...v4.3.0.pre0)
59
+
60
+ **Implemented enhancements:**
61
+
62
+ - Make DOMOperations extendable [\#44](https://github.com/hopsoft/cable_ready/pull/44) ([n-rodriguez](https://github.com/n-rodriguez))
63
+ - broadcast\_to method [\#38](https://github.com/hopsoft/cable_ready/pull/38) ([leastbad](https://github.com/leastbad))
64
+
65
+ **Closed issues:**
66
+
67
+ - Make JS DOMOperations extendable [\#43](https://github.com/hopsoft/cable_ready/issues/43)
68
+
69
+ **Merged pull requests:**
70
+
71
+ - Dom id signature fix [\#51](https://github.com/hopsoft/cable_ready/pull/51) ([leastbad](https://github.com/leastbad))
72
+ - add dom\_id helper [\#50](https://github.com/hopsoft/cable_ready/pull/50) ([leastbad](https://github.com/leastbad))
73
+ - Support for multiple CSS classes. [\#49](https://github.com/hopsoft/cable_ready/pull/49) ([sarriagada](https://github.com/sarriagada))
74
+ - Make morph emit after event [\#48](https://github.com/hopsoft/cable_ready/pull/48) ([julianrubisch](https://github.com/julianrubisch))
75
+ - Customize operations via initializer [\#47](https://github.com/hopsoft/cable_ready/pull/47) ([leastbad](https://github.com/leastbad))
76
+ - Correct method 'outerHtml' to 'outer\_html' in documentation [\#39](https://github.com/hopsoft/cable_ready/pull/39) ([pskarlas](https://github.com/pskarlas))
77
+ - Add setStyles [\#37](https://github.com/hopsoft/cable_ready/pull/37) ([excid3](https://github.com/excid3))
78
+ - Fix typo in method name outerHTML -\> outer\_html [\#35](https://github.com/hopsoft/cable_ready/pull/35) ([back2war](https://github.com/back2war))
79
+
80
+ ## [v4.2.0](https://github.com/hopsoft/cable_ready/tree/v4.2.0) (2020-06-02)
81
+
82
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.1.2...v4.2.0)
83
+
84
+ **Closed issues:**
85
+
86
+ - Question: Would you consider this intended behaviour? [\#41](https://github.com/hopsoft/cable_ready/issues/41)
87
+
88
+ **Merged pull requests:**
89
+
90
+ - after-outer-html emitted from new element [\#46](https://github.com/hopsoft/cable_ready/pull/46) ([leastbad](https://github.com/leastbad))
91
+ - Fix `outer\_html` notation [\#45](https://github.com/hopsoft/cable_ready/pull/45) ([julianrubisch](https://github.com/julianrubisch))
92
+ - Print out the selector for easier debugging perform errors [\#36](https://github.com/hopsoft/cable_ready/pull/36) ([excid3](https://github.com/excid3))
93
+ - add set\_property method to library [\#34](https://github.com/hopsoft/cable_ready/pull/34) ([leastbad](https://github.com/leastbad))
94
+
95
+ ## [v4.1.2](https://github.com/hopsoft/cable_ready/tree/v4.1.2) (2020-04-27)
96
+
97
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.1.1...v4.1.2)
98
+
99
+ **Fixed bugs:**
100
+
101
+ - Ensure the active text input retains its value and focus after DOM mutations [\#33](https://github.com/hopsoft/cable_ready/pull/33) ([hopsoft](https://github.com/hopsoft))
102
+
103
+ ## [v4.1.1](https://github.com/hopsoft/cable_ready/tree/v4.1.1) (2020-04-20)
104
+
105
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.1.0...v4.1.1)
106
+
107
+ **Implemented enhancements:**
108
+
109
+ - add set\_style method to library [\#32](https://github.com/hopsoft/cable_ready/pull/32) ([leastbad](https://github.com/leastbad))
110
+
111
+ **Merged pull requests:**
112
+
113
+ - Add funding file [\#31](https://github.com/hopsoft/cable_ready/pull/31) ([andrewmcodes](https://github.com/andrewmcodes))
114
+ - update README and package.json [\#30](https://github.com/hopsoft/cable_ready/pull/30) ([andrewmcodes](https://github.com/andrewmcodes))
115
+
116
+ ## [v4.1.0](https://github.com/hopsoft/cable_ready/tree/v4.1.0) (2020-04-05)
117
+
118
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.9...v4.1.0)
119
+
120
+ **Merged pull requests:**
121
+
122
+ - Bump acorn from 7.1.0 to 7.1.1 in /javascript [\#29](https://github.com/hopsoft/cable_ready/pull/29) ([dependabot[bot]](https://github.com/apps/dependabot))
123
+ - Set cookie support [\#28](https://github.com/hopsoft/cable_ready/pull/28) ([hopsoft](https://github.com/hopsoft))
124
+ - README.md: Fix typo [\#27](https://github.com/hopsoft/cable_ready/pull/27) ([henrik](https://github.com/henrik))
125
+ - Update event-dispatch.md [\#25](https://github.com/hopsoft/cable_ready/pull/25) ([leastbad](https://github.com/leastbad))
126
+ - Fix typo on Remove Css Class methods [\#24](https://github.com/hopsoft/cable_ready/pull/24) ([darkrubyist](https://github.com/darkrubyist))
127
+
128
+ ## [v4.0.9](https://github.com/hopsoft/cable_ready/tree/v4.0.9) (2020-01-27)
129
+
130
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.8...v4.0.9)
131
+
132
+ **Merged pull requests:**
133
+
134
+ - Add support to ignore missing DOM elements via options parameter [\#23](https://github.com/hopsoft/cable_ready/pull/23) ([leastbad](https://github.com/leastbad))
135
+ - fix sporadic error - undefined method \<\< for nil, when adding operation [\#21](https://github.com/hopsoft/cable_ready/pull/21) ([szTheory](https://github.com/szTheory))
136
+
137
+ ## [v4.0.8](https://github.com/hopsoft/cable_ready/tree/v4.0.8) (2019-11-04)
138
+
139
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.7...v4.0.8)
140
+
141
+ **Merged pull requests:**
142
+
143
+ - Simplify logic to make it more understandable [\#20](https://github.com/hopsoft/cable_ready/pull/20) ([hopsoft](https://github.com/hopsoft))
144
+
145
+ ## [v4.0.7](https://github.com/hopsoft/cable_ready/tree/v4.0.7) (2019-10-05)
146
+
147
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.6...v4.0.7)
148
+
149
+ **Merged pull requests:**
150
+
151
+ - Add gh actions [\#17](https://github.com/hopsoft/cable_ready/pull/17) ([andrewmcodes](https://github.com/andrewmcodes))
152
+ - Add Gitbook integration [\#16](https://github.com/hopsoft/cable_ready/pull/16) ([andrewmcodes](https://github.com/andrewmcodes))
153
+
154
+ ## [v4.0.6](https://github.com/hopsoft/cable_ready/tree/v4.0.6) (2019-10-03)
155
+
156
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.5...v4.0.6)
157
+
158
+ **Implemented enhancements:**
159
+
160
+ - Add support for redirect/visit [\#10](https://github.com/hopsoft/cable_ready/issues/10)
161
+
162
+ **Merged pull requests:**
163
+
164
+ - Update to format with prettier-standard [\#15](https://github.com/hopsoft/cable_ready/pull/15) ([hopsoft](https://github.com/hopsoft))
165
+ - Add support for permanent nodes [\#14](https://github.com/hopsoft/cable_ready/pull/14) ([andreaslillebo](https://github.com/andreaslillebo))
166
+
167
+ ## [v4.0.5](https://github.com/hopsoft/cable_ready/tree/v4.0.5) (2019-09-20)
168
+
169
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.4...v4.0.5)
170
+
171
+ **Merged pull requests:**
172
+
173
+ - Hopsoft/bubble [\#13](https://github.com/hopsoft/cable_ready/pull/13) ([hopsoft](https://github.com/hopsoft))
174
+
175
+ ## [v4.0.4](https://github.com/hopsoft/cable_ready/tree/v4.0.4) (2019-09-19)
176
+
177
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.3...v4.0.4)
178
+
179
+ **Merged pull requests:**
180
+
181
+ - Refactor how events are managed [\#12](https://github.com/hopsoft/cable_ready/pull/12) ([hopsoft](https://github.com/hopsoft))
182
+ - Added support for XPath selectors [\#11](https://github.com/hopsoft/cable_ready/pull/11) ([leastbad](https://github.com/leastbad))
183
+
184
+ ## [v4.0.3](https://github.com/hopsoft/cable_ready/tree/v4.0.3) (2019-08-17)
185
+
186
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.2...v4.0.3)
187
+
188
+ ## [v4.0.2](https://github.com/hopsoft/cable_ready/tree/v4.0.2) (2019-08-10)
189
+
190
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.1...v4.0.2)
191
+
192
+ ## [v4.0.1](https://github.com/hopsoft/cable_ready/tree/v4.0.1) (2019-08-10)
193
+
194
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v4.0.0...v4.0.1)
195
+
196
+ **Merged pull requests:**
197
+
198
+ - Merge JavaScript NPM package into this repo [\#9](https://github.com/hopsoft/cable_ready/pull/9) ([hopsoft](https://github.com/hopsoft))
199
+
200
+ ## [v4.0.0](https://github.com/hopsoft/cable_ready/tree/v4.0.0) (2019-08-09)
201
+
202
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v3.0.1...v4.0.0)
203
+
204
+ ## [v3.0.1](https://github.com/hopsoft/cable_ready/tree/v3.0.1) (2019-05-13)
205
+
206
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v3.0.0...v3.0.1)
207
+
208
+ ## [v3.0.0](https://github.com/hopsoft/cable_ready/tree/v3.0.0) (2019-03-25)
209
+
210
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.8...v3.0.0)
211
+
212
+ **Merged pull requests:**
213
+
214
+ - Use outerHTML instead of replace [\#8](https://github.com/hopsoft/cable_ready/pull/8) ([hopsoft](https://github.com/hopsoft))
215
+
216
+ ## [v2.0.8](https://github.com/hopsoft/cable_ready/tree/v2.0.8) (2018-11-25)
217
+
218
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.7...v2.0.8)
219
+
220
+ **Merged pull requests:**
221
+
222
+ - Dispatch before/after events for DOM activity [\#7](https://github.com/hopsoft/cable_ready/pull/7) ([hopsoft](https://github.com/hopsoft))
223
+
224
+ ## [v2.0.7](https://github.com/hopsoft/cable_ready/tree/v2.0.7) (2018-10-26)
225
+
226
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.6...v2.0.7)
227
+
228
+ ## [v2.0.6](https://github.com/hopsoft/cable_ready/tree/v2.0.6) (2018-10-20)
229
+
230
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.5...v2.0.6)
231
+
232
+ ## [v2.0.5](https://github.com/hopsoft/cable_ready/tree/v2.0.5) (2018-10-08)
233
+
234
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.4...v2.0.5)
235
+
236
+ **Merged pull requests:**
237
+
238
+ - Support morph option for childrenOnly [\#6](https://github.com/hopsoft/cable_ready/pull/6) ([hopsoft](https://github.com/hopsoft))
239
+
240
+ ## [v2.0.4](https://github.com/hopsoft/cable_ready/tree/v2.0.4) (2017-11-09)
241
+
242
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.3...v2.0.4)
243
+
244
+ ## [v2.0.3](https://github.com/hopsoft/cable_ready/tree/v2.0.3) (2017-11-06)
245
+
246
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.2...v2.0.3)
247
+
248
+ **Merged pull requests:**
249
+
250
+ - Compress HTML [\#5](https://github.com/hopsoft/cable_ready/pull/5) ([hopsoft](https://github.com/hopsoft))
251
+
252
+ ## [v2.0.2](https://github.com/hopsoft/cable_ready/tree/v2.0.2) (2017-11-03)
253
+
254
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.1...v2.0.2)
255
+
256
+ **Merged pull requests:**
257
+
258
+ - Make morph a first class operation [\#4](https://github.com/hopsoft/cable_ready/pull/4) ([hopsoft](https://github.com/hopsoft))
259
+
260
+ ## [v2.0.1](https://github.com/hopsoft/cable_ready/tree/v2.0.1) (2017-10-15)
261
+
262
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v2.0.0...v2.0.1)
263
+
264
+ ## [v2.0.0](https://github.com/hopsoft/cable_ready/tree/v2.0.0) (2017-10-14)
265
+
266
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v1.1.0...v2.0.0)
267
+
268
+ **Merged pull requests:**
269
+
270
+ - Improved programmatic interface [\#3](https://github.com/hopsoft/cable_ready/pull/3) ([hopsoft](https://github.com/hopsoft))
271
+
272
+ ## [v1.1.0](https://github.com/hopsoft/cable_ready/tree/v1.1.0) (2017-09-24)
273
+
274
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v1.0.0...v1.1.0)
275
+
276
+ **Closed issues:**
277
+
278
+ - FINISH IT!!! [\#1](https://github.com/hopsoft/cable_ready/issues/1)
279
+
280
+ **Merged pull requests:**
281
+
282
+ - Support more DOM operations/mutations [\#2](https://github.com/hopsoft/cable_ready/pull/2) ([hopsoft](https://github.com/hopsoft))
283
+
284
+ ## [v1.0.0](https://github.com/hopsoft/cable_ready/tree/v1.0.0) (2017-09-20)
285
+
286
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/v0.1.0...v1.0.0)
287
+
288
+ ## [v0.1.0](https://github.com/hopsoft/cable_ready/tree/v0.1.0) (2017-05-19)
289
+
290
+ [Full Changelog](https://github.com/hopsoft/cable_ready/compare/e62800f06e2f436fc66de2b9840313ba1de349bc...v0.1.0)
291
+
292
+
293
+
294
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cable_ready (4.3.0)
4
+ cable_ready (4.4.0.pre0)
5
5
  rails (>= 5.2)
6
6
 
7
7
  GEM
@@ -62,19 +62,34 @@ GEM
62
62
  minitest (~> 5.1)
63
63
  tzinfo (~> 1.1)
64
64
  zeitwerk (~> 2.2, >= 2.2.2)
65
+ addressable (2.7.0)
66
+ public_suffix (>= 2.0.2, < 5.0)
65
67
  ast (2.4.1)
66
68
  builder (3.2.4)
67
69
  coderay (1.1.3)
68
- concurrent-ruby (1.1.6)
70
+ concurrent-ruby (1.1.7)
69
71
  crass (1.0.6)
70
72
  erubi (1.9.0)
73
+ faraday (1.0.1)
74
+ multipart-post (>= 1.2, < 3)
75
+ faraday-http-cache (2.2.0)
76
+ faraday (>= 0.8)
77
+ github_changelog_generator (1.15.2)
78
+ activesupport
79
+ faraday-http-cache
80
+ multi_json
81
+ octokit (~> 4.6)
82
+ rainbow (>= 2.2.1)
83
+ rake (>= 10.0)
84
+ retriable (~> 3.0)
71
85
  globalid (0.4.2)
72
86
  activesupport (>= 4.2.0)
73
- i18n (1.8.3)
87
+ i18n (1.8.5)
74
88
  concurrent-ruby (~> 1.0)
75
- loofah (2.6.0)
89
+ loofah (2.7.0)
76
90
  crass (~> 1.0.2)
77
91
  nokogiri (>= 1.5.9)
92
+ magic_frozen_string_literal (1.1.0)
78
93
  mail (2.7.1)
79
94
  mini_mime (>= 0.1.1)
80
95
  marcel (0.3.3)
@@ -83,10 +98,15 @@ GEM
83
98
  mimemagic (0.3.5)
84
99
  mini_mime (1.0.2)
85
100
  mini_portile2 (2.4.0)
86
- minitest (5.14.1)
101
+ minitest (5.14.2)
102
+ multi_json (1.15.0)
103
+ multipart-post (2.1.1)
87
104
  nio4r (2.5.2)
88
- nokogiri (1.10.9)
105
+ nokogiri (1.10.10)
89
106
  mini_portile2 (~> 2.4.0)
107
+ octokit (4.18.0)
108
+ faraday (>= 0.9)
109
+ sawyer (~> 0.8.0, >= 0.5.3)
90
110
  parallel (1.19.2)
91
111
  parser (2.7.1.4)
92
112
  ast (~> 2.4.1)
@@ -95,6 +115,7 @@ GEM
95
115
  method_source (~> 0.9.0)
96
116
  pry-nav (0.3.0)
97
117
  pry (>= 0.9.10, < 0.13.0)
118
+ public_suffix (4.0.5)
98
119
  rack (2.2.3)
99
120
  rack-test (1.1.0)
100
121
  rack (>= 1.0, < 3)
@@ -127,21 +148,25 @@ GEM
127
148
  rainbow (3.0.0)
128
149
  rake (13.0.1)
129
150
  regexp_parser (1.7.1)
151
+ retriable (3.1.2)
130
152
  rexml (3.2.4)
131
- rubocop (0.85.1)
153
+ rubocop (0.89.1)
132
154
  parallel (~> 1.10)
133
- parser (>= 2.7.0.1)
155
+ parser (>= 2.7.1.1)
134
156
  rainbow (>= 2.2.2, < 4.0)
135
157
  regexp_parser (>= 1.7)
136
158
  rexml
137
- rubocop-ast (>= 0.0.3)
159
+ rubocop-ast (>= 0.3.0, < 1.0)
138
160
  ruby-progressbar (~> 1.7)
139
161
  unicode-display_width (>= 1.4.0, < 2.0)
140
- rubocop-ast (0.1.0)
141
- parser (>= 2.7.0.1)
142
- rubocop-performance (1.6.1)
143
- rubocop (>= 0.71.0)
162
+ rubocop-ast (0.3.0)
163
+ parser (>= 2.7.1.4)
164
+ rubocop-performance (1.7.1)
165
+ rubocop (>= 0.82.0)
144
166
  ruby-progressbar (1.10.1)
167
+ sawyer (0.8.2)
168
+ addressable (>= 2.3.5)
169
+ faraday (> 0.8, < 2.0)
145
170
  sprockets (4.0.2)
146
171
  concurrent-ruby (~> 1.0)
147
172
  rack (> 1, < 3)
@@ -149,9 +174,9 @@ GEM
149
174
  actionpack (>= 4.0)
150
175
  activesupport (>= 4.0)
151
176
  sprockets (>= 3.0.0)
152
- standard (0.4.7)
153
- rubocop (~> 0.85.0)
154
- rubocop-performance (~> 1.6.0)
177
+ standard (0.5.2)
178
+ rubocop (~> 0.89.1)
179
+ rubocop-performance (~> 1.7.1)
155
180
  standardrb (1.0.0)
156
181
  standard
157
182
  thor (1.0.1)
@@ -159,16 +184,18 @@ GEM
159
184
  tzinfo (1.2.7)
160
185
  thread_safe (~> 0.1)
161
186
  unicode-display_width (1.7.0)
162
- websocket-driver (0.7.2)
187
+ websocket-driver (0.7.3)
163
188
  websocket-extensions (>= 0.1.0)
164
189
  websocket-extensions (0.1.5)
165
- zeitwerk (2.3.0)
190
+ zeitwerk (2.4.0)
166
191
 
167
192
  PLATFORMS
168
193
  ruby
169
194
 
170
195
  DEPENDENCIES
171
196
  cable_ready!
197
+ github_changelog_generator
198
+ magic_frozen_string_literal
172
199
  pry
173
200
  pry-nav
174
201
  rake
data/Rakefile CHANGED
@@ -1,9 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
+ require "github_changelog_generator/task"
4
5
 
5
6
  task default: [:test]
6
7
 
7
8
  task :test do
8
9
  puts "Please write some tests..."
9
10
  end
11
+
12
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
13
+ config.user = "hopsoft"
14
+ config.project = "cable_ready"
15
+ end
@@ -14,8 +14,10 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.add_dependency "rails", ">= 5.2"
16
16
 
17
- gem.add_development_dependency "rake"
18
- gem.add_development_dependency "standardrb"
17
+ gem.add_development_dependency "github_changelog_generator"
18
+ gem.add_development_dependency "magic_frozen_string_literal"
19
19
  gem.add_development_dependency "pry"
20
20
  gem.add_development_dependency "pry-nav"
21
+ gem.add_development_dependency "rake"
22
+ gem.add_development_dependency "standardrb"
21
23
  end
@@ -16,14 +16,14 @@ module CableReady
16
16
  def broadcast(clear)
17
17
  operations.select! { |_, list| list.present? }
18
18
  operations.deep_transform_keys! { |key| key.to_s.camelize(:lower) }
19
- ActionCable.server.broadcast identifier, "cableReady" => true, "operations" => operations
19
+ ActionCable.server.broadcast identifier, {"cableReady" => true, "operations" => operations}
20
20
  reset if clear
21
21
  end
22
22
 
23
23
  def broadcast_to(model, clear)
24
24
  operations.select! { |_, list| list.present? }
25
25
  operations.deep_transform_keys! { |key| key.to_s.camelize(:lower) }
26
- identifier.broadcast_to model, "cableReady" => true, "operations" => operations
26
+ identifier.broadcast_to model, {"cableReady" => true, "operations" => operations}
27
27
  reset if clear
28
28
  end
29
29
 
@@ -49,23 +49,33 @@ module CableReady
49
49
  end
50
50
 
51
51
  def broadcast(*identifiers, clear: true)
52
- @channels.values
53
- .reject { |channel| identifiers.any? && identifiers.exclude?(channel.identifier) }
54
- .select { |channel| channel.identifier.is_a?(String) }
55
- .tap do |channels|
56
- channels.each { |channel| @channels[channel.identifier].broadcast(clear) }
57
- channels.each { |channel| @channels.except!(channel.identifier) if clear }
58
- end
52
+ mutex.synchronize do
53
+ @channels.values
54
+ .reject { |channel| identifiers.any? && identifiers.exclude?(channel.identifier) }
55
+ .select { |channel| channel.identifier.is_a?(String) }
56
+ .tap do |channels|
57
+ channels.each { |channel| @channels[channel.identifier].broadcast(clear) }
58
+ channels.each { |channel| @channels.except!(channel.identifier) if clear }
59
+ end
60
+ end
59
61
  end
60
62
 
61
63
  def broadcast_to(model, *identifiers, clear: true)
62
- @channels.values
63
- .reject { |channel| identifiers.any? && identifiers.exclude?(channel.identifier) }
64
- .reject { |channel| channel.identifier.is_a?(String) }
65
- .tap do |channels|
66
- channels.each { |channel| @channels[channel.identifier].broadcast_to(model, clear) }
67
- channels.each { |channel| @channels.except!(channel.identifier) if clear }
68
- end
64
+ mutex.synchronize do
65
+ @channels.values
66
+ .reject { |channel| identifiers.any? && identifiers.exclude?(channel.identifier) }
67
+ .reject { |channel| channel.identifier.is_a?(String) }
68
+ .tap do |channels|
69
+ channels.each { |channel| @channels[channel.identifier].broadcast_to(model, clear) }
70
+ channels.each { |channel| @channels.except!(channel.identifier) if clear }
71
+ end
72
+ end
73
+ end
74
+
75
+ private
76
+
77
+ def mutex
78
+ @mutex ||= Mutex.new
69
79
  end
70
80
  end
71
81
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CableReady
4
- VERSION = "4.3.0"
4
+ VERSION = "4.4.0.pre0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cable_ready
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.4.0.pre0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: github_changelog_generator
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: standardrb
42
+ name: magic_frozen_string_literal
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: standardrb
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description:
84
112
  email:
85
113
  - natehop@gmail.com
@@ -87,6 +115,7 @@ executables: []
87
115
  extensions: []
88
116
  extra_rdoc_files: []
89
117
  files:
118
+ - CHANGELOG.md
90
119
  - CODE_OF_CONDUCT.md
91
120
  - Gemfile
92
121
  - Gemfile.lock
@@ -119,9 +148,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
148
  version: '0'
120
149
  required_rubygems_version: !ruby/object:Gem::Requirement
121
150
  requirements:
122
- - - ">="
151
+ - - ">"
123
152
  - !ruby/object:Gem::Version
124
- version: '0'
153
+ version: 1.3.1
125
154
  requirements: []
126
155
  rubygems_version: 3.0.3
127
156
  signing_key: