livestores 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/livestores/channel.rb +4 -12
- data/lib/livestores/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ed53afa86df4184943e0306fd4e7814b4438b5238c9692ef47d051327e23ef7
|
4
|
+
data.tar.gz: 0ab43c0c7a4012408ea8c927035c3c5d18ebaa5c3356044446f118f0eecd3e8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3173ed20ba424014252893e0586ebd18d3419086a4a158e9dfbaafac55b4934ce9b76d5f991f25bbb3020d109704a33c6198402692b474fcef6a9912e80bc2
|
7
|
+
data.tar.gz: a752700f419f71476565fa911f49ddfb8383315033acfb046848ddccc27584bef7c9efe11dfb79fb2aeac7b0aaed4063a4e24471071bb1afb4e31a036ca01ed9
|
data/lib/livestores/channel.rb
CHANGED
@@ -20,20 +20,12 @@ module ApplicationCable
|
|
20
20
|
transmit action: "set", value: value
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
24
|
-
transmit action: "
|
23
|
+
def merge value
|
24
|
+
transmit action: "merge", value: value
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
28
|
-
transmit action: "
|
29
|
-
end
|
30
|
-
|
31
|
-
def append_to key, value
|
32
|
-
transmit action: "append_to", value: value, key: key
|
33
|
-
end
|
34
|
-
|
35
|
-
def append value
|
36
|
-
transmit action: "append", value: value
|
27
|
+
def upsert value, key = 'id'
|
28
|
+
transmit action: "upsert", key: key, value: value
|
37
29
|
end
|
38
30
|
end
|
39
31
|
|
data/lib/livestores/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livestores
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Buhrmester
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
|
-
rubygems_version: 3.5.
|
61
|
+
rubygems_version: 3.5.18
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: Push data into Svelte stores from Rails
|