Permalink
Browse files

Updated version to 1.0.0

  • Loading branch information...
1 parent 4acf602 commit b11e67bb541f1ea6d651add92104de119403bcfa @canadaduane canadaduane committed Jun 22, 2008
Showing with 157 additions and 82 deletions.
  1. +5 −4 Manifest.txt
  2. +3 −5 config/hoe.rb
  3. +2 −2 lib/rubydoctest/version.rb
  4. +6 −6 rubydoctest.gemspec
  5. +0 −6 test/inline.rb
  6. +0 −35 test/simple.doctest
  7. +0 −2 test/test_helper.rb
  8. +0 −11 test/test_rubydoctest.rb
  9. +141 −11 website/index.html
View
@@ -4,10 +4,12 @@ Manifest.txt
PostInstall.txt
README.txt
Rakefile
+Ruby DocTest.tmproj
bin/rubydoctest
config/hoe.rb
config/requirements.rb
lib/code_block.rb
+lib/doctest_require.rb
lib/lines.rb
lib/result.rb
lib/rubydoctest.rb
@@ -27,10 +29,9 @@ tasks/deployment.rake
tasks/doctests.rake
tasks/environment.rake
tasks/website.rake
-test/inline.rb
-test/simple.doctest
-test/test_helper.rb
-test/test_rubydoctest.rb
+textmate/DocTest (Markdown).textmate
+textmate/DocTest (Ruby).textmate
+textmate/DocTest (Text).textmate
website/index.html
website/index.txt
website/javascripts/rounded_corners_lite.inc.js
View
@@ -1,15 +1,13 @@
require 'rubydoctest/version'
-AUTHOR = ['Tom Locke', 'Dr Nic Williams'] # can also be an array of Authors
-EMAIL = "drnicwilliams@gmail.com"
+AUTHOR = ['Duane Johnson', 'Tom Locke', 'Dr Nic Williams'] # can also be an array of Authors
+EMAIL = "duane.johnson@gmail.com"
DESCRIPTION = "Ruby version of Python's doctest tool, but a bit different."
GEM_NAME = 'rubydoctest' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'rubydoctest' # The unix name for your project
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
-EXTRA_DEPENDENCIES = [
-# ['activesupport', '>= 1.3.1']
-] # An array of rubygem dependencies [name, version]
+EXTRA_DEPENDENCIES = []
@config_file = "~/.rubyforge/user-config.yml"
@config = nil
@@ -1,7 +1,7 @@
module Rubydoctest #:nodoc:
module VERSION #:nodoc:
- MAJOR = 0
- MINOR = 5
+ MAJOR = 1
+ MINOR = 0
TINY = 0
STRING = [MAJOR, MINOR, TINY].join('.')
View
@@ -1,18 +1,18 @@
Gem::Specification.new do |s|
s.name = %q{rubydoctest}
- s.version = "0.2.1"
+ s.version = "1.0.0"
s.specification_version = 2 if s.respond_to? :specification_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Tom Locke", "Dr Nic Williams"]
- s.date = %q{2008-05-25}
+ s.authors = ["Duane Johnson", "Tom Locke", "Dr Nic Williams"]
+ s.date = %q{2008-06-21}
s.default_executable = %q{rubydoctest}
s.description = %q{Ruby version of Python's doctest tool, but a bit different.}
- s.email = ["drnicwilliams@gmail.com"]
+ s.email = ["duane.johnson@gmail.com"]
s.executables = ["rubydoctest"]
s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "website/index.txt"]
- s.files = ["History.txt", "License.txt", "Manifest.txt", "PostInstall.txt", "README.txt", "Rakefile", "bin/rubydoctest", "config/hoe.rb", "config/requirements.rb", "lib/rubydoctest.rb", "lib/rubydoctest/version.rb", "script/console", "script/destroy", "script/generate", "script/txt2html", "setup.rb", "tasks/deployment.rake", "tasks/environment.rake", "tasks/website.rake", "test/test_helper.rb", "test/test_rubydoctest.rb", "website/index.html", "website/index.txt", "website/javascripts/rounded_corners_lite.inc.js", "website/stylesheets/screen.css", "website/template.html.erb"]
+ s.files = IO.read("Manifest.txt").split("\n")
s.has_rdoc = true
s.homepage = %q{http://rubydoctest.rubyforge.org}
s.post_install_message = %q{
@@ -28,5 +28,5 @@ rubydoctest comes as an executable that takes a file or directory:
s.rubyforge_project = %q{rubydoctest}
s.rubygems_version = %q{1.1.1}
s.summary = %q{Ruby version of Python's doctest tool, but a bit different.}
- s.test_files = ["test/test_helper.rb", "test/test_rubydoctest.rb"]
+ s.test_files = []
end
View
@@ -1,6 +0,0 @@
-# This is a simple method to test inline doctests.
-# >> inline_doctest(5)
-# => 5
-def inline_doctest(num)
- return num
-end
View
@@ -1,35 +0,0 @@
-# Simple test of RubyDocTest
-
- doctest: This is an example test
- >> 1 + 2
- => 3
-
- doctest: Test a some multiline statements
- >>
- class Person
- attr_accessor :name
- end
-
- >> Person
- => Person
- >> p = Person.new
- >> p.name = "Tom"
- >> p.name
- => "Tom"
-
-
- doctest: Multiline string statements
- >> "a
- b"
- => "a\nb"
-
- doctest: Multiline ruby statements
- >> 1 +
- ?> 2
- => 3
-
- doctest: Multiline text strings in results
- >> "multiline\ntext\nstring"
- => "multiline
- text
- string"
View
@@ -1,2 +0,0 @@
-require 'test/unit'
-require File.dirname(__FILE__) + '/../lib/rubydoctest'
View
@@ -1,11 +0,0 @@
-require File.dirname(__FILE__) + '/test_helper.rb'
-
-class TestRubydoctest < Test::Unit::TestCase
-
- def setup
- end
-
- def test_truth
- assert true
- end
-end
View
@@ -1,11 +1,141 @@
-<html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>rubydoctest</title>
-
- </head>
- <body id="body">
- <p>This page has not yet been created for RubyGem <code>rubydoctest</code></p>
- <p>To the developer: To generate it, update website/index.txt and run the rake task <code>website</code> to generate this <code>index.html</code> file.</p>
- </body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>
+ rubydoctest
+ </title>
+ <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
+<style>
+
+</style>
+ <script type="text/javascript">
+ window.onload = function() {
+ settings = {
+ tl: { radius: 10 },
+ tr: { radius: 10 },
+ bl: { radius: 10 },
+ br: { radius: 10 },
+ antiAlias: true,
+ autoPad: true,
+ validTags: ["div"]
+ }
+ var versionBox = new curvyCorners(settings, document.getElementById("version"));
+ versionBox.applyCornersToAll();
+ }
+ </script>
+</head>
+<body>
+<div id="main">
+
+ <h1>rubydoctest</h1>
+ <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rubydoctest"; return false'>
+ <p>Get Version</p>
+ <a href="http://rubyforge.org/projects/rubydoctest" class="numbers">1.0.0</a>
+ </div>
+ <h1>&#x2192; &#8216;rubydoctest&#8217;</h1>
+
+
+ <h2>What</h2>
+
+
+ <h2>Installing</h2>
+
+
+ <p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">rubydoctest</span></pre></p>
+
+
+ <h2>The basics</h2>
+
+
+ <h2>Demonstration of usage</h2>
+
+
+ <h2>Forum</h2>
+
+
+ <p><a href="http://groups.google.com/group/rubydoctest">http://groups.google.com/group/rubydoctest</a></p>
+
+
+ <p><span class="caps">TODO</span> &#8211; create Google Group &#8211; rubydoctest</p>
+
+
+ <h2>How to submit patches</h2>
+
+
+ <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
+
+
+ <p><span class="caps">TODO</span> &#8211; pick <span class="caps">SVN</span> or Git instructions</p>
+
+
+ <p>The trunk repository is <code>svn://rubyforge.org/var/svn/rubydoctest/trunk</code> for anonymous access.</p>
+
+
+ <p><span class="caps">OOOORRRR</span></p>
+
+
+ <p>You can fetch the source from either:</p>
+
+
+ <ul>
+ <li>rubyforge: <span class="caps">MISSING IN ACTION</span></li>
+ </ul>
+
+
+ <p><span class="caps">TODO</span> &#8211; You can not created a RubyForge project, OR have not run <code>rubyforge config</code>
+yet to refresh your local rubyforge data with this projects&#8217; id information.</p>
+
+
+ <p>When you do this, this message will magically disappear!</p>
+
+
+ <p>Or you can hack website/index.txt and make it all go away!!</p>
+
+
+ <ul>
+ <li>github: <a href="http://github.com/GITHUB_USERNAME/rubydoctest/tree/master">http://github.com/GITHUB_USERNAME/rubydoctest/tree/master</a></li>
+ </ul>
+
+
+<pre>git clone git://github.com/GITHUB_USERNAME/rubydoctest.git</pre>
+
+ <p><span class="caps">TODO</span> &#8211; add &#8220;github_username: username&#8221; to ~/.rubyforge/user-config.yml and newgem will reuse it for future projects.</p>
+
+
+ <ul>
+ <li>gitorious: <a href="git://gitorious.org/rubydoctest/mainline.git">git://gitorious.org/rubydoctest/mainline.git</a></li>
+ </ul>
+
+
+<pre>git clone git://gitorious.org/rubydoctest/mainline.git</pre>
+
+ <h3>Build and test instructions</h3>
+
+
+<pre>cd rubydoctest
+rake test
+rake install_gem</pre>
+
+ <h2>License</h2>
+
+
+ <p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
+
+
+ <h2>Contact</h2>
+
+
+ <p>Comments are welcome. Send an email to <a href="mailto:FIXME"><span class="caps">FIXME</span> full name</a> email via the <a href="http://groups.google.com/group/rubydoctest">forum</a></p>
+ <p class="coda">
+ <a href="mailto:duane.johnson@gmail.com">Duane Johnson</a>, 17th June 2008<br>
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
+ </p>
+</div>
+
+<!-- insert site tracking codes here, like Google Urchin -->
+
+</body>
+</html>

0 comments on commit b11e67b

Please sign in to comment.