tiny_tds 0.9.5.beta.9 → 0.9.5.beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/VERSION +1 -1
  4. data/lib/tiny_tds/bin.rb +5 -4
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ebb84f30b5cbf5d6ceac3f3bbb5804a56a4b40d
4
- data.tar.gz: 8c01d7757a794cc320eb94a421bbcc293d15d583
3
+ metadata.gz: d55a7898dfcc696cc276f55cc497ea47044dd239
4
+ data.tar.gz: b7e9a04505bb3080a2e2bd0faf494e7b9c3b5284
5
5
  SHA512:
6
- metadata.gz: 2ec05f153a1b5f4a64b3113dfafbc7f8a445a91da1f3ebe5f2244e6839245de783878a2e480b5316fc8b23e1eec62a9fb12801098ba2d7e9f0c913425e98839c
7
- data.tar.gz: 64eddfff3082ad2917deca6ed98f3ecc1e562ba0e70c44c8c13c204a2c2b00122939cd21d2941c8ed2823980666cf272339b39529ee1488f52a4b04b0e8a6165
6
+ metadata.gz: 395654308419a0538dc084ef57028494a74259dc5de4713c09990760bef73d688a40898501ff607e95c0f0db49e197986db0b6bc315c7699af221bbdbb80268a
7
+ data.tar.gz: c2790878596cbf87258f78c35e5591290ea6b48504dbed167f968c1a3a9ed0d426b682a55963ddc22bcdc3c44065f92f168e6548d18e37976d42225260c640df
data/.gitignore CHANGED
@@ -15,6 +15,6 @@ lib/tiny_tds/tiny_tds.rb
15
15
  Gemfile.lock
16
16
  misc
17
17
  *.gem
18
- /exe/tsql
18
+ /exe/*
19
19
  /ports/*
20
20
  !/ports/patches/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5.beta.9
1
+ 0.9.5.beta.10
data/lib/tiny_tds/bin.rb CHANGED
@@ -3,9 +3,9 @@ require_relative './version'
3
3
  module TinyTds
4
4
  class Bin
5
5
 
6
- ROOT = File.expand_path '../..', __FILE__
6
+ ROOT = File.expand_path '../../..', __FILE__
7
7
  PATHS = ENV['PATH'].split File::PATH_SEPARATOR
8
- EXTS = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
8
+ EXTS = (ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']) | ['.exe']
9
9
 
10
10
  attr_reader :name
11
11
 
@@ -19,7 +19,7 @@ module TinyTds
19
19
 
20
20
  end
21
21
 
22
- def initialize(name, options = {})
22
+ def initialize(name)
23
23
  @name = name
24
24
  @binstub = find_bin
25
25
  @exefile = find_exe
@@ -27,7 +27,7 @@ module TinyTds
27
27
 
28
28
  def path
29
29
  return @path if defined?(@path)
30
- @path = File.exists?(@exefile) ? @exefile : which
30
+ @path = @exefile && File.exists?(@exefile) ? @exefile : which
31
31
  end
32
32
 
33
33
  def info
@@ -44,6 +44,7 @@ module TinyTds
44
44
  def find_exe
45
45
  EXTS.each do |ext|
46
46
  f = File.join ROOT, 'exe', "#{@name}#{ext}"
47
+ puts f.inspect
47
48
  return f if File.exists?(f)
48
49
  end
49
50
  nil
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.9
4
+ version: 0.9.5.beta.10
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-03 00:00:00.000000000 Z
13
+ date: 2016-01-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2