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 +4 -4
- data/jobclass/streaming_load.rb +2 -1
- data/lib/bricolage/version.rb +1 -1
- data/test/test_c_streaming_load.rb +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a5e474f1bf0c6dea10cfe5d5b13f3c364e9cc8
|
4
|
+
data.tar.gz: 8388f6793a9f21ba0884974b14066863f2d40058
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea970399f9e90a4c7838524a2f5defec648a172f72bc4dea8f61424805e5e3a7a355dae9c58eafc8cd780df3f4c3204344d9b51e21e08388a4a8efc42cca2a7
|
7
|
+
data.tar.gz: 52142307c7ba46c9635a770f3aa2c3955c7f0f96560ba06d8bbb83924aea060faf69ab1f99e6ff5f15936345d2c860801267e073d6cb6fff661d1eb1c4e5200a
|
data/jobclass/streaming_load.rb
CHANGED
@@ -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
|
}
|
data/lib/bricolage/version.rb
CHANGED
@@ -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.
|
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-
|
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
|