tsp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/exe/tsp +5 -3
- data/lib/tsp/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: 4d241a0e16a0d4d18129c1f830a21a121a9773c794f6e37dd31cd5fb0d22e709
|
4
|
+
data.tar.gz: 3bdd4604cb2ba0c473a2e51273b9cbfb4f7eb5803edd318376c07c8663c49fe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fd6911629cc781a72366323e4455b63f312ef68a90fb26897451d7a6f597564c18bec8c257011568a1e6e4458d61c347f9a0f33c34be2c16b2cce12fea006ea
|
7
|
+
data.tar.gz: 8b42a5fde1776344a1bbd018309399c4370383487b9d49377cae104b1f5e3437472efb079b18a61c99eed21ef0f632a6e5af89bde7300e93e740c0875f2d8148
|
data/CHANGELOG.md
ADDED
data/exe/tsp
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
3
|
+
require "date"
|
4
4
|
|
5
|
-
format =
|
5
|
+
format = "%Y-%m-%dT%H:%M:%S.%L%z"
|
6
6
|
loop do
|
7
|
+
exit 0 if $stdin.eof?
|
8
|
+
line = $stdin.readline
|
7
9
|
$stdout.print DateTime.now.strftime(format)
|
8
10
|
$stdout.print " "
|
9
|
-
$stdout.print
|
11
|
+
$stdout.print line
|
10
12
|
$stdout.flush
|
11
13
|
end
|
data/lib/tsp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tsp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig Webster
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Prefixes a timestamp to each line of STDIN, and prints the result
|
14
14
|
email:
|
@@ -20,6 +20,7 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- ".gitignore"
|
22
22
|
- ".travis.yml"
|
23
|
+
- CHANGELOG.md
|
23
24
|
- CODE_OF_CONDUCT.md
|
24
25
|
- Gemfile
|
25
26
|
- LICENSE.txt
|