do_oracle 0.10.12 → 0.10.13

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
+ SHA1:
3
+ metadata.gz: ba96ff28658268ce57ace3fd9fa71c99438a857d
4
+ data.tar.gz: a50767cfefe929dac155ec80b5690cec643f170d
5
+ SHA512:
6
+ metadata.gz: 4e1e275a0a2dfc32628d6d1f49f609cb6065215fe3a19ca624aedcb940f72b5788e7498b36affe2806519687b693c1a70710b27d1ac54fcc9f9ce35b8272b4d6
7
+ data.tar.gz: 4786ee7df48d7ef3b1672aa42ee62c7854ee1953645f907d3946b469749555dbdbb484704919b55bb03e5f8c4dea9b200a72e35d3667b746588196286e73641d
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++ ) {
@@ -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: ruby
11
6
  authors:
12
7
  - Raimonds Simanovskis
@@ -14,8 +9,7 @@ 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
15
  name: data_objects
@@ -24,11 +18,7 @@ dependencies:
24
18
  requirements:
25
19
  - - "="
26
20
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 10
30
- - 12
31
- version: 0.10.12
21
+ version: 0.10.13
32
22
  type: :runtime
33
23
  version_requirements: *id001
34
24
  - !ruby/object:Gem::Dependency
@@ -38,9 +28,6 @@ dependencies:
38
28
  requirements:
39
29
  - - ~>
40
30
  - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 5
44
31
  version: "2.5"
45
32
  type: :development
46
33
  version_requirements: *id002
@@ -51,9 +38,6 @@ dependencies:
51
38
  requirements:
52
39
  - - ~>
53
40
  - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- - 7
57
41
  version: "0.7"
58
42
  type: :development
59
43
  version_requirements: *id003
@@ -103,10 +87,11 @@ files:
103
87
  - tasks/release.rake
104
88
  - tasks/retrieve.rake
105
89
  - tasks/spec.rake
106
- has_rdoc: true
107
90
  homepage:
108
91
  licenses: []
109
92
 
93
+ metadata: {}
94
+
110
95
  post_install_message:
111
96
  rdoc_options: []
112
97
 
@@ -114,22 +99,17 @@ require_paths:
114
99
  - lib
115
100
  required_ruby_version: !ruby/object:Gem::Requirement
116
101
  requirements:
117
- - - ">="
102
+ - &id004
103
+ - ">="
118
104
  - !ruby/object:Gem::Version
119
- segments:
120
- - 0
121
105
  version: "0"
122
106
  required_rubygems_version: !ruby/object:Gem::Requirement
123
107
  requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- segments:
127
- - 0
128
- version: "0"
108
+ - *id004
129
109
  requirements: []
130
110
 
131
111
  rubyforge_project: dorb
132
- rubygems_version: 1.3.6
112
+ rubygems_version: 2.0.3
133
113
  signing_key:
134
114
  specification_version: 3
135
115
  summary: DataObjects Oracle Driver