Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Repacking gems since a rake gems:install wasn't working properly.
  • Loading branch information
qrush committed Sep 16, 2008
1 parent e034b4a commit 9f297e2
Show file tree
Hide file tree
Showing 101 changed files with 35,400 additions and 3,432 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*~
log/*
tmp/*
db/*.sqlite3
Expand Down
3 changes: 2 additions & 1 deletion config/environment.rb
Expand Up @@ -25,8 +25,9 @@
config.gem 'feed-normalizer'
config.gem 'hpricot'
config.gem 'rubypants'
config.gem 'RedCloth'
end

require 'authenticated_model'

ActionController::Base.cache_store = :file_store, "#{RAILS_ROOT}/public/cache"
ActionController::Base.cache_store = :file_store, "#{RAILS_ROOT}/public/cache"
107 changes: 107 additions & 0 deletions vendor/gems/RedCloth-4.0.3/.specification
@@ -0,0 +1,107 @@
--- !ruby/object:Gem::Specification
name: RedCloth
version: !ruby/object:Gem::Version
version: 4.0.3
platform: ruby
authors:
- Jason Garber
autorequire:
bindir: bin
cert_chain: []

date: 2008-08-18 00:00:00 -04:00
default_executable: redcloth
dependencies: []

description: RedCloth-4.0.3 - Textile parser for Ruby. http://redcloth.org/
email: redcloth-upwards@rubyforge.org
executables:
- redcloth
extensions:
- ext/redcloth_scan/extconf.rb
extra_rdoc_files:
- README
- CHANGELOG
- COPYING
files:
- CHANGELOG
- COPYING
- README
- Rakefile
- bin/redcloth
- test/basic.yml
- test/code.yml
- test/definitions.yml
- test/extra_whitespace.yml
- test/filter_html.yml
- test/filter_pba.yml
- test/helper.rb
- test/html.yml
- test/images.yml
- test/instiki.yml
- test/links.yml
- test/lists.yml
- test/poignant.yml
- test/sanitize_html.yml
- test/table.yml
- test/test_custom_tags.rb
- test/test_extensions.rb
- test/test_formatters.rb
- test/test_parser.rb
- test/test_restrictions.rb
- test/textism.yml
- test/threshold.yml
- test/validate_fixtures.rb
- lib/case_sensitive_require
- lib/case_sensitive_require/RedCloth.rb
- lib/redcloth
- lib/redcloth/formatters
- lib/redcloth/formatters/base.rb
- lib/redcloth/formatters/html.rb
- lib/redcloth/formatters/latex.rb
- lib/redcloth/formatters/latex_entities.yml
- lib/redcloth/textile_doc.rb
- lib/redcloth/version.rb
- lib/redcloth.rb
- lib/redcloth_scan.bundle
- extras/mingw-rbconfig.rb
- extras/ragel_profiler.rb
- ext/redcloth_scan/redcloth.h
- ext/redcloth_scan/redcloth_attributes.c
- ext/redcloth_scan/redcloth_inline.c
- ext/redcloth_scan/redcloth_scan.c
- ext/redcloth_scan/extconf.rb
- ext/redcloth_scan/redcloth_attributes.rl
- ext/redcloth_scan/redcloth_common.rl
- ext/redcloth_scan/redcloth_inline.rl
- ext/redcloth_scan/redcloth_scan.rl
has_rdoc: true
homepage: http://redcloth.org/
post_install_message:
rdoc_options: []

require_paths:
- bin
- lib
- lib/case_sensitive_require
required_ruby_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: "0"
version:
requirements: []

rubyforge_project: redcloth
rubygems_version: 1.2.0
signing_key:
specification_version: 2
summary: RedCloth-4.0.3 - Textile parser for Ruby. http://redcloth.org/
test_files: []

65 changes: 65 additions & 0 deletions vendor/gems/RedCloth-4.0.3/CHANGELOG
@@ -0,0 +1,65 @@
*4.0.3 (August 18, 2008)*

* Fix NoMethodError: private method gsub!' called for nil:NilClass when two dimensions followed by a space. #38

* Fixed unititialized constant RedCloth::TextileDoc with Rails 2.1. Came from a workaround for Rails bug #320 that was applied even when not necessary. #42


*4.0.2 (August 15, 2008)*

* Fixed link references/aliases not being recognized when they include hyphens. #36

* Dimensions in feet and inches use correct typographic characters. #25

* Limit overzealous superscript and subscript. Sup/sub phrases must be surrounded by spaces or square brackets, as in Textile 2. #35

* Fixed HTML before tables causing the opening table tag to be emitted twice. #33

* Cleaned up unused code that was causing a warning. #28

* Workaround for Rails 2.1 bug that loads a previous version of RedCloth before loading the unpacked gem. Has since been fixed in edge rails. #30

* Added a RedCloth::VERSION.to_s and .== methods so you can puts and compare RedCloth::VERSION just like in previous RedCloth releases. #26

* Fixed HTML block ending tags terminating blocks prematurely. #22


*4.0.1 (July 24, 2008)*

* Fixed lines starting with dashes being recognized as a definition list when there were no definitions.

* Created alias RedCloth.rb so Rails 2.1 gem dependency works on case-sensitive operating systems .
* Fixed parsing sentences that had two em dashes surrounded by spaces from becoming del phrases. #19

* Fixed links including prior quoted phrases. #17


*4.0.0 (July 21, 2008)*

* New SuperRedCloth (RedCloth 4.0) is a total rewrite using Ragel for the parsing.

* Markdown support has been removed.

* Single newlines become <br> tags, just as in traditional RedCloth and other Textile parsers.

* HTML special characters are automatically escaped inside code signatures, like Textile 2. This means you can simply write @<br />@ and the symbols are escaped whereas in RedCloth 3 you had to write @&lt;br /&gt;@ to make the code fragment readable.

* The restrictions parameter is observed just like previous versions (except :hard_breaks is now the default).

* Arguments to RedCloth#to_html are called so extensions made for prior versions can work. Note: extensions need to be included rather than defined directly within the RedCloth class as was previously possible.

* Custom block tags can be implemented as in the previous version, though the means of implementing them differs.

* HTML embedded in the Textile input does not often need to be escaped from Textile parsing.

* The parser will not wrap lines that begin with a space in paragraph tags.

* Rudimentary support for LaTeX is built in.

* RedCloth::VERSION on a line by itself inserts the version number into the output.

* Output (less newlines and tabs) is identical to Textile 2 except a few cases where the RedCloth way was preferable.

* Over 500 tests prevent regression

* It's 40 times faster than the previous version.
18 changes: 18 additions & 0 deletions vendor/gems/RedCloth-4.0.3/COPYING
@@ -0,0 +1,18 @@
Copyright (c) 2008 Jason Garber

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
156 changes: 156 additions & 0 deletions vendor/gems/RedCloth-4.0.3/README
@@ -0,0 +1,156 @@
= RedCloth - Textile parser for Ruby

Homepage:: http://redcloth.org
Author:: Jason Garber
Copyright:: (c) 2008 Jason Garber
License:: MIT

(See http://redcloth.org/textile/ for a Textile reference.)

= RedCloth

RedCloth is a Ruby library for converting Textile into HTML.

== Installing

RedCloth can be installed via RubyGems:

sudo gem install RedCloth

Or can be compiled from its Ragel source with <tt>rake compile</tt>. Ragel 6.2
or greater is required to build RedCloth.

== What is Textile?

Textile is a simple formatting style for text
documents, loosely based on some HTML conventions.

== Sample Textile Text

h2. This is a title

h3. This is a subhead

This is a bit of paragraph.

bq. This is a blockquote.

= Writing Textile

A Textile document consists of paragraphs. Paragraphs
can be specially formatted by adding a small instruction
to the beginning of the paragraph.

h3. Header 3.
bq. Blockquote.
# Numeric list.
* Bulleted list.

== Quick Phrase Modifiers

Quick phrase modifiers are also included, to allow formatting
of small portions of text within a paragraph.

_emphasis_
__italicized__
*strong*
**bold**
??citation??
-deleted text-
+inserted text+
^superscript^
~subscript~
@code@
%(classname)span%

==notextile== (leave text alone)

== Links

To make a hypertext link, put the link text in "quotation
marks" followed immediately by a colon and the URL of the link.

Optional: text in (parentheses) following the link text,
but before the closing quotation mark, will become a title
attribute for the link, visible as a tool tip when a cursor is above it.

Example:

"This is a link (This is a title)":http://www.textism.com

Will become:

<a href="http://www.textism.com" title="This is a title">This is a link</a>

== Images

To insert an image, put the URL for the image inside exclamation marks.

Optional: text that immediately follows the URL in (parentheses) will
be used as the Alt text for the image. Images on the web should always
have descriptive Alt text for the benefit of readers using non-graphical
browsers.

Optional: place a colon followed by a URL immediately after the
closing ! to make the image into a link.

Example:

!http://www.textism.com/common/textist.gif(Textist)!

Will become:

<img src="http://www.textism.com/common/textist.gif" alt="Textist" />

With a link:

!/common/textist.gif(Textist)!:http://textism.com

Will become:

<a href="http://textism.com"><img src="/common/textist.gif" alt="Textist" /></a>

== Defining Acronyms

HTML allows authors to define acronyms via the tag. The definition appears as a
tool tip when a cursor hovers over the acronym. A crucial aid to clear writing,
this should be used at least once for each acronym in documents where they appear.

To quickly define an acronym in Textile, place the full text in (parentheses)
immediately following the acronym.

Example:

ACLU(American Civil Liberties Union)

Will become:

<acronym title="American Civil Liberties Union">ACLU</acronym>

== Adding Tables

In Textile, simple tables can be added by separating each column by
a pipe.

|a|simple|table|row|
|And|Another|table|row|

Styles are applied with curly braces.

table{border:1px solid black}.
{background:#ddd;color:red}. |a|red|row|

== Using RedCloth

RedCloth is simply an extension of the String class, which can handle
Textile formatting. Use it like a String and output HTML with its
RedCloth#to_html method.

doc = RedCloth.new "

h2. Test document

Just a simple test."

puts doc.to_html

0 comments on commit 9f297e2

Please sign in to comment.