tiny_tds 0.4.5.rc1-x86-mingw32 → 0.4.5.rc2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
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'
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 - The name for your server as defined in freetds.conf.
62
- * :host - Used if :dataserver blank. Removes need for freetds.conf file.
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 are compiling locally using MiniPortile (the default dev setup) and you do not have a user based freetds.conf file with your dataservers, you may have to configure the locally compiled freetds.conf file. You can find it at the ports/<platform>/freetds/<version>/etc/freetds.conf path locally to your repo. In this situation you may have to set the FREETDS environment variable too this full path.
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
 
@@ -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 ? ID2SYM(rb_intern(colname)) : rb_obj_freeze(ENCODED_STR_NEW2(colname));
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
- # support multiple ruby version (fat binaries under windows)
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"
@@ -1,3 +1,3 @@
1
1
  module TinyTds
2
- VERSION = '0.4.5.rc1'
2
+ VERSION = '0.4.5.rc2'
3
3
  end
data/test/client_test.rb CHANGED
@@ -47,7 +47,7 @@ class ClientTest < TinyTds::TestCase
47
47
 
48
48
  should 'be able to use :host/:port connection' do
49
49
  client = new_connection :dataserver => nil, :host => ENV['TINYTDS_UNIT_HOST'], :port => 1433
50
- end
50
+ end unless sqlserver_azure?
51
51
 
52
52
  end
53
53
 
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: 15424127
4
+ hash: 15424121
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 5
10
10
  - rc
11
- - 1
12
- version: 0.4.5.rc1
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-15 00:00:00 -04:00
21
+ date: 2011-04-26 00:00:00 -04:00
22
22
  default_executable:
23
23
  dependencies: []
24
24