proof 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/proof/output.rb +2 -0
  2. data/lib/proof/proof.rb +2 -1
  3. metadata +2 -2
@@ -14,6 +14,8 @@ module Proof
14
14
  prefix :h2, text
15
15
  end
16
16
 
17
+ writer :sect, :level => :info
18
+
17
19
  writer :pass, :level => :info do |text|
18
20
  prefix :pass, "Pass: #{text}"
19
21
  end
@@ -21,7 +21,8 @@ module Proof
21
21
  end
22
22
 
23
23
  def section(heading='')
24
- Proof::Output.h2 heading
24
+ meth = heading.empty? ? :sect : :heading
25
+ Proof::Output.send meth, heading
25
26
  yield if block_given?
26
27
  end
27
28
  alias :block :section
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-24 00:00:00.000000000 Z
12
+ date: 2013-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: output