tiny_tds 0.4.1 → 0.4.2

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,11 @@
1
1
 
2
+ * 0.4.2 *
3
+
4
+ * Iconv is a dep only when compiling locally. However, left in the ability to configure it for native gem installation but you must use --enable-iconv before using --with-iconv-dir=/some/dir
5
+
6
+ * Really fix what 0.4.1 was supposed to do, force SYBDBLIB compile.
7
+
8
+
2
9
  * 0.4.1 *
3
10
 
4
11
  * Undefine MSDBLIB in case others have explicitly compiled FreeTDS with "MS db-lib source compatibility: yes".
@@ -1,9 +1,10 @@
1
1
  require 'mkmf'
2
2
 
3
- FREETDS_LIBRARIES = ['iconv','sybdb']
3
+ FREETDS_LIBRARIES = ['sybdb']
4
+ FREETDS_LIBRARIES.unshift 'iconv' if enable_config('iconv')
4
5
  FREETDS_HEADERS = ['sybfront.h', 'sybdb.h']
5
6
 
6
- dir_config('iconv')
7
+ dir_config('iconv') if enable_config('iconv')
7
8
  dir_config('freetds')
8
9
 
9
10
  def root_paths
@@ -1,6 +1,8 @@
1
1
  #ifndef TINYTDS_EXT
2
2
  #define TINYTDS_EXT
3
+
3
4
  #undef MSDBLIB
5
+ #define SYBDBLIB
4
6
 
5
7
  #include <ruby.h>
6
8
  #include <sybfront.h>
data/lib/tiny_tds.rb CHANGED
@@ -14,5 +14,5 @@ require 'tiny_tds/tiny_tds'
14
14
  #
15
15
  # Tiny Ruby Wrapper For FreeTDS Using DB-Library
16
16
  module TinyTds
17
- VERSION = '0.4.1'
17
+ VERSION = '0.4.2'
18
18
  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: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Collins