slacker 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmQ1YzM5YjRiZTEwMWQ3YjZhZjRkNjRiMmNiZTZmNTJjMzZjZTMxZQ==
5
- data.tar.gz: !binary |-
6
- OTY5NWUzNjlkOGZkZTJlMzM2YWFlOGJhYWZlMWY5ZmJmZDZjZjViMQ==
2
+ SHA1:
3
+ metadata.gz: 650cd22650b261b607146109b17b7c53d7c933d9
4
+ data.tar.gz: 93a77fd0f27b7ae377367366c03ea873faf23160
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- Yzc3ZmNiNDZhNzYwZTZlZjQ4ODE2Zjg0NTFhMjI1NGVmM2FiYjViZTgwOTY4
10
- Yzc3YjI1NjFjYzJkODk3ZjEyY2JlYWZjMDVjOWNhYzY3OGRjODYxODQ2Y2Rj
11
- MDI0OTNhOGVmYTAwYjFkOGMzMjA3YzUxYjI2ODJhODU0ZDBiYjQ=
12
- data.tar.gz: !binary |-
13
- MDIyNTg0OWE5NDY1YzhhNWIzYmY5MGNhY2U4NjE1YmZjMGRjMDYyZDNhMWI2
14
- Nzg0N2NmNmM1YTMwMjEwNzYxOTkzYWZhZTM3YjU5MTZmOWFiY2FhNWE4ZWM1
15
- YjMzY2MzNzQzOGYwMGIxMDJjZTBiYzM4YjA5NjIyNDczYTYzYmQ=
6
+ metadata.gz: 92f265b355ce6f0f4fcf5ddd0fc4cec24a6ce4de46d554d9afc52ee990608bdce9e308c9bbed9c402b4810facc7e4ece0f32dc1d4128b60038eeaa2292304ef2
7
+ data.tar.gz: a228030b023cde3ad84d63a1d248ae2aa924efd152044b7e2febcd221f1bb8b988f6dfbfe1bae1ae9f9ac1d136b6ff75d39e01ffc2a01b87971f467de21e0db5
@@ -4,6 +4,9 @@ require 'csv'
4
4
 
5
5
  module Slacker
6
6
  module RSpecExt
7
+
8
+ # Execute a SQL query or the contents of a query template query file
9
+ # In case of a query file, it passes the options to the template
7
10
  def query(query_string, options = {}, log_name = nil)
8
11
  log_name ||= Slacker.construct_log_name('query', query_string, options)
9
12
  sql = Slacker.sql_from_query_string(query_string, options)
@@ -14,6 +17,7 @@ module Slacker
14
17
  @results
15
18
  end
16
19
 
20
+ # Exposes a reference to the sql object, which represents the contents of the SQL folder
17
21
  def sql
18
22
  Slacker.sql(self)
19
23
  end
@@ -23,14 +27,18 @@ module Slacker
23
27
  QueryResultMatcher.new(Slacker.filter_golden_master(golden_master))
24
28
  end
25
29
 
30
+ # Loads a CSV file and returns a reference to it
31
+ # The file is relative to the data folder of the Slacker project
26
32
  def csv(csv_file)
27
33
  Slacker.get_csv(csv_file)
28
34
  end
29
35
 
36
+ # Generate CSV::Table objects with an arbitrary number of records populated with data based on a template CSV file
30
37
  def touch_csv(csv_file_or_object, fields, field_generators = {})
31
38
  Slacker.touch_csv(csv_file_or_object, fields, field_generators)
32
39
  end
33
40
 
41
+ # Load a CSV file directly into a table in the target database
34
42
  def load_csv(csv_file_or_object, table_name, log_name = nil)
35
43
  log_name ||= "load_csv '#{csv_file_or_object.kind_of?(CSV::Table) ? 'CSV Object' : csv_file_or_object }', 'table_name'"
36
44
  csv_object = case csv_file_or_object
@@ -1,3 +1,3 @@
1
1
  module Slacker
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.12"
3
3
  end
data/slacker.gemspec CHANGED
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
22
22
  s.required_ruby_version = '>= 1.9.2'
23
23
 
24
24
  s.add_dependency 'bundler', '~> 1.0', '>= 1.0.15'
25
- s.add_dependency 'ruby-odbc', '= 0.99994'
25
+ s.add_dependency 'ruby-odbc', '= 0.99997'
26
26
  s.add_dependency 'rspec', '~> 3.0'
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassil Kovatchev
@@ -14,20 +14,20 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- - - ! '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.15
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.0'
30
- - - ! '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.15
33
33
  - !ruby/object:Gem::Dependency
@@ -36,26 +36,26 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: '0.99994'
39
+ version: '0.99997'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: '0.99994'
46
+ version: '0.99997'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '3.0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '3.0'
61
61
  description: RSpec-based framework for developing automated tests for SQL Server
@@ -134,17 +134,17 @@ require_paths:
134
134
  - lib
135
135
  required_ruby_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ! '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: 1.9.2
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
- - - ! '>='
142
+ - - ">="
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
146
  rubyforge_project: slacker
147
- rubygems_version: 2.4.8
147
+ rubygems_version: 2.2.5
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Behavior Driven Development for SQL Server