tiny_tds 2.1.0.pre4-x86-mingw32 → 2.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -0
  3. data/VERSION +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c8bdee6eccc0d9d172868d4c9e69d5bffc6ffa5
4
- data.tar.gz: bd6498e2b1fab6e0b2b60722cc269b0718b2728f
3
+ metadata.gz: ff8ee5c9f0a0ec6dc96955c95c667c0041136f95
4
+ data.tar.gz: 8370f4d79d2586a9a73e505980c1ada6361c602d
5
5
  SHA512:
6
- metadata.gz: 90e6a7c343f42492a80537ca001ccab9c3e6f1ac8648aa1b9c5204e598f79244fb87e49ebd8c4051a4707b0773071c4f70d28951f9006e8a484f331dc7135ad2
7
- data.tar.gz: f6274aa1e275f06f8f1c6920888628ab7892ee7d04f87741eeac299efa6624e9c7638ae5e442e15082fef241abf455e4cd7c4a5deb14452f5118fa2262c55f44
6
+ metadata.gz: c8b26294ceea2e0a12690e928678f062bb52b45d55fd3e359b144e1f0728c0d70bde602b17e3b777c5f35fadb721b7db50ca6a2e2b0e37cbad0bbb7b61867f8b
7
+ data.tar.gz: b8f65b82e3c51b44a14e6b78f7a3f1fb148a758e2a35785bd46d7d0f38fd05eca587484101670e30f61eb91ec5503cf70473ab90f6d1064299bc03d1de3a9ba3
data/README.md CHANGED
@@ -122,6 +122,17 @@ Creating a new client takes a hash of options. For valid iconv encoding options,
122
122
  * :azure - Pass true to signal that you are connecting to azure.
123
123
  * :contained - Pass true to signal that you are connecting with a contained database user.
124
124
  * :use_utf16 - Instead of using UCS-2 for database wide character encoding use UTF-16. Newer Windows versions use this encoding instead of UCS-2. Default true.
125
+ * :message_handler - Pass in a `call`-able object such as a `Proc` or a method to receive info messages from the database. It should have a single parameter, which will be a `TinyTds::Error` object representing the message. For example:
126
+
127
+ ```ruby
128
+ opts = ... # host, username, password, etc
129
+ opts[:message_handler] = Proc.new { |m| puts m.message }
130
+ client = TinyTds::Client.new opts
131
+ # => Changed database context to 'master'.
132
+ # => Changed language setting to us_english.
133
+ client.execute("print 'hello world!'").do
134
+ # => hello world!
135
+ ```
125
136
 
126
137
  Use the `#active?` method to determine if a connection is good. The implementation of this method may change but it should always guarantee that a connection is good. Current it checks for either a closed or dead connection.
127
138
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0.pre4
1
+ 2.1.0
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.pre4
4
+ version: 2.1.0
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-09-22 00:00:00.000000000 Z
13
+ date: 2017-10-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -228,9 +228,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
228
  version: '2.5'
229
229
  required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  requirements:
231
- - - ">"
231
+ - - ">="
232
232
  - !ruby/object:Gem::Version
233
- version: 1.3.1
233
+ version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
236
  rubygems_version: 2.6.12