tiny_pipe 1.0.0 → 1.0.1
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/lib/tiny_pipe.rb +0 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '087b0756c0da365b503be764770038dc05cc0cd817dfd23926d771aa757cc790'
|
4
|
+
data.tar.gz: 90658d8d8f41a8f03e58b5343859ea9cf9d5e17de224d9807e7c4839d28af6ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e77feee735f124bdcfe80d284b65e2d018cefdff0e7160e275cc16ff428185228980cbb2b651694b8e34b44fd0c8b5f8e09db383873d36b93afb1bf03de798
|
7
|
+
data.tar.gz: 0a925b0f965b74857e992c80b6cdba3c22d7aafe6395cb63e1b369283d8066bed5f003896079773dabe5fd366227f28edb6124792641722957c71f32adbf2caa
|
data/lib/tiny_pipe.rb
CHANGED
@@ -3,9 +3,6 @@
|
|
3
3
|
# things all in one object and then reuse that pipeline anywhere. sure you could
|
4
4
|
# do basically the same thing by defining a method - not disagreeing there.
|
5
5
|
#
|
6
|
-
# this was originally built to be the basis of a pipeline for processing complex
|
7
|
-
# and inconsistently formatted lines of text from log files.
|
8
|
-
#
|
9
6
|
# Usage:
|
10
7
|
# let's look at a text processing example where you want to process lines from
|
11
8
|
# a log file and convert it into a more helpful data structure. let's start
|
@@ -17,7 +14,6 @@
|
|
17
14
|
#
|
18
15
|
# line = "2022-11-19T17:34:05.299295Z 25888 INFO loading configuration from ./config.yml\n"
|
19
16
|
# p = TinyPipe.new(
|
20
|
-
# line,
|
21
17
|
# [
|
22
18
|
# TinyPipe::MAP_STRIP, # the list of procs
|
23
19
|
# ->(line){ line.split(' ', 4),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_pipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Lunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: reusable pipelines of Procs, like one tiny level above Enumerable
|
14
14
|
email: jefflunt@gmail.com
|