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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49e0feafd2bf3538bb54fc26b5397eb80990d8d5
4
- data.tar.gz: c0f1749b1ea6370addc49da2bb445fe35618c231
3
+ metadata.gz: 47aa9be9b6cb5340b96540ad3fb83aa73ce6fe01
4
+ data.tar.gz: 61f99a11c08f8018a1d7c9f889e54297657fadd2
5
5
  SHA512:
6
- metadata.gz: 694d39fb20d27a10ea09c5599916fb015f90c636987b8254ec6ca229716247b58823c5599a085ead9e1b37ab58618152e9a7e2658c012d856f3a2812d9aad1a4
7
- data.tar.gz: 58287bf900d590961d93f8db64de94eafcec18faa336cc9312922e294fe381ee70b94ffb6bb481ba836fdbacaef4a89cf4750ed5c3c3ef5ff3661b1d10c8d6e1
6
+ metadata.gz: 087c36aa1bb6e75c2c84f09ddb8161d6ceddd88fc71d30545abe03c2c7bf129187cbd7002e153276fc1080fe035a1bd120664f89af7e48a9dd9c860720386b65
7
+ data.tar.gz: 3a6a719dc6210b8d3444e841adb64ec0c4a29c9291eca60cd8fd15fae8532e23e59a99da67154f39fe605a445a6d8e8ef7994a6e77dbdcb3a6081a621301b3f6
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1.1
1
+ ruby-2.1.2
@@ -1,7 +1,7 @@
1
1
  class RFlow
2
2
  module Components
3
3
  module File
4
- VERSION = "1.0.0a2"
4
+ VERSION = "1.0.0a3"
5
5
  end
6
6
  end
7
7
  end
@@ -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.0a2'
24
+ s.add_dependency 'rflow', '~> 1.0.0a3'
25
25
 
26
- s.add_development_dependency 'rspec', '~> 2.99'
27
- s.add_development_dependency 'rspec-collection_matchers', '~> 0.0.4'
28
- s.add_development_dependency 'rake', '~> 0.8'
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'].should include(described_class)
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.should == '/'
16
- d.size.should == 0
17
- d.content.should == ''
18
- d.creation_timestamp.should be_nil
19
- d.modification_timestamp.should be_nil
20
- d.access_timestamp.should be_nil
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.should == 0
26
+ expect(d.size).to eq(0)
27
27
  d.size = 10
28
- d.size.should == 10
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.should == nil
37
+ expect(d.creation_timestamp).to be_nil
38
38
  d.creation_timestamp = now
39
- d.creation_timestamp.should == Time.xmlschema(now.xmlschema(9))
39
+ expect(d.creation_timestamp).to eq(Time.xmlschema(now.xmlschema(9)))
40
40
  d.creation_timestamp = now.xmlschema
41
- d.creation_timestamp.should == Time.xmlschema(now.xmlschema)
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).should match(/boom.*0001.town/)
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).should be true
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
@@ -19,6 +19,6 @@ describe 'RFlow::Message::Data::File Avro Schema' do
19
19
  expect { decode_avro(schema, encoded_file) }.to_not raise_error
20
20
  decoded_file = decode_avro(schema, encoded_file)
21
21
 
22
- decoded_file.should == file
22
+ expect(decoded_file).to eq(file)
23
23
  end
24
24
  end
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.0a2
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-04 00:00:00.000000000 Z
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.0a2
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.0a2
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: '2.99'
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: '2.99'
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: 0.0.4
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: 0.0.4
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: '0.8'
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: '0.8'
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.2.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