do_oracle 0.10.12-java → 0.10.13-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: bccec21ea3dd4c12daa94485d9ea50b9118c7799939ee11b5e50635feff3e8cf5059170848d0c4f89766725056befbea239f6110e9982f7647c7959d2437901d
4
+ metadata.gz: 0501d8902b5674f07025916be1008c4c8fded74ab40f72602503344ceee99b47f25fbe043b63ac3c23661274f2aebedf513b71b5dc5f467b0540c5a2e6b32f36
5
+ SHA1:
6
+ data.tar.gz: ac71cfe17089a0282a8d148ecbdd4f80f182b748
7
+ metadata.gz: 2d243c9fff4a7ce2e756e125c0c2236e4e2292a6
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.10.13 2013-05-27
2
+
3
+ * Fix compilation on Ruby 2.0
4
+ * Windows binary for Ruby 2.0
5
+
1
6
  ## 0.10.12 2013-01-21
2
7
 
3
8
  No changes
data/README.markdown CHANGED
@@ -14,9 +14,11 @@ This driver implements the DataObjects API for the Oracle relational database.
14
14
 
15
15
  An example of usage:
16
16
 
17
- @connection = DataObjects::Connection.new("oracle://employees")
18
- @reader = @connection.create_command('SELECT * FROM users').execute_reader
19
- @reader.next!
17
+ ```ruby
18
+ @connection = DataObjects::Connection.new("oracle://employees")
19
+ @reader = @connection.create_command('SELECT * FROM users').execute_reader
20
+ @reader.next!
21
+ ```
20
22
 
21
23
  ## Requirements
22
24
 
@@ -128,7 +128,7 @@ static void data_objects_debug(VALUE connection, VALUE string, struct timeval* s
128
128
  }
129
129
 
130
130
 
131
- static char * get_uri_option(VALUE query_hash, char * key) {
131
+ static char * get_uri_option(VALUE query_hash, const char* key) {
132
132
  VALUE query_value;
133
133
  char * value = NULL;
134
134
 
@@ -412,7 +412,7 @@ static VALUE cDO_OracleCommand_execute_try(cDO_OracleCommand_execute_try_t *arg)
412
412
  int insert_id_present;
413
413
 
414
414
  // no arguments given
415
- if NIL_P(arg->args) {
415
+ if(NIL_P(arg->args)) {
416
416
  result = rb_funcall(arg->cursor, DO_ID_EXEC, 0);
417
417
  // arguments given - need to typecast
418
418
  } else {
@@ -463,7 +463,7 @@ static VALUE cDO_OracleConnection_initialize(VALUE self, VALUE uri) {
463
463
 
464
464
  char *host = "localhost", *port = "1521", *path = NULL;
465
465
  char *connect_string;
466
- int connect_string_length;
466
+ long connect_string_length;
467
467
  VALUE oci8_conn;
468
468
 
469
469
  r_user = rb_funcall(uri, rb_intern("user"), 0);
@@ -555,7 +555,7 @@ static VALUE cDO_OracleCommand_execute_reader(int argc, VALUE *argv[], VALUE sel
555
555
  VALUE column_metadata, column, column_name;
556
556
 
557
557
  int i;
558
- int field_count;
558
+ long field_count;
559
559
  int infer_types = 0;
560
560
 
561
561
  VALUE cursor = rb_funcall2(self, DO_ID_EXECUTE, argc, (VALUE *)argv);
@@ -587,7 +587,7 @@ static VALUE cDO_OracleCommand_execute_reader(int argc, VALUE *argv[], VALUE sel
587
587
  // Whoops... wrong number of types passed to set_types. Close the reader and raise
588
588
  // and error
589
589
  rb_funcall(reader, DO_ID_CLOSE, 0);
590
- rb_raise(eArgumentError, "Field-count mismatch. Expected %ld fields, but the query yielded %d", RARRAY_LEN(field_types), field_count);
590
+ rb_raise(eArgumentError, "Field-count mismatch. Expected %ld fields, but the query yielded %ld", RARRAY_LEN(field_types), field_count);
591
591
  }
592
592
 
593
593
  for ( i = 0; i < field_count; i++ ) {
Binary file
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Oracle
3
- VERSION = '0.10.12'
3
+ VERSION = '0.10.13'
4
4
  end
5
5
  end
data/tasks/compile.rake CHANGED
@@ -32,7 +32,7 @@ begin
32
32
  # Gem::Specification API.
33
33
  gem.dependencies.delete_if { |d| d.name == 'ruby-oci8'}
34
34
 
35
- gem.add_dependency "do_jdbc", '0.10.12'
35
+ gem.add_dependency "do_jdbc", '0.10.13'
36
36
  end
37
37
  end
38
38
  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.2`
6
+ `rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0`
7
7
  end
8
8
 
9
9
  desc 'Release all gems (native, binaries for JRuby and Windows)'
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do_oracle
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 10
8
- - 12
9
- version: 0.10.12
4
+ version: 0.10.13
10
5
  platform: java
11
6
  authors:
12
7
  - Raimonds Simanovskis
@@ -14,63 +9,48 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2013-01-21 00:00:00 +01:00
18
- default_executable:
12
+ date: 2013-05-27 00:00:00 Z
19
13
  dependencies:
20
14
  - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- type: :runtime
23
- name: data_objects
24
15
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
16
  requirements:
26
17
  - - "="
27
18
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 10
31
- - 12
32
- version: 0.10.12
19
+ version: 0.10.13
20
+ name: data_objects
33
21
  requirement: *id001
34
- - !ruby/object:Gem::Dependency
35
22
  prerelease: false
36
- type: :development
37
- name: rspec
23
+ type: :runtime
24
+ - !ruby/object:Gem::Dependency
38
25
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
26
  requirements:
40
27
  - - ~>
41
28
  - !ruby/object:Gem::Version
42
- segments:
43
- - 2
44
- - 5
45
29
  version: "2.5"
30
+ name: rspec
46
31
  requirement: *id002
47
- - !ruby/object:Gem::Dependency
48
32
  prerelease: false
49
33
  type: :development
50
- name: rake-compiler
34
+ - !ruby/object:Gem::Dependency
51
35
  version_requirements: &id003 !ruby/object:Gem::Requirement
52
36
  requirements:
53
37
  - - ~>
54
38
  - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- - 7
58
39
  version: "0.7"
40
+ name: rake-compiler
59
41
  requirement: *id003
60
- - !ruby/object:Gem::Dependency
61
42
  prerelease: false
62
- type: :runtime
63
- name: do_jdbc
43
+ type: :development
44
+ - !ruby/object:Gem::Dependency
64
45
  version_requirements: &id004 !ruby/object:Gem::Requirement
65
46
  requirements:
66
47
  - - "="
67
48
  - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- - 10
71
- - 12
72
- version: 0.10.12
49
+ version: 0.10.13
50
+ name: do_jdbc
73
51
  requirement: *id004
52
+ prerelease: false
53
+ type: :runtime
74
54
  description: Implements the DataObjects API for Oracle
75
55
  email: raimonds.simanovskis@gmail.com
76
56
  executables: []
@@ -118,10 +98,11 @@ files:
118
98
  - tasks/retrieve.rake
119
99
  - tasks/spec.rake
120
100
  - lib/do_oracle/do_oracle.jar
121
- has_rdoc: true
122
101
  homepage:
123
102
  licenses: []
124
103
 
104
+ metadata: {}
105
+
125
106
  post_install_message:
126
107
  rdoc_options: []
127
108
 
@@ -129,22 +110,17 @@ require_paths:
129
110
  - lib
130
111
  required_ruby_version: !ruby/object:Gem::Requirement
131
112
  requirements:
132
- - - ">="
113
+ - &id005
114
+ - ">="
133
115
  - !ruby/object:Gem::Version
134
- segments:
135
- - 0
136
116
  version: "0"
137
117
  required_rubygems_version: !ruby/object:Gem::Requirement
138
118
  requirements:
139
- - - ">="
140
- - !ruby/object:Gem::Version
141
- segments:
142
- - 0
143
- version: "0"
119
+ - *id005
144
120
  requirements: []
145
121
 
146
122
  rubyforge_project: dorb
147
- rubygems_version: 1.3.6
123
+ rubygems_version: 2.0.3
148
124
  signing_key:
149
125
  specification_version: 3
150
126
  summary: DataObjects Oracle Driver