tiny_tds 2.1.0-x86-mingw32 → 2.1.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff8ee5c9f0a0ec6dc96955c95c667c0041136f95
4
- data.tar.gz: 8370f4d79d2586a9a73e505980c1ada6361c602d
3
+ metadata.gz: 22d04dbef08955be283a8074f03f508c88e2ea9f
4
+ data.tar.gz: c70bae716a000300500eeb3553d9305aa50e9a69
5
5
  SHA512:
6
- metadata.gz: c8b26294ceea2e0a12690e928678f062bb52b45d55fd3e359b144e1f0728c0d70bde602b17e3b777c5f35fadb721b7db50ca6a2e2b0e37cbad0bbb7b61867f8b
7
- data.tar.gz: b8f65b82e3c51b44a14e6b78f7a3f1fb148a758e2a35785bd46d7d0f38fd05eca587484101670e30f61eb91ec5503cf70473ab90f6d1064299bc03d1de3a9ba3
6
+ metadata.gz: 369ae5ce4b75708015da1eea6b28ce32c259c4bdce8d3f462bc9246372e0f8fe53e6ab53dabb21b0fecc523855400f283cbb23d53726932e89f683f1237db208
7
+ data.tar.gz: 568f46e6353f31275a9f2687db633839b80b33b3fcba0a0452d6a0f1a45212a1f785a191b3b515ca365bfcb5627c802e69ee0d3f7ee6aac3d015d50daae47e9b
data/ISSUE_TEMPLATE.md CHANGED
@@ -1,12 +1,38 @@
1
- Having problems? Have you checked these first:
1
+ ## Before submitting an issue please check these first!
2
2
 
3
- * Have you made sure to [enable SQL Server authentication](http://bit.ly/1Kw3set)?
3
+ * On Windows? If so, do you need devkit for your ruby install?
4
+ * Using Ubuntu? If so, you may have forgotten to install FreeTDS first.
4
5
  * Are you using FreeTDS 0.95.80 or later? Check `$ tsql -C` to find out.
5
6
  * If not, please update then uninstall the TinyTDS gem and re-install it.
6
- * Using Ubuntu? If so, you may have forgotten to install FreeTDS first.
7
+ * Have you made sure to [enable SQL Server authentication](http://bit.ly/1Kw3set)?
7
8
  * Doing work with threads and the raw client? Use the ConnectionPool gem?
8
9
 
9
- If none of these help. Please make sure to report:
10
+ If none of these help. Please fill out the following:
11
+
12
+ ## Environment
13
+
14
+ **Operating System**
15
+
16
+ Please describe your operating system and version here.
17
+ If unsure please try the following from the command line:
18
+
19
+ * For Windows: `systeminfo | findstr /C:OS`
20
+ * For Linux: `lsb_release -a; uname -a`
21
+ * For Mac OSX: `sw_vers`
22
+
23
+ **TinyTDS Version and Information**
24
+
25
+ ```
26
+ Please paste the full output of `ttds-tsql -C` (or `tsql -C` for older versions
27
+ of TinyTDS) here. If TinyTDS does not install, please provide the gem version.
28
+ ```
29
+
30
+
31
+ **FreeTDS Version**
32
+
33
+ Please provide your system's FreeTDS version. If you are using the pre-compiled
34
+ windows gem you may omit this section.
35
+
36
+ ## Description
10
37
 
11
- * What platform you are on. Windows, Mac, Ubuntu, etc.
12
- * What version of FreeTDS you are using.
38
+ Please describe the bug or feature request here.
data/README.md CHANGED
@@ -40,7 +40,7 @@ If you're using RubyInstaller the binary gem will require that devkit is install
40
40
  On all other platforms, we will find these dependencies. It is recommended that you install the latest FreeTDS via your method of choice. For example, here is how to install FreeTDS on Ubuntu. You might also need the `build-essential` and possibly the `libc6-dev` packages.
41
41
 
42
42
  ```shell
43
- $ apt-get wget
43
+ $ apt-get install wget
44
44
  $ apt-get install build-essential
45
45
  $ apt-get install libc6-dev
46
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -7,7 +7,6 @@ static ID sym_username, sym_password, sym_dataserver, sym_database, sym_appname,
7
7
  static ID intern_source_eql, intern_severity_eql, intern_db_error_number_eql, intern_os_error_number_eql;
8
8
  static ID intern_new, intern_dup, intern_transpose_iconv_encoding, intern_local_offset, intern_gsub, intern_call;
9
9
  VALUE opt_escape_regex, opt_escape_dblquote;
10
- VALUE message_handler;
11
10
 
12
11
 
13
12
  // Lib Macros
@@ -44,6 +43,7 @@ VALUE rb_tinytds_raise_error(DBPROCESS *dbproc, int is_message, int cancel, cons
44
43
  rb_funcall(e, intern_os_error_number_eql, 1, INT2FIX(oserr));
45
44
 
46
45
  if (severity <= 10 && is_message) {
46
+ VALUE message_handler = userdata && userdata->message_handler ? userdata->message_handler : Qnil;
47
47
  if (message_handler && message_handler != Qnil && rb_respond_to(message_handler, intern_call) != 0) {
48
48
  rb_funcall(message_handler, intern_call, 1, e);
49
49
  }
@@ -322,7 +322,7 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
322
322
  azure = rb_hash_aref(opts, sym_azure);
323
323
  contained = rb_hash_aref(opts, sym_contained);
324
324
  use_utf16 = rb_hash_aref(opts, sym_use_utf16);
325
- message_handler = rb_hash_aref(opts, sym_message_handler);
325
+ cwrap->userdata->message_handler = rb_hash_aref(opts, sym_message_handler);
326
326
  /* Dealing with options. */
327
327
  if (dbinit() == FAIL) {
328
328
  rb_raise(cTinyTdsError, "failed dbinit() function");
@@ -26,6 +26,7 @@ typedef struct {
26
26
  short int dbcancel_sent;
27
27
  short int nonblocking;
28
28
  tinytds_errordata nonblocking_error;
29
+ VALUE message_handler;
29
30
  } tinytds_client_userdata;
30
31
 
31
32
  typedef struct {
data/test/bin/setup.sh CHANGED
@@ -3,7 +3,7 @@
3
3
  set -x
4
4
  set -e
5
5
 
6
- tag=2.0
6
+ tag=2017-GA
7
7
 
8
8
  docker pull metaskills/mssql-server-linux-tinytds:$tag
9
9
 
data/test/test_helper.rb CHANGED
@@ -89,7 +89,7 @@ module TinyTds
89
89
  end
90
90
 
91
91
  def connection_timeout
92
- sqlserver_azure? ? 20 : 5
92
+ sqlserver_azure? ? 20 : 8
93
93
  end
94
94
 
95
95
  def assert_client_works(client)
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: 2.1.0
4
+ version: 2.1.1
5
5
  platform: x86-mingw32
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: 2017-10-01 00:00:00.000000000 Z
13
+ date: 2018-01-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.6.12
236
+ rubygems_version: 2.6.14
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.