stream_lines 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 5f86f4c30e240b9076fa0ede333d89a0974e48b57ca3c75c145031314b524973
4
- data.tar.gz: 7ee39a6d12b3e3e54eac67f6ea1d0108ac8ecc57ad78676187fe4c3dfcfed293
3
+ metadata.gz: 222d5f5ba77ac40c17fe4faf3ba9aab8d611e042e432ecbb2b6328c63b3856fe
4
+ data.tar.gz: 79664c06171bfcc6c253f01c912aa7862193f875e4dc2b8002f52f55c017b994
5
5
  SHA512:
6
- metadata.gz: 2edb6bdd8ebccbf8d99c9769303c132ae2016c628dec9fc7b499ea3cf95ef579f9781ac7c205cbf526a1a10062af5d14c56a4927058a9580b0b6c0636b186978
7
- data.tar.gz: b56a5173a42cc761337d4d1f30116bc6e5d08f1e07ff32eb8c4edeef58a537d42949a21d696be21f3913f51413242e03a0bbe5f7e4176f8b8f63b3204722e1ee
6
+ metadata.gz: dff1372c1048260c71d11fbab457ae9bd45723e52bf0485b141f8cc8885687d9cafe09d7a241d957a4f66ff6e8644fd65562a102b82ef73244607089e6774517
7
+ data.tar.gz: 6c22a6aa984ac5c216e1ecfc290b79f4fbb2f330bf6327497d50cf71a3d0ef527b518c18efb319c542b89297b77c22fe7fe4bf067094dda9f6d1efe8bc1e4053
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stream_lines (0.3.0)
4
+ stream_lines (0.3.1)
5
5
  httparty (~> 0.14)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # StreamLines
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/stream_lines.svg)](https://badge.fury.io/rb/stream_lines)
3
4
  [![Build Status](https://travis-ci.com/jdlubrano/stream_lines.svg?branch=master)](https://travis-ci.com/jdlubrano/stream_lines)
4
5
 
5
6
  An API for streaming files from remote locations one line at a time.
@@ -43,7 +43,7 @@ module StreamLines
43
43
  if lines.length > 1
44
44
  @buffer.rewind
45
45
  lines.first.prepend(@buffer.read)
46
- @buffer.truncate(0)
46
+ @buffer = StringIO.new
47
47
  end
48
48
 
49
49
  @buffer << lines.pop
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StreamLines
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream_lines
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Lubrano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-14 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty