y-rb 0.4.3 → 0.4.5

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: 0f528614fd5944928bb9f7df38fdecf245d10e1d189037b8d09e663ab347c25b
4
- data.tar.gz: fccdb40fed33a10c53e5229b32c2cd374a6717dc7a1882a0fdbf456ee7b2a9cf
3
+ metadata.gz: 83927c49d6611c422184ea193f7957120cc1640b05d95c7adfdb5bd0a067b0c6
4
+ data.tar.gz: 4247cf14a459e9111864f8bb15dc0d59c431d7936da89c6e57f50cc3b6ebe204
5
5
  SHA512:
6
- metadata.gz: fb0e026977197d73ca34a094a79fbbb14ab5fe0d4f6fd03c6f3b63827186997e0da9ba201db251dd1624ecd6beceec21d466e5a456843871d9b47d0e9e570dcf
7
- data.tar.gz: 1f7bed85b0c40a669197195957b5d1afaccb574d0cb856fcad0d823fe955e0afa4b5efb9d9ad93a3bd7c8c13909c4e4fae03190f88145a8cb8d4615354212a8c
6
+ metadata.gz: 26929c25cf3eff821ff685cc30e96979f98cce127b25f3d220465f5d26d90237ce579b13f5ebe949b05ffaac99d8d97026206030c38dfce50cf78363937d5508
7
+ data.tar.gz: 4ef9e699bb5433aa12b5732572f75d620ce021ce3ef5ccf891bfc82d6af7f0c05f2bdc4b176c7aaa19e99900e2dd82e7421de9400ccf3ade8a93fb016b97a11b
data/ext/yrb/Cargo.toml CHANGED
@@ -1,16 +1,16 @@
1
1
  [package]
2
2
  name = "yrb"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  authors = ["Hannes Moser <box@hannesmoser.at>", "Hannes Moser <hmoser@gitlab.com>"]
5
5
  edition = "2021"
6
6
  homepage = "https://github.com/y-crdt/yrb"
7
7
  repository = "https://github.com/y-crdt/yrb"
8
8
 
9
9
  [dependencies]
10
- lib0 = "0.15.0" # must match yrs version
10
+ lib0 = "0.16.1" # must match yrs version
11
11
  magnus = { git = "https://github.com/matsadler/magnus", rev = "ab982c3643421b38f3293f1fe014aa373abfd6dc" }
12
12
  thiserror = "1.0.38"
13
- yrs = "0.15.0"
13
+ yrs = "0.16.1"
14
14
 
15
15
  [dev-dependencies]
16
16
  magnus = { git = "https://github.com/matsadler/magnus", rev = "ab982c3643421b38f3293f1fe014aa373abfd6dc", features = ["embed"] }
@@ -76,7 +76,7 @@ impl YXmlElement {
76
76
  index: u32,
77
77
  content: String,
78
78
  ) -> YXmlText {
79
- let text = XmlTextPrelim(content.as_str());
79
+ let text = XmlTextPrelim::new(content.as_str());
80
80
  let mut tx = transaction.transaction();
81
81
  let tx = tx.as_mut().unwrap();
82
82
 
@@ -204,7 +204,7 @@ impl YXmlElement {
204
204
  let mut tx = transaction.transaction();
205
205
  let tx = tx.as_mut().unwrap();
206
206
 
207
- let text = XmlTextPrelim(content.as_str());
207
+ let text = XmlTextPrelim::new(content.as_str());
208
208
  YXmlText::from(self.0.borrow_mut().push_back(tx, text))
209
209
  }
210
210
  pub(crate) fn yxml_element_push_text_front(
@@ -215,7 +215,7 @@ impl YXmlElement {
215
215
  let mut tx = transaction.transaction();
216
216
  let tx = tx.as_mut().unwrap();
217
217
 
218
- let text = XmlTextPrelim(content.as_str());
218
+ let text = XmlTextPrelim::new(content.as_str());
219
219
  YXmlText::from(self.0.borrow_mut().push_front(tx, text))
220
220
  }
221
221
  pub(crate) fn yxml_element_remove_attribute(&self, transaction: &YTransaction, name: String) {
data/lib/y/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Y
4
- VERSION = "0.4.3"
4
+ VERSION = "0.4.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Moser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-23 00:00:00.000000000 Z
11
+ date: 2023-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: 3.3.21
128
128
  requirements: []
129
- rubygems_version: 3.4.4
129
+ rubygems_version: 3.4.5
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Ruby bindings for yrs