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.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/VERSION +1 -1
- data/lib/tiny_tds/bin.rb +5 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d55a7898dfcc696cc276f55cc497ea47044dd239
|
4
|
+
data.tar.gz: b7e9a04505bb3080a2e2bd0faf494e7b9c3b5284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 395654308419a0538dc084ef57028494a74259dc5de4713c09990760bef73d688a40898501ff607e95c0f0db49e197986db0b6bc315c7699af221bbdbb80268a
|
7
|
+
data.tar.gz: c2790878596cbf87258f78c35e5591290ea6b48504dbed167f968c1a3a9ed0d426b682a55963ddc22bcdc3c44065f92f168e6548d18e37976d42225260c640df
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.5.beta.
|
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 '
|
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
|
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.
|
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-
|
13
|
+
date: 2016-01-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|