patir 0.5.5 → 0.5.6

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,8 @@
1
+ == 0.5.6 / 2008-05-16
2
+ * Better exception handling for RubyCommand.
3
+ * Error output of command now contains exception information in case of one.
4
+ * jRuby combatibility fixes in Command.
5
+
1
6
  == 0.5.5 / 2008-03-13
2
7
  * RubyCommand does not expand working directories anymore and it now exposes working_directory and the assigned block (as cmd)
3
8
  == 0.5.4 / 2008-03-13
File without changes
File without changes
@@ -45,26 +45,41 @@
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">16 May 2008</span><br />
49
+ <span class="bodytext">rutema v0.7.0 is out!</span><br />
50
+ <a href="rutema070.html" class="smallgraytext">More...</a><br /><br />
51
+ <span class="smallredtext">16 May 2008</span><br />
52
+ <span class="bodytext">patir v0.5.6 is out!</span><br />
53
+ <a href="patir056.html" class="smallgraytext">More...</a><br /><br />
54
+ <span class="smallredtext">15 April 2008</span><br />
55
+ <span class="bodytext">rutema v0.6.5 is out!</span><br />
56
+ <a href="rutema065.html" class="smallgraytext">More...</a><br /><br />
57
+ <span class="smallredtext">30 March 2008</span><br />
58
+ <span class="bodytext">rutema v0.6.4 is out!</span><br />
59
+ <a href="rutema064.html" class="smallgraytext">More...</a><br /><br />
60
+ <span class="smallredtext">26 March 2008</span><br />
61
+ <span class="bodytext">rutema v0.6.3 is out!</span><br />
62
+ <a href="rutema063.html" class="smallgraytext">More...</a><br /><br />
48
63
  <span class="smallredtext">12 March 2008</span><br />
49
- <span class="bodytext">rutema v0.6.2 is out!.</span><br />
64
+ <span class="bodytext">rutema v0.6.2 is out!</span><br />
50
65
  <a href="rutema062.html" class="smallgraytext">More...</a><br /><br />
51
66
  <span class="smallredtext">28 Februar 2008</span><br />
52
- <span class="bodytext">rutema v0.6.1 is out!.</span><br />
67
+ <span class="bodytext">rutema v0.6.1 is out!</span><br />
53
68
  <a href="rutema061.html" class="smallgraytext">More...</a><br /><br />
54
69
  <span class="smallredtext">27 Februar 2008</span><br />
55
- <span class="bodytext">rutema v0.6.0 is out!.</span><br />
70
+ <span class="bodytext">rutema v0.6.0 is out!</span><br />
56
71
  <a href="rutema060.html" class="smallgraytext">More...</a><br /><br />
57
72
  <span class="smallredtext">26 Februar 2008</span><br />
58
- <span class="bodytext">rutema v0.5.0 is out!.</span><br />
73
+ <span class="bodytext">rutema v0.5.0 is out!</span><br />
59
74
  <a href="rutema050.html" class="smallgraytext">More...</a><br /><br />
60
75
  <span class="smallredtext">26 Februar 2008</span><br />
61
76
  <span class="bodytext">patir v0.5.3 is out!</span><br />
62
77
  <a href="patir052.html" class="smallgraytext">More...</a><br /><br />
63
78
  <span class="smallredtext">05 December 2007</span><br />
64
- <span class="bodytext">rutema v0.4.2 is out!.</span><br />
79
+ <span class="bodytext">rutema v0.4.2 is out!</span><br />
65
80
  <a href="rutema041.html" class="smallgraytext">More...</a><br /><br />
66
81
  <span class="smallredtext">04 December 2007</span><br />
67
- <span class="bodytext">rutema v0.4.1 is out!.</span><br />
82
+ <span class="bodytext">rutema v0.4.1 is out!</span><br />
68
83
  <a href="rutema041.html" class="smallgraytext">More...</a><br /><br />
69
84
  <span class="smallredtext">15 August 2007</span><br />
70
85
  <span class="bodytext">patir v0.5 is out!</span><br />
File without changes
File without changes
@@ -6,7 +6,7 @@ module Patir
6
6
  module Version
7
7
  MAJOR=0
8
8
  MINOR=5
9
- TINY=5
9
+ TINY=6
10
10
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
11
11
  end
12
12
  #Error thrown usually in initialize methods when missing required parameters
@@ -133,7 +133,13 @@ module Patir
133
133
  #create the actual command, run it, grab stderr and stdout and set output,error, status and execution time
134
134
  status, @output, @error = systemu(@command,:cwd=>@working_directory)
135
135
  #lets get the status how we want it
136
- if status.exited?
136
+ begin
137
+ exited = status.exited?
138
+ rescue NotImplementedError
139
+ # so, JRuby as of version 1.1 does not understand exited?
140
+ exited = true
141
+ end
142
+ if exited
137
143
  if status.exitstatus==0
138
144
  @status=:success
139
145
  else
@@ -470,12 +476,14 @@ module Patir
470
476
  Dir.chdir(@working_directory) do
471
477
  @status=@cmd.call(self)
472
478
  end
479
+ rescue
480
+ error<<"RubyCommand failed:"
481
+ error<<"#{$!}"
482
+ @status=:error
483
+ ensure
473
484
  @exec_time=Time.now-t1
474
- rescue SystemCallError
475
- @output="#{$!}"
476
- @success=false
477
485
  end
478
- return @success
486
+ return @status
479
487
  end
480
488
  end
481
489
  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.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-13 00:00:00 +01:00
12
+ date: 2008-05-16 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements: []
97
97
 
98
98
  rubyforge_project: patir
99
- rubygems_version: 1.0.1
99
+ rubygems_version: 1.1.1
100
100
  signing_key:
101
101
  specification_version: 2
102
102
  summary: patir (Project Automation Tools in Ruby) provides libraries for use in automation tools