cubrid 10.1.0 → 10.2.0

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 (4) hide show
  1. checksums.yaml +7 -7
  2. data/README.rdoc +12 -12
  3. data/ext/stmt.c +19 -19
  4. metadata +29 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- data.tar.gz: 45c8d580728c2b8fd878e6dffc96898ef99e7950
4
- metadata.gz: 652b2d966b756120b7e8ac3c8e9c2884227f4c32
5
- SHA512:
6
- data.tar.gz: 298d7d57f3d33937247d05a2e4fc07f62e5e0ab22487083466fe3958430210a7965baa813ba2919db94ba577efea73b6d71eca4f3f2b168cdc8bf1a45d162740
7
- metadata.gz: c0aede34b7995c1f2107c8ccb8b528b280466fe7dd491c9a42f14c2c5ac4b811e1da5a187071e322381246a1c4f9c82dcef66e710cd1d6d4cf160387a1217893
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a9030c6369d1b93d74df4d64544939edeb198afbd4898b8e2bbe8dcfa561a27a
4
+ data.tar.gz: 2319d6bbcb0108df0052d4a0e34e0143a3f8828aa620fc97b2a8e6c2b870f738
5
+ SHA512:
6
+ metadata.gz: f8ef93e548fec6eb912d694f4f920d4600fe45edd5df8b2fcdd3e1183a3bcdf34768285a16ac281c75893adb9736c66d8ed8b395b26c58b65cbd3744bba5549f
7
+ data.tar.gz: 5bee714e084e1a9fa931934705fa50a9ea1a5ea3405508d05ca4af780d46b8dfeaab9a2d995f8dfb2a9273f686edacee35d7ec3bf145c23c68fb5d9e20c09c99
@@ -2,31 +2,31 @@
2
2
 
3
3
  == Description
4
4
 
5
- This is a Ruby Driver and ActiveRecord Adapter for CUBRID Database.
5
+ This is a Ruby Driver and ActiveRecord Adapter for CUBRID Database.
6
+ The latest version of CUBRID Ruby driver can be found at:
7
+
8
+ http://ftp.cubrid.org/CUBRID_Drivers/Ruby_Driver/
9
+
6
10
 
7
11
  == Installation
8
12
 
9
13
  1. cd ext/
10
14
  2. ruby extconf.rb
11
- 3. make install # make sure Ruby Development Kit (http://rubyinstaller.org) is installed.
15
+ 3. make install
12
16
 
13
17
  === Gem Installation
14
18
 
15
19
  Windows:
16
- - gem install cubrid
20
+ > gem install cubrid
17
21
 
18
22
  Linux:
19
- - sudo -E gem install cubrid
20
-
21
- == Features/Problems
22
-
23
- * Cross-platform.
24
-
25
- * Compatible with CUBRID 10.1.0.
23
+ $ sudo -E gem install cubrid
26
24
 
27
- * Compatible with Ruby 1.8.7.
25
+ == Features/Dependencies
28
26
 
29
- * Ruby 1.9.1 is not supported yet.
27
+ * Cross-platform
28
+ * Compatible with CUBRID 10.2.0.
29
+ * Compatible with Ruby 1.9 or higher
30
30
 
31
31
  == Synopsis
32
32
 
data/ext/stmt.c CHANGED
@@ -99,7 +99,7 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
99
99
  void *val = NULL;
100
100
  int *ind;
101
101
 
102
- arr_size = RARRAY(data)->len;
102
+ arr_size = RARRAY_LEN (data);
103
103
  ind = ALLOCA_N(int, arr_size);
104
104
  if (ind == NULL) {
105
105
  rb_raise(rb_eNoMemError, "Not enough memory");
@@ -174,8 +174,8 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
174
174
  ind[i] = 1;
175
175
  }
176
176
  else {
177
- bit_ary[i].size = RSTRING(rb_ary_entry(data, i))->len;
178
- bit_ary[i].buf = RSTRING(rb_ary_entry(data, i))->ptr;
177
+ bit_ary[i].size = RSTRING_LEN (rb_ary_entry(data, i));
178
+ bit_ary[i].buf = RSTRING_PTR (rb_ary_entry(data, i));
179
179
  ind[i] = 0;
180
180
  }
181
181
  }
@@ -195,7 +195,7 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
195
195
  ind[i] = 1;
196
196
  }
197
197
  else {
198
- str_ary[i] = RSTRING(rb_ary_entry(data, i))->ptr;
198
+ str_ary[i] = RSTRING_PTR (rb_ary_entry(data, i));
199
199
  ind[i] = 0;
200
200
  }
201
201
  }
@@ -224,12 +224,12 @@ cubrid_stmt_make_set(VALUE data, int u_type) /* TODO: check if all item has same
224
224
  }
225
225
  else {
226
226
  a = rb_funcall(rb_ary_entry(data, i), rb_intern("to_a"), 0);
227
- date_ary[i].ss = FIX2INT(RARRAY(a)->ptr[0]);
228
- date_ary[i].mm = FIX2INT(RARRAY(a)->ptr[1]);
229
- date_ary[i].hh = FIX2INT(RARRAY(a)->ptr[2]);
230
- date_ary[i].day = FIX2INT(RARRAY(a)->ptr[3]);
231
- date_ary[i].mon = FIX2INT(RARRAY(a)->ptr[4]);
232
- date_ary[i].yr = FIX2INT(RARRAY(a)->ptr[5]);
227
+ date_ary[i].ss = FIX2INT(RARRAY_AREF (a, 0));
228
+ date_ary[i].mm = FIX2INT(RARRAY_AREF (a, 1));
229
+ date_ary[i].hh = FIX2INT(RARRAY_AREF (a, 2));
230
+ date_ary[i].day = FIX2INT(RARRAY_AREF (a, 3));
231
+ date_ary[i].mon = FIX2INT(RARRAY_AREF (a, 4));
232
+ date_ary[i].yr = FIX2INT(RARRAY_AREF (a, 5));
233
233
 
234
234
  ind[i] = 0;
235
235
  }
@@ -318,13 +318,13 @@ cubrid_stmt_bind_internal(Statement *stmt, int index, VALUE data, int u_type, in
318
318
  break;
319
319
 
320
320
  case T_STRING:
321
- str_val = RSTRING(data)->ptr;
321
+ str_val = RSTRING_PTR (data);
322
322
  a_type = CCI_A_TYPE_STR;
323
323
  val = str_val;
324
324
  if (u_type == CCI_U_TYPE_UNKNOWN) {
325
325
  u_type = CCI_U_TYPE_STRING;
326
326
  } else if (u_type == CCI_U_TYPE_BIT || u_type == CCI_U_TYPE_VARBIT) {
327
- bit.size = RSTRING(data)->len;
327
+ bit.size = RSTRING_LEN(data);
328
328
  bit.buf = str_val;
329
329
  a_type = CCI_A_TYPE_BIT;
330
330
  val = &bit;
@@ -336,12 +336,12 @@ cubrid_stmt_bind_internal(Statement *stmt, int index, VALUE data, int u_type, in
336
336
  VALUE a;
337
337
 
338
338
  a = rb_funcall(data, rb_intern("to_a"), 0);
339
- date.ss = FIX2INT(RARRAY(a)->ptr[0]);
340
- date.mm = FIX2INT(RARRAY(a)->ptr[1]);
341
- date.hh = FIX2INT(RARRAY(a)->ptr[2]);
342
- date.day = FIX2INT(RARRAY(a)->ptr[3]);
343
- date.mon = FIX2INT(RARRAY(a)->ptr[4]);
344
- date.yr = FIX2INT(RARRAY(a)->ptr[5]);
339
+ date.ss = FIX2INT(RARRAY_AREF (a, 0));
340
+ date.mm = FIX2INT(RARRAY_AREF (a, 1));
341
+ date.hh = FIX2INT(RARRAY_AREF (a, 2));
342
+ date.day = FIX2INT(RARRAY_AREF (a, 3));
343
+ date.mon = FIX2INT(RARRAY_AREF (a, 4));
344
+ date.yr = FIX2INT(RARRAY_AREF (a, 5));
345
345
 
346
346
  a_type = CCI_A_TYPE_DATE;
347
347
  val = &date;
@@ -890,7 +890,7 @@ cubrid_stmt_fetch_hash(VALUE self)
890
890
 
891
891
  hash = rb_hash_new();
892
892
  for(i = 0; i < stmt->col_count; i++) {
893
- col = RARRAY(row)->ptr[i];
893
+ col = RARRAY_AREF(row, i);
894
894
  strcpy(colName, CCI_GET_RESULT_INFO_NAME(stmt->col_info, i+1));
895
895
  rb_hash_aset(hash, rb_str_new2(colName), col);
896
896
  }
metadata CHANGED
@@ -1,63 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cubrid
3
- version: !ruby/object:Gem::Version
4
- version: 10.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 10.2.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - NHN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2017-07-25 00:00:00 Z
11
+ date: 2020-12-17 00:00:00.000000000 Z
13
12
  dependencies: []
14
-
15
13
  description: This extension is a Ruby connector for CUBRID Database.
16
14
  email: cubrid_ruby@nhncorp.com
17
15
  executables: []
18
-
19
- extensions:
16
+ extensions:
20
17
  - ext/extconf.rb
21
- extra_rdoc_files:
18
+ extra_rdoc_files:
22
19
  - README.rdoc
23
- files:
20
+ files:
24
21
  - README.rdoc
25
- - ext/extconf.rb
22
+ - ext/conn.c
26
23
  - ext/cubrid.c
27
24
  - ext/cubrid.h
28
- - ext/conn.c
29
- - ext/stmt.c
30
25
  - ext/error.c
26
+ - ext/extconf.rb
27
+ - ext/stmt.c
31
28
  homepage: http://www.cubrid.org/cubrid_ruby_programming
32
- licenses: []
33
-
29
+ licenses:
30
+ - GPL-2.0
34
31
  metadata: {}
35
-
36
32
  post_install_message:
37
- rdoc_options:
38
- - --title
33
+ rdoc_options:
34
+ - "--title"
39
35
  - cubrid-ruby documentation
40
- - --line-numbers
41
- - --main
36
+ - "--line-numbers"
37
+ - "--main"
42
38
  - README
43
- require_paths:
44
- - .
45
- required_ruby_version: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- version: 1.8.0
50
- required_rubygems_version: !ruby/object:Gem::Requirement
51
- requirements:
39
+ require_paths:
40
+ - "."
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '1.9'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
52
48
  - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
55
51
  requirements: []
56
-
57
- rubyforge_project: cubrid
58
- rubygems_version: 2.0.17
52
+ rubygems_version: 3.0.6
59
53
  signing_key:
60
54
  specification_version: 4
61
55
  summary: CUBRID Database API Module for Ruby
62
56
  test_files: []
63
-