patir 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ == 0.5.4 / 2008-03-13
2
+ * ShellCommand does not expand working directories anymore
3
+ * Configurator#logger method redefinition removed
1
4
  == 0.5.3 / 2008-02-26
2
5
  * Bugfix: execution time is now correctly calculated (no nasty exception)
3
6
  == 0.5.2 / 2008-02-26
@@ -35,7 +35,7 @@
35
35
  Don't expect this library to grow very much, as we aim to keep it simple, stable and above all usable by all the tools under patir.<br>
36
36
  </p>
37
37
  <p>
38
- You can browse the <a href="http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/patir/?root=patir">patir subversion repository</a>.
38
+ You can browse the <a href="http://patir.rubyforge.org/svn/">patir subversion repository</a>.
39
39
  </p>
40
40
  <p>
41
41
  Like all self-conscious developers the patir team does not claim infalibility. Neither are we to proud to have our flaws pointed out, so if and when you find a bug, please post a report in our <a href="http://rubyforge.org/tracker/?group_id=3597">Bugtracker</a>
@@ -45,6 +45,15 @@
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">12 March 2008</span><br />
49
+ <span class="bodytext">rutema v0.6.2 is out!.</span><br />
50
+ <a href="rutema062.html" class="smallgraytext">More...</a><br /><br />
51
+ <span class="smallredtext">28 Februar 2008</span><br />
52
+ <span class="bodytext">rutema v0.6.1 is out!.</span><br />
53
+ <a href="rutema061.html" class="smallgraytext">More...</a><br /><br />
54
+ <span class="smallredtext">27 Februar 2008</span><br />
55
+ <span class="bodytext">rutema v0.6.0 is out!.</span><br />
56
+ <a href="rutema060.html" class="smallgraytext">More...</a><br /><br />
48
57
  <span class="smallredtext">26 Februar 2008</span><br />
49
58
  <span class="bodytext">rutema v0.5.0 is out!.</span><br />
50
59
  <a href="rutema050.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=3
9
+ TINY=4
10
10
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
11
11
  end
12
12
  #Error thrown usually in initialize methods when missing required parameters
@@ -117,9 +117,9 @@ module Patir
117
117
  params=args[0] if args
118
118
  raise ParameterException,"No ShellCommand parameters defined" unless params
119
119
  @name=params[:name]
120
- @working_directory=File.expand_path(params[:working_directory]) if params[:working_directory]
121
- #initialize the working directory value. This actually means ./
122
- @working_directory||=Dir.pwd
120
+ @working_directory=params[:working_directory] if params[:working_directory]
121
+ #initialize the working directory value.
122
+ @working_directory||="."
123
123
  #we need a command line :)
124
124
  raise ParameterException,"No :command defined" unless params[:cmd]
125
125
  @command=params[:cmd]
@@ -131,7 +131,7 @@ module Patir
131
131
  start_time=Time.now
132
132
  super
133
133
  #create the working directory if it does not exist
134
- FileUtils::mkdir_p(@working_directory) unless File.exists?(@working_directory)
134
+ FileUtils::mkdir_p(@working_directory,:verbose=>false)
135
135
  #create the actual command, run it, grab stderr and stdout and set output,error, status and execution time
136
136
  status, @output, @error = systemu(@command,:cwd=>@working_directory)
137
137
  #lets get the status how we want it
@@ -150,7 +150,7 @@ module Patir
150
150
  end
151
151
 
152
152
  def to_s
153
- return "#{@name}: #{@command} in #{File.expand_path(@working_directory)}"
153
+ return "#{@name}: #{@command} in #{@working_directory}"
154
154
  end
155
155
  end
156
156
 
@@ -50,9 +50,6 @@ module Patir
50
50
  return self
51
51
  end
52
52
 
53
- def logger
54
- return @logger
55
- end
56
53
  #Loads the configuration from a file
57
54
  #
58
55
  #Use this to chain configuration files together
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.3
4
+ version: 0.5.4
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-02-26 00:00:00 +01:00
12
+ date: 2008-03-12 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 1.5.0
31
+ version: 1.5.1
32
32
  version:
33
33
  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
34
  email: riva@braveworld.net