tiny_tds 0.4.5.rc1-x86-mingw32 → 0.4.5.rc2-x86-mingw32
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/Gemfile +4 -1
- data/README.rdoc +7 -5
- data/ext/tiny_tds/result.c +1 -1
- data/lib/tiny_tds.rb +1 -1
- data/lib/tiny_tds/version.rb +1 -1
- data/test/client_test.rb +1 -1
- metadata +4 -4
data/Gemfile
CHANGED
@@ -4,7 +4,7 @@ source :rubygems
|
|
4
4
|
group :development do
|
5
5
|
gem 'rake', '>= 0.8.7'
|
6
6
|
gem 'mini_portile', '0.2.2'
|
7
|
-
gem 'rake-compiler', '0.7.
|
7
|
+
gem 'rake-compiler', '0.7.8'
|
8
8
|
end
|
9
9
|
|
10
10
|
group :test do
|
@@ -15,4 +15,7 @@ group :test do
|
|
15
15
|
gem 'ruby-prof', '0.9.1'
|
16
16
|
gem 'ruby-debug', '0.10.3'
|
17
17
|
end
|
18
|
+
platforms :mri_19 do
|
19
|
+
gem 'ruby-debug19', '0.11.6'
|
20
|
+
end
|
18
21
|
end
|
data/README.rdoc
CHANGED
@@ -9,7 +9,7 @@ The API is simple and consists of these classes:
|
|
9
9
|
|
10
10
|
* TinyTds::Client - Your connection to the database.
|
11
11
|
* TinyTds::Result - Returned from issuing an #execute on the connection. It includes Enumerable.
|
12
|
-
* TinyTds::Error - A wrapper for all exceptions.
|
12
|
+
* TinyTds::Error - A wrapper for all FreeTDS exceptions.
|
13
13
|
|
14
14
|
|
15
15
|
== New & Noteworthy
|
@@ -58,8 +58,8 @@ Creating a new client takes a hash of options. For valid iconv encoding options,
|
|
58
58
|
|
59
59
|
* :username - The database server user.
|
60
60
|
* :password - The user password.
|
61
|
-
* :dataserver -
|
62
|
-
* :host - Used if :dataserver blank.
|
61
|
+
* :dataserver - Many options. Can be the name for your data server as defined in freetds.conf. Raw host name or IP will work here too. You can also used a named instance like 'localhost\SQLEXPRESS' too.
|
62
|
+
* :host - Used if :dataserver blank. Can be an host name or IP.
|
63
63
|
* :port - Defaults to 1433. Only used if :host is used.
|
64
64
|
* :database - The default database to use.
|
65
65
|
* :appname - Short string seen in SQL Servers process/activity window.
|
@@ -237,7 +237,7 @@ TinyTDS is fully tested with the Azure platform. You must set the :azure => true
|
|
237
237
|
|
238
238
|
|
239
239
|
|
240
|
-
== Development & Testing
|
240
|
+
== Development & Testing
|
241
241
|
|
242
242
|
We use bundler for development. Simply run "bundle install" then "rake" to build the gem and run the unit tests. The tests assume you have created a database named "tinytdstest" accessible by a database owner named "tinytds". Before running the test rake task, you may need to define a pair of environment variables that help the client connect to your specific FreeTDS database server name and which schema (2000, 2005, 2008 or azure) to use. For example:
|
243
243
|
|
@@ -245,7 +245,9 @@ We use bundler for development. Simply run "bundle install" then "rake" to build
|
|
245
245
|
or
|
246
246
|
$ rake TINYTDS_UNIT_HOST=mydb.host.net TINYTDS_SCHEMA=sqlserver_azure
|
247
247
|
|
248
|
-
If you
|
248
|
+
If you do not want to use MiniPortile to compile a local project version of FreeTDS, use the TINYTDS_SKIP_PORTS environment variable. This will ignore any port tasks and will instead look for your systems FreeTDS installation as a normal gem install would.
|
249
|
+
|
250
|
+
$ rake TINYTDS_SKIP_PORTS=true
|
249
251
|
|
250
252
|
For help and support.
|
251
253
|
|
data/ext/tiny_tds/result.c
CHANGED
@@ -266,7 +266,7 @@ static VALUE rb_tinytds_result_fields(VALUE self) {
|
|
266
266
|
VALUE fields = rb_ary_new2(rwrap->number_of_fields);
|
267
267
|
for (fldi = 0; fldi < rwrap->number_of_fields; fldi++) {
|
268
268
|
char *colname = dbcolname(rwrap->client, fldi+1);
|
269
|
-
VALUE field = symbolize_keys ?
|
269
|
+
VALUE field = symbolize_keys ? rb_str_intern(ENCODED_STR_NEW2(colname)) : rb_obj_freeze(ENCODED_STR_NEW2(colname));
|
270
270
|
rb_ary_store(fields, fldi, field);
|
271
271
|
}
|
272
272
|
/* Store the fields. */
|
data/lib/tiny_tds.rb
CHANGED
@@ -8,7 +8,7 @@ require 'tiny_tds/error'
|
|
8
8
|
require 'tiny_tds/client'
|
9
9
|
require 'tiny_tds/result'
|
10
10
|
|
11
|
-
#
|
11
|
+
# Support multiple ruby versions, fat binaries under Windows.
|
12
12
|
begin
|
13
13
|
RUBY_VERSION =~ /(\d+.\d+)/
|
14
14
|
require "tiny_tds/#{$1}/tiny_tds"
|
data/lib/tiny_tds/version.rb
CHANGED
data/test/client_test.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15424121
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 5
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 0.4.5.
|
11
|
+
- 2
|
12
|
+
version: 0.4.5.rc2
|
13
13
|
platform: x86-mingw32
|
14
14
|
authors:
|
15
15
|
- Ken Collins
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-04-
|
21
|
+
date: 2011-04-26 00:00:00 -04:00
|
22
22
|
default_executable:
|
23
23
|
dependencies: []
|
24
24
|
|