do_sqlite3 0.10.14 → 0.10.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.markdown +5 -0
- data/ext/do_sqlite3/do_common.c +2 -2
- data/ext/do_sqlite3/do_common.h +1 -1
- data/ext/do_sqlite3/do_sqlite3.c +1 -1
- data/lib/do_sqlite3/version.rb +1 -1
- data/tasks/compile.rake +1 -1
- data/tasks/release.rake +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49038f553345ffce0cb3ed18532506ca3546b3fc
|
4
|
+
data.tar.gz: 53b37618062003c19adcd7269741b7a50fb9f520
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16f405c0398e57a1373edc92ac5042552a2b884f04f1ec1f91bf9c8ff846bc7ab210b73f1f1e129cd775866da3d00f8be42a188667e5639ef7e4ba7f55036ce4
|
7
|
+
data.tar.gz: 9f8a2dbab1f8fd3727830b1b365f4e9b1d69c55690453d64a751d54fbb073a412be6e5cd34ffc2cd46910b6cba97ca4468d0beacdda4bb4ab6a31b11fb3c8df4
|
data/ChangeLog.markdown
CHANGED
data/ext/do_sqlite3/do_common.c
CHANGED
@@ -63,7 +63,7 @@ void data_objects_debug(VALUE connection, VALUE string, struct timeval *start) {
|
|
63
63
|
rb_funcall(connection, DO_ID_LOG, 1, message);
|
64
64
|
}
|
65
65
|
|
66
|
-
void data_objects_raise_error(VALUE self, const struct errcodes *errors, int errnum,
|
66
|
+
void data_objects_raise_error(VALUE self, const struct errcodes *errors, int errnum, VALUE message, VALUE query, VALUE state) {
|
67
67
|
const char *exception_type = "SQLError";
|
68
68
|
const struct errcodes *e;
|
69
69
|
VALUE uri, exception;
|
@@ -82,7 +82,7 @@ void data_objects_raise_error(VALUE self, const struct errcodes *errors, int err
|
|
82
82
|
data_objects_const_get(mDO, exception_type),
|
83
83
|
DO_ID_NEW,
|
84
84
|
5,
|
85
|
-
|
85
|
+
message,
|
86
86
|
INT2NUM(errnum),
|
87
87
|
state,
|
88
88
|
query,
|
data/ext/do_sqlite3/do_common.h
CHANGED
@@ -123,7 +123,7 @@ static inline void data_objects_define_errors(VALUE scope, const struct errcodes
|
|
123
123
|
}
|
124
124
|
}
|
125
125
|
|
126
|
-
extern void data_objects_raise_error(VALUE self, const struct errcodes *errors, int errnum,
|
126
|
+
extern void data_objects_raise_error(VALUE self, const struct errcodes *errors, int errnum, VALUE message, VALUE query, VALUE state);
|
127
127
|
|
128
128
|
extern VALUE data_objects_typecast(const char *value, long length, const VALUE type, int encoding);
|
129
129
|
|
data/ext/do_sqlite3/do_sqlite3.c
CHANGED
@@ -17,7 +17,7 @@ VALUE DO_OPEN_FLAG_FULL_MUTEX;
|
|
17
17
|
|
18
18
|
void do_sqlite3_raise_error(VALUE self, sqlite3 *result, VALUE query) {
|
19
19
|
int errnum = sqlite3_errcode(result);
|
20
|
-
|
20
|
+
VALUE message = rb_str_new2(sqlite3_errmsg(result));
|
21
21
|
VALUE sql_state = rb_str_new2("");
|
22
22
|
|
23
23
|
data_objects_raise_error(self, do_sqlite3_errors, errnum, message, query, sql_state);
|
data/lib/do_sqlite3/version.rb
CHANGED
data/tasks/compile.rake
CHANGED
@@ -57,7 +57,7 @@ begin
|
|
57
57
|
ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
|
58
58
|
ext.java_compiling do |gem|
|
59
59
|
gem.add_dependency 'jdbc-sqlite3', '>=3.5.8'
|
60
|
-
gem.add_dependency 'do_jdbc', '0.10.
|
60
|
+
gem.add_dependency 'do_jdbc', '0.10.15'
|
61
61
|
end
|
62
62
|
end
|
63
63
|
rescue LoadError
|
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`
|
6
|
+
`rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.5:2.2.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_sqlite3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dirkjan Bussink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: data_objects
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.10.
|
19
|
+
version: 0.10.15
|
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.15
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '2.5'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake-compiler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.7'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.7'
|
55
55
|
description: Implements the DataObjects API for Sqlite3
|
@@ -111,17 +111,17 @@ require_paths:
|
|
111
111
|
- lib
|
112
112
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- -
|
114
|
+
- - '>='
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
|
-
- -
|
119
|
+
- - '>='
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project: dorb
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.0.14
|
125
125
|
signing_key:
|
126
126
|
specification_version: 3
|
127
127
|
summary: DataObjects Sqlite3 Driver
|