tiny_tds 0.7.0 → 0.9.5.beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,17 +15,19 @@ class ThreadTest < TinyTds::TestCase
15
15
  @pool = ConnectionPool.new(:size => @poolsize, :timeout => 5) { new_connection }
16
16
  end
17
17
 
18
+ after do
19
+ @pool.shutdown { |c| c.close }
20
+ end
21
+
18
22
  it 'should finish faster in parallel' do
23
+ skip if sqlserver_azure?
19
24
  x = Benchmark.realtime do
20
25
  threads = []
21
26
  @numthreads.times do |i|
22
27
  start = Time.new
23
28
  threads << Thread.new do
24
29
  ts = Time.new
25
- @pool.with do |client|
26
- result = client.execute @query
27
- result.each { |r| puts r }
28
- end
30
+ @pool.with { |c| c.execute(@query).do }
29
31
  te = Time.new
30
32
  @logger.info "Thread #{i} finished in #{te - ts} thread seconds, #{te - start} real seconds"
31
33
  end
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: 0.7.0
4
+ version: 0.9.5.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
@@ -10,22 +10,22 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-09 00:00:00.000000000 Z
13
+ date: 2015-12-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: mini_portile
16
+ name: mini_portile2
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.6.2
21
+ version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.6.2
28
+ version: '2.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,8 @@ description: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using
101
101
  email:
102
102
  - ken@metaskills.net
103
103
  - will@wbond.net
104
- executables: []
104
+ executables:
105
+ - tsql
105
106
  extensions:
106
107
  - ext/tiny_tds/extconf.rb
107
108
  extra_rdoc_files: []
@@ -113,10 +114,14 @@ files:
113
114
  - MIT-LICENSE
114
115
  - README.md
115
116
  - Rakefile
117
+ - VERSION
116
118
  - appveyor.yml
119
+ - bin/tsql
120
+ - exe/.keep
117
121
  - ext/tiny_tds/client.c
118
122
  - ext/tiny_tds/client.h
119
123
  - ext/tiny_tds/extconf.rb
124
+ - ext/tiny_tds/extconsts.rb
120
125
  - ext/tiny_tds/result.c
121
126
  - ext/tiny_tds/result.h
122
127
  - ext/tiny_tds/tiny_tds_ext.c
@@ -126,9 +131,9 @@ files:
126
131
  - lib/tiny_tds/error.rb
127
132
  - lib/tiny_tds/result.rb
128
133
  - lib/tiny_tds/version.rb
129
- - ports/archives/freetds-0.91.112.tar.gz
130
- - ports/patches/freetds/0.91/Makefile.in.diff
131
- - ports/patches/freetds/0.91/dblib-30-char-username.diff
134
+ - ports/patches/freetds/0.91.112/Makefile.in.diff
135
+ - ports/patches/freetds/0.91.112/dblib-30-char-username.diff
136
+ - ports/patches/freetds/0.95.75/0001-mingw_missing_inet_pton.diff
132
137
  - test/appveyor/dbsetup.ps1
133
138
  - test/appveyor/dbsetup.sql
134
139
  - test/benchmark/query.rb
@@ -159,16 +164,33 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
164
  requirements:
160
165
  - - ">="
161
166
  - !ruby/object:Gem::Version
162
- version: '0'
167
+ version: 2.0.0
163
168
  required_rubygems_version: !ruby/object:Gem::Requirement
164
169
  requirements:
165
- - - ">="
170
+ - - ">"
166
171
  - !ruby/object:Gem::Version
167
- version: '0'
172
+ version: 1.3.1
168
173
  requirements: []
169
174
  rubyforge_project:
170
175
  rubygems_version: 2.4.8
171
176
  signing_key:
172
177
  specification_version: 4
173
178
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.
174
- test_files: []
179
+ test_files:
180
+ - test/appveyor/dbsetup.ps1
181
+ - test/appveyor/dbsetup.sql
182
+ - test/benchmark/query.rb
183
+ - test/benchmark/query_odbc.rb
184
+ - test/benchmark/query_tinytds.rb
185
+ - test/client_test.rb
186
+ - test/result_test.rb
187
+ - test/schema/1px.gif
188
+ - test/schema/sqlserver_2000.sql
189
+ - test/schema/sqlserver_2005.sql
190
+ - test/schema/sqlserver_2008.sql
191
+ - test/schema/sqlserver_2014.sql
192
+ - test/schema/sqlserver_azure.sql
193
+ - test/schema/sybase_ase.sql
194
+ - test/schema_test.rb
195
+ - test/test_helper.rb
196
+ - test/thread_test.rb