We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Replaced BlueCloth with RDiscount
See, e.g., 
http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two
-for-price-of-one
Michael Hartl (author)
Thu Jul 31 12:20:16 -0700 2008
commit  bd9bb2c23934a5b538ea3070b7e88fa9eeb39e49
tree    9c3ad3c2509090ce3da96bb42f76fecff39119f6
parent  74ff25704092dd2c8563754c3132ee7d1366fcf0
...
133
134
135
 
 
 
 
 
 
136
...
133
134
135
136
137
138
139
140
141
142
0
@@ -133,4 +133,10 @@ module ApplicationHelper
0
     def add_tag_options(text, options)
0
       text.gsub("<p>", "<p#{options}>")
0
     end
0
+
0
+ # Use RDiscount, which is much faster than BlueCloth.
0
+ # See, e.g., http://tomayko.com/writings/ruby-markdown-libraries-real-cheap-for-you-two-for-price-of-one
0
+ def markdown(text)
0
+ RDiscount.new(text).to_html
0
+ end
0
 end
...
62
63
64
65
66
67
68
69
...
62
63
64
 
 
65
66
67
0
@@ -62,8 +62,6 @@ Rails::Initializer.run do |config|
0
   # config.active_record.default_timezone = :utc
0
 end
0
 
0
-require 'bluecloth'
0
-
0
 # Set INLINEDIR to override default location for ruby_inline directory
0
 # The home directory may not be correctly set in an "su"/"sudo" situation
0
 # and will lead to runtime errors with image_science
...
1
2
3
 
4
5
6
...
1
2
3
4
5
6
7
0
@@ -1,6 +1,7 @@
0
 require 'digest/sha1'
0
 require 'ferret_mixin'
0
 require 'rand'
0
+require 'rdiscount'
0
 
0
 # In some cases autotest interprets the initialization of the UUID generator
0
 # as something new, and so just keeps running the tests.

Comments

    No one has commented yet.