y-rb_actioncable 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/y/actioncable/sync.rb +3 -2
- data/lib/y/actioncable/version.rb +1 -1
- metadata +5 -10
- data/app/assets/config/yrb_actioncable_manifest.js +0 -1
- data/app/assets/stylesheets/yrb/actioncable/application.css +0 -15
- data/app/helpers/yrb/actioncable/application_helper.rb +0 -8
- data/app/jobs/yrb/actioncable/application_job.rb +0 -8
- data/app/models/yrb/actioncable/application_record.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a880bb5fa3d94fe4e75b8df6bde9d6568b01e4a8bbc1bce9dfabc28c85caf05
|
4
|
+
data.tar.gz: 597dcf06957611cfd201a458ed49701df75360eff09e970a4be2c98ff490eb42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45ad44ee92a6a731b1c5306c0169db89a490ce8818dacfb035f781400605a49f0fabf7f5391b91552dfa6c4c5cf2bfbdac3c5028719939061c6b3600217417a6
|
7
|
+
data.tar.gz: 2fd98a2a1111bd09b00e53039ae5580bdc0a8bbaf56a04f1a9412efc8cb893c6b0cff8f67413caf80a93a3f5cb5f8ae3889a3f8c9fd3ae60ee71b7775211f136
|
data/lib/y/actioncable/sync.rb
CHANGED
@@ -220,8 +220,9 @@ module Y
|
|
220
220
|
def load(&block)
|
221
221
|
full_diff = nil
|
222
222
|
full_diff = yield(canonical_channel_key) if block
|
223
|
-
doc
|
224
|
-
doc
|
223
|
+
@doc ||= Y::Doc.new
|
224
|
+
@doc.sync(full_diff) unless full_diff.nil?
|
225
|
+
@doc
|
225
226
|
end
|
226
227
|
|
227
228
|
# Persist the current document state to an external store.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: y-rb_actioncable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannes Moser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.4.
|
33
|
+
version: 0.4.5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.4.
|
40
|
+
version: 0.4.5
|
41
41
|
description: An ActionCable companion for Y.js clients.
|
42
42
|
email:
|
43
43
|
- box@hannesmoser.at
|
@@ -47,11 +47,6 @@ extra_rdoc_files: []
|
|
47
47
|
files:
|
48
48
|
- README.md
|
49
49
|
- Rakefile
|
50
|
-
- app/assets/config/yrb_actioncable_manifest.js
|
51
|
-
- app/assets/stylesheets/yrb/actioncable/application.css
|
52
|
-
- app/helpers/yrb/actioncable/application_helper.rb
|
53
|
-
- app/jobs/yrb/actioncable/application_job.rb
|
54
|
-
- app/models/yrb/actioncable/application_record.rb
|
55
50
|
- lib/tasks/yrb/actioncable_tasks.rake
|
56
51
|
- lib/y-rb_actioncable.rb
|
57
52
|
- lib/y/actioncable.rb
|
@@ -96,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
91
|
- !ruby/object:Gem::Version
|
97
92
|
version: '0'
|
98
93
|
requirements: []
|
99
|
-
rubygems_version: 3.4.
|
94
|
+
rubygems_version: 3.4.12
|
100
95
|
signing_key:
|
101
96
|
specification_version: 4
|
102
97
|
summary: An ActionCable companion for Y.js clients.
|
@@ -1 +0,0 @@
|
|
1
|
-
//= link_directory ../stylesheets/yrb/actioncable .css
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|