migsql 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/migsql/sqlserver.rb +12 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70f4ac98e78e117b2971457e81d938c5c8962df3
4
- data.tar.gz: 8c348218ceed1de62ba3c5f660af36315488bbae
3
+ metadata.gz: cfdf39445a97da0203bdf5beba04950429860556
4
+ data.tar.gz: 41e0fb48e26d9aca82746026157d5c5b7437b53b
5
5
  SHA512:
6
- metadata.gz: efbc4901c190d6069cba49847ae6b699199ba0adb93923af6bf731c1e78c70580f67f2b9168747c534cbb93a107931e7e0662bce5f5534dbf66a98dbe5d9a60b
7
- data.tar.gz: 0ae56076ba182cf60838b5c8f1f075e7138eb2f3c4433f1c8167d3a457fae29c160c713255ce87165bf0dde87fda18567e7713e84124edccdd6bee6200309df1
6
+ metadata.gz: 3b0bdafb4775ae32f28dfce58f7a5ed58b027fb2c2ba92ac6cbaf52378a97515cc07023b2a41699a2b24b765c5175afdb6de1084235b6ca981b36649c2dd9538
7
+ data.tar.gz: 36d14498647ad5ba4b9f9fb7134bed208715211e3e2d301e3d4abaa7df76a63f8d609ba19592197fbeb60d7c0f1c14c8bdafbff6ee4e1b399d0b4a5801217c81
@@ -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.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-12 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize