bricolage 5.12.1 → 5.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bricolage/jobfile.rb +1 -0
- data/lib/bricolage/tddatasource.rb +2 -2
- data/lib/bricolage/version.rb +1 -1
- data/test/home/Gemfile.lock +1 -1
- 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: f57ff4a77ff05d8dbb1cc8a03fb9020ed562335e
|
4
|
+
data.tar.gz: 99d6f93e864332b4973e2e324005a7de94037077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c9a5849fc136edc766c972e83049759df124cdd55da9bbcf035b5ce0aa68293438796395fed7ebd6e5061942de46447ebacca99d889cc79a5c4e7e8e3bc5d9
|
7
|
+
data.tar.gz: 3c791a1fedafb290306516c202516a3b817379e0652e8894cf621de87c1af746ecd9d6d2e4569ae6b663a606d5f82a9d1a5375d15194cd21ddca8f11d7393098
|
data/lib/bricolage/jobfile.rb
CHANGED
@@ -26,6 +26,7 @@ module Bricolage
|
|
26
26
|
rescue => err
|
27
27
|
raise ParameterError, "#{path}: embedded job definition syntax error: #{err.message}"
|
28
28
|
end
|
29
|
+
# avoid changing line number
|
29
30
|
stripped_sql = sql.sub(%r{\A/\*.*?^\*/}m, "\n" * block.count("\n"))
|
30
31
|
decls = make_sql_declarations(stripped_sql, values, path)
|
31
32
|
stmt = SQLStatement.new(StringResource.new(sql, path), decls)
|
@@ -55,7 +55,7 @@ module Bricolage
|
|
55
55
|
def source
|
56
56
|
buf = StringIO.new
|
57
57
|
buf.puts command_args(new_tmpfile_path).join(' ') + " <<EndTDSQL"
|
58
|
-
buf.puts @statement.
|
58
|
+
buf.puts @statement.stripped_source
|
59
59
|
buf.puts 'EndTDSQL'
|
60
60
|
buf.string
|
61
61
|
end
|
@@ -67,7 +67,7 @@ module Bricolage
|
|
67
67
|
raise JobFailure, "target file exists: #{@path.inspect}"
|
68
68
|
end
|
69
69
|
puts @statement.source
|
70
|
-
td_result = make_tmpfile(@statement.
|
70
|
+
td_result = make_tmpfile(@statement.stripped_source) {|query_path|
|
71
71
|
ds.exec(*command_args(query_path))
|
72
72
|
}
|
73
73
|
if @gzip
|
data/lib/bricolage/version.rb
CHANGED
data/test/home/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.12.
|
4
|
+
version: 5.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|