fourtrack 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/fourtrack.gemspec +2 -2
- data/lib/fourtrack/recorder.rb +2 -2
- data/lib/fourtrack/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3b5501198af3a986466e54c4762a285a8e9adee
|
4
|
+
data.tar.gz: ea4abcf03ccf3653890494033966463dbed66cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be729bc17f1f00a615058915464a01678d3adc9fd117bf5ad6eeba679bbf4e3c723d925fdc6af7863cc49bf9f4babfbce07a1ab7e26af4fd3c9829e84b0eae3d
|
7
|
+
data.tar.gz: f09d276c1bf26681e50e7d4b968cb9b37f3a6f62c0faa113583e374b8f8613e349fd1ae60c1c4f994be38b1f0653f6dfab06970204685dcccd29147173a02a08
|
data/README.md
CHANGED
data/fourtrack.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Julik Tarkhanov"]
|
10
10
|
spec.email = ["me@julik.nl"]
|
11
11
|
|
12
|
-
spec.summary = %q{Store massive ordered log records into a single .gz file
|
13
|
-
spec.description = %q{and replay them one by one}
|
12
|
+
spec.summary = %q{Store massive amounts of ordered log records into a single .gz file}
|
13
|
+
spec.description = %q{Store massive amounts of ordered log records into a single .gz file and replay them one by one}
|
14
14
|
spec.homepage = "https://github.com/WeTransfer/fourtrack"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
data/lib/fourtrack/recorder.rb
CHANGED
@@ -5,13 +5,13 @@
|
|
5
5
|
class Fourtrack::Recorder
|
6
6
|
require 'logger'
|
7
7
|
NULL_LOGGER = Logger.new(nil)
|
8
|
-
def initialize(output_path:,
|
8
|
+
def initialize(output_path:, flush_after:, logger: NULL_LOGGER)
|
9
9
|
@output_path = File.expand_path(output_path)
|
10
10
|
@pid_at_create = Process.pid
|
11
11
|
@logger = logger
|
12
12
|
@buf = []
|
13
13
|
@mux = Mutex.new
|
14
|
-
@flush_every =
|
14
|
+
@flush_every = flush_after
|
15
15
|
# Attempt to open the file for writing,
|
16
16
|
# which will raise an exception outright if we do not have access
|
17
17
|
File.open(@output_path, 'a') {}
|
data/lib/fourtrack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fourtrack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julik Tarkhanov
|
@@ -52,7 +52,8 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description:
|
55
|
+
description: Store massive amounts of ordered log records into a single .gz file and
|
56
|
+
replay them one by one
|
56
57
|
email:
|
57
58
|
- me@julik.nl
|
58
59
|
executables: []
|
@@ -95,5 +96,5 @@ rubyforge_project:
|
|
95
96
|
rubygems_version: 2.4.5.1
|
96
97
|
signing_key:
|
97
98
|
specification_version: 4
|
98
|
-
summary: Store massive ordered log records into a single .gz file
|
99
|
+
summary: Store massive amounts of ordered log records into a single .gz file
|
99
100
|
test_files: []
|