migsql 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/migsql/sqlserver.rb +12 -0
- 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: cfdf39445a97da0203bdf5beba04950429860556
|
4
|
+
data.tar.gz: 41e0fb48e26d9aca82746026157d5c5b7437b53b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b0bdafb4775ae32f28dfce58f7a5ed58b027fb2c2ba92ac6cbaf52378a97515cc07023b2a41699a2b24b765c5175afdb6de1084235b6ca981b36649c2dd9538
|
7
|
+
data.tar.gz: 36d14498647ad5ba4b9f9fb7134bed208715211e3e2d301e3d4abaa7df76a63f8d609ba19592197fbeb60d7c0f1c14c8bdafbff6ee4e1b399d0b4a5801217c81
|
data/lib/migsql/sqlserver.rb
CHANGED
@@ -18,6 +18,18 @@ class SqlServer
|
|
18
18
|
File.read("#{File.dirname(__FILE__)}/../../sql/#{name}.sql")
|
19
19
|
end
|
20
20
|
|
21
|
+
def username
|
22
|
+
ENV['migsql_username'] || @username
|
23
|
+
end
|
24
|
+
|
25
|
+
def password
|
26
|
+
ENV['migsql_password'] || @password
|
27
|
+
end
|
28
|
+
|
29
|
+
def address
|
30
|
+
ENV['migsql_address'] || @address
|
31
|
+
end
|
32
|
+
|
21
33
|
def get_client
|
22
34
|
require 'tiny_tds'
|
23
35
|
TinyTds::Client.new(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: migsql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Stoney
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|