rflow-components-file 1.0.0a3 → 1.0.0a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adee4b090b5e44353b07366ec40fbb87221ce26b
|
4
|
+
data.tar.gz: cdeef37e51aeb673ac6b3235563f8e47e61be045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607136b3a69316eb4943c7beb8ee19969b02d9598b7c5a14d1111054a6f5d5d50682f8f7527697ec69065798756515907ae33d2985d7adcf6a5acf5a560d0f48
|
7
|
+
data.tar.gz: 8870ccf54c7693851d37569f6f91c8c9bca2cb78e5e55dbd63fb30375aec8e3803bde175c0d4cb4096711e409b00ecb7c19a2f85d27efb31a16c560656e5ef7d
|
@@ -50,7 +50,7 @@ class RFlow
|
|
50
50
|
file.write(message.data.raw)
|
51
51
|
end
|
52
52
|
::File.rename(temp_output_file_path, final_output_file_path)
|
53
|
-
RFlow.logger.debug { "#{self.class.name}##{__method__}:
|
53
|
+
RFlow.logger.debug { "#{self.class.name}##{__method__}: Successfully output raw message to #{final_output_file_path}" }
|
54
54
|
rescue Errno::EEXIST => e
|
55
55
|
RFlow.logger.debug { "#{self.class.name}##{__method__}: File #{temp_output_file_path} exists, increasing entropy" }
|
56
56
|
@output_file_entropy += 1
|
@@ -4,18 +4,13 @@ class RFlow
|
|
4
4
|
module Components
|
5
5
|
module File
|
6
6
|
describe OutputRawToFiles do
|
7
|
-
let(:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
:output_ports => [],
|
12
|
-
:options => {
|
13
|
-
'file_name_prefix' => 'boom',
|
14
|
-
'file_name_suffix' => '.town',
|
15
|
-
'directory_path' => '/tmp'})
|
7
|
+
let(:config) do
|
8
|
+
{'file_name_prefix' => 'boom',
|
9
|
+
'file_name_suffix' => '.town',
|
10
|
+
'directory_path' => '/tmp'}
|
16
11
|
end
|
17
12
|
|
18
|
-
let(:component) { described_class.new
|
13
|
+
let(:component) { described_class.new.tap {|c| c.configure!(config) } }
|
19
14
|
|
20
15
|
it "should correctly process file name prefix/suffix" do
|
21
16
|
expect(component.send(:output_file_name)).to match(/boom.*0001.town/)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rflow-components-file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.0a4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael L. Artz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rflow
|