fb 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/fb.c +4 -4
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7d8e0d820f068703a7427f675e1e40bf5202287c
4
- data.tar.gz: 280d0ae8ceb2eaf63ff07ff049986c53d45bd7d5
2
+ SHA256:
3
+ metadata.gz: d6dfab5ce4cf2d5bfaa5cdd364c5a6f397adfd4b411ae4ceb7e43ab9755be664
4
+ data.tar.gz: 44fad4a53c1532883461f97aa647bb28fe621a3154b15906ddb730d59c0c5572
5
5
  SHA512:
6
- metadata.gz: 41569151e53743c4f48178f848ec884125c3c2a8bee7d23b098626e8ddc2f0c1f5354bc59526738e7b0f042b68526b283e942a1b26cc0f296c72d321a67bc992
7
- data.tar.gz: aaa348851b9b97b6c2508cbe7e6495bb0f7aaf521949171b5f7fa29db9053bf14d082e8367c63d9d157d86f0fcc7f708af7844c82d6e10af5cd3ff7d50018208
6
+ metadata.gz: 7cc2b6247e41e55176a139a71adb752708f7f04b96e35a0760074c025c99ed8700eec8d2bac2a5f7f30416f33ca0ff86bbef8367d69ef1370e7538744c20b3ec
7
+ data.tar.gz: 96ad46acc89372382068848edbef078c92af9df87101b7d520771a2bd17c54d126ac38c1a5766e23ecfc0ee567205b397636fc737ff697154bbc3d888f58c718
data/fb.c CHANGED
@@ -1292,15 +1292,15 @@ static void fb_cursor_free(struct FbCursor *fb_cursor)
1292
1292
 
1293
1293
  static VALUE sql_decimal_to_bigdecimal(long long sql_data, int scale)
1294
1294
  {
1295
- int i;
1295
+ unsigned long i;
1296
1296
  char bigdecimal_buffer[23];
1297
- int bigdecimal_dot;
1297
+ unsigned long bigdecimal_dot;
1298
1298
  sprintf(bigdecimal_buffer, "%022lld", sql_data);
1299
1299
  bigdecimal_dot = strlen(bigdecimal_buffer) + scale;
1300
1300
  for (i = strlen(bigdecimal_buffer); i > bigdecimal_dot; i--)
1301
1301
  bigdecimal_buffer[i] = bigdecimal_buffer[i-1];
1302
1302
  bigdecimal_buffer[bigdecimal_dot] = '.';
1303
- return rb_funcall(rb_path2class("BigDecimal"), rb_intern("new"), 1, rb_str_new2(bigdecimal_buffer));
1303
+ return rb_funcall(rb_cObject, rb_intern("BigDecimal"), 1, rb_str_new2(bigdecimal_buffer));
1304
1304
  }
1305
1305
 
1306
1306
  static VALUE object_to_unscaled_bigdecimal(VALUE object, int scale)
@@ -1311,7 +1311,7 @@ static VALUE object_to_unscaled_bigdecimal(VALUE object, int scale)
1311
1311
  ratio *= 10;
1312
1312
  if (TYPE(object) == T_FLOAT)
1313
1313
  object = rb_funcall(object, rb_intern("to_s"), 0);
1314
- object = rb_funcall(rb_path2class("BigDecimal"), rb_intern("new"), 1, object);
1314
+ object = rb_funcall(rb_cObject, rb_intern("BigDecimal"), 1, object);
1315
1315
  object = rb_funcall(object, rb_intern("*"), 1, LONG2NUM(ratio));
1316
1316
  return rb_funcall(object, rb_intern("round"), 0);
1317
1317
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Rowland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-10 00:00:00.000000000 Z
11
+ date: 2019-06-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby Firebird Extension Library
14
14
  email: rowland@rowlandresearch.com
@@ -57,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  requirements:
59
59
  - Firebird client library fbclient.dll, libfbclient.so or Firebird.framework.
60
- rubyforge_project:
61
- rubygems_version: 2.4.5.1
60
+ rubygems_version: 3.0.3
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Firebird database driver