tiny_tds 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +6 -0
- data/ISSUE_TEMPLATE.md +5 -0
- data/README.md +2 -4
- data/VERSION +1 -1
- data/ext/tiny_tds/extconf.rb +6 -2
- data/ext/tiny_tds/extconsts.rb +2 -2
- data/ports/patches/freetds/{1.0rc4 → 1.0rc5}/0001-mingw_missing_inet_pton.diff +0 -0
- metadata +24 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16f19b88b2af813b40111bc7037e29dc773ed216
|
4
|
+
data.tar.gz: 67b84cff4db4f36ab101ce4d5cd0f28195ad116d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ec85b85f29b525bbf1400d1080aee4c9de8c48c7aa1ee826b56d9536d867210e5e3410e362ea6dddb0c70df268c391062ca38ed581e868d1fce2f1e019545a7
|
7
|
+
data.tar.gz: 1e1328944b90be3fd9652b9657230c2f21feda64fbc15410dcfbaf7e7cc03892dd2d25da28a7fbac3ff55c8f510fe7addc19b2d33c2c00175b9715711c6b8139
|
data/CHANGELOG
CHANGED
data/ISSUE_TEMPLATE.md
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
Having problems? Have you checked these first:
|
2
|
+
|
3
|
+
* Are you using FreeTDS 0.95.80 or later? Check `$ tsql -C` to find out.
|
4
|
+
* If not, please update then uninstall the TinyTDS gem and re-install it.
|
5
|
+
* Are you using Ubuntu? If so, you may have forgotten to install FreeTDS first.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
|
2
2
|
|
3
|
-
[![Build Status](https://ci.appveyor.com/api/projects/status/g2bhhbsdkx0mal55/branch/master?svg=true)](https://ci.appveyor.com/project/rails-sqlserver/tiny-tds/branch/master) [![Gem Version](https://img.shields.io/
|
3
|
+
[![Build Status](https://ci.appveyor.com/api/projects/status/g2bhhbsdkx0mal55/branch/master?svg=true)](https://ci.appveyor.com/project/rails-sqlserver/tiny-tds/branch/master) [![Gem Version](https://img.shields.io/gem/v/tiny_tds.svg)](https://rubygems.org/gems/tiny_tds) [![Gitter chat](https://img.shields.io/badge/%E2%8A%AA%20GITTER%20-JOIN%20CHAT%20%E2%86%92-brightgreen.svg?style=flat)](https://gitter.im/rails-sqlserver/activerecord-sqlserver-adapter)
|
4
4
|
|
5
5
|
The TinyTDS gem is meant to serve the extremely common use-case of connecting, querying and iterating over results to Microsoft SQL Server or Sybase databases from Ruby using the FreeTDS's DB-Library API.
|
6
6
|
|
@@ -62,9 +62,7 @@ TinyTDS is developed against FreeTDS 0.95, 0.99, and 1.0 current. Our default an
|
|
62
62
|
|
63
63
|
Our goal is to support every SQL Server data type and covert it to a logical Ruby object. When dates or times are returned, they are instantiated to either `:utc` or `:local` time depending on the query options. Only [datetimeoffset] types are excluded. All strings are associated the to the connection's encoding and all binary data types are associated to Ruby's `ASCII-8BIT/BINARY` encoding.
|
64
64
|
|
65
|
-
Below is a list of the data types we support when using the 7.3 TDS protocol version.
|
66
|
-
|
67
|
-
Using a lower protocol version will result in these types being returned as strings.
|
65
|
+
Below is a list of the data types we support when using the 7.3 TDS protocol version. Using a lower protocol version will result in these types being returned as strings.
|
68
66
|
|
69
67
|
* [date]
|
70
68
|
* [datetime2]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/ext/tiny_tds/extconf.rb
CHANGED
@@ -292,13 +292,17 @@ else
|
|
292
292
|
end
|
293
293
|
|
294
294
|
def asplode(lib)
|
295
|
-
|
295
|
+
msg = "-----\n"
|
296
|
+
msg << "#{lib} is missing.\n"
|
297
|
+
msg << "Do you have FreeTDS 0.95.80 or higher installed?\n" if lib == 'freetds'
|
298
|
+
msg << "-----"
|
299
|
+
abort(msg)
|
296
300
|
end
|
297
301
|
|
298
302
|
def freetds_usable?(lib_prefix)
|
299
303
|
have_header('sybfront.h') && have_header('sybdb.h') &&
|
300
304
|
find_library("#{lib_prefix}sybdb", 'tdsdbopen') &&
|
301
|
-
find_library("#{lib_prefix}
|
305
|
+
find_library("#{lib_prefix}sybdb", 'dbanydatecrack')
|
302
306
|
end
|
303
307
|
|
304
308
|
# We use freetds, when available already, and fallback to compilation of ports
|
data/ext/tiny_tds/extconsts.rb
CHANGED
@@ -5,11 +5,11 @@ ICONV_SOURCE_URI = "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{ICONV_VERSION
|
|
5
5
|
OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '1.0.2g'
|
6
6
|
OPENSSL_SOURCE_URI = "https://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz"
|
7
7
|
|
8
|
-
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "1.
|
8
|
+
FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "1.0rc5"
|
9
9
|
FREETDS_VERSION_INFO = Hash.new { |h,k|
|
10
10
|
h[k] = {files: "ftp://ftp.freetds.org/pub/freetds/stable/freetds-#{k}.tar.bz2"}
|
11
11
|
}
|
12
|
-
FREETDS_VERSION_INFO['1.
|
12
|
+
FREETDS_VERSION_INFO['1.0rc5'] = {files: 'ftp://ftp.freetds.org/pub/freetds/stable/release_candidates/freetds-1.0rc5.tar.bz2'}
|
13
13
|
FREETDS_VERSION_INFO['0.99'] = {files: 'ftp://ftp.freetds.org/pub/freetds/current/freetds-dev.0.99.678.tar.gz'}
|
14
14
|
FREETDS_VERSION_INFO['0.95'] = {files: 'ftp://ftp.freetds.org/pub/freetds/stable/freetds-0.95.92.tar.gz'}
|
15
15
|
FREETDS_SOURCE_URI = FREETDS_VERSION_INFO[FREETDS_VERSION][:files]
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-05-
|
13
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- CHANGELOG
|
113
113
|
- CODE_OF_CONDUCT.md
|
114
114
|
- Gemfile
|
115
|
+
- ISSUE_TEMPLATE.md
|
115
116
|
- MIT-LICENSE
|
116
117
|
- README.md
|
117
118
|
- Rakefile
|
@@ -134,8 +135,7 @@ files:
|
|
134
135
|
- lib/tiny_tds/error.rb
|
135
136
|
- lib/tiny_tds/result.rb
|
136
137
|
- lib/tiny_tds/version.rb
|
137
|
-
- ports/
|
138
|
-
- ports/patches/freetds/1.0rc4/0001-mingw_missing_inet_pton.diff
|
138
|
+
- ports/patches/freetds/1.0rc5/0001-mingw_missing_inet_pton.diff
|
139
139
|
- test/appveyor/dbsetup.ps1
|
140
140
|
- test/appveyor/dbsetup.sql
|
141
141
|
- test/benchmark/query.rb
|
@@ -175,8 +175,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.6.4
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
|
182
|
-
test_files:
|
182
|
+
test_files:
|
183
|
+
- test/appveyor/dbsetup.ps1
|
184
|
+
- test/appveyor/dbsetup.sql
|
185
|
+
- test/benchmark/query.rb
|
186
|
+
- test/benchmark/query_odbc.rb
|
187
|
+
- test/benchmark/query_tinytds.rb
|
188
|
+
- test/client_test.rb
|
189
|
+
- test/result_test.rb
|
190
|
+
- test/schema/1px.gif
|
191
|
+
- test/schema/sqlserver_2000.sql
|
192
|
+
- test/schema/sqlserver_2005.sql
|
193
|
+
- test/schema/sqlserver_2008.sql
|
194
|
+
- test/schema/sqlserver_2014.sql
|
195
|
+
- test/schema/sqlserver_azure.sql
|
196
|
+
- test/schema/sybase_ase.sql
|
197
|
+
- test/schema_test.rb
|
198
|
+
- test/test_helper.rb
|
199
|
+
- test/thread_test.rb
|
200
|
+
has_rdoc:
|