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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a33b2a5e13cf6c134db5b352a27e3c096b4893f
4
- data.tar.gz: 710204e5a058e83d29b47d41224393fc8363a1c3
3
+ metadata.gz: c3b5501198af3a986466e54c4762a285a8e9adee
4
+ data.tar.gz: ea4abcf03ccf3653890494033966463dbed66cd5
5
5
  SHA512:
6
- metadata.gz: 3ef58accda8208ff7b24efff6201675235a456a8b90e48ed5d24ba93b3ff15ada3a08eb26dfe99785846d508228c9373ad01406020d5f18061d23d102d476897
7
- data.tar.gz: a0205fbaab1f55f2a882bbc9d5685406e1aec00fbbac9597589cc9946b9f824de1bc08760b323835af4454cbfb8fadbaae63aec87960bcedf2b880e75590531a
6
+ metadata.gz: be729bc17f1f00a615058915464a01678d3adc9fd117bf5ad6eeba679bbf4e3c723d925fdc6af7863cc49bf9f4babfbce07a1ab7e26af4fd3c9829e84b0eae3d
7
+ data.tar.gz: f09d276c1bf26681e50e7d4b968cb9b37f3a6f62c0faa113583e374b8f8613e349fd1ae60c1c4f994be38b1f0653f6dfab06970204685dcccd29147173a02a08
data/README.md CHANGED
@@ -17,7 +17,7 @@ and to replay later:
17
17
 
18
18
  ```ruby
19
19
  File.open(Rails.root.join('log/sql.jsonlines.gz')) do |f|
20
- player = Fourtrac::Player.new(f)
20
+ player = Fourtrack::Player.new(f)
21
21
  player.each_line do |line|
22
22
  puts JSON.load(line)
23
23
  end
@@ -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
 
@@ -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:, flush_after_n:, logger: NULL_LOGGER)
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 = flush_after_n
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') {}
@@ -1,3 +1,3 @@
1
1
  module Fourtrack
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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: and replay them one by one
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: []