patir 0.5.6 → 0.5.7

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.
@@ -1,3 +1,5 @@
1
+ == 0.5.7 / 2008-09-10
2
+ * Sorted CommandSequenceStatus summaries
1
3
  == 0.5.6 / 2008-05-16
2
4
  * Better exception handling for RubyCommand.
3
5
  * Error output of command now contains exception information in case of one.
@@ -45,6 +45,12 @@
45
45
  <div id="leftpanel">
46
46
  <div align="justify" class="graypanel">
47
47
  <span class="smalltitle">News</span><br /><br />
48
+ <span class="smallredtext">9 September 2008</span><br />
49
+ <span class="bodytext">rutema v0.9.0 is out!</span><br />
50
+ <a href="rutema090.html" class="smallgraytext">More...</a><br /><br />
51
+ <span class="smallredtext">4 July 2008</span><br />
52
+ <span class="bodytext">rutema v0.8.0 is out!</span><br />
53
+ <a href="rutema080.html" class="smallgraytext">More...</a><br /><br />
48
54
  <span class="smallredtext">16 May 2008</span><br />
49
55
  <span class="bodytext">rutema v0.7.0 is out!</span><br />
50
56
  <a href="rutema070.html" class="smallgraytext">More...</a><br /><br />
@@ -6,7 +6,7 @@ module Patir
6
6
  module Version
7
7
  MAJOR=0
8
8
  MINOR=5
9
- TINY=6
9
+ TINY=7
10
10
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
11
11
  end
12
12
  #Error thrown usually in initialize methods when missing required parameters
@@ -405,9 +405,12 @@ module Patir
405
405
  sum<<"Status - #{@status}"
406
406
  if !@step_states.empty? && @status!=:not_executed
407
407
  sum<<". States #{@step_states.size}\nStep status summary:"
408
+ sorter=Hash.new
408
409
  @step_states.each do |number,state|
409
- sum<<"\n\t#{number}:'#{state[:name]}' - #{state[:status]}"
410
+ #sort them by number
411
+ sorter[number]="\n\t#{number}:'#{state[:name]}' - #{state[:status]}"
410
412
  end
413
+ 1.upto(sorter.size) {|i| sum<<sorter[i] if sorter[i]}
411
414
  end
412
415
  return sum
413
416
  end
@@ -207,7 +207,7 @@ class TestCommandSequenceStatus<Test::Unit::TestCase
207
207
  assert_nil(st.step_state(3))
208
208
  end
209
209
 
210
- def test_step=
210
+ def test_step_equal
211
211
  st=Patir::CommandSequenceStatus.new("sequence")
212
212
  step1=MockCommandObject.new
213
213
  step2=MockCommandWarning.new
@@ -231,6 +231,7 @@ class TestCommandSequenceStatus<Test::Unit::TestCase
231
231
  assert_equal(:error, st.status)
232
232
  st.step=step1
233
233
  assert_equal(:error, st.status)
234
+ assert_nothing_raised() { puts st.summary }
234
235
  end
235
236
 
236
237
  def test_completed?
@@ -242,6 +243,7 @@ class TestCommandSequenceStatus<Test::Unit::TestCase
242
243
  step3=MockCommandError.new
243
244
  step3.number=3
244
245
  step4=MockCommandObject.new
246
+ step4.number=4
245
247
  st.step=step1
246
248
  st.step=step2
247
249
  st.step=step3
@@ -269,5 +271,6 @@ class TestCommandSequenceStatus<Test::Unit::TestCase
269
271
  step4.run
270
272
  st.step=step4
271
273
  assert(st.completed?, "should be complete.")
274
+ assert_nothing_raised() { puts st.summary }
272
275
  end
273
276
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-16 00:00:00 +02:00
12
+ date: 2008-09-10 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: systemu
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,12 +24,13 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: hoe
27
+ type: :development
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
29
31
  - - ">="
30
32
  - !ruby/object:Gem::Version
31
- version: 1.5.1
33
+ version: 1.7.0
32
34
  version:
33
35
  description: "== SYNOPSIS: patir is the library of common functionality used in the patir projects. This includes a class that allows you to build configuration files in Ruby and a library for command abstraction. == REQUIREMENTS: * systemu"
34
36
  email: riva@braveworld.net
@@ -96,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
98
  requirements: []
97
99
 
98
100
  rubyforge_project: patir
99
- rubygems_version: 1.1.1
101
+ rubygems_version: 1.2.0
100
102
  signing_key:
101
103
  specification_version: 2
102
104
  summary: patir (Project Automation Tools in Ruby) provides libraries for use in automation tools