slacker 1.0.23 → 1.0.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8f7439120f984fae40aee3ce97f796a2a96b32ba
4
- data.tar.gz: cbb9b90ef00f5303aac25d8426e98de8899c7cb1
2
+ SHA256:
3
+ metadata.gz: 02af12bc89bc302284faea95b0820b2d19b2d4c69e85439c96232f63b6f33440
4
+ data.tar.gz: 43622d7bd940057811738b646c38bd7e2a59f943aee0615be5147c7b860f532b
5
5
  SHA512:
6
- metadata.gz: ae6a3b6ca970e93203ad105bd6282f2de8f0d91ce7aaa32381ee5f2a4bba5f78ea2a90e32973876699481cb06cca4286c83c4582e21dad0699b3cdcdf9780545
7
- data.tar.gz: fa8146ef0e75ecf9c350d230392e258ad6b94656321629873004c1739d5b7b9ef0cae8a390c4276f0328e3f83201705032d2f9cd7aefcb4ee0473509fdc9b62d
6
+ metadata.gz: 2acad3081f84743484ab26e7e3752514685ec63f3e1abf7e04769bf34eb050225a81535d5929aa69dd2a2ebf52662eab3131a0ff8a2930788d5bda8137eaed87
7
+ data.tar.gz: b3da16c2af3019281e17f0eb93723429c6c0658e4764183388cca1f35d4ea8435187f58b952dbf7660c5d46b0b7c7bfeeb4aa028733c48879068d116ad844877
@@ -0,0 +1,9 @@
1
+ # Slacker
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/slacker.svg)](https://rubygems.org/gems/slacker)
4
+
5
+ Behavior Driven Development for SQL Server
6
+
7
+ Slacker is a transacted RSpec-based framework for developing automated tests for SQL Server 2005-2017 programmable objects such as stored procedures, scalar/table functions, triggers, etc.
8
+
9
+ * [__Documentation__](https://github.com/vassilvk/slacker/wiki)
@@ -25,8 +25,8 @@ Slacker.configure do |config|
25
25
  config.db_password = db_config["password"]
26
26
  config.db_port = db_config["port"] if !!db_config["port"]
27
27
  config.db_driver = db_config["driver"] if !!db_config["driver"]
28
- # Override console_enabled value with the value from configuration yaml
29
- config.console_enabled = db_config["console_enabled"] if db_config["console_enabled"] != nil
28
+ config.azure = db_config["azure"] if !!db_config["azure"]
29
+ config.console_enabled = db_config["console_enabled"] if !!db_config["console_enabled"]
30
30
  end
31
31
 
32
32
  if Slacker.application.run
@@ -165,7 +165,8 @@ EOF
165
165
  :password => @configuration.db_password,
166
166
  :host => @configuration.db_server,
167
167
  :database => @configuration.db_name,
168
- :port => @configuration.db_port
168
+ :port => @configuration.db_port,
169
+ :azure => @configuration.azure
169
170
 
170
171
  @database.query_options[:symbolize_keys] = true
171
172
  rescue TinyTds::Error => e
@@ -1,9 +1,19 @@
1
1
  module Slacker
2
2
  class Configuration
3
- attr_accessor :base_dir, :error_stream, :output_stream, :formatter, :db_server, :db_name, :db_user, :db_password, :db_port, :db_driver, :console_enabled
3
+ attr_accessor :base_dir,
4
+ :error_stream,
5
+ :output_stream,
6
+ :formatter,
7
+ :db_server,
8
+ :db_name,
9
+ :db_user,
10
+ :db_password,
11
+ :db_port,
12
+ :db_driver,
13
+ :azure,
14
+ :console_enabled
4
15
 
5
16
  def initialize
6
- @console_enabled = true
7
17
  @base_dir = Dir.pwd
8
18
  @error_stream = nil
9
19
  @output_stream = nil
@@ -15,6 +25,8 @@ module Slacker
15
25
  @db_password = nil
16
26
  @db_port = 1433
17
27
  @db_driver = 'odbc'
28
+ @azure = false
29
+ @console_enabled = true
18
30
  end
19
31
 
20
32
  def expand_path(path)
@@ -1,3 +1,3 @@
1
1
  module Slacker
2
- VERSION = "1.0.23"
2
+ VERSION = "1.0.24"
3
3
  end
@@ -7,6 +7,10 @@
7
7
  # See https://github.com/vassilvk/slacker/wiki/Slacker-Project#odbc-vs-tds for more information.
8
8
  driver: odbc
9
9
 
10
+ # Enable connections to azure databases.
11
+ # Applies only to tiny_tds driver.
12
+ azure: false
13
+
10
14
  # Full instance name when using odbc; hostname or IP when using tiny_tds.
11
15
  server: my_server
12
16
 
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "slacker"
16
16
 
17
- s.files = ['README.markdown', 'Rakefile', 'Gemfile', 'slacker.gemspec'] + Dir.glob("{bin,lib,spec}/**/*")
17
+ s.files = ['README.md', 'Rakefile', 'Gemfile', 'slacker.gemspec'] + Dir.glob("{bin,lib,spec}/**/*")
18
18
  s.test_files = Dir.glob("spec/**/*")
19
19
  s.executables = ['slacker', 'slacker_new']
20
20
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassil Kovatchev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,7 +82,7 @@ extensions: []
82
82
  extra_rdoc_files: []
83
83
  files:
84
84
  - Gemfile
85
- - README.markdown
85
+ - README.md
86
86
  - Rakefile
87
87
  - bin/slacker
88
88
  - bin/slacker_new
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project: slacker
170
- rubygems_version: 2.6.14.1
170
+ rubygems_version: 2.7.8
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Behavior Driven Development for SQL Server
@@ -1,21 +0,0 @@
1
- # Slacker
2
-
3
- Behavior Driven Development for SQL Server
4
-
5
- Slacker is a transacted RSpec-based framework for developing automated tests for SQL Server 2005-2017 programmable objects such as stored procedures, scalar/table functions, triggers, etc.
6
-
7
- # Resources
8
-
9
- * [__Documentation__](https://github.com/vassilvk/slacker/wiki)
10
-
11
-
12
- # LICENSE
13
- (The MIT License)
14
-
15
- Copyright (c) Vassil Kovatchev
16
-
17
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.