tiny_tds 2.1.0.pre4 → 2.1.0

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: ae946f0a8582c1105d1a9927d9866e228cce17fe
4
- data.tar.gz: 8763fb92c497e4cd0781be3292ad6ea1567cfead
3
+ metadata.gz: 8710cc108add38cb989f97937522ac6063c63ec9
4
+ data.tar.gz: 7d72498dada28f899ac3d53924453eeffd51dc59
5
5
  SHA512:
6
- metadata.gz: 3038107c41dc1aefc11dfaef02b1a9608b97bcb3b0f3ce4a243d209335bab85e00c5ffb0f982c5da145286000c9d9f0c7c931166c732d2f84192250917ed4bc1
7
- data.tar.gz: 1cca1065fd05681606e5a5eb24aaa3ed02d2e3a17bcf9352255b068a9d354e36e0a6a31683c4fc1cd0bc678bc9dfa509d4694a9a33fb987882b070d9c92e091a
6
+ metadata.gz: 158885f1e4a36e07d75913628b1802288ae88768f505da0b0643e3e8502ed2c6c3e5816d9843609fd99d0afa3cf1adfbf00f7e2f27f633704762c3f84de0baa6
7
+ data.tar.gz: 17d5c4c7cffd9bf04037351b3effa7cddb0253d6eedd78d26b3f2d0feb4ffbc92272abc4adf9853646fec7ee1e533e559c4f7c52e2f5e1d55d9a8b6818665362
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: 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: 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
@@ -193,9 +193,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  version: 2.0.0
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ">"
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
- version: 1.3.1
198
+ version: '0'
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 2.6.8