diff --git a/tracks/doc/README_FOR_APP b/tracks/doc/README_FOR_APP index 51377535..9408e00c 100644 --- a/tracks/doc/README_FOR_APP +++ b/tracks/doc/README_FOR_APP @@ -99,7 +99,7 @@ Rick Bradley kindly converted the MySQL schema for Tracks to Postgresql format, or for SQLite3: adapter: sqlite3 - dbfile: /fullpathto/db/yoursqlite.db + database: /fullpathto/db/yoursqlite.db If you're using SQLite 2.x, substitute 'sqlite' for 'sqlite3' above. Also note that those are the only lines you need for SQLite; the username, password, database and host lines are not necessary. diff --git a/tracks/vendor/RedCloth-3.0.3/bin/redcloth b/tracks/vendor/RedCloth-3.0.3/bin/redcloth deleted file mode 100644 index 81abf7db..00000000 --- a/tracks/vendor/RedCloth-3.0.3/bin/redcloth +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/local/bin/ruby18 -require 'redcloth' -puts RedCloth.new( ARGF.read ).to_html diff --git a/tracks/vendor/RedCloth-3.0.3/run-tests.rb b/tracks/vendor/RedCloth-3.0.3/run-tests.rb deleted file mode 100644 index 65b5c969..00000000 --- a/tracks/vendor/RedCloth-3.0.3/run-tests.rb +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env ruby -require 'lib/redcloth' -require 'yaml' - -Dir["tests/*.yml"].each do |testfile| - YAML::load_documents( File.open( testfile ) ) do |doc| - if doc['in'] and doc['out'] - red = RedCloth.new( doc['in'] ) - html = if testfile =~ /markdown/ - red.to_html( :markdown ) - else - red.to_html - end - puts "---" - - html.gsub!( /\n+/, "\n" ) - doc['out'].gsub!( /\n+/, "\n" ) - if html == doc['out'] - puts "success: true" - else - puts "out: "; p html - puts "expected: "; p doc['out'] - end - end - end -end diff --git a/tracks/vendor/RedCloth-3.0.3/tests/code.yml b/tracks/vendor/RedCloth-3.0.3/tests/code.yml deleted file mode 100644 index bc7bd2cc..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/code.yml +++ /dev/null @@ -1,105 +0,0 @@ ---- -in: 'This is an empty dictionary: @{}@' -out: '

This is an empty dictionary: {}

' ---- -in: |- - Testing nested pre tags... - -
-  
-    Good code here.
-
-    
-      a = 1
-    
- - Bad code here. - - -
-
- -out: |- -

Testing nested pre tags…

- - -
-  
-    Good code here.
-  
-    <pre>
-      a = 1
-    </pre>
-  
-    Bad code here.
-  
-    <script language="JavaScript">
-      window.open( "about:blank" );
-    </script>
-  
-  
---- -in: |- -
-  *** test
-  
-out: |- -
-  *** test
-  
---- -in: |- - - *** test - -out: |- - *** test ---- -in: '*this is strong*' -out: '

this is strong

' ---- -in: '*this test is strong*' -out: '

this test is strong

' ---- -in:
 __inline__
-out:
 __inline__
---- -in: |- - * @foo@ - * @bar@ - * and @x@ is also. -out: "" ---- -in: |- -
  
-
  
-out: |- -
 <hello> 
-
 <hello> 
---- -in: | - Test of Markdown-style indented code. - - a = [1, 2, 3] - a.each do |x| - puts "test number", x, - "and more!" - end - - Paragraph 2. - - Paragraph 3. -out: |- -

Test of Markdown-style indented code.

- -
a = [1, 2, 3]
-  a.each do |x|
-    puts "test number", x,
-      "and more!" 
-  end
- -

Paragraph 2.

- -

Paragraph 3.

diff --git a/tracks/vendor/RedCloth-3.0.3/tests/images.yml b/tracks/vendor/RedCloth-3.0.3/tests/images.yml deleted file mode 100644 index d097e0fb..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/images.yml +++ /dev/null @@ -1,171 +0,0 @@ ---- -in: This is an !image.jpg! -out:

This is an

---- -in: This is an !image.jpg(with alt text)! -out:

This is an with alt text

---- -in: This is an !http://example.com/i/image.jpg! -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg#a1! -out:

This is an

---- -in: This is an !image.jpg!. -out:

This is an .

---- -in: This is an !image.jpg(with alt text)!. -out:

This is an with alt text.

---- -in: This is an !http://example.com/i/image.jpg!. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg#a1!. -out:

This is an .

---- -in: This is not an image!!! -out:

This is not an image!!!

---- -in: This is an !http://example.com/i/image.jpg!:#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:index.html?foo=bar#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/ -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10 -out:

This is an

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10. -out:

This is an .

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b, but this is not. -out:

This is an , but this is not.

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1, but this is not. -out:

This is an , but this is not.

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a, but this is not. -out:

This is an , but this is not.

---- -in: This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1, but this is not. -out:

This is an , but this is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not. -out:

(This is an ) This is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b) This is not. -out:

(This is an ) This is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#1) This is not. -out:

(This is an ) This is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a) This is not. -out:

(This is an ) This is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a1) This is not. -out:

(This is an ) This is not.

---- -in: (This is an !http://example.com/i/image.jpg!:http://example.com/index.html?foo=bar&a=b#a10) This is not. -out:

(This is an ) This is not.

diff --git a/tracks/vendor/RedCloth-3.0.3/tests/instiki.yml b/tracks/vendor/RedCloth-3.0.3/tests/instiki.yml deleted file mode 100644 index 89b8ec6b..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/instiki.yml +++ /dev/null @@ -1,39 +0,0 @@ ---- # Bugs filed at http://www.instiki.org/show/BugReports -in: |- - _Hi, Joe Bob?, this should all be in italic!_ -out: |- -

Hi, Joe Bob?, this should all be in italic!

---- -in: '*this span is strong*' -out: '

this span is strong

' ---- -in: '*this Camel Thing? is strong*' -out: '

this Camel Thing? is strong

' ---- -in: '_this span is italic_' -out: '

this span is italic

' ---- -in: '%{color:red}nested span because of Camel Word?%' -out: '

nested span because of Camel Word?

' ---- -in: |- - h2. Version History - - * "Version - 0.0":http://www.threewordslong.com/render-0-8-9b.patch - Early version using MD5 hashes. - * "Version - 0.1":http://www.threewordslong.com/chunk-0-1.patch.gz - First cut of new system. Much cleaner. - * "Version 0.2":http://www.threewordslong.com/chunk-0-2.patch.gz - Fixed problem with "authors" page and some tests. -out: |- -

Version History

- - ---- -in: "--richSeymour --whyTheLuckyStiff" -out: "

—richSeymour—whyTheLuckyStiff

" diff --git a/tracks/vendor/RedCloth-3.0.3/tests/links.yml b/tracks/vendor/RedCloth-3.0.3/tests/links.yml deleted file mode 100644 index 16b63331..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/links.yml +++ /dev/null @@ -1,155 +0,0 @@ ---- -in: '"link text":#1' -out:

link text

---- -in: '"link text":#a' -out:

link text

---- -in: '"link text":#a1' -out:

link text

---- -in: '"link text":#a10' -out:

link text

---- -in: '"link text":index.html' -out:

link text

---- -in: '"link text":index.html#1' -out:

link text

---- -in: '"link text":index.html#a' -out:

link text

---- -in: '"link text":index.html#a1' -out:

link text

---- -in: '"link text":index.html#a10' -out:

link text

---- -in: '"link text":http://example.com/' -out:

link text

---- -in: '"link text":http://example.com/#1' -out:

link text

---- -in: '"link text":http://example.com/#a' -out:

link text

---- -in: '"link text":http://example.com/#a1' -out:

link text

---- -in: '"link text":http://example.com/#a10' -out:

link text

---- -in: '"link text":http://example.com/index.html' -out:

link text

---- -in: '"link text":http://example.com/index.html#a' -out:

link text

---- -in: '"link text":http://example.com/index.html#1' -out:

link text

---- -in: '"link text":http://example.com/index.html#a1' -out:

link text

---- -in: '"link text":http://example.com/index.html#a10' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar#a' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar#1' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar#a1' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar#a10' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar&a=b' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar&a=b#1' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar&a=b#a' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar&a=b#a1' -out:

link text

---- -in: '"link text":http://example.com/?foo=bar&a=b#a10' -out:

link text

---- -in: 'This is a "link":http://example.com/' -out:

This is a link

---- -in: 'This is a "link":http://example.com/.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/index.html.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/index.html#a.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/index.html#1.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/index.html#a1.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/index.html#a10.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar#1.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar#a.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar#a1.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar#a10.' -out:

This is a link.

---- -in: 'This is a "link":http://example.com/?foo=bar#a10, but this is not.' -out:

This is a link, but this is not.

---- -in: '(This is a "link":http://example.com/?foo=bar#a10) but this is not.' -out:

(This is a link) but this is not.

---- -in: '"link text(link title)":http://example.com/' -out:

link text

-# --- -# in: '"link text(link title) ":http://example.com/' -# out:

“link text(link title) “:http://example.com/

-# comments: this is a real test and should pass ---- -in: '"(link) text(link title)":http://example.com/' -out:

text

-comments: link text can not contain parentheses ---- -in: '"Dive Into XML":http://www.xml.com/pub/au/164' -out:

Dive Into XML

---- -in: '"Lab Exercises":../lab/exercises/exercises.html.' -out:

Lab Exercises.

---- -in: 'Go to "discuss":http://www.dreammoods.com/cgibin/cutecast/cutecast.pl?forum=1&thread=26627 to discuss.' -out:

Go to discuss to discuss.

---- -in: '* "rubylang":http://www.ruby-lang.org/en/' -out: "" ---- -in: 'The ION coding style document found at "IONCodingStyleGuide.doc":http://perforce:8081/@md=d&cd=//&c=82E@//depot/systest/system/main/pub/doc/IONCodingStyleGuide.doc?ac=22 codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in ION. Test text' -out:

The ION coding style document found at IONCodingStyleGuide.doc codifies a couple of rules to ensure reasonably consistent code and documentation of libraries in ION. Test text

diff --git a/tracks/vendor/RedCloth-3.0.3/tests/lists.yml b/tracks/vendor/RedCloth-3.0.3/tests/lists.yml deleted file mode 100644 index cf8938f0..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/lists.yml +++ /dev/null @@ -1,77 +0,0 @@ ---- # Bret Pettichord, Thanks. -in: |- - * first line - * second - line - * third line -out: |- - ---- -in: |- - p. start - - * one - and one - * two - and two - * three - - p. end -out: |- -

start

- - -

end

---- -in: |- - Funky: - - * Testing - *# number - *##* bullet - *# number - *# number - yeah number - #* bullet - *** okay - ****# what - - -out: |- -

Funky:

- - - ---- -in: "* command run: @time ruby run-tests.rb > toto@" -out: "" diff --git a/tracks/vendor/RedCloth-3.0.3/tests/markdown.yml b/tracks/vendor/RedCloth-3.0.3/tests/markdown.yml deleted file mode 100644 index a053ea39..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/markdown.yml +++ /dev/null @@ -1,218 +0,0 @@ -in: | - This is a regular paragraph. - - - - - -
Foo
- - This is another regular paragraph. -out: |- -

This is a regular paragraph.

- - - - - - -
Foo
-

This is another regular paragraph.

---- -in: '"Larry Bird":http://images.google.com/images?num=30&q=larry+bird' -out: '

"Larry Bird":http://images.google.com/images?num=30&q=larry+bird

' ---- -in: '©' -out:

©

---- -in: AT&T -out:

AT&T

- -# We don't do this. -# --- -# in: 4 < 5 -# out: 4 < 5 ---- -in: | - This is an H1 - ============= - - This is an H2 - ------------- -out: |- -

This is an H1

- -

This is an H2

---- -in: | - # This is an H1 - - ## This is an H2 - - ###### This is an H6 -out: |- -

This is an H1

- -

This is an H2

- -
This is an H6
---- -in: | - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - > - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - > id sem consectetuer libero luctus adipiscing. -out: |- -
-

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

- -

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing.

- -
---- -in: | - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - > - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing. -out: |- -
-

This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

- -

Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing.

- -
---- -in: | - > This is the first level of quoting. - > - > > This is nested blockquote. - > - > Back to the first level. -out: |- -
-

This is the first level of quoting.

-
-

This is nested blockquote.

- -
- - - -

Back to the first level.

- -
---- -in: | - > ## This is a header. - > - > 1. This is the first list item. - > 2. This is the second list item. - > - > Here's some example code: - > - > return shell_exec("echo $input | $markdown_script"); -out: |- -
-

This is a header.

- - - -

1. This is the first list item. - 2. This is the second list item.

- -

Here's some example code:

-
return shell_exec("echo $input | $markdown_script");
- -
---- -in: | - * * * - - *** - - ***** - - - - - - - --------------------------------------- - - _ _ _ -out: |- -
- -
- -
- -
- -
- -
---- -in: | - This is [an example](http://example.com/ "Title") inline link. - - [This link](http://example.net/) has no title attribute. -out: |- -

This is an example inline link.

- -

This link has no title attribute.

---- -in: See my [About](/about/) page for details. -out:

See my About page for details.

---- -in: | - This is [an example][id] reference-style link. - - This is [an example] [id] reference-style link. - - [id]: http://example.com/ "Optional Title Here" -out: |- -

This is an example reference-style link.

- -

This is an example reference-style link.

---- -in: | - [Google][] - [Google]: http://google.com/ -out:

Google

---- -in: | - Visit [Daring Fireball][] for more information. - [Daring Fireball]: http://daringfireball.net/ -out:

Visit Daring Fireball for more information.

---- -in: | - I get 10 times more traffic from [Google] [1] than from - [Yahoo] [2] or [MSN] [3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -out: |- -

I get 10 times more traffic from Google than from - Yahoo or MSN.

---- -in: | - I get 10 times more traffic from [Google][] than from - [Yahoo][] or [MSN][]. - - [google]: http://google.com/ "Google" - [yahoo]: http://search.yahoo.com/ "Yahoo Search" - [msn]: http://search.msn.com/ "MSN Search" -out: |- -

I get 10 times more traffic from Google than from - Yahoo or MSN.

diff --git a/tracks/vendor/RedCloth-3.0.3/tests/poignant.yml b/tracks/vendor/RedCloth-3.0.3/tests/poignant.yml deleted file mode 100644 index 1a0f6942..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/poignant.yml +++ /dev/null @@ -1,64 +0,0 @@ ---- # Tests from the (Poignant Guide) -in: > - h3. False - - - ! - if plastic_cup - print "Plastic cup is on the up 'n' up!" - end - - - - If @plastic_cup@ contains either @nil@ or @false@, you won't see anything print - to the screen. They're not on the @if@ guest list. So @if@ isn't going to run - any of the code it's protecting. - - - But @nil@ and @false@ need not walk away in shame. They may be of questionable - character, but @unless@ runs a smaller establishment that caters to the bedraggled. - The @unless@ keyword has a policy of only allowing those with a negative charge in. - Who are: @nil@ and @false@. - - -
-    unless plastic_cup
-      print "Plastic cup is on the down low."
-    end
-  
- - - You can also use @if@ and @unless@ at the end of a single line of code, if that's - all that is being protected. - - -
-    print "Yeah, plastic cup is up again!" if plastic_cup
-    print "Hardly. It's down." unless plastic_cup
-  
- - - Now that you've met @false@, I'm sure you can see what's on next. - -out: "

False

\n\n\t

\"Shape

\n\n\t

The cat Trady Blix. Frozen in emptiness. Immaculate whiskers rigid. Placid eyes of lake. Tail of warm icicle. Sponsored by a Very Powerful Pause Button.

\n\n\t

The darkness surrounding Blix can be called negative space. Hang on to that phrase. Let it suggest that the emptiness has a negative connotation. In a similar way, nil has a slightly sour note that it whistles.

\n\n\t

Generally speaking, everything in Ruby has a positive charge to it. This spark flows through strings, numbers, regexps, all of it. Only two keywords wear a shady cloak: nil and false draggin us down.

\n\n\t

You can test that charge with an if keyword. It looks very much like the do blocks we saw in the last chapter, in that both end with an end.

\n\n\n
\n  if plastic_cup\n    print \"Plastic cup is on the up 'n' up!\" \n  end\n
\n\t

If plastic_cup contains either nil or false, you won’t see anything print to the screen. They’re not on the if guest list. So if isn’t going to run any of the code it’s protecting.

\n\n\t

But nil and false need not walk away in shame. They may be of questionable character, but unless runs a smaller establishment that caters to the bedraggled. The unless keyword has a policy of only allowing those with a negative charge in. Who are: nil and false.

\n\n\n
\n  unless plastic_cup\n    print \"Plastic cup is on the down low.\" \n  end\n
\n\t

You can also use if and unless at the end of a single line of code, if that’s all that is being protected.

\n\n\n
\n  print \"Yeah, plastic cup is up again!\" if plastic_cup\n  print \"Hardly. It's down.\" unless plastic_cup\n
\n\t

Now that you’ve met false, I’m sure you can see what’s on next.

" diff --git a/tracks/vendor/RedCloth-3.0.3/tests/table.yml b/tracks/vendor/RedCloth-3.0.3/tests/table.yml deleted file mode 100644 index bf5059e1..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/table.yml +++ /dev/null @@ -1,198 +0,0 @@ -in: | - {background:#ddd}. |S|Target|Complete|App|Milestone| - |!/i/g.gif!|11/18/04|11/18/04|070|XML spec complete| - |!/i/g.gif!|11/29/04|11/29/04|011|XML spec complete (KH is on schedule)| - |!/i/g.gif!|11/29/04|11/29/04|051|XML spec complete (KH is on schedule)| - |!/i/g.gif!|11/29/04|11/29/04|081|XML spec complete (KH is on schedule)| - |!/i/g.gif!|11/19/04|11/22/04|070|Preprocessor complete| - |!/i/g.gif!|11/22/04|11/22/04|070|Dialog pass 1 builds an index file| - |!/i/g.gif!|11/24/04|11/24/04|070|Dialog pass 2 98% complete| - |!/i/g.gif!|11/30/04|11/30/04|070|Feature complete. Passes end-to-end smoke test.| - |!/i/g.gif!|11/30/04|11/30/04|011|Preprocessor updates complete| - |!/i/g.gif!|11/30/04|11/30/04|051|Preprocessor updates complete| - |!/i/g.gif!|11/30/04|11/29/04|081|Preprocessor updates complete| - |!/i/w.gif!|12/02/04|.|011|Dialog pass 1 and 2 complete (98+%)| - |!/i/w.gif!|12/02/04|.|051|Dialog pass 1 and 2 complete (98+%)| - |!/i/w.gif!|12/02/04|.|081|Dialog pass 1 and 2 complete (98+%)| - |!/i/w.gif!|12/03/04|.|011|Feature complete| - |!/i/w.gif!|12/03/04|.|051|Feature complete| - |!/i/w.gif!|12/03/04|.|081|Feature complete| - |!/i/w.gif!|12/10/04|.|011|Deployed to Napa test workstation. Passes smoke test.| - |!/i/w.gif!|12/10/04|.|051|Deployed to Napa test workstation. Passes smoke test.| - |!/i/w.gif!|12/10/04|.|081|Deployed to Napa test workstation. Passes smoke test.| - |!/i/w.gif!|12/10/04|.|070|Deployed to Napa test workstation. Passes smoke test.| - |!/i/w.gif!|12/17/04|.|011|System testing complete. Begin testing with live customer data.| - |!/i/w.gif!|12/17/04|.|051|System testing complete. Begin testing with live customer data.| - |!/i/w.gif!|12/17/04|.|081|System testing complete. Begin testing with live customer data.| - |!/i/w.gif!|12/17/04|.|070|System testing complete. Begin testing with live customer data.| -out: |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
STargetCompleteAppMilestone
11/18/0411/18/04070XML spec complete
11/29/0411/29/04011XML spec complete (KH is on schedule)
11/29/0411/29/04051XML spec complete (KH is on schedule)
11/29/0411/29/04081XML spec complete (KH is on schedule)
11/19/0411/22/04070Preprocessor complete
11/22/0411/22/04070Dialog pass 1 builds an index file
11/24/0411/24/04070Dialog pass 2 98% complete
11/30/0411/30/04070Feature complete. Passes end-to-end smoke test.
11/30/0411/30/04011Preprocessor updates complete
11/30/0411/30/04051Preprocessor updates complete
11/30/0411/29/04081Preprocessor updates complete
12/02/04011Dialog pass 1 and 2 complete (98+%)
12/02/04051Dialog pass 1 and 2 complete (98+%)
12/02/04081Dialog pass 1 and 2 complete (98+%)
12/03/04011Feature complete
12/03/04051Feature complete
12/03/04081Feature complete
12/10/04011Deployed to Napa test workstation. Passes smoke test.
12/10/04051Deployed to Napa test workstation. Passes smoke test.
12/10/04081Deployed to Napa test workstation. Passes smoke test.
12/10/04070Deployed to Napa test workstation. Passes smoke test.
12/17/04011System testing complete. Begin testing with live customer data.
12/17/04051System testing complete. Begin testing with live customer data.
12/17/04081System testing complete. Begin testing with live customer data.
12/17/04070System testing complete. Begin testing with live customer data.
diff --git a/tracks/vendor/RedCloth-3.0.3/tests/textism.yml b/tracks/vendor/RedCloth-3.0.3/tests/textism.yml deleted file mode 100644 index 5489c04d..00000000 --- a/tracks/vendor/RedCloth-3.0.3/tests/textism.yml +++ /dev/null @@ -1,397 +0,0 @@ ---- -in: h1. Header 1 -out:

Header 1

---- -in: h2. Header 2 -out:

Header 2

---- -in: h3. Header 3 -out:

Header 3

---- -in: |- - Any old text. - - bq. A block quotation. - - Any old text. - -out: |- -

Any old text.

- -
-

A block quotation.

-
- -

Any old text.

- ---- -in: This is covered elsewhere[1]. -out:

This is covered elsewhere1.

---- -in: fn1. Down here, in fact. -out:

1 Down here, in fact.

---- -in: |- - # A first item - # A second item - # A third item - # A fourth item -out: |- -
    -
  1. A first item
  2. -
  3. A second item
  4. -
  5. A third item
  6. -
  7. A fourth item
  8. -
---- -in: |- - * A first item - * A second item - * A third item - * A fourth item - -out: |- - - ---- -in: _a phrase_ -out:

a phrase

---- -in: __a phrase__ -out:

a phrase

---- -in: '*a phrase*' -out:

a phrase

---- -in: '**a phrase**' -out:

a phrase

---- -in: Nabokov's ??Pnin?? -out:

Nabokov’s Pnin

---- -in: -a phrase- -out:

a phrase

---- -in: +a phrase+ -out:

a phrase

---- -in: ^a phrase^ -out:

a phrase

---- -in: ~a phrase~ -out:

a phrase

-# --- -# in: %(caps)SPAN% -# out:

SPAN ---- -in: %{color:red}red% -out:

red

---- -in: %[fr]rouge% -out:

rouge

---- -in: _(big)red_ -out:

red

---- -in: p(bob). A paragraph -out:

A paragraph

---- -in: p{color:#ddd}. A paragraph -out:

A paragraph

---- -in: p[fr]. A paragraph -out:

A paragraph

---- -in: h2()>. right-aligned header2, indented 1em both side -out:

right-aligned header2, indented 1em both side

---- -in: h3=. centered header -out:

centered header

---- -in: '!>/image.gif! right-aligned image' -out:

right-aligned image

---- -in: p[no]{color:red}. A Norse of a different colour. -out:

A Norse of a different colour.

---- -in: |- - |This|is|a|simple|table| - |This|is|a|simple|row| -out: |- - - - - - - - - - - - - - - - -
Thisisasimpletable
Thisisasimplerow
---- -in: |- - table{border:1px solid black}. - |This|is|a|row| - |This|is|a|row| -out: |- - - - - - - - - - - - - - -
Thisisarow
Thisisarow
---- -in: '{background:#ddd}. |This|is|a|row|' -out: |- - - - - - - - -
Thisisarow
---- -in: |- - |{background:#ddd}. Cell with gray background| - |\2. Cell spanning 2 columns| - |/3. Cell spanning 3 rows| - |>. Right-aligned cell| -out: |- - - - - - - - - - - - - - -
Cell with gray background
Cell spanning 2 columns
Cell spanning 3 rows
Right-aligned cell
-# --- -# in: |- -# This is a "link":bob to Bob's website. -# -# [bob]http://itsbob.com/index.html ---- -in: ACLU(American Civil Liberties Union) -out:

ACLU

---- -in: |- - h2{color:green}. This is a title - - h3. This is a subhead - - p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote. - - bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised. - - Simple list: - - #{color:blue} one - # two - # three - - Multi-level list: - - # one - ## aye - ## bee - ## see - # two - ## x - ## y - # three - - Mixed list: - - * Point one - * Point two - ## Step 1 - ## Step 2 - ## Step 3 - * Point three - ** Sub point 1 - ** Sub point 2 - - - Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No! - - "This is a link (optional title)":http://www.textism.com - - table{border:1px solid black}. - |_. this|_. is|_. a|_. header| - <{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row| - |this|<>{padding:10px}. is|^. another|(bob#bob). row| - - An image: - - !/common/textist.gif(optional alt text)! - - # Librarians rule - # Yes they do - # But you knew that - - Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_. - That was a linebreak. And something to indicate *strength*. Of course I could use my own HTML tags if I felt like it. - - h3. Coding - - This is some code, "isn't it". Watch those quote marks! Now for some preformatted text: - -
-  
-      $text = str_replace("

%::%

","",$text); - $text = str_replace("%::%

","",$text); - $text = str_replace("%::%","",$text); - -
-
- - This isn't code. - - - So you see, my friends: - - * The time is now - * The time is not later - * The time is not yesterday - * We must act - -out: |- -

This is a title

- -

This is a subhead

- -

This is some text of dubious character. Isn’t the use of “quotes” just lazy writing—and theft of ‘intellectual property’ besides? I think the time has come to see a block quote.

- -
-

This is a block quote. I’ll admit it’s not the most exciting block quote ever devised.

-
- -

Simple list:

-
    -
  1. one
  2. -
  3. two
  4. -
  5. three
  6. -
- -

Multi-level list:

-
    -
  1. one -
      -
    1. aye
    2. -
    3. bee
    4. -
    5. see
    6. -
    -
  2. -
  3. two -
      -
    1. x
    2. -
    3. y
    4. -
    -
  4. -
  5. three
  6. -
- -

Mixed list:

- - -

Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No!

- -

This is a link

- - - - - - - - - - - - - - - - - - - -
thisisaheader
this isarow
thisisanotherrow
- - - -

An image:

- -

optional alt text

-
    -
  1. Librarians rule
  2. -
  3. Yes they do
  4. -
  5. But you knew that
  6. -
- -

Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to emphasize. - That was a linebreak. And something to indicate strength. Of course I could use my own HTML tags if I felt like it.

- -

Coding

- -

This is some code, "isn't it". Watch those quote marks! Now for some preformatted text:

- - -
-  
-      $text = str_replace("<p>%::%</p>","",$text);
-      $text = str_replace("%::%</p>","",$text);
-      $text = str_replace("%::%","",$text);
-  
-  
-  
-

This isn’t code.

- -

So you see, my friends:

- - diff --git a/tracks/vendor/RedCloth-3.0.3/lib/redcloth.rb b/tracks/vendor/redcloth.rb similarity index 100% rename from tracks/vendor/RedCloth-3.0.3/lib/redcloth.rb rename to tracks/vendor/redcloth.rb