tiny_tds 0.9.5.beta.8-x64-mingw32 → 0.9.5.beta.9-x64-mingw32
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 +4 -4
- data/VERSION +1 -1
- data/bin/defncopy +1 -4
- data/bin/tsql +1 -4
- data/exe/defncopy.exe +0 -0
- data/exe/tsql.exe +0 -0
- data/lib/tiny_tds/bin.rb +24 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91dcddcf54dfa48b2696bce80add3e7853f7e1a7
|
4
|
+
data.tar.gz: 94c29f91fe6d5fedc8f4adb3ddc48cf73e71f2b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67ec08f75ba48bc34bb32540194d30cdbdfe3513b09578b0a031615c1a7a7cbbeb1327f3256f410c0c57d95037aef3c67669c40e58ed5649bc74772ea31e424c
|
7
|
+
data.tar.gz: 1d4685e4cde26be395175403bce5c141ec424ff8ed92f847b82e0879965c683817672c213af3b0dc3c37d1192f2ec1cb7e24a8df4b9fda8a53777f2aa957c7d6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.5.beta.
|
1
|
+
0.9.5.beta.9
|
data/bin/defncopy
CHANGED
data/bin/tsql
CHANGED
data/exe/defncopy.exe
CHANGED
Binary file
|
data/exe/tsql.exe
CHANGED
Binary file
|
data/lib/tiny_tds/bin.rb
CHANGED
@@ -9,11 +9,20 @@ module TinyTds
|
|
9
9
|
|
10
10
|
attr_reader :name
|
11
11
|
|
12
|
+
class << self
|
13
|
+
|
14
|
+
def exe(name, *args)
|
15
|
+
bin = new(name)
|
16
|
+
puts bin.info
|
17
|
+
Kernel.system bin.path, *args if bin.path
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
12
22
|
def initialize(name, options = {})
|
13
23
|
@name = name
|
14
|
-
@binstub =
|
15
|
-
@exefile =
|
16
|
-
puts info unless options[:silent]
|
24
|
+
@binstub = find_bin
|
25
|
+
@exefile = find_exe
|
17
26
|
end
|
18
27
|
|
19
28
|
def path
|
@@ -28,6 +37,18 @@ module TinyTds
|
|
28
37
|
|
29
38
|
private
|
30
39
|
|
40
|
+
def find_bin
|
41
|
+
File.join ROOT, 'bin', @name
|
42
|
+
end
|
43
|
+
|
44
|
+
def find_exe
|
45
|
+
EXTS.each do |ext|
|
46
|
+
f = File.join ROOT, 'exe', "#{@name}#{ext}"
|
47
|
+
return f if File.exists?(f)
|
48
|
+
end
|
49
|
+
nil
|
50
|
+
end
|
51
|
+
|
31
52
|
def which
|
32
53
|
PATHS.each do |path|
|
33
54
|
EXTS.each do |ext|
|