[Radiant] Radiant on Heroku - RDiscount or BlueCloth?

2009-11-12 Thread Charles Roper
The Installing on Heroku wiki page suggests using RDiscount instead of 
BlueCloth, stating that RDiscount is considerably faster and less error 
prone.

http://wiki.github.com/radiant/radiant/installing-on-heroku

This is surely out of date since BlueCloth 2 was released?

http://deveiate.org/projects/BlueCloth

Would anyone object if I removed the information about RDiscount? Main 
reason being, it doesn't have a Windows binary and doesn't compile using 
the new mingw Ruby + DevKit whereas BlueCloth does have a mingw binary 
and so works with Windows just great.

Cheers,
Charles
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant on Heroku - RDiscount or BlueCloth?

2009-11-12 Thread Sean Cribbs
Charles,

Please leave that in the wiki, or at least correct the error about it 
being faster and less error prone.  Radiant's MarkdownExtension will 
currently look for rdiscount, and if that is missing, use bluecloth (the 
packaged version).  I'd appreciate a patch that searches for BlueCloth 2 
first.

Sean

Charles Roper wrote:
 The Installing on Heroku wiki page suggests using RDiscount instead of 
 BlueCloth, stating that RDiscount is considerably faster and less error 
 prone.

 http://wiki.github.com/radiant/radiant/installing-on-heroku

 This is surely out of date since BlueCloth 2 was released?

 http://deveiate.org/projects/BlueCloth

 Would anyone object if I removed the information about RDiscount? Main 
 reason being, it doesn't have a Windows binary and doesn't compile using 
 the new mingw Ruby + DevKit whereas BlueCloth does have a mingw binary 
 and so works with Windows just great.

 Cheers,
 Charles
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

   

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Quotes within quotes problem

2009-11-12 Thread Anton Aylward
I've got a problem with with RedCloth4 that I can't find help with on
the  pages at RedCloth.org

I want to cite a quotation, that is, generate HTML that reads


 and as the German Playwright Johann Wolfgang von Goethe said
a
href=http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html;cite#34The
solution of every problem is another problem#34/cite/a.br /

but have those quotes matched

I start with

 The solution of every problem is another problem

Merely adding the

:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Just makes it a link.
The 'cite' uses ??
So I try

 ??The solution of every problem is another problem??

and get what I expect, a citation with balanced quote marks.

But

 ??The solution of every problem is another
problem??:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Doesn't give me the cited quotation with a link.

Adding a brace, as mentioned on the Redcloth.org site, doesn't help either

 [??The solution of every problem is another
problem??]:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Is this a but in RedCloth4 or am I approaching this incorrectly?

Any RedCloth gurus here?  Any RedCloth list I could ask?

-- 
In preparing for battle I have always found that plans are useless, but
planning is indispensable.
Dwight D. Eisenhower

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Rack Lighttpd fix breaks extension migration

2009-11-12 Thread Tom Stoll
Sean,

Your suggestion works. I actually had to copy the lighttpd_fix.rb file into
the /lib/rack folder and add an autoload to rack.rb to get things working.
I'll put this info on the wiki, as it would seem necessary to run the
migrations for new extensions. I wonder if this fix might be included in
future versions of Rack, even if its only necessary for use with shared
hosts...

Thanks,
Tom
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Quotes within quotes problem

2009-11-12 Thread Erik Ostrom
I don't have a solution to your problem, but the CITE tag shouldn't be used
to mark a quotation. CITE is for the *source* of the quotation. HTML's Q tag
(unsupported by RedCloth, AFAIK) and BLOCKQUOTE are more appropriate for the
quotation itself.

On Thu, Nov 12, 2009 at 6:12 AM, Anton Aylward anton.aylw...@rogers.comwrote:

 I've got a problem with with RedCloth4 that I can't find help with on
 the  pages at RedCloth.org

 I want to cite a quotation, that is, generate HTML that reads


  and as the German Playwright Johann Wolfgang von Goethe said
 a
 href=
 http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html
 cite#34The
 solution of every problem is another problem#34/cite/a.br /

 but have those quotes matched

 I start with

  The solution of every problem is another problem

 Merely adding the

 :
 http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html
 .

 Just makes it a link.
 The 'cite' uses ??
 So I try

  ??The solution of every problem is another problem??

 and get what I expect, a citation with balanced quote marks.

 But

  ??The solution of every problem is another
 problem??:
 http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html
 .

 Doesn't give me the cited quotation with a link.

 Adding a brace, as mentioned on the Redcloth.org site, doesn't help either

  [??The solution of every problem is another
 problem??]:
 http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html
 .

 Is this a but in RedCloth4 or am I approaching this incorrectly?

 Any RedCloth gurus here?  Any RedCloth list I could ask?

 --
 In preparing for battle I have always found that plans are useless, but
 planning is indispensable.
Dwight D. Eisenhower

 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] The system cannot find the path specified.

2009-11-12 Thread Charles Roper

On 12/11/2009 07:47, Charles Roper wrote:

On 11/11/2009 09:17, Charles Roper wrote:

Hi,

First post here - just getting to grips with Radiant.

I'm trying to install the Paperclipped extension on a test site and have
run into a couple of issues. I'm on Windows, using the RubyInstaller
(which recently went RC1):

 ruby -v
ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]


I've done some further digging and found the problem. I've created an
issue on Github:

http://github.com/radiant/radiant/issues/#issue/69


I've created a patch (attached) that should fix this issue.

Cheers,
Charles

From 6f474b743c36f1a9a19cac023422a15033ed27b9 Mon Sep 17 00:00:00 2001
From: Charles Roper charles.ro...@gmail.com
Date: Thu, 12 Nov 2009 18:15:00 +
Subject: [PATCH] Cross-platform fixes for extension installer script.

---
 lib/radiant/extension/script.rb |   25 +
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/lib/radiant/extension/script.rb b/lib/radiant/extension/script.rb
index 4998c4c..eabd818 100644
--- a/lib/radiant/extension/script.rb
+++ b/lib/radiant/extension/script.rb
@@ -95,7 +95,7 @@ Install type:   #{install_type}
 
 def checkout
   self.path = File.join(Dir.tmpdir, name)
-  system cd #{Dir.tmpdir}; #{checkout_command}
+  FileUtils.cd(Dir.tmpdir) { system #{checkout_command} }
 end
   end
 
@@ -136,10 +136,14 @@ Install type:   #{install_type}
 def checkout
   if project_in_git?
 system git submodule add #{url} vendor/extensions/#{name}
-system cd vendor/extensions/#{name}; git submodule init  git 
submodule update
+FileUtils.cd(File.join('vendor', 'extensions', name)) do
+  system git submodule init  git submodule update
+end
   else
 super
-system cd #{path}; git submodule init  git submodule update
+FileUtils.cd(path) do
+  system git submodule init  git submodule update
+end
   end
 end
 
@@ -166,7 +170,10 @@ Install type:   #{install_type}
 end
 
 def unpack
-  output = `cd #{Dir.tmpdir}; gem unpack #{filename.split('-').first}`
+  output = nil
+  FileUtils.cd(Dir.tmpdir) do
+output = `gem unpack #{filename.split('-').first}`
+  end
   self.path = output.match(/'(.*)'/)[1]
 end
   end
@@ -177,7 +184,8 @@ Install type:   #{install_type}
 end
 
 def unpack
-  output = `cd #{Dir.tmpdir}; tar xvf #{filename}`
+  outputs = nil
+  FileUtils.cd(Dir.tmpdir) { output = `tar xvf #{filename}` }
   self.path = File.join(Dir.tmpdir, 
output.split(/\n/).first.split('/').first)
 end
   end
@@ -188,7 +196,7 @@ Install type:   #{install_type}
 end
 
 def unpack
-  system cd #{Dir.tmpdir}; gunzip #{self.filename}
+  FileUtils.cd(Dir.tmpdir) { system gunzip #{self.filename} }
   @unpacked = true
   super
 end
@@ -200,7 +208,7 @@ Install type:   #{install_type}
 end
 
 def unpack
-  system cd #{Dir.tmpdir}; bunzip2 #{self.filename}
+  FileUtils.cd(Dir.tmpdir) { system bunzip2 #{self.filename} }
   @unpacked = true
   super
 end
@@ -208,7 +216,8 @@ Install type:   #{install_type}
 
   class Zip  Download
 def unpack
-  output = `cd #{Dir.tmpdir}; unzip #{filename} -d #{name}`
+  output = nil
+  FileUtils.cd(Dir.tmpdir) { output = `unzip #{filename} -d #{name}` }
   self.path = File.join(Dir.tmpdir, name)
 end
   end
-- 
1.6.5.1.1367.gcd48

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] Quotes within quotes problem

2009-11-12 Thread Anton Aylward
Anton Aylward said the following on 11/12/2009 03:21 PM:

 I'm aware of the _correct_ use of cite and do use it that way.
 My example could have used just about any tag, but the CITE was
 different enough to stand out.

I should explain that.

In the generated page, I use ctrl-U to view the source, then search for
that block of HTML.

By using CITE, which doens't occur anywhere else on the page becuase I'm
not using CITE in its correct way, I can find it quite easily.

Sort of like putting debug statements in source code.

-- 
For every complex problem there is an answer that is clear, simple, and
wrong.
--Henry Louis Mencken
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant