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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f06116e8fced707775ecdbc580d8b46b7ae6f0a0e2e55042b94785da6765516
4
- data.tar.gz: e6a8acf34ac91161f2b270459a9155bafeed09398c578d08c344051ee173573a
3
+ metadata.gz: 8a880bb5fa3d94fe4e75b8df6bde9d6568b01e4a8bbc1bce9dfabc28c85caf05
4
+ data.tar.gz: 597dcf06957611cfd201a458ed49701df75360eff09e970a4be2c98ff490eb42
5
5
  SHA512:
6
- metadata.gz: bb45227353a4f55e880908a59abf2ca9e8afd1f61eb011eed431bc4a64db4acae033bea610b230691134eceaa981015a6fddac7ba34e83eaaf20f64065431092
7
- data.tar.gz: b35bfce523b71dd05af4f714707e5a13623b95332021dbab705b4bd27703e747324bbfd7051ccdea868415f7048cc6c87c62db1779c09bb04272d83a88dac9eb
6
+ metadata.gz: 45ad44ee92a6a731b1c5306c0169db89a490ce8818dacfb035f781400605a49f0fabf7f5391b91552dfa6c4c5cf2bfbdac3c5028719939061c6b3600217417a6
7
+ data.tar.gz: 2fd98a2a1111bd09b00e53039ae5580bdc0a8bbaf56a04f1a9412efc8cb893c6b0cff8f67413caf80a93a3f5cb5f8ae3889a3f8c9fd3ae60ee71b7775211f136
@@ -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.sync(full_diff) unless full_diff.nil?
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Y
4
4
  module Actioncable
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
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
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-02-06 00:00:00.000000000 Z
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.3
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.3
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.5
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
- */
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Y
4
- module Actioncable
5
- module ApplicationHelper
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Y
4
- module Actioncable
5
- class ApplicationJob < ActiveJob::Base
6
- end
7
- end
8
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Y
4
- module Actioncable
5
- class ApplicationRecord < ActiveRecord::Base
6
- self.abstract_class = true
7
- end
8
- end
9
- end