carnivore-files 0.3.0-java → 0.3.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c88542fcad8f3f813897a86e70dbefefeb85a430
4
- data.tar.gz: f22152fdfe0db531bd0d434b4ca6dc3d360a8fa3
3
+ metadata.gz: 0b34e27ea2d128c135eb763cf09bf6a33e84dc00
4
+ data.tar.gz: f90e47619a405bacb036eb1de9ce10782c74a649
5
5
  SHA512:
6
- metadata.gz: 98e5d3d64b4e647e18e203570c9d742d66341c82a705b738f6e3471bf2792233e77e1605259b0d7a5ef8a3f0c01f56af58cf31651dfa5986caa91abbcb491486
7
- data.tar.gz: f29e42c186b24f4dbc276f77a06910bbea68f6135c7e03f6d1b5345373f7bd099d33fc42d286751759f629c64b0f4ddc2bb937c44aa63c8bae19719944dab5e7
6
+ metadata.gz: 97b799f9dd19d4860dc114aa00c372479e87264c4fda069f6c13eab97937020c9d088484032cc755b4c52921ddd94a02e5f0ba2d63dc7a4ad87e1e640afde127
7
+ data.tar.gz: 59a8cbcd38895437341d1d99cce5bb3334cb35a3c085a52e39172ecf9adccc49623b772996c92814d4e10fbd6ef55357a726549d0489950841ebeab2d826d167
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.3.2
2
+ * Reset position prior to read
3
+
1
4
  # v0.3.0
2
5
  * Remove nio based fetcher implementation
3
6
  * Add polling based fetcher implementation
@@ -56,9 +56,13 @@ module Carnivore
56
56
  # Retreive lines from file
57
57
  def retrieve_lines
58
58
  if(io)
59
+ io.pos = @history_pos if @history_pos
60
+ data = io.read(4096)
59
61
  while(data = io.read(4096))
60
62
  @leftover << data
63
+ data = io.read(4096)
61
64
  end
65
+ @history_pos = io.pos
62
66
  result = @leftover.split(delimiter)
63
67
  @leftover.replace @leftover.end_with?(delimiter) ? '' : result.pop.to_s
64
68
  result
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Files
3
3
  # Current version of library
4
- VERSION = Gem::Version.new('0.3.0')
4
+ VERSION = Gem::Version.new('0.3.2')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,80 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: java
6
6
  authors:
7
7
  - Chris Roberts
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.1.8
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - '>='
24
+ - - ">="
23
25
  - !ruby/object:Gem::Version
24
26
  version: 0.1.8
25
- prerelease: false
26
- type: :runtime
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- requirement: !ruby/object:Gem::Requirement
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
- - - '>='
38
+ - - ">="
37
39
  - !ruby/object:Gem::Version
38
40
  version: '0'
39
- prerelease: false
40
- type: :development
41
41
  description: Carnivore file source
42
42
  email: code@chrisroberts.org
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
+ - CHANGELOG.md
48
+ - README.md
49
+ - carnivore-files.gemspec
47
50
  - lib/carnivore-files.rb
48
51
  - lib/carnivore-files/carn_file.rb
49
- - lib/carnivore-files/version.rb
52
+ - lib/carnivore-files/util/fetcher.rb
50
53
  - lib/carnivore-files/util/penguin.rb
51
54
  - lib/carnivore-files/util/poll.rb
52
- - lib/carnivore-files/util/fetcher.rb
53
- - carnivore-files.gemspec
54
- - README.md
55
- - CHANGELOG.md
55
+ - lib/carnivore-files/version.rb
56
56
  homepage: https://github.com/carnivore-rb/carnivore-files
57
57
  licenses:
58
58
  - Apache 2.0
59
59
  metadata: {}
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubyforge_project:
76
- rubygems_version: 2.1.9
77
- signing_key:
75
+ rubyforge_project:
76
+ rubygems_version: 2.2.2
77
+ signing_key:
78
78
  specification_version: 4
79
79
  summary: Message processing helper
80
80
  test_files: []
81
+ has_rdoc: