Skip to content

Commit

Permalink
fix: pin magnus to make builds deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
eliias committed Mar 8, 2024
1 parent e28f1ed commit 605bbaa
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ext/yrb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "yrb"
version = "0.5.4"
version = "0.5.5"
authors = ["Hannes Moser <box@hannesmoser.at>"]
edition = "2021"
homepage = "https://github.com/y-crdt/yrb"
repository = "https://github.com/y-crdt/yrb"

[dependencies]
magnus = "0.6.2"
magnus = "=0.6.2"
thiserror = "1.0.57"
yrs = "=0.17.4"
y-sync = "=0.4.0"
Expand Down
8 changes: 4 additions & 4 deletions ext/yrb/src/yany.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ impl TryInto<Value> for YAny {
Ok(hash.as_value())
}
Any::Null => Ok(value::qnil().as_value()),
Any::Undefined => Ok(Value::from(value::qnil().as_value())),
Any::Undefined => Ok(value::qnil().as_value()),
Any::Bool(v) => Ok(v.into_value()),
Any::Number(v) => Ok(Value::from(v.into_value())),
Any::BigInt(v) => Ok(Value::from(v.into_value())),
Any::String(v) => Ok(RString::from(v.into_r_string()).as_value()),
Any::Number(v) => Ok(v.into_value()),
Any::BigInt(v) => Ok(v.into_value()),
Any::String(v) => Ok(v.into_r_string().as_value()),
Any::Buffer(v) => Ok(RString::from_slice(v.borrow()).as_value()),
};
}
Expand Down
2 changes: 1 addition & 1 deletion ext/yrb/src/yarray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl YArray {
let r_arr = RArray::new();
for item in arr.iter(tx) {
let r_val = YValue::from(item);
let r_val = r_val.0.borrow().clone();
let r_val = *r_val.0.borrow();
r_arr.push(r_val).expect("cannot push item event to array");
}
r_arr
Expand Down
2 changes: 1 addition & 1 deletion ext/yrb/src/ydoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl YDoc {
YXmlText::from(xml_text_ref)
}

pub(crate) fn ydoc_transact<'doc>(&self) -> YTransaction {
pub(crate) fn ydoc_transact(&self) -> YTransaction {
let doc = self.0.borrow();
let transaction = doc.transact_mut();
YTransaction::from(transaction)
Expand Down
2 changes: 1 addition & 1 deletion ext/yrb/src/yvalue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl From<Any> for YValue {
let arr = RArray::new();
for item in v.iter() {
let val = YValue::from(item.clone());
let val = val.0.borrow().clone();
let val = *val.0.borrow();
arr.push(val).expect("cannot push item event to array");
}
YValue::from(arr)
Expand Down
2 changes: 1 addition & 1 deletion ext/yrb/src/yxml_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl YXmlElement {
let values = RArray::new();
for value in v.iter() {
let value = YValue::from(value.clone());
let value = value.0.borrow().clone();
let value = *value.0.borrow();
values.push(value).expect("cannot push value to array");
}

Expand Down
2 changes: 1 addition & 1 deletion lib/y/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Y
VERSION = "0.5.4"
VERSION = "0.5.5"
end

0 comments on commit 605bbaa

Please sign in to comment.