do_oracle 0.10.12-x86-mswin32-60 → 0.10.13-x86-mswin32-60

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: 30f0284c762cfd11f7bb354c9487b356433985fd589d8e7f4741eccc0054e9cbff2a7922507265c6140eaac4c685207465378e0bb4d6f13d33ad90ffb998bb0e
4
+ metadata.gz: 83467a9a0a87ac2bddcb47e311e0b117a46b1d944e70d749947e35817e8211005d50c1da6b0f2bcae8f94ed6078b753bba62cae087eedf983320cd2e3a4b07aa
5
+ SHA1:
6
+ data.tar.gz: 2709a0ecde9c308fd5e0e8ade6b1faf9790d0e1e
7
+ metadata.gz: dbaaa710ccda3448b18c23378bdd261842659502
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
Binary file
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: x86-mswin32-60
11
6
  authors:
12
7
  - Raimonds Simanovskis
@@ -14,49 +9,38 @@ 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
42
+ prerelease: false
43
+ type: :development
60
44
  description: Implements the DataObjects API for Oracle
61
45
  email: raimonds.simanovskis@gmail.com
62
46
  executables: []
@@ -105,10 +89,12 @@ files:
105
89
  - tasks/spec.rake
106
90
  - lib/do_oracle/1.8/do_oracle.so
107
91
  - lib/do_oracle/1.9/do_oracle.so
108
- has_rdoc: true
92
+ - lib/do_oracle/2.0/do_oracle.so
109
93
  homepage:
110
94
  licenses: []
111
95
 
96
+ metadata: {}
97
+
112
98
  post_install_message:
113
99
  rdoc_options: []
114
100
 
@@ -116,22 +102,17 @@ require_paths:
116
102
  - lib
117
103
  required_ruby_version: !ruby/object:Gem::Requirement
118
104
  requirements:
119
- - - ">="
105
+ - &id004
106
+ - ">="
120
107
  - !ruby/object:Gem::Version
121
- segments:
122
- - 0
123
108
  version: "0"
124
109
  required_rubygems_version: !ruby/object:Gem::Requirement
125
110
  requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- segments:
129
- - 0
130
- version: "0"
111
+ - *id004
131
112
  requirements: []
132
113
 
133
114
  rubyforge_project: dorb
134
- rubygems_version: 1.3.6
115
+ rubygems_version: 2.0.3
135
116
  signing_key:
136
117
  specification_version: 3
137
118
  summary: DataObjects Oracle Driver