minitap 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3287678f9370253212c9674659d5e2cb9b316511
4
- data.tar.gz: 04e448c48c2bdd11d00df0bcc2eff1006fd72766
3
+ metadata.gz: 411e52de16d0efd7ca361002439076792e8b6ec0
4
+ data.tar.gz: b21a983ac1758be81486b6131e46596894ad12ae
5
5
  SHA512:
6
- metadata.gz: 486e83b77907a254da1eedd730adc379ec92369fb03437b99d7b8d31aed2bf0f5d4d25930f5bd833767f762be3ed34f6abf623daa351e6b320e59b1f4ae38b7f
7
- data.tar.gz: 505ea556923d93696cfa2f03a53fa942bad75a1c8d60f3602f010dce7f00478677bd7bd1386bc58639f2f6aba38060b67d21b2e4dbd2066e8f60b17902e9a7f6
6
+ metadata.gz: 8c60e2728c098add4be85933e0c0886233d4f8d6fa893eff08c69ca02b59124515ae8b14b13ebcbc50054feb99fcf314b2600332b1a7b43a0064761a242736ae
7
+ data.tar.gz: 5658499aeaf41290d62b421720153548ed4433933a54353e5176cfdd17f0bf899e39d24cd86c53c04d6e05bf679b50d093384475bd1558f2e1acbd5083aaeea4
data/.index CHANGED
@@ -62,5 +62,5 @@ title: MiniTap
62
62
  summary: TAP-Y/J reporters for MiniTest
63
63
  description: MiniTap provides a MiniTest TAP-Y/J report format suitable for use with
64
64
  TAPOUT.
65
- version: 0.5.2
66
- date: '2013-11-18'
65
+ version: 0.5.3
66
+ date: '2013-11-20'
data/HISTORY.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # RELEASE HISTORY
2
2
 
3
+ ## 0.5.3 | 2013-11-20
4
+
5
+ Small change made to ensure that output i/o is un sync mode.
6
+ This prevents test results fro being buffered over the pipe
7
+
8
+ Changes:
9
+
10
+ * Add `io.sync = true` *after* Minitest reporter class is initialized.
11
+ * Add notes to README about use tapout's pause and resume feature.
12
+
13
+
3
14
  ## 0.5.2 | 2013-11-18
4
15
 
5
16
  This release makes it possible to specify reporters in code
data/README.md CHANGED
@@ -113,6 +113,33 @@ Then pipe the output to the `tapout` command, e.g.
113
113
  $ rpt=tapy ruby test/some_test.rb | tapout progressbar
114
114
 
115
115
 
116
+ # Using Pry & Other Tools
117
+
118
+ Becuase Tapout communicates with Minitest via a shell pipe it is improtant
119
+ to keep in mind that any non TAP-Y/J output that tapout receives might
120
+ force it to halt. To ensure this doesn't occur a *pause code* (`16.chr`) can
121
+ be sent over the pipe to instruct the tapout comamnd to stop processing test
122
+ results and route `$stdin` directly to `$stdout` instead. A *resume code*
123
+ (`23.chr`) can be sent to restart test result processing.
124
+
125
+ A good example of this is when using `binding.pry` for debugging. To do so
126
+ while using tapout:
127
+
128
+ require 'tapout/utility'
129
+ tapout.pause{ binding.pry }
130
+
131
+ Or, even more convenient, specifically for use with pry:
132
+
133
+ require 'tapout/utility'
134
+ tapout.pry(binding)
135
+
136
+ Which is a more covenient way of coding:
137
+
138
+ STDOUT.puts 16.chr
139
+ binding.pry
140
+ STDOUT.puts 23.chr
141
+
142
+
116
143
  # Copying
117
144
 
118
145
  Copyright (c) 2011 Rubyworks
@@ -41,6 +41,9 @@ module Minitest
41
41
 
42
42
  super(io, options)
43
43
 
44
+ # since tapout uses a unix pipe, we don't want any buffering
45
+ io.sync = true
46
+
44
47
  #@_stdout = StringIO.new
45
48
  #@_stderr = StringIO.new
46
49
 
@@ -876,7 +879,6 @@ module Minitest
876
879
 
877
880
  def wp(str)
878
881
  io.puts(str)
879
- #STDOUT.puts(str)
880
882
  end
881
883
  end
882
884
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - trans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-18 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tapout