tsp 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/exe/tsp +5 -3
  4. data/lib/tsp/version.rb +1 -1
  5. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2987724c300546ce8e04a5358934c77056b35bf1f3c450e8f578b87de35a4a7
4
- data.tar.gz: d42ca85263174a86cb0bfe5fec967eb7a8e8efbc207d3daadda4459a5260e55b
3
+ metadata.gz: 4d241a0e16a0d4d18129c1f830a21a121a9773c794f6e37dd31cd5fb0d22e709
4
+ data.tar.gz: 3bdd4604cb2ba0c473a2e51273b9cbfb4f7eb5803edd318376c07c8663c49fe4
5
5
  SHA512:
6
- metadata.gz: 753e6dad4eef2412175f657bb1667e1fb7e553db3663a5121a1f09a868c6912387bc0003affbad09c9e2f3202a0a7a5e819b5f6c0aed796be2b3d7c83877d9cc
7
- data.tar.gz: 550813647f46591e1b7e08250653576b794b6113fd2bc47cfa6dddf6ab14f8c79703af87672c0b695c24d2c480c608c62af04dee6ff32c459d11d8f07be79e7a
6
+ metadata.gz: 6fd6911629cc781a72366323e4455b63f312ef68a90fb26897451d7a6f597564c18bec8c257011568a1e6e4458d61c347f9a0f33c34be2c16b2cce12fea006ea
7
+ data.tar.gz: 8b42a5fde1776344a1bbd018309399c4370383487b9d49377cae104b1f5e3437472efb079b18a61c99eed21ef0f632a6e5af89bde7300e93e740c0875f2d8148
@@ -0,0 +1,9 @@
1
+ # CHANGELOG
2
+
3
+ ## 0.1.1
4
+
5
+ Don't throw exception if STDIN is EOF i.e. the iunput stream has been terminated
6
+
7
+ ## 0.1.0
8
+
9
+ Initial release
data/exe/tsp CHANGED
@@ -1,11 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'date'
3
+ require "date"
4
4
 
5
- format = '%Y-%m-%dT%H:%M:%S.%L%z'
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 $stdin.readline
11
+ $stdout.print line
10
12
  $stdout.flush
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module Tsp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-10-14 00:00:00.000000000 Z
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