lwtarantool 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/ext/lwtarantool/conn.c +3 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fb2ff30931855ceee93840bc340989c2a815e761cb361a541ad8c5f3b88b544c
|
4
|
+
data.tar.gz: d14688fcc98e650bd73ede194f170fa94f5fa007a5faa68cf2eb3a23a88f8c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 782895ed97367f055c9b2e5bba9de852ecd9eecf87c2cb2d192e3fd860e780d1778a3cd05dae10a3a4330844a9ee94c64837a9aab9b2b3d937a41a175e76c4d2
|
7
|
+
data.tar.gz: 5752748d7b539a92a044661cf23332a3247e4b719af94235f2a06d2cfa589c4c52369266df7633cb172ee477c2f13aa901e9fba44bf1c9b64bcf15e55075ab56
|
data/ext/lwtarantool/conn.c
CHANGED
@@ -214,6 +214,8 @@ lwt_conn_initialize(VALUE self, VALUE args) {
|
|
214
214
|
if (tnt_set(conn->tnt, TNT_OPT_URI, url) != 0)
|
215
215
|
rb_raise(rb_eArgError, "invalid url value");
|
216
216
|
|
217
|
+
rb_iv_set(self, "@url", val);
|
218
|
+
|
217
219
|
lwt_conn_connect(self);
|
218
220
|
|
219
221
|
return Qnil;
|
@@ -368,6 +370,7 @@ void init_conn() {
|
|
368
370
|
rb_const_set( lwt_Class, rb_intern("TNT_EBADVAL"), rb_uint2inum(TNT_EBADVAL));
|
369
371
|
rb_const_set( lwt_Class, rb_intern("TNT_ELOGIN"), rb_uint2inum(TNT_ELOGIN));
|
370
372
|
|
373
|
+
rb_define_attr(cClass, "url", 1, 0);
|
371
374
|
rb_define_alloc_func(cClass, lwt_conn_alloc);
|
372
375
|
rb_define_method(cClass, "initialize", lwt_conn_initialize, 1);
|
373
376
|
rb_define_private_method(cClass, "_connect", lwt_conn_connect, 0);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lwtarantool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Golovko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.7.6.2
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Lightweight Tarantool client
|