do_oracle 0.10.16-x86-mingw32 → 0.10.17-x86-mingw32
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.
- checksums.yaml +4 -4
- data/ChangeLog.markdown +4 -0
- data/ext/do_oracle/do_oracle.c +9 -11
- data/lib/do_oracle/1.8/do_oracle.so +0 -0
- data/lib/do_oracle/1.9/do_oracle.so +0 -0
- data/lib/do_oracle/2.0/do_oracle.so +0 -0
- data/lib/do_oracle/2.1/do_oracle.so +0 -0
- data/lib/do_oracle/2.2/do_oracle.so +0 -0
- data/lib/do_oracle/2.3/do_oracle.so +0 -0
- data/lib/do_oracle/version.rb +1 -1
- data/tasks/compile.rake +1 -1
- data/tasks/release.rake +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08db3b9099f5e89c385f0832b063bec61ea50eaa
|
4
|
+
data.tar.gz: 92861cb67bdc940243030cf054073b0171c5dd62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a81d46a6ee20a172e272374edb0df97231bf33157e9037adb91fab285fe7af833b3a67c45a4ee23527d661cdccea93dbb200902d3e714c71aa7642033dfaef7f
|
7
|
+
data.tar.gz: c5b95830851963ce488ec2f402ad13363cf92f4b7cd5596ded654dac4d87bde4db8ebcd9bae9604b7cd6d6fa8059c3fc9dc6b7c373cf79f20afe21dfbd673bb5
|
data/ChangeLog.markdown
CHANGED
data/ext/do_oracle/do_oracle.c
CHANGED
@@ -9,6 +9,9 @@
|
|
9
9
|
#include <math.h>
|
10
10
|
#include <ctype.h>
|
11
11
|
#include <time.h>
|
12
|
+
#ifndef _WIN32
|
13
|
+
#include <sys/time.h>
|
14
|
+
#endif
|
12
15
|
|
13
16
|
#define DO_ID_CONST_GET rb_intern("const_get")
|
14
17
|
|
@@ -65,6 +68,7 @@ static ID DO_ID_TO_S;
|
|
65
68
|
static ID DO_ID_TO_F;
|
66
69
|
|
67
70
|
static ID DO_ID_UTC_OFFSET;
|
71
|
+
static ID DO_ID_ZONE;
|
68
72
|
static ID DO_ID_FULL_CONST_GET;
|
69
73
|
|
70
74
|
static ID DO_ID_PARSE;
|
@@ -167,13 +171,7 @@ static VALUE parse_date(VALUE r_value) {
|
|
167
171
|
static VALUE parse_date_time(VALUE r_value) {
|
168
172
|
VALUE time_array;
|
169
173
|
int year, month, day, hour, min, sec;
|
170
|
-
|
171
|
-
long int gmt_offset;
|
172
|
-
|
173
|
-
// time_t rawtime;
|
174
|
-
// struct tm * timeinfo;
|
175
|
-
|
176
|
-
// int tokens_read, max_tokens;
|
174
|
+
VALUE zone;
|
177
175
|
|
178
176
|
if (rb_obj_class(r_value) == rb_cDateTime) {
|
179
177
|
return r_value;
|
@@ -185,11 +183,10 @@ static VALUE parse_date_time(VALUE r_value) {
|
|
185
183
|
hour = NUM2INT(rb_ary_entry(time_array, 2));
|
186
184
|
min = NUM2INT(rb_ary_entry(time_array, 1));
|
187
185
|
sec = NUM2INT(rb_ary_entry(time_array, 0));
|
186
|
+
zone = rb_funcall(r_value, DO_ID_ZONE, 0 );
|
188
187
|
|
189
|
-
|
190
|
-
|
191
|
-
return rb_funcall(rb_cDateTime, DO_ID_NEW, 7, INT2NUM(year), INT2NUM(month), INT2NUM(day),
|
192
|
-
INT2NUM(hour), INT2NUM(min), INT2NUM(sec), INT2NUM(gmt_offset));
|
188
|
+
return rb_funcall(rb_cDateTime, DO_ID_NEW, 7, INT2NUM(year), INT2NUM(month), INT2NUM(day),
|
189
|
+
INT2NUM(hour), INT2NUM(min), INT2NUM(sec), zone);
|
193
190
|
} else {
|
194
191
|
// Something went terribly wrong
|
195
192
|
rb_raise(eDO_DataError, "Couldn't parse datetime from class %s object", rb_obj_classname(r_value));
|
@@ -729,6 +726,7 @@ void Init_do_oracle() {
|
|
729
726
|
DO_ID_TO_F = rb_intern("to_f");
|
730
727
|
|
731
728
|
DO_ID_UTC_OFFSET = rb_intern("utc_offset");
|
729
|
+
DO_ID_ZONE = rb_intern("zone");
|
732
730
|
DO_ID_FULL_CONST_GET = rb_intern("full_const_get");
|
733
731
|
|
734
732
|
DO_ID_PARSE = rb_intern("parse");
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/do_oracle/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
data/tasks/release.rake
CHANGED
@@ -3,7 +3,7 @@ task :build_all do
|
|
3
3
|
`rake clean`
|
4
4
|
`rake build`
|
5
5
|
`rake java gem`
|
6
|
-
`rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.
|
6
|
+
`rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.8:2.2.4:2.3.0`
|
7
7
|
end
|
8
8
|
|
9
9
|
desc 'Release all gems (native, binaries for JRuby and Windows)'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.17
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: data_objects
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.17
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.10.
|
26
|
+
version: 0.10.17
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,6 +101,7 @@ files:
|
|
101
101
|
- lib/do_oracle/2.0/do_oracle.so
|
102
102
|
- lib/do_oracle/2.1/do_oracle.so
|
103
103
|
- lib/do_oracle/2.2/do_oracle.so
|
104
|
+
- lib/do_oracle/2.3/do_oracle.so
|
104
105
|
homepage:
|
105
106
|
licenses: []
|
106
107
|
metadata: {}
|