fixed_size_buffer 0.1.1 → 0.1.2
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 +4 -4
- data/.yardopts +5 -0
- data/CHANGELOG.md +5 -0
- data/lib/fixed_size_buffer.rb +4 -0
- data/lib/fixed_size_buffer/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168b93d2d8a689a21cade081c41e9c4edcd41fc5dadd39aa2fe57a1948d7e71d
|
4
|
+
data.tar.gz: 7436bfc42d488f986f6ec7f756dc5e409b7d360c3210a37e6d5e6786b76cb6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66614c9cbff209313b1d0ec858976912b3e9349200acf632da61bf8cefbff43492ccc7f528716953f6b2cc8ba64381862708bba598d64995bbd1c41d30ef371f
|
7
|
+
data.tar.gz: 11c88c06a86e91dea6687eecbb3a80363ccc140632bfff4979007e3b9cdc0a413a889c34173bf2d233bf12003d001239345160028e42f6e2a47c6c5f4e15fda2
|
data/.yardopts
ADDED
data/CHANGELOG.md
CHANGED
data/lib/fixed_size_buffer.rb
CHANGED
@@ -58,13 +58,17 @@ require 'fixed_size_buffer/version'
|
|
58
58
|
# and a full buffer (write pointer just before read pointer). The value
|
59
59
|
# in-between the read and write pointers for a full buffer will not be read.
|
60
60
|
class FixedSizeBuffer
|
61
|
+
# The capacity given to {.new}
|
61
62
|
attr_reader :capacity
|
62
63
|
|
63
64
|
# Create a new empty {FixedSizeBuffer}
|
64
65
|
#
|
65
66
|
# Start state
|
67
|
+
#
|
68
|
+
# ```text
|
66
69
|
# rw
|
67
70
|
# | | | | |
|
71
|
+
# ```
|
68
72
|
#
|
69
73
|
# @param capacity [Integer] The number of items this buffer can hold
|
70
74
|
def initialize(capacity)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixed_size_buffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Howard
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".yardopts"
|
62
63
|
- CHANGELOG.md
|
63
64
|
- LICENSE.txt
|
64
65
|
- README.md
|
@@ -69,7 +70,7 @@ licenses:
|
|
69
70
|
- MIT
|
70
71
|
metadata:
|
71
72
|
changelog_uri: https://github.com/justinhoward/fixed_size_buffer/blob/master/CHANGELOG.md
|
72
|
-
documentation_uri: https://www.rubydoc.info/gems/fixed_size_buffer/0.1.
|
73
|
+
documentation_uri: https://www.rubydoc.info/gems/fixed_size_buffer/0.1.2
|
73
74
|
post_install_message:
|
74
75
|
rdoc_options: []
|
75
76
|
require_paths:
|