testdoc 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -2,3 +2,15 @@
2
2
 
3
3
  * 1 major enhancement:
4
4
  * Initial release
5
+
6
+ == 0.0.2 2009-01-27
7
+
8
+ * 1 major enhancement:
9
+ * Initial release
10
+
11
+ == 0.0.3 2009-01-27
12
+
13
+ * 1 major enhancement:
14
+ * Fixed bug in html template
15
+ * Removed column for writing notes on printed report
16
+
data/Manifest.txt CHANGED
@@ -1,6 +1,5 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- PostInstall.txt
4
3
  README.rdoc
5
4
  Rakefile
6
5
  lib/testdoc.rb
@@ -11,9 +10,6 @@ lib/testdoc/footer.html.erb
11
10
  lib/testdoc/header.html.erb
12
11
  lib/testdoc/template.html.erb
13
12
  lib/testdoc/template.debug.erb
14
- script/console
15
- script/destroy
16
- script/generate
17
13
  test/test_helper.rb
18
14
  test/test_testdoc.rb
19
15
  bin/testdoc
data/README.rdoc CHANGED
@@ -18,7 +18,7 @@ Examples:
18
18
 
19
19
  $testdoc
20
20
  $testdoc rubyfil.rb
21
- $testdoc --title "Overskrift" rubyfil.rb
21
+ $testdoc --title "Your test plan title" rubyfil.rb
22
22
  $testdoc *.rb
23
23
  $testdoc --help
24
24
 
data/Rakefile CHANGED
@@ -4,9 +4,9 @@ require File.dirname(__FILE__) + '/lib/testdoc'
4
4
  # Generate all the Rake tasks
5
5
  # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
6
  $hoe = Hoe.new('testdoc', TestDoc::VERSION) do |p|
7
- p.developer('FIXME full name', 'FIXME email')
7
+ p.developer('Thomas Flemming', 'thomasfl@usit.uio.no')
8
8
  p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
- p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
9
+ ## p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
10
10
  p.rubyforge_name = p.name # TODO this is default value
11
11
  # p.extra_deps = [
12
12
  # ['activesupport','>= 2.0.2'],
@@ -6,12 +6,11 @@
6
6
  end %>
7
7
  <table cellpadding="3" border="1" width="80%">
8
8
  <tr align="left">
9
- <td><b>Nr</b>
10
- <td><b>Betegnelse</b></td>
9
+ <td><b>Nr.</b>
10
+ <td><b>Test</b></td>
11
11
  <td><b>Aksjoner</b></td>
12
- <td><b>Sjekkliste</b></td>
13
- <td><b>Resultat</b></td>
14
- </tr>
12
+ <td><b>Fasit</b></td>
13
+ </tr>
15
14
  <%testplan.tests.each do |test| %>
16
15
 
17
16
  <tr valign="top">
@@ -21,18 +20,16 @@
21
20
 
22
21
  <td>&nbsp;</td>
23
22
  <td>&nbsp;</td>
24
- <td>&nbsp;</td>
25
23
  </tr>
26
24
  <%end%>
27
25
  <%task_count = 0%>
28
26
  <%test.tasks.each do |task| %>
29
27
  <%task_count += 1%>
30
28
 
31
- <td<%if(task.checks.size > 1)%> rowspan="<%=test.tasks.size %>"<%end%>><i><%=task.id%></i>:<%=task.title%> </td>
29
+ <td<%if(task.checks.size > 1)%> rowspan="<%=task.checks.size %>"<%end%> valign="top"><%=task.title%></td>
32
30
  <%if (task.checks.size == 0)%>
33
31
 
34
32
  <td>&nbsp;</td>
35
- <td>&nbsp;</td>
36
33
  </tr>
37
34
 
38
35
  <%if(test.tasks.size > task_count)%>
@@ -44,8 +41,7 @@
44
41
  <%task.checks.each do |check| %>
45
42
  <%checks_count += 1%>
46
43
 
47
- <td><i><%=check.id%></i>: <%=check.title %></td>
48
- <td>&nbsp;</td>
44
+ <td valign="top"><%=check.title %></td>
49
45
  </tr>
50
46
  <%if( task.checks.size > checks_count || test.tasks.size > task_count)%>
51
47
 
data/lib/testdoc.rb CHANGED
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
 
4
4
 
5
5
  module TestDoc
6
- VERSION = '0.0.2'
6
+ VERSION = '0.0.3'
7
7
 
8
8
  end
9
9
 
@@ -25,7 +25,7 @@ module TestDoc
25
25
  options.parse(argv, GENERATORS)
26
26
  @generated_content = ""
27
27
 
28
- puts "Title:" + options.title
28
+ puts "Title: " + options.title
29
29
  @title = options.title
30
30
  header = File.dirname(__FILE__) + "/testdoc/header.html.erb"
31
31
  @generated_content = process_template(header, nil) unless options.text
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
- - FIXME full name
7
+ - Thomas Flemming
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-09 00:00:00 +01:00
12
+ date: 2009-01-27 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -34,7 +34,7 @@ dependencies:
34
34
  version:
35
35
  description: "Generate testplans from annotated sourcecode. Author: Thomas Flemming, thomasfl(snabela)usit.uio.no"
36
36
  email:
37
- - FIXME email
37
+ - thomasfl@usit.uio.no
38
38
  executables:
39
39
  - testdoc
40
40
  extensions: []
@@ -42,12 +42,10 @@ extensions: []
42
42
  extra_rdoc_files:
43
43
  - History.txt
44
44
  - Manifest.txt
45
- - PostInstall.txt
46
45
  - README.rdoc
47
46
  files:
48
47
  - History.txt
49
48
  - Manifest.txt
50
- - PostInstall.txt
51
49
  - README.rdoc
52
50
  - Rakefile
53
51
  - lib/testdoc.rb
@@ -58,15 +56,12 @@ files:
58
56
  - lib/testdoc/header.html.erb
59
57
  - lib/testdoc/template.html.erb
60
58
  - lib/testdoc/template.debug.erb
61
- - script/console
62
- - script/destroy
63
- - script/generate
64
59
  - test/test_helper.rb
65
60
  - test/test_testdoc.rb
66
61
  - bin/testdoc
67
62
  has_rdoc: true
68
63
  homepage: FIX (url)
69
- post_install_message: PostInstall.txt
64
+ post_install_message:
70
65
  rdoc_options:
71
66
  - --main
72
67
  - README.rdoc
data/PostInstall.txt DELETED
@@ -1,7 +0,0 @@
1
-
2
- For more information on testdoc, see http://testdoc.rubyforge.org
3
-
4
- NOTE: Change this information in PostInstall.txt
5
- You can also delete it if you don't want it.
6
-
7
-
data/script/console DELETED
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # File: script/console
3
- irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
4
-
5
- libs = " -r irb/completion"
6
- # Perhaps use a console_lib to store any extra methods I may want available in the cosole
7
- # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
8
- libs << " -r #{File.dirname(__FILE__) + '/../lib/testdoc.rb'}"
9
- puts "Loading testdoc gem"
10
- exec "#{irb} #{libs} --simple-prompt"
data/script/destroy DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/destroy'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Destroy.new.run(ARGV)
data/script/generate DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
3
-
4
- begin
5
- require 'rubigen'
6
- rescue LoadError
7
- require 'rubygems'
8
- require 'rubigen'
9
- end
10
- require 'rubigen/scripts/generate'
11
-
12
- ARGV.shift if ['--help', '-h'].include?(ARGV[0])
13
- RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
14
- RubiGen::Scripts::Generate.new.run(ARGV)