rutema 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.7.1 / 2008-05-
2
+ * Added the ruport_formatter.rb file to the manifest (and consequently to the gem)
3
+ * Locked down the active record and ramaze versions to avoid the String#start_with? alias bug from active support 2.1.0 and the Ramaze.start! change
4
+
1
5
  == 0.7.0 / 2008-05-16
2
6
  * Support for tools, paths and context information in the configuration solidified (http://patir.rubyforge.org/rutema/tool_configuration.html for more)
3
7
  * Changes in the configuration for Historian and ActiveRecordReporter. Check the distro_test samples
data/Manifest.txt CHANGED
@@ -14,8 +14,10 @@ lib/rutema/reporter_ar.rb
14
14
  lib/rutema/historian.rb
15
15
  lib/rutema/model.rb
16
16
  lib/rutema/db.rb
17
+ lib/rutema/gems.rb
17
18
  lib/rutemaweb/main.rb
18
19
  lib/rutemaweb/ramaze_controller.rb
20
+ lib/rutemaweb/ruport_formatter.rb
19
21
  lib/rutemaweb/public/bg_menu.gif
20
22
  lib/rutemaweb/public/bg_submenu.gif
21
23
  lib/rutemaweb/public/run_error.png
data/Rakefile CHANGED
@@ -17,10 +17,10 @@ Hoe.new('rutema', "#{Rutema::Version::STRING}") do |p|
17
17
  p.extra_deps<<['patir',">=0.5.3"]
18
18
  p.extra_deps<<['highline']
19
19
  p.extra_deps<<['mailfactory']
20
- p.extra_deps<<['activerecord']
20
+ p.extra_deps<<['activerecord','=2.0.2']
21
21
  p.extra_deps<<['ruport']
22
22
  p.extra_deps<<['acts_as_reportable']
23
- p.extra_deps<<['ramaze']
23
+ p.extra_deps<<['ramaze','=0.3.9.1']
24
24
  p.extra_deps<<['erubis']
25
25
  p.spec_extras={:executables=>["rutemax","rutemah","rutemaweb"],
26
26
  :default_executable=>"rutemax"}
@@ -1,8 +1,6 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
-
3
- require 'rubygems'
4
- require 'ostruct'
5
- require 'patir/configuration'
2
+ $:.unshift File.join(File.dirname(__FILE__),"..")
3
+ require 'rutema/gems'
6
4
 
7
5
  module Rutema
8
6
  #This module defines the "configuration directives" used in the configuration of RutemaX
data/lib/rutema/db.rb CHANGED
@@ -1,3 +1,6 @@
1
+ $:.unshift File.join(File.dirname(__FILE__),"..")
2
+ require 'rutema/gems'
3
+
1
4
  module Rutema
2
5
 
3
6
  class SQLiteConnection
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ gem 'ramaze','=0.3.9.1'
3
+ require 'ramaze'
4
+ #class String; undef_method :start_with? end
5
+ gem 'activerecord','=2.0.2'
6
+ require 'active_record'
7
+ require 'patir/configuration'
8
+ require 'patir/command'
9
+ require 'patir/base'
10
+ require 'ruport/acts_as_reportable'
11
+ require 'mailfactory'
12
+ require 'highline'
@@ -2,8 +2,7 @@ $:.unshift File.join(File.dirname(__FILE__),"..")
2
2
  require 'rutema/model'
3
3
  require 'rutema/system'
4
4
  require 'rutema/db'
5
- require 'rubygems'
6
- require "ruport"
5
+ require 'rutema/gems'
7
6
 
8
7
  module Rutema
9
8
  #The "historian" application class
data/lib/rutema/model.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
- require 'rubygems'
3
- require 'active_record'
4
- require 'ruport/acts_as_reportable'
2
+ $:.unshift File.join(File.dirname(__FILE__),"..")
3
+ require 'rutema/gems'
5
4
  #this fixes the AR Logger hack that annoys me sooooo much
6
5
  class Logger
7
6
  private
@@ -1,8 +1,7 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
+ $:.unshift File.join(File.dirname(__FILE__),"..")
2
3
  require 'rutema/specification'
3
-
4
- require 'rubygems'
5
- require 'mailfactory'
4
+ require 'rutema/gems'
6
5
 
7
6
  module Rutema
8
7
  #Reporter is meant as a base class for reporter classes.
@@ -1,10 +1,10 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
+ $:.unshift File.join(File.dirname(__FILE__),"..")
2
3
  require 'yaml'
3
4
  require 'rutema/reporter'
4
5
  require 'rutema/model'
5
6
  require 'rutema/db'
6
- require 'rubygems'
7
- require 'patir/command'
7
+ require 'rutema/gems'
8
8
 
9
9
  module Rutema
10
10
  #The ActiveRecordReporter will store the results of a test run in a database using ActiveRecord.
@@ -1,6 +1,6 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
- require 'rubygems'
3
- require 'patir/command'
2
+ $:.unshift File.join(File.dirname(__FILE__),"..")
3
+ require 'rutema/gems'
4
4
 
5
5
  module Rutema
6
6
  #This module adds functionality that allows us to
data/lib/rutema/system.rb CHANGED
@@ -1,20 +1,17 @@
1
1
  # Copyright (c) 2007 Vassilis Rizopoulos. All rights reserved.
2
-
3
- require 'rexml/document'
4
2
  $:.unshift File.join(File.dirname(__FILE__),"..")
3
+ require 'rexml/document'
5
4
  require 'rutema/specification'
6
5
  require 'rutema/configuration'
7
6
  require 'rutema/reporter_ar'
8
- require 'rubygems'
9
- require 'highline'
10
- require 'patir/command'
7
+ require 'rutema/gems'
11
8
 
12
9
  module Rutema
13
10
  #This module defines the version numbers for the library
14
11
  module Version
15
12
  MAJOR=0
16
13
  MINOR=7
17
- TINY=0
14
+ TINY=1
18
15
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
19
16
  end
20
17
  #Is raised when an error is found in a specification
@@ -1,17 +1,12 @@
1
1
  $:.unshift File.join(File.dirname(__FILE__),"..")
2
- require 'rutema/system'
3
- require 'rubygems'
4
- require 'patir/base'
2
+ require 'rutemaweb/ramaze_controller'
5
3
 
6
4
  def start_ramaze
7
5
  logger=Patir.setup_logger
8
6
  db_file=parse_command_line(ARGV)
9
7
  db_file=File.expand_path(db_file)
10
- Rutema.connect_to_ar(db_file,logger)
11
- require 'rutemaweb/ramaze_controller'
12
- Dir.chdir(File.dirname(__FILE__)) do
13
- Ramaze.start :force=>true#,:adapter=>:thin
14
- end
8
+ Rutema.connect_to_ar(db_file,logger)
9
+ Ramaze.start :force=>true
15
10
  end
16
11
 
17
12
 
@@ -1,9 +1,8 @@
1
1
  # Copyright (c) 2008 Vassilis Rizopoulos. All rights reserved.
2
2
  $:.unshift File.join(File.dirname(__FILE__),"..")
3
3
  require 'rutema/system'
4
- require 'rubygems'
5
- require 'ramaze'
6
4
  require 'rutemaweb/ruport_formatter.rb'
5
+ require 'rutema/gems'
7
6
 
8
7
 
9
8
  module Rutema
@@ -0,0 +1,29 @@
1
+ $:.unshift File.join(File.dirname(__FILE__),"..")
2
+ require 'rutema/gems'
3
+
4
+ # Create a new table for each record and a row for each record element
5
+ class VerticalTableFormatter < Ruport::Formatter::HTML
6
+
7
+ renders :vhtml, :for => Ruport::Controller::Table
8
+
9
+ def build_table_body
10
+ data.each do |row|
11
+ build_row(row)
12
+ end
13
+ end
14
+
15
+ def build_table_header
16
+ end
17
+
18
+ def build_table_footer
19
+ end
20
+
21
+ def build_row(data = self.data)
22
+ output << "<table class=\"vtable\"><colgroup><col width=\"100\"><col></colgroup>\n"
23
+ output << "<tr><td colspan=\"2\"><em>#{data['name']}</em></td></tr>"
24
+ %w(status duration).each { |k| output << "<tr><td>#{k}:</td><td>#{data.get(k)}</td></tr>\n" }
25
+ %w(output error).each { |k| output << "<tr><td colspan=\"2\">#{k}:</td></tr><tr><td colspan=\"2\"><pre>#{data.get(k)}</pre></td></tr>\n" if data.get(k).size > 0 }
26
+ output << "</table>\n"
27
+ end
28
+
29
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
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-05-16 00:00:00 +02:00
12
+ date: 2008-06-13 00:00:00 +02:00
13
13
  default_executable: rutemax
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -44,9 +44,9 @@ dependencies:
44
44
  version_requirement:
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "="
48
48
  - !ruby/object:Gem::Version
49
- version: "0"
49
+ version: 2.0.2
50
50
  version:
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: ruport
@@ -71,9 +71,9 @@ dependencies:
71
71
  version_requirement:
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ">="
74
+ - - "="
75
75
  - !ruby/object:Gem::Version
76
- version: "0"
76
+ version: 0.3.9.1
77
77
  version:
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: erubis
@@ -91,7 +91,7 @@ dependencies:
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.5.1
94
+ version: 1.5.3
95
95
  version:
96
96
  description: "== DESCRIPTION: rutema is a test execution tool with a twist. It allows you to combine test tools while it takes care of logging, reporting, archiving of results and formalizes execution of automated and manual tests. It's purpose is to make testing in heterogeneous environments easier. For more information look at http://patir.rubyforge.org/rutema == FEATURES/PROBLEMS: * Unified test execution environment for automated and manual tests * Extensible reports and notifications in various formats (email, rss, pdf, html etc.) * Web frontend and command line report generation tools for browsing the test results database * Comprehensive history of test execution * A well defined way to create a project specific test specification format == SYNOPSIS: See http://patir.rubyforge.org/rutema/distro_test.html for an introductory example. == REQUIREMENTS: * patir (http://patir.rubyforge.org) * mailfactory (http://rubyforge.org/projects/mailfactory/) * activerecord (http://ar.rubyonrails.com/) * sqlite3 (http://rubyforge.org/projects/sqlite-ruby/) * ramaze (http://www.ramaze.net/) * ruport (http://rubyreports.org/) * acts_as_reportable == INSTALL: * gem install rutema"
97
97
  email: riva@braveworld.net
@@ -123,8 +123,10 @@ files:
123
123
  - lib/rutema/historian.rb
124
124
  - lib/rutema/model.rb
125
125
  - lib/rutema/db.rb
126
+ - lib/rutema/gems.rb
126
127
  - lib/rutemaweb/main.rb
127
128
  - lib/rutemaweb/ramaze_controller.rb
129
+ - lib/rutemaweb/ruport_formatter.rb
128
130
  - lib/rutemaweb/public/bg_menu.gif
129
131
  - lib/rutemaweb/public/bg_submenu.gif
130
132
  - lib/rutemaweb/public/run_error.png