Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:qrush/aintablog
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Sep 18, 2008
2 parents 75315f5 + 7eb5061 commit 9d4557b
Show file tree
Hide file tree
Showing 102 changed files with 35,408 additions and 3,440 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*~
log/*
tmp/*
db/*.sqlite3
Expand Down
16 changes: 8 additions & 8 deletions README.textile
Expand Up @@ -14,19 +14,19 @@ h3. Feature Requests/Bugs

I've set up a Lighthouse project for Aintablog here: "http://nakajima.lighthouseapp.com/projects/14585-aintablog":http://nakajima.lighthouseapp.com/projects/14585-aintablog

h3. REQUIREMENTS
h3. Requirements

You're going to need the feed-normalizer and hpricot gems.
You're going to need a few gems to start things off.

sudo gem install feed-normalizer hpricot
sudo gem install feed-normalizer hpricot RedCloth

If you want to run the test suite, you'll need the mocha gem.
or

sudo gem install mocha
sudo rake gems:install

I think that's about it.
If you want to run the test suite, you'll need the mocha gem.

You can run @rake gems:install@ to do it all in one fell swoop if you'd like.
sudo gem install mocha

h4. Defensio Spam Protection

Expand All @@ -37,4 +37,4 @@ h3. TODO
* Put together a better regex for the spanify_links helper
* -Page titles!-
* -Page caching-
* More control over posts (publish_at, -commentable?-)
* More control over posts (publish_at, -commentable?-)
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.

0 comments on commit 9d4557b

Please sign in to comment.