sequel_pg 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/sequel_pg/sequel_pg.c +4 -2
  2. metadata +7 -7
@@ -26,6 +26,7 @@ static VALUE spg_Sequel;
26
26
  static VALUE spg_Blob;
27
27
  static VALUE spg_BigDecimal;
28
28
  static VALUE spg_Date;
29
+ static VALUE spg_SQLTime;
29
30
 
30
31
  static VALUE spg_sym_utc;
31
32
  static VALUE spg_sym_local;
@@ -79,8 +80,8 @@ static VALUE spg_time(const char *s) {
79
80
  rb_raise(rb_eArgError, "unexpected time format");
80
81
  }
81
82
 
82
- now = rb_funcall(rb_cTime, spg_id_new, 0);
83
- return rb_funcall(rb_cTime, spg_id_local, 6, rb_funcall(now, spg_id_year, 0), rb_funcall(now, spg_id_month, 0), rb_funcall(now, spg_id_day, 0), INT2NUM(hour), INT2NUM(minute), INT2NUM(second), INT2NUM(usec));
83
+ now = rb_funcall(spg_SQLTime, spg_id_new, 0);
84
+ return rb_funcall(spg_SQLTime, spg_id_local, 7, rb_funcall(now, spg_id_year, 0), rb_funcall(now, spg_id_month, 0), rb_funcall(now, spg_id_day, 0), INT2NUM(hour), INT2NUM(minute), INT2NUM(second), INT2NUM(usec));
84
85
  }
85
86
 
86
87
  static VALUE spg_date(const char *s) {
@@ -395,6 +396,7 @@ void Init_sequel_pg(void) {
395
396
 
396
397
  spg_Sequel = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Sequel"));
397
398
  spg_Blob = rb_funcall(rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQL")), cg, 1, rb_str_new2("Blob"));
399
+ spg_SQLTime= rb_funcall(spg_Sequel, cg, 1, rb_str_new2("SQLTime"));
398
400
  spg_BigDecimal = rb_funcall(rb_cObject, cg, 1, rb_str_new2("BigDecimal"));
399
401
  spg_Date = rb_funcall(rb_cObject, cg, 1, rb_str_new2("Date"));
400
402
  spg_Postgres = rb_funcall(spg_Sequel, cg, 1, rb_str_new2("Postgres"));
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_pg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Evans
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-01 00:00:00 -07:00
18
+ date: 2011-09-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- hash: 103
45
+ hash: 107
46
46
  segments:
47
47
  - 3
48
- - 24
48
+ - 27
49
49
  - 0
50
- version: 3.24.0
50
+ version: 3.27.0
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  description: |