tiny_tds 0.9.5.beta.10 → 0.9.5.beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d55a7898dfcc696cc276f55cc497ea47044dd239
4
- data.tar.gz: b7e9a04505bb3080a2e2bd0faf494e7b9c3b5284
3
+ metadata.gz: 2ab446bd5f9bdd26723b0b4dc1823942cc09df05
4
+ data.tar.gz: c88a5e8f6ba5371a208ac7f21ebabbc4ab3cc391
5
5
  SHA512:
6
- metadata.gz: 395654308419a0538dc084ef57028494a74259dc5de4713c09990760bef73d688a40898501ff607e95c0f0db49e197986db0b6bc315c7699af221bbdbb80268a
7
- data.tar.gz: c2790878596cbf87258f78c35e5591290ea6b48504dbed167f968c1a3a9ed0d426b682a55963ddc22bcdc3c44065f92f168e6548d18e37976d42225260c640df
6
+ metadata.gz: 2d1c66462db430a601f3d14ce90f237e7b756404caac005625e610f195621923f45d155cdffe7dce634128d5b2593754f8492f676918ac0b2f174901f29ddc6e
7
+ data.tar.gz: 88d6d450c29b30f933b64e84225d1e84989e38af60eb1854ed053367ac40f6c6067b3d12602b825eab3a2e1866f1f658403d82eb4cf64000f9228d7660cd0007
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.10
1
+ 0.9.5.beta.11
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative '../lib/tiny_tds/bin'
3
- TinyTds::Bin.exe 'defncopy', *ARGV
3
+ Process.exit TinyTds::Bin.exe('defncopy', *ARGV)
data/bin/tsql CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
  require_relative '../lib/tiny_tds/bin'
3
- TinyTds::Bin.exe 'tsql', *ARGV
3
+ Process.exit TinyTds::Bin.exe('tsql', *ARGV)
@@ -5,7 +5,7 @@ ICONV_SOURCE_URI = "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-#{ICONV_VERSION
5
5
  OPENSSL_VERSION = ENV['TINYTDS_OPENSSL_VERSION'] || '1.0.2e'
6
6
  OPENSSL_SOURCE_URI = "http://www.openssl.org/source/openssl-#{OPENSSL_VERSION}.tar.gz"
7
7
 
8
- FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "0.95.78"
8
+ FREETDS_VERSION = ENV['TINYTDS_FREETDS_VERSION'] || "0.95.80"
9
9
  FREETDS_VERSION_INFO = Hash.new { |h,k|
10
10
  h[k] = {files: "ftp://ftp.freetds.org/pub/freetds/stable/freetds-#{k}.tar.bz2"}
11
11
  }
@@ -1,4 +1,5 @@
1
1
  require_relative './version'
2
+ require 'shellwords'
2
3
 
3
4
  module TinyTds
4
5
  class Bin
@@ -14,7 +15,7 @@ module TinyTds
14
15
  def exe(name, *args)
15
16
  bin = new(name)
16
17
  puts bin.info
17
- Kernel.system bin.path, *args if bin.path
18
+ bin.run(*args)
18
19
  end
19
20
 
20
21
  end
@@ -25,6 +26,12 @@ module TinyTds
25
26
  @exefile = find_exe
26
27
  end
27
28
 
29
+ def run(*args)
30
+ return nil unless path
31
+ Kernel.system Shellwords.join(args.unshift(path))
32
+ $?.to_i
33
+ end
34
+
28
35
  def path
29
36
  return @path if defined?(@path)
30
37
  @path = @exefile && File.exists?(@exefile) ? @exefile : which
@@ -38,13 +45,12 @@ module TinyTds
38
45
  private
39
46
 
40
47
  def find_bin
41
- File.join ROOT, 'bin', @name
48
+ File.join ROOT, 'bin', name
42
49
  end
43
50
 
44
51
  def find_exe
45
52
  EXTS.each do |ext|
46
- f = File.join ROOT, 'exe', "#{@name}#{ext}"
47
- puts f.inspect
53
+ f = File.join ROOT, 'exe', "#{name}#{ext}"
48
54
  return f if File.exists?(f)
49
55
  end
50
56
  nil
@@ -89,7 +89,7 @@ module TinyTds
89
89
  end
90
90
 
91
91
  def connection_timeout
92
- sqlserver_azure? ? 15 : 5
92
+ sqlserver_azure? ? 20 : 5
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: 0.9.5.beta.10
4
+ version: 0.9.5.beta.11
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: 2016-01-04 00:00:00.000000000 Z
13
+ date: 2016-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -136,7 +136,7 @@ files:
136
136
  - lib/tiny_tds/version.rb
137
137
  - ports/patches/freetds/0.91.112/Makefile.in.diff
138
138
  - ports/patches/freetds/0.91.112/dblib-30-char-username.diff
139
- - ports/patches/freetds/0.95.78/0001-mingw_missing_inet_pton.diff
139
+ - ports/patches/freetds/0.95.80/0001-mingw_missing_inet_pton.diff
140
140
  - test/appveyor/dbsetup.ps1
141
141
  - test/appveyor/dbsetup.sql
142
142
  - test/benchmark/query.rb