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: 47aa9be9b6cb5340b96540ad3fb83aa73ce6fe01
4
- data.tar.gz: 61f99a11c08f8018a1d7c9f889e54297657fadd2
3
+ metadata.gz: adee4b090b5e44353b07366ec40fbb87221ce26b
4
+ data.tar.gz: cdeef37e51aeb673ac6b3235563f8e47e61be045
5
5
  SHA512:
6
- metadata.gz: 087c36aa1bb6e75c2c84f09ddb8161d6ceddd88fc71d30545abe03c2c7bf129187cbd7002e153276fc1080fe035a1bd120664f89af7e48a9dd9c860720386b65
7
- data.tar.gz: 3a6a719dc6210b8d3444e841adb64ec0c4a29c9291eca60cd8fd15fae8532e23e59a99da67154f39fe605a445a6d8e8ef7994a6e77dbdcb3a6081a621301b3f6
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__}: Succesfully output raw message to #{final_output_file_path}" }
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
@@ -1,7 +1,7 @@
1
1
  class RFlow
2
2
  module Components
3
3
  module File
4
- VERSION = "1.0.0a3"
4
+ VERSION = "1.0.0a4"
5
5
  end
6
6
  end
7
7
  end
@@ -4,18 +4,13 @@ class RFlow
4
4
  module Components
5
5
  module File
6
6
  describe OutputRawToFiles do
7
- let(:component_config) do
8
- OpenStruct.new(:name => 'port name',
9
- :uuid => 0,
10
- :input_ports => [],
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(component_config).tap {|c| c.configure!(component_config.options) } }
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.0a3
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-16 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rflow