tiny_tds 0.2.2 → 0.2.3

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ * 0.2.3 *
3
+
4
+ * Do not use development ruby/version, but simple memoize an eval check on init to find out, for 1.8.6 reflection.
5
+
6
+
2
7
  * 0.2.2 *
3
8
 
4
9
  * Fixed failing test in Ruby 1.8.6. DateTime doesn't support fractional seconds greater than 59. See: http://redmine.ruby-lang.org/issues/show/1490 [Erik Bryn]
@@ -165,7 +165,7 @@ static VALUE rb_tinytds_result_fetch_row(VALUE self, ID timezone, int symbolize_
165
165
  if (year < 1902 || year+month+day > 2058) {
166
166
  VALUE datetime_sec = INT2NUM(sec);
167
167
  if (msec != 0) {
168
- if ((opt_ruby_186 == 0 && sec < 59) || (opt_ruby_186 != 0 )) {
168
+ if ((opt_ruby_186 == 1 && sec < 59) || (opt_ruby_186 != 1)) {
169
169
  #ifdef HAVE_RUBY_ENCODING_H
170
170
  VALUE rational_msec = rb_Rational2(INT2NUM(msec*1000), opt_onemil);
171
171
  #else
@@ -415,7 +415,7 @@ void init_tinytds_result() {
415
415
  opt_tenk = INT2NUM(10000);
416
416
  opt_onemil = INT2NUM(1000000);
417
417
  /* Ruby version flags */
418
- opt_ruby_186 = strcmp(ruby_version, "1.8.6");
418
+ opt_ruby_186 = (rb_eval_string("RUBY_VERSION == '1.8.6'") == Qtrue) ? 1 : 0;
419
419
  /* Encoding */
420
420
  #ifdef HAVE_RUBY_ENCODING_H
421
421
  binaryEncoding = rb_enc_find("binary");
@@ -3,7 +3,6 @@
3
3
  #define MSDBLIB
4
4
 
5
5
  #include <ruby.h>
6
- #include <ruby/version.h>
7
6
  #include <sqlfront.h>
8
7
  #include <sybdb.h>
9
8
  #include <syberror.h>
@@ -15,5 +15,5 @@ require 'tiny_tds/tiny_tds'
15
15
  #
16
16
  # Tiny Ruby Wrapper For FreeTDS Using DB-Library
17
17
  module TinyTds
18
- VERSION = '0.2.2'
18
+ VERSION = '0.2.3'
19
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Collins
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-26 00:00:00 -04:00
19
+ date: 2010-11-13 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -42,6 +42,7 @@ files:
42
42
  - lib/tiny_tds/client.rb
43
43
  - lib/tiny_tds/error.rb
44
44
  - lib/tiny_tds/result.rb
45
+ - lib/tiny_tds/tiny_tds.bundle
45
46
  - lib/tiny_tds.rb
46
47
  has_rdoc: true
47
48
  homepage: http://github.com/rails-sqlserver/tiny_tds