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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 858cced771705265b92895f5664740fbecb5f44bca6b6b38cd6ddac41684bd69
4
- data.tar.gz: 1fe46e27b62494098002264d26b336c66bcdedcec313071fc7f8936addbd75bb
3
+ metadata.gz: 4ed53afa86df4184943e0306fd4e7814b4438b5238c9692ef47d051327e23ef7
4
+ data.tar.gz: 0ab43c0c7a4012408ea8c927035c3c5d18ebaa5c3356044446f118f0eecd3e8e
5
5
  SHA512:
6
- metadata.gz: 36768095891c650a4298a443e3ddd5abde1973b6e196fd6643d68572b700dfcd3376b01525b76804f40457f8cac66019ec416f98bbc45a92420a5fa0f9cf841d
7
- data.tar.gz: 37a55e12822c01000b361a95b97bc9d22a46c8c822d1210c77cb93c5dab1c7af36daab48cfa94c4fc7c9d54ba6b07006b6c980dd890c87a0a474795ba7e40ddf
6
+ metadata.gz: ba3173ed20ba424014252893e0586ebd18d3419086a4a158e9dfbaafac55b4934ce9b76d5f991f25bbb3020d109704a33c6198402692b474fcef6a9912e80bc2
7
+ data.tar.gz: a752700f419f71476565fa911f49ddfb8383315033acfb046848ddccc27584bef7c9efe11dfb79fb2aeac7b0aaed4063a4e24471071bb1afb4e31a036ca01ed9
@@ -20,20 +20,12 @@ module ApplicationCable
20
20
  transmit action: "set", value: value
21
21
  end
22
22
 
23
- def update changes
24
- transmit action: "update", changes: changes
23
+ def merge value
24
+ transmit action: "merge", value: value
25
25
  end
26
26
 
27
- def update_by_id_in key, id, changes
28
- transmit action: "update_by_id_in", key: key, id: id, changes: changes
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
 
@@ -1,3 +1,3 @@
1
1
  module Livestores
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
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: 0.1.0
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: 2024-07-16 00:00:00.000000000 Z
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.11
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