bricolage 5.9.2 → 5.9.3

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: d90b31340ca5e8f083b1398ea38ec9ad8e5f48b7
4
- data.tar.gz: e24c75f6c80dba6d318ee7c23c81167c69790ba8
3
+ metadata.gz: 34a5e474f1bf0c6dea10cfe5d5b13f3c364e9cc8
4
+ data.tar.gz: 8388f6793a9f21ba0884974b14066863f2d40058
5
5
  SHA512:
6
- metadata.gz: 25c123224e59677fb1515b4be8000744d09850571190e5d32a31193f122e838cfe5f60ab4efb847cbd2d87de457f8c99889dea924bc74d94f4b018ed29c8f251
7
- data.tar.gz: bfb3624f71f581cdbf37a1cc05c71be6007ee5c585406b7dc87e5c022d1cd14a7c062b26aa9687083bee568e653abcff961e105033ea23f0c61232a2ea5324d6
6
+ metadata.gz: 7ea970399f9e90a4c7838524a2f5defec648a172f72bc4dea8f61424805e5e3a7a355dae9c58eafc8cd780df3f4c3204344d9b51e21e08388a4a8efc42cca2a7
7
+ data.tar.gz: 52142307c7ba46c9635a770f3aa2c3955c7f0f96560ba06d8bbb83924aea060faf69ab1f99e6ff5f15936345d2c860801267e073d6cb6fff661d1eb1c4e5200a
@@ -403,8 +403,9 @@ class StreamingLoadJobClass < RubyJobClass
403
403
  when '%S' then '(?<second>\\d{2})'
404
404
  when /\A%(\d+)N\z/ then "(?<nanosecond>\\d{#{$1}})"
405
405
  when '%Q' then '(?<seq>\\d+)'
406
+ when '%*' then '[^/]*'
406
407
  when '%%' then '%'
407
- when /\A%/ then raise ParameterError, "unknown time format in s3.file_name config: #{op}"
408
+ when /\A%/ then raise ParameterError, "unknown time format in s3.file_name config: #{op.inspect}"
408
409
  else Regexp.quote(op)
409
410
  end
410
411
  }
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.9.2'
3
+ VERSION = '5.9.3'
4
4
  end
@@ -0,0 +1,13 @@
1
+ require 'test/unit'
2
+ require 'bricolage/jobclass'
3
+ Bricolage::JobClass.get('streaming_load')
4
+
5
+ module Bricolage
6
+ class TestStreamingLoadJobClass_S3Queue < Test::Unit::TestCase
7
+ def test_compile_name_pattern
8
+ q = StreamingLoadJobClass::S3Queue.new(data_source: nil, queue_path: nil, persistent_path: nil, file_name: nil, logger: nil)
9
+ re = q.compile_name_pattern("%*%Y%m%d-%H%M_%Q.gz")
10
+ assert_equal /\A[^\/]*(?<year>\d{4})(?<month>\d{2})(?<day>\d{2})\-(?<hour>\d{2})(?<minute>\d{2})_(?<seq>\d+)\.gz\z/, re
11
+ end
12
+ end
13
+ end
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.9.2
4
+ version: 5.9.3
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-06-15 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -178,6 +178,7 @@ files:
178
178
  - test/home/subsys/separated.sql
179
179
  - test/home/subsys/unified.jobnet
180
180
  - test/home/subsys/unified.sql.job
181
+ - test/test_c_streaming_load.rb
181
182
  - test/test_filesystem.rb
182
183
  - test/test_parameters.rb
183
184
  - test/test_variables.rb