y-rb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rustfmt.toml +0 -1
- data/Cargo.toml +3 -4
- data/docs/release.md +9 -0
- data/lib/y/doc.rb +4 -1
- data/lib/y/version.rb +1 -1
- data/src/lib.rs +39 -39
- data/src/util.rs +4 -6
- data/src/yarray.rs +1 -1
- data/src/ydoc.rs +8 -2
- data/src/ymap.rs +1 -1
- data/src/ytext.rs +2 -2
- data/src/ytransaction.rs +2 -1
- data/src/yxml.rs +2 -2
- data/y-rb.gemspec +44 -0
- metadata +4 -5
- data/Cross.toml +0 -4
- data/docs/build.md +0 -1
- data/lib/y_rb.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 816615480d692a2f998ac5d420e4d64ee578a5d351a556ca9e3cf7f93ffaf83f
|
4
|
+
data.tar.gz: dc86328ef38d28fd5320e5ccec4f437e56c0efe8be1e9d5ecd1a74f41eb74df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34a045a974e65d8418c76beb9dafdab4c7adb21e48bdd5404b5191480bb62499b5a080b2bae51219b75445caf24bfa1e292576aec833f9f51832c66beae2b3e7
|
7
|
+
data.tar.gz: fb0fc2e505c889bfb38a15acbdea44dc18c947f19887e453a993973b5ae523a8dac7dd94605b777b9a10da18350614734ec43f6fe877485c75247d3206c40935
|
data/.rustfmt.toml
CHANGED
data/Cargo.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "y-rb"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.2"
|
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"
|
@@ -9,9 +9,8 @@ repository = "https://github.com/y-crdt/yrb"
|
|
9
9
|
[dependencies]
|
10
10
|
lazy_static = "1.4.0"
|
11
11
|
rutie = "0.8.4"
|
12
|
-
yrs = "0.
|
13
|
-
lib0 = "0.
|
14
|
-
cross = "0.2.1" # https://github.com/cross-rs/cross/issues/615
|
12
|
+
yrs = "0.10.1"
|
13
|
+
lib0 = "0.10.1" # must match yrs version
|
15
14
|
|
16
15
|
[lib]
|
17
16
|
name = "y_rb"
|
data/docs/release.md
ADDED
data/lib/y/doc.rb
CHANGED
@@ -16,6 +16,9 @@ module Y
|
|
16
16
|
# remote_map = remote.get_map("my_map")
|
17
17
|
# pp remote_map.to_h #=> {hello: "world"}
|
18
18
|
class Doc
|
19
|
+
ZERO_STATE = [0].freeze
|
20
|
+
private_constant :ZERO_STATE
|
21
|
+
|
19
22
|
# Commit current transaction
|
20
23
|
#
|
21
24
|
# This is a convenience method that invokes {Y::Transaction#commit} on the
|
@@ -42,7 +45,7 @@ module Y
|
|
42
45
|
#
|
43
46
|
# @param [::Array<Int>] state The state to create the diff against
|
44
47
|
# @return [::Array<Int>] Binary encoded diff
|
45
|
-
def diff(state)
|
48
|
+
def diff(state = ZERO_STATE)
|
46
49
|
ydoc_encode_diff_v1(state)
|
47
50
|
end
|
48
51
|
|
data/lib/y/version.rb
CHANGED
data/src/lib.rs
CHANGED
@@ -23,7 +23,7 @@ pub extern "C" fn Init_yrb() {
|
|
23
23
|
klass.def_private("yarray_insert", yarray::yarray_insert);
|
24
24
|
klass.def_private(
|
25
25
|
"yarray_insert_range",
|
26
|
-
yarray::yarray_insert_range
|
26
|
+
yarray::yarray_insert_range
|
27
27
|
);
|
28
28
|
klass.def_private("yarray_length", yarray::yarray_length);
|
29
29
|
klass.def_private("yarray_observe", yarray::yarray_observe);
|
@@ -32,7 +32,7 @@ pub extern "C" fn Init_yrb() {
|
|
32
32
|
klass.def_private("yarray_remove", yarray::yarray_remove);
|
33
33
|
klass.def_private(
|
34
34
|
"yarray_remove_range",
|
35
|
-
yarray::yarray_remove_range
|
35
|
+
yarray::yarray_remove_range
|
36
36
|
);
|
37
37
|
klass.def_private("yarray_to_a", yarray::yarray_to_a);
|
38
38
|
klass.def_private("yarray_unobserve", yarray::yarray_unobserve);
|
@@ -66,11 +66,11 @@ pub extern "C" fn Init_yrb() {
|
|
66
66
|
klass.def_private("ytext_insert_embed", ytext::ytext_insert_embed);
|
67
67
|
klass.def_private(
|
68
68
|
"ytext_insert_embed_with_attrs",
|
69
|
-
ytext::ytext_insert_embed_with_attributes
|
69
|
+
ytext::ytext_insert_embed_with_attributes
|
70
70
|
);
|
71
71
|
klass.def_private(
|
72
72
|
"ytext_insert_with_attrs",
|
73
|
-
ytext::ytext_insert_with_attributes
|
73
|
+
ytext::ytext_insert_with_attributes
|
74
74
|
);
|
75
75
|
klass.def_private("ytext_remove_range", ytext::ytext_remove_range);
|
76
76
|
klass.def_private("ytext_format", ytext::ytext_format);
|
@@ -86,35 +86,35 @@ pub extern "C" fn Init_yrb() {
|
|
86
86
|
.define(|klass| {
|
87
87
|
klass.def_private(
|
88
88
|
"ytransaction_apply_update",
|
89
|
-
ytransaction::ytransaction_apply_update
|
89
|
+
ytransaction::ytransaction_apply_update
|
90
90
|
);
|
91
91
|
klass.def_private(
|
92
92
|
"ytransaction_commit",
|
93
|
-
ytransaction::ytransaction_commit
|
93
|
+
ytransaction::ytransaction_commit
|
94
94
|
);
|
95
95
|
klass.def_private(
|
96
96
|
"ytransaction_get_array",
|
97
|
-
ytransaction::ytransaction_get_array
|
97
|
+
ytransaction::ytransaction_get_array
|
98
98
|
);
|
99
99
|
klass.def_private(
|
100
100
|
"ytransaction_get_map",
|
101
|
-
ytransaction::ytransaction_get_map
|
101
|
+
ytransaction::ytransaction_get_map
|
102
102
|
);
|
103
103
|
klass.def_private(
|
104
104
|
"ytransaction_get_text",
|
105
|
-
ytransaction::ytransaction_get_text
|
105
|
+
ytransaction::ytransaction_get_text
|
106
106
|
);
|
107
107
|
klass.def_private(
|
108
108
|
"ytransaction_get_xml_element",
|
109
|
-
ytransaction::ytransaction_get_xml_element
|
109
|
+
ytransaction::ytransaction_get_xml_element
|
110
110
|
);
|
111
111
|
klass.def_private(
|
112
112
|
"ytransaction_get_xml_text",
|
113
|
-
ytransaction::ytransaction_get_xml_text
|
113
|
+
ytransaction::ytransaction_get_xml_text
|
114
114
|
);
|
115
115
|
klass.def_private(
|
116
116
|
"ytransaction_state_vector",
|
117
|
-
ytransaction::ytransaction_state_vector
|
117
|
+
ytransaction::ytransaction_state_vector
|
118
118
|
);
|
119
119
|
});
|
120
120
|
|
@@ -123,123 +123,123 @@ pub extern "C" fn Init_yrb() {
|
|
123
123
|
.define(|klass| {
|
124
124
|
klass.def_private(
|
125
125
|
"yxml_element_attributes",
|
126
|
-
yxml::yxml_element_attributes
|
126
|
+
yxml::yxml_element_attributes
|
127
127
|
);
|
128
128
|
klass.def_private(
|
129
129
|
"yxml_element_first_child",
|
130
|
-
yxml::yxml_element_first_child
|
130
|
+
yxml::yxml_element_first_child
|
131
131
|
);
|
132
132
|
klass.def_private("yxml_element_get", yxml::yxml_element_get);
|
133
133
|
klass.def_private(
|
134
134
|
"yxml_element_get_attribute",
|
135
|
-
yxml::yxml_element_get_attribute
|
135
|
+
yxml::yxml_element_get_attribute
|
136
136
|
);
|
137
137
|
klass.def_private(
|
138
138
|
"yxml_element_insert_attribute",
|
139
|
-
yxml::yxml_element_insert_attribute
|
139
|
+
yxml::yxml_element_insert_attribute
|
140
140
|
);
|
141
141
|
klass.def_private(
|
142
142
|
"yxml_element_insert_element",
|
143
|
-
yxml::yxml_element_insert_element
|
143
|
+
yxml::yxml_element_insert_element
|
144
144
|
);
|
145
145
|
klass.def_private(
|
146
146
|
"yxml_element_insert_text",
|
147
|
-
yxml::yxml_element_insert_text
|
147
|
+
yxml::yxml_element_insert_text
|
148
148
|
);
|
149
149
|
klass.def_private(
|
150
150
|
"yxml_element_next_sibling",
|
151
|
-
yxml::yxml_element_next_sibling
|
151
|
+
yxml::yxml_element_next_sibling
|
152
152
|
);
|
153
153
|
klass.def_private(
|
154
154
|
"yxml_element_observe",
|
155
|
-
yxml::yxml_element_observe
|
155
|
+
yxml::yxml_element_observe
|
156
156
|
);
|
157
157
|
klass.def_private(
|
158
158
|
"yxml_element_parent",
|
159
|
-
yxml::yxml_element_parent
|
159
|
+
yxml::yxml_element_parent
|
160
160
|
);
|
161
161
|
klass.def_private(
|
162
162
|
"yxml_element_prev_sibling",
|
163
|
-
yxml::yxml_element_prev_sibling
|
163
|
+
yxml::yxml_element_prev_sibling
|
164
164
|
);
|
165
165
|
klass.def_private(
|
166
166
|
"yxml_element_push_elem_back",
|
167
|
-
yxml::yxml_element_push_elem_back
|
167
|
+
yxml::yxml_element_push_elem_back
|
168
168
|
);
|
169
169
|
klass.def_private(
|
170
170
|
"yxml_element_push_elem_front",
|
171
|
-
yxml::yxml_element_push_elem_front
|
171
|
+
yxml::yxml_element_push_elem_front
|
172
172
|
);
|
173
173
|
klass.def_private(
|
174
174
|
"yxml_element_push_text_back",
|
175
|
-
yxml::yxml_element_push_text_back
|
175
|
+
yxml::yxml_element_push_text_back
|
176
176
|
);
|
177
177
|
klass.def_private(
|
178
178
|
"yxml_element_push_text_front",
|
179
|
-
yxml::yxml_element_push_text_front
|
179
|
+
yxml::yxml_element_push_text_front
|
180
180
|
);
|
181
181
|
klass.def_private(
|
182
182
|
"yxml_element_remove_attribute",
|
183
|
-
yxml::yxml_element_remove_attribute
|
183
|
+
yxml::yxml_element_remove_attribute
|
184
184
|
);
|
185
185
|
klass.def_private(
|
186
186
|
"yxml_element_remove_range",
|
187
|
-
yxml::yxml_element_remove_range
|
187
|
+
yxml::yxml_element_remove_range
|
188
188
|
);
|
189
189
|
klass.def_private("yxml_element_size", yxml::yxml_element_size);
|
190
190
|
klass.def_private("yxml_element_tag", yxml::yxml_element_tag);
|
191
191
|
klass.def_private(
|
192
192
|
"yxml_element_to_s",
|
193
|
-
yxml::yxml_element_to_string
|
193
|
+
yxml::yxml_element_to_string
|
194
194
|
);
|
195
195
|
klass.def_private(
|
196
196
|
"yxml_element_unobserve",
|
197
|
-
yxml::yxml_element_unobserve
|
197
|
+
yxml::yxml_element_unobserve
|
198
198
|
);
|
199
199
|
});
|
200
200
|
|
201
201
|
module.define_nested_class("XMLText", None).define(|klass| {
|
202
202
|
klass.def_private(
|
203
203
|
"yxml_text_attributes",
|
204
|
-
yxml::yxml_text_attributes
|
204
|
+
yxml::yxml_text_attributes
|
205
205
|
);
|
206
206
|
klass.def_private("yxml_text_format", yxml::yxml_text_format);
|
207
207
|
klass.def_private(
|
208
208
|
"yxml_text_get_attribute",
|
209
|
-
yxml::yxml_text_get_attribute
|
209
|
+
yxml::yxml_text_get_attribute
|
210
210
|
);
|
211
211
|
klass.def_private("yxml_text_insert", yxml::yxml_text_insert);
|
212
212
|
klass.def_private(
|
213
213
|
"yxml_text_insert_attribute",
|
214
|
-
yxml::yxml_text_insert_attribute
|
214
|
+
yxml::yxml_text_insert_attribute
|
215
215
|
);
|
216
216
|
klass.def_private(
|
217
217
|
"yxml_text_insert_embed",
|
218
|
-
yxml::yxml_text_insert_embed
|
218
|
+
yxml::yxml_text_insert_embed
|
219
219
|
);
|
220
220
|
klass.def_private(
|
221
221
|
"yxml_text_insert_embed_with_attrs",
|
222
|
-
yxml::yxml_text_insert_embed_with_attributes
|
222
|
+
yxml::yxml_text_insert_embed_with_attributes
|
223
223
|
);
|
224
224
|
klass.def_private(
|
225
225
|
"yxml_text_insert_with_attrs",
|
226
|
-
yxml::yxml_text_insert_with_attributes
|
226
|
+
yxml::yxml_text_insert_with_attributes
|
227
227
|
);
|
228
228
|
klass.def_private("yxml_text_length", yxml::yxml_text_length);
|
229
229
|
klass.def_private(
|
230
230
|
"yxml_text_next_sibling",
|
231
|
-
yxml::yxml_text_next_sibling
|
231
|
+
yxml::yxml_text_next_sibling
|
232
232
|
);
|
233
233
|
klass.def_private("yxml_text_observe", yxml::yxml_text_observe);
|
234
234
|
klass.def_private("yxml_text_parent", yxml::yxml_text_parent);
|
235
235
|
klass.def_private(
|
236
236
|
"yxml_text_prev_sibling",
|
237
|
-
yxml::yxml_text_prev_sibling
|
237
|
+
yxml::yxml_text_prev_sibling
|
238
238
|
);
|
239
239
|
klass.def_private("yxml_text_push", yxml::yxml_text_push);
|
240
240
|
klass.def_private(
|
241
241
|
"yxml_text_remove_range",
|
242
|
-
yxml::yxml_text_remove_range
|
242
|
+
yxml::yxml_text_remove_range
|
243
243
|
);
|
244
244
|
klass.def_private("yxml_text_to_s", yxml::yxml_text_to_string);
|
245
245
|
klass.def_private("yxml_text_unobserve", yxml::yxml_text_unobserve);
|
data/src/util.rs
CHANGED
@@ -4,7 +4,7 @@ use crate::yxml::{XML_ELEMENT_WRAPPER, XML_TEXT_WRAPPER};
|
|
4
4
|
use lib0::any::Any;
|
5
5
|
use rutie::{
|
6
6
|
AnyException, AnyObject, Array, Boolean, Exception, Fixnum, Float, Hash,
|
7
|
-
Integer, Module, NilClass, Object, RString, Symbol
|
7
|
+
Integer, Module, NilClass, Object, RString, Symbol
|
8
8
|
};
|
9
9
|
use std::borrow::Borrow;
|
10
10
|
use std::collections::HashMap;
|
@@ -49,14 +49,12 @@ pub(crate) fn map_any_type_to_ruby(input: &Any) -> AnyObject {
|
|
49
49
|
let key = Symbol::new(k.as_ref());
|
50
50
|
let val = map_any_type_to_ruby(v);
|
51
51
|
h.store(key, val);
|
52
|
-
()
|
53
52
|
});
|
54
53
|
h.to_any_object()
|
55
54
|
}
|
56
55
|
}
|
57
56
|
}
|
58
57
|
|
59
|
-
// This function gets reported as unused.
|
60
58
|
pub(crate) fn map_yrs_value_to_ruby(value: Value) -> AnyObject {
|
61
59
|
match value {
|
62
60
|
Value::Any(v) => map_any_type_to_ruby(v.borrow()),
|
@@ -75,12 +73,12 @@ pub(crate) fn map_yrs_value_to_ruby(value: Value) -> AnyObject {
|
|
75
73
|
.wrap_data(x, &*XML_ELEMENT_WRAPPER),
|
76
74
|
Value::YXmlText(x) => Module::from_existing("Y")
|
77
75
|
.get_nested_class("XMLText")
|
78
|
-
.wrap_data(x, &*XML_TEXT_WRAPPER)
|
76
|
+
.wrap_data(x, &*XML_TEXT_WRAPPER)
|
79
77
|
}
|
80
78
|
}
|
81
79
|
|
82
80
|
pub(crate) fn map_ruby_type_to_rust(
|
83
|
-
input: AnyObject
|
81
|
+
input: AnyObject
|
84
82
|
) -> Result<Any, AnyException> {
|
85
83
|
if let Ok(_v) = input.try_convert_to::<NilClass>() {
|
86
84
|
return Ok(Any::Null);
|
@@ -107,7 +105,7 @@ pub(crate) fn map_ruby_type_to_rust(
|
|
107
105
|
|
108
106
|
Err(AnyException::new(
|
109
107
|
"TypeError",
|
110
|
-
Some("cannot map input type")
|
108
|
+
Some("cannot map input type")
|
111
109
|
))
|
112
110
|
}
|
113
111
|
|
data/src/yarray.rs
CHANGED
@@ -2,7 +2,7 @@ use crate::util::{map_ruby_type_to_rust, map_yrs_value_to_ruby};
|
|
2
2
|
use crate::ytransaction::{YTransaction, TRANSACTION_WRAPPER};
|
3
3
|
use rutie::{
|
4
4
|
AnyObject, Array as RArray, Fixnum, Hash, Integer, NilClass, Object, Proc,
|
5
|
-
Symbol, VM
|
5
|
+
Symbol, VM
|
6
6
|
};
|
7
7
|
use yrs::types::{Change, Value};
|
8
8
|
use yrs::{Array, SubscriptionId};
|
data/src/ydoc.rs
CHANGED
@@ -26,10 +26,16 @@ methods!(
|
|
26
26
|
let mut doc: &Doc = rtself.get_data_mut(&*DOC_WRAPPER);
|
27
27
|
let state_vector_encoded: Vec<u8> =
|
28
28
|
convert_array_to_vecu8(state_vector.unwrap());
|
29
|
-
let sv = &StateVector::decode_v1(state_vector_encoded.as_slice());
|
30
29
|
|
31
|
-
let
|
30
|
+
let result = &StateVector::decode_v1(state_vector_encoded.as_slice());
|
31
|
+
let sv = match result {
|
32
|
+
Ok(sv) => sv,
|
33
|
+
Err(error) => {
|
34
|
+
panic!("decoding the state vector failed: {:?}", error)
|
35
|
+
}
|
36
|
+
};
|
32
37
|
|
38
|
+
let update = doc.encode_state_as_update_v1(sv);
|
33
39
|
convert_vecu8_to_array(update)
|
34
40
|
}
|
35
41
|
);
|
data/src/ymap.rs
CHANGED
@@ -3,7 +3,7 @@ use crate::ytransaction::{YTransaction, TRANSACTION_WRAPPER};
|
|
3
3
|
use lib0::any::Any;
|
4
4
|
use rutie::{
|
5
5
|
AnyObject, Array, Boolean, Class, Fixnum, Hash, Integer, NilClass, Object,
|
6
|
-
Proc, RString, Symbol, VM
|
6
|
+
Proc, RString, Symbol, VM
|
7
7
|
};
|
8
8
|
use std::rc::Rc;
|
9
9
|
use yrs::types::EntryChange;
|
data/src/ytext.rs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
use crate::util::{
|
2
2
|
map_attrs_to_hash, map_hash_to_attrs, map_ruby_type_to_rust,
|
3
|
-
map_yrs_value_to_ruby
|
3
|
+
map_yrs_value_to_ruby
|
4
4
|
};
|
5
5
|
use crate::ytransaction::{YTransaction, TRANSACTION_WRAPPER};
|
6
6
|
use rutie::{
|
7
7
|
AnyObject, Fixnum, Hash, Integer, NilClass, Object, Proc, RString, Symbol,
|
8
|
-
VM
|
8
|
+
VM
|
9
9
|
};
|
10
10
|
use yrs::types::Delta;
|
11
11
|
use yrs::{SubscriptionId, Text};
|
data/src/ytransaction.rs
CHANGED
@@ -31,7 +31,8 @@ methods!(
|
|
31
31
|
let u = convert_array_to_vecu8(update.unwrap());
|
32
32
|
|
33
33
|
let transaction = rtself.get_data_mut(&*TRANSACTION_WRAPPER);
|
34
|
-
|
34
|
+
let update = Update::decode_v1(u.as_slice()).unwrap();
|
35
|
+
transaction.apply_update(update);
|
35
36
|
|
36
37
|
NilClass::new()
|
37
38
|
},
|
data/src/yxml.rs
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
use crate::util::{
|
2
2
|
map_attrs_to_hash, map_hash_to_attrs, map_ruby_type_to_rust,
|
3
|
-
map_yrs_value_to_ruby
|
3
|
+
map_yrs_value_to_ruby
|
4
4
|
};
|
5
5
|
use crate::ytransaction::{YTransaction, TRANSACTION_WRAPPER};
|
6
6
|
use rutie::{
|
7
7
|
AnyObject, Array as RArray, Fixnum, Hash, Integer, Module, NilClass,
|
8
|
-
Object, Proc, RString, Symbol, VM
|
8
|
+
Object, Proc, RString, Symbol, VM
|
9
9
|
};
|
10
10
|
use yrs::types::xml::Attributes;
|
11
11
|
use yrs::types::{Change, Delta};
|
data/y-rb.gemspec
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/y/version"
|
4
|
+
|
5
|
+
# rubocop:disable Metrics/BlockLength
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "y-rb"
|
8
|
+
spec.version = Y::VERSION
|
9
|
+
spec.authors = ["Hannes Moser"]
|
10
|
+
spec.email = %w[hmoser@gitlab.com box@hannesmoser.at]
|
11
|
+
|
12
|
+
spec.summary = "Ruby bindings for yrs"
|
13
|
+
spec.description = "Ruby bindings for yrs. Yrs \"wires\" is a Rust port of the Yjs framework."
|
14
|
+
spec.homepage = "https://github.com/y-crdt/yrb"
|
15
|
+
spec.license = "MIT"
|
16
|
+
spec.required_ruby_version = ">= 2.6.0"
|
17
|
+
|
18
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
19
|
+
|
20
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
21
|
+
spec.metadata["source_code_uri"] = "https://github.com/y-crdt/yrb"
|
22
|
+
spec.metadata["documentation_uri"] = "https://y-crdt.github.io/yrb/"
|
23
|
+
|
24
|
+
# Specify which files should be added to the gem when it is released.
|
25
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
28
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
spec.bindir = "exe"
|
33
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
34
|
+
spec.require_paths = ["lib"]
|
35
|
+
|
36
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
37
|
+
|
38
|
+
spec.add_dependency "rake", "~> 13.0"
|
39
|
+
spec.add_dependency "rutie", "~> 0.0.4"
|
40
|
+
spec.add_dependency "thermite", "~> 0"
|
41
|
+
|
42
|
+
spec.extensions << "ext/Rakefile"
|
43
|
+
end
|
44
|
+
# rubocop:enable Metrics/BlockLength
|
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.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hannes Moser
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -68,7 +68,6 @@ files:
|
|
68
68
|
- ".rustfmt.toml"
|
69
69
|
- ".yardopts"
|
70
70
|
- Cargo.toml
|
71
|
-
- Cross.toml
|
72
71
|
- Gemfile
|
73
72
|
- Gemfile.lock
|
74
73
|
- LICENSE.txt
|
@@ -76,9 +75,9 @@ files:
|
|
76
75
|
- Rakefile
|
77
76
|
- bin/console
|
78
77
|
- bin/setup
|
79
|
-
- docs/build.md
|
80
78
|
- docs/decisions.md
|
81
79
|
- docs/examples.md
|
80
|
+
- docs/release.md
|
82
81
|
- ext/Rakefile
|
83
82
|
- lib/y.rb
|
84
83
|
- lib/y/array.rb
|
@@ -89,7 +88,6 @@ files:
|
|
89
88
|
- lib/y/transaction.rb
|
90
89
|
- lib/y/version.rb
|
91
90
|
- lib/y/xml.rb
|
92
|
-
- lib/y_rb.so
|
93
91
|
- src/lib.rs
|
94
92
|
- src/util.rs
|
95
93
|
- src/yarray.rs
|
@@ -98,6 +96,7 @@ files:
|
|
98
96
|
- src/ytext.rs
|
99
97
|
- src/ytransaction.rs
|
100
98
|
- src/yxml.rs
|
99
|
+
- y-rb.gemspec
|
101
100
|
homepage: https://github.com/y-crdt/yrb
|
102
101
|
licenses:
|
103
102
|
- MIT
|
data/Cross.toml
DELETED
data/docs/build.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# Build Instructions
|
data/lib/y_rb.so
DELETED
Binary file
|