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.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/ext/lwtarantool/conn.c +3 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 840c16fb6c833ca1e15ac1bf0fa66ffe6cac3e8f
4
- data.tar.gz: 179d4af7160d0c4d4313444da922832c93ef70c9
2
+ SHA256:
3
+ metadata.gz: fb2ff30931855ceee93840bc340989c2a815e761cb361a541ad8c5f3b88b544c
4
+ data.tar.gz: d14688fcc98e650bd73ede194f170fa94f5fa007a5faa68cf2eb3a23a88f8c0c
5
5
  SHA512:
6
- metadata.gz: f194dcb042b4c5c2e3c27a1e70087f6fcf634802976575436e78042b0e637337d4079ad9cab298bc377c3604ef26084097dd5cbbf3b436319557742e2e9f49ed
7
- data.tar.gz: 699ee21bcc77d952efa4bbbd4abe31c3268ef61c04ae2cd1f62030b6b56dc7a74843d121e25566e96bff38e98a2dd1de7c4a07b091b4e329ffcba5a269710328
6
+ metadata.gz: 782895ed97367f055c9b2e5bba9de852ecd9eecf87c2cb2d192e3fd860e780d1778a3cd05dae10a3a4330844a9ee94c64837a9aab9b2b3d937a41a175e76c4d2
7
+ data.tar.gz: 5752748d7b539a92a044661cf23332a3247e4b719af94235f2a06d2cfa589c4c52369266df7633cb172ee477c2f13aa901e9fba44bf1c9b64bcf15e55075ab56
@@ -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
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-06-05 00:00:00.000000000 Z
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.5.2.1
159
+ rubygems_version: 2.7.6.2
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Lightweight Tarantool client