Project

buftok

0.48
No commit activity in last 3 years
No release in over 3 years
BufferedTokenizer extracts token delimited entities from a sequence of string inputs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17
~> 10.0
>= 0
 Project Readme

BufferedTokenizer

Gem Version Build Status

Statefully split input data by a specifiable token

BufferedTokenizer takes a delimiter upon instantiation, or acts line-based by default. It allows input to be spoon-fed from some outside source which receives arbitrary length datagrams which may-or-may-not contain the token by which entities are delimited. In this respect it's ideally paired with something like EventMachine.

Supported Ruby Versions

This library aims to support and is tested against the following Ruby implementations:

  • Ruby 2.6
  • Ruby 2.7
  • Ruby 3.0

If something doesn't work on one of these interpreters, it's a bug.

This code will likely still work on older versions since it has not undergone many changes since release. However, support will not be provided for end-of-life ruby versions.

If you would like this library to support another Ruby version, you may volunteer to be a maintainer. Being a maintainer entails making sure all tests run and pass on that implementation. When something breaks on your implementation, you will be responsible for providing patches in a timely fashion. If critical issues for a particular implementation exist at the time of a major release, support for that Ruby version may be dropped.

Copyright

Copyright (c) 2006-2021 Tony Arcieri, Martin Emde, Erik Michaels-Ober. Distributed under the MIT license.