sequel_pg 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f6176615538367906099982221b8ee7e3670206b
4
- data.tar.gz: df22060d2f8499be5e36cf648ea6434739fc0a80
2
+ SHA256:
3
+ metadata.gz: 7e8add8de4c52910c3da49f3604b1bd10992174d18c6b83ee9973f3cc674df2f
4
+ data.tar.gz: 7c5b6dbf5b48299699cf5f56cf5b62ddb7b6736438a18a044592ec1b1aad8bed
5
5
  SHA512:
6
- metadata.gz: de722caecb0c89001621cf0c90af63fb1d87ddfd8b67d64b2fb6cb604b190ee291702cac9df1ce697d23cac19f9e98aa2be91b8ebc14b9d26fb90d63f5412d6f
7
- data.tar.gz: c934dfa9ab244d753ddc4cca531f29fdef4be57b755d0f07da38b62b9dc5503f7c99825f743bd22ff24aec46b00e6eb09d61fdfb30f9a1046c67913694268dbc
6
+ metadata.gz: d8911f1f4470918a27a624dbcc3ef67956a836e84c159a3bb3487ff136c7ee471db436d3872e91045c966ad385a0a9e9c6505e80d8ab573b2ea441c454f71bbf
7
+ data.tar.gz: fc43429b58160b8ce16bb7bf313a56e9518fae265a829450de19d831787e4cd176da4e75f9840a1f070beb4cf66bbdc0d76e52ed0a883b43bb33075bdc749bcc
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.8.2 (2018-05-25)
2
+
3
+ * Use Kernel.BigDecimal instead of BigDecimal.new to avoid verbose mode deprecation warnings (jeremyevans)
4
+
1
5
  === 1.8.1 (2017-12-13)
2
6
 
3
7
  * Fix issue when using Dataset#as_hash and Dataset#to_hash_groups with the null_dataset extension (jeremyevans)
@@ -1,4 +1,4 @@
1
- #define SEQUEL_PG_VERSION_INTEGER 10801
1
+ #define SEQUEL_PG_VERSION_INTEGER 10802
2
2
 
3
3
  #include <string.h>
4
4
  #include <stdio.h>
@@ -43,7 +43,7 @@ PGresult* pgresult_get(VALUE);
43
43
 
44
44
  static VALUE spg_Sequel;
45
45
  static VALUE spg_Blob;
46
- static VALUE spg_BigDecimal;
46
+ static VALUE spg_Kernel;
47
47
  static VALUE spg_Date;
48
48
  static VALUE spg_SQLTime;
49
49
  static VALUE spg_PGError;
@@ -64,6 +64,7 @@ static VALUE spg_pos_inf;
64
64
  static VALUE spg_neg_inf;
65
65
  static VALUE spg_usec_per_day;
66
66
 
67
+ static ID spg_id_BigDecimal;
67
68
  static ID spg_id_new;
68
69
  static ID spg_id_local;
69
70
  static ID spg_id_year;
@@ -491,7 +492,7 @@ static VALUE spg__col_value(VALUE self, PGresult *res, long i, long j, VALUE* co
491
492
  }
492
493
  break;
493
494
  case 1700: /* numeric */
494
- rv = rb_funcall(spg_BigDecimal, spg_id_new, 1, rb_str_new(v, PQgetlength(res, i, j)));
495
+ rv = rb_funcall(spg_Kernel, spg_id_BigDecimal, 1, rb_str_new(v, PQgetlength(res, i, j)));
495
496
  break;
496
497
  case 1082: /* date */
497
498
  rv = spg_date(v, self);
@@ -1002,6 +1003,7 @@ void Init_sequel_pg(void) {
1002
1003
  }
1003
1004
  }
1004
1005
 
1006
+ spg_id_BigDecimal = rb_intern("BigDecimal");
1005
1007
  spg_id_new = rb_intern("new");
1006
1008
  spg_id_local = rb_intern("local");
1007
1009
  spg_id_year = rb_intern("year");
@@ -1046,7 +1048,7 @@ void Init_sequel_pg(void) {
1046
1048
 
1047
1049
  spg_Blob = rb_funcall(rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQL")), cg, 1, rb_str_new2("Blob"));
1048
1050
  spg_SQLTime= rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQLTime"));
1049
- spg_BigDecimal = rb_funcall(rb_cObject, cg, 1, rb_str_new2("BigDecimal"));
1051
+ spg_Kernel = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Kernel"));
1050
1052
  spg_Date = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Date"));
1051
1053
  spg_PGError = rb_funcall(rb_funcall(rb_cObject, cg, 1, rb_str_new2("PG")), cg, 1, rb_str_new2("Error"));
1052
1054
 
@@ -1057,7 +1059,7 @@ void Init_sequel_pg(void) {
1057
1059
 
1058
1060
  rb_global_variable(&spg_Sequel);
1059
1061
  rb_global_variable(&spg_Blob);
1060
- rb_global_variable(&spg_BigDecimal);
1062
+ rb_global_variable(&spg_Kernel);
1061
1063
  rb_global_variable(&spg_Date);
1062
1064
  rb_global_variable(&spg_SQLTime);
1063
1065
  rb_global_variable(&spg_PGError);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-13 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.6.13
94
+ rubygems_version: 2.7.6
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Faster SELECTs when using Sequel with pg