rflow-components-file 1.0.0a2 → 1.0.0a3
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 +4 -4
- data/.ruby-version +1 -1
- data/lib/rflow/components/file/version.rb +1 -1
- data/rflow-components-file.gemspec +4 -4
- data/spec/rflow/components/file/extensions/file_extension_spec.rb +12 -12
- data/spec/rflow/components/file/output_raw_to_files_spec.rb +2 -2
- data/spec/schema_spec.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47aa9be9b6cb5340b96540ad3fb83aa73ce6fe01
|
4
|
+
data.tar.gz: 61f99a11c08f8018a1d7c9f889e54297657fadd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 087c36aa1bb6e75c2c84f09ddb8161d6ceddd88fc71d30545abe03c2c7bf129187cbd7002e153276fc1080fe035a1bd120664f89af7e48a9dd9c860720386b65
|
7
|
+
data.tar.gz: 3a6a719dc6210b8d3444e841adb64ec0c4a29c9291eca60cd8fd15fae8532e23e59a99da67154f39fe605a445a6d8e8ef7994a6e77dbdcb3a6081a621301b3f6
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.1.
|
1
|
+
ruby-2.1.2
|
@@ -21,9 +21,9 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.add_dependency 'rflow', '~> 1.0.
|
24
|
+
s.add_dependency 'rflow', '~> 1.0.0a3'
|
25
25
|
|
26
|
-
s.add_development_dependency 'rspec', '~>
|
27
|
-
s.add_development_dependency 'rspec-collection_matchers', '~>
|
28
|
-
s.add_development_dependency 'rake', '
|
26
|
+
s.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
s.add_development_dependency 'rspec-collection_matchers', '~> 1.0'
|
28
|
+
s.add_development_dependency 'rake', '>= 10.3'
|
29
29
|
end
|
@@ -7,25 +7,25 @@ class RFlow
|
|
7
7
|
module Extensions
|
8
8
|
describe FileExtension do
|
9
9
|
it "should add the extension to RFlow::Configuration" do
|
10
|
-
Configuration.available_data_extensions['RFlow::Message::Data::File'].
|
10
|
+
expect(Configuration.available_data_extensions['RFlow::Message::Data::File']).to include(described_class)
|
11
11
|
end
|
12
12
|
|
13
13
|
it "should set the defaults" do
|
14
14
|
file = Message.new('RFlow::Message::Data::File').data.tap do |d|
|
15
|
-
d.path.
|
16
|
-
d.size.
|
17
|
-
d.content.
|
18
|
-
d.creation_timestamp.
|
19
|
-
d.modification_timestamp.
|
20
|
-
d.access_timestamp.
|
15
|
+
expect(d.path).to eq('/')
|
16
|
+
expect(d.size).to eq(0)
|
17
|
+
expect(d.content).to eq('')
|
18
|
+
expect(d.creation_timestamp).to be_nil
|
19
|
+
expect(d.modification_timestamp).to be_nil
|
20
|
+
expect(d.access_timestamp).to be_nil
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should correctly use integers or strings for size field" do
|
25
25
|
Message.new('RFlow::Message::Data::File').data.tap do |d|
|
26
|
-
d.size.
|
26
|
+
expect(d.size).to eq(0)
|
27
27
|
d.size = 10
|
28
|
-
d.size.
|
28
|
+
expect(d.size).to eq(10)
|
29
29
|
d.size = '20'
|
30
30
|
d.size == 20
|
31
31
|
end
|
@@ -34,11 +34,11 @@ class RFlow
|
|
34
34
|
it "should correctly use Time or xmlschema strings for timestamp fields" do
|
35
35
|
Message.new('RFlow::Message::Data::File').data.tap do |d|
|
36
36
|
now = Time.now
|
37
|
-
d.creation_timestamp.
|
37
|
+
expect(d.creation_timestamp).to be_nil
|
38
38
|
d.creation_timestamp = now
|
39
|
-
d.creation_timestamp.
|
39
|
+
expect(d.creation_timestamp).to eq(Time.xmlschema(now.xmlschema(9)))
|
40
40
|
d.creation_timestamp = now.xmlschema
|
41
|
-
d.creation_timestamp.
|
41
|
+
expect(d.creation_timestamp).to eq(Time.xmlschema(now.xmlschema))
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -18,7 +18,7 @@ class RFlow
|
|
18
18
|
let(:component) { described_class.new(component_config).tap {|c| c.configure!(component_config.options) } }
|
19
19
|
|
20
20
|
it "should correctly process file name prefix/suffix" do
|
21
|
-
component.send(:output_file_name).
|
21
|
+
expect(component.send(:output_file_name)).to match(/boom.*0001.town/)
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should do stuff" do
|
@@ -28,7 +28,7 @@ class RFlow
|
|
28
28
|
|
29
29
|
output_file_path = component.process_message nil, nil, nil, message
|
30
30
|
|
31
|
-
::File.exist?(output_file_path).
|
31
|
+
expect(::File.exist?(output_file_path)).to be true
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/spec/schema_spec.rb
CHANGED
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.0a3
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rflow
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.0a3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.0.0a3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec-collection_matchers
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '10.3'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '10.3'
|
69
69
|
description: Components that operate on files for the RFlow FBP framework. Also includes
|
70
70
|
the File schema
|
71
71
|
email:
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: 1.3.1
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project: rflow-components-file
|
118
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.3.0
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Components that operate on files for the RFlow FBP framework
|