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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36dc167e62bd2d0e54548baf3f47317e629a3f83
4
- data.tar.gz: f8cd8afc4e7334bf75040001b792759c6b85dfec
3
+ metadata.gz: f57ff4a77ff05d8dbb1cc8a03fb9020ed562335e
4
+ data.tar.gz: 99d6f93e864332b4973e2e324005a7de94037077
5
5
  SHA512:
6
- metadata.gz: f44c628c83e96e476bcfb6b90ab0d96fb49a2d4495966e9ec4c2dfeecefc9b6d3960bd2663c942f0e1eaa3ccf13f57e340a7512f41269f57f36675045149e27b
7
- data.tar.gz: 6b41d615ad5ec2a1cdb5d3d54ee99097301302fddd2106427224aacf0f43adca302e292006977792711141fb45827454a99bec8b2691905b65eee8856491a44e
6
+ metadata.gz: c3c9a5849fc136edc766c972e83049759df124cdd55da9bbcf035b5ce0aa68293438796395fed7ebd6e5061942de46447ebacca99d889cc79a5c4e7e8e3bc5d9
7
+ data.tar.gz: 3c791a1fedafb290306516c202516a3b817379e0652e8894cf621de87c1af746ecd9d6d2e4569ae6b663a606d5f82a9d1a5375d15194cd21ddca8f11d7393098
@@ -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.source
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.source) {|query_path|
70
+ td_result = make_tmpfile(@statement.stripped_source) {|query_path|
71
71
  ds.exec(*command_args(query_path))
72
72
  }
73
73
  if @gzip
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.12.1'
3
+ VERSION = '5.12.2'
4
4
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- bricolage (5.12.1)
4
+ bricolage (5.12.2)
5
5
  aws-sdk (< 2)
6
6
  mysql2
7
7
  pg
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.1
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-29 00:00:00.000000000 Z
11
+ date: 2015-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg