[macruby-changes] [2479] MacRubyWebsite/trunk

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 4 20:20:59 PDT 2009


Revision: 2479
          http://trac.macosforge.org/projects/ruby/changeset/2479
Author:   mattaimonetti at gmail.com
Date:     2009-09-04 20:20:58 -0700 (Fri, 04 Sep 2009)
Log Message:
-----------
Use new blog rake tasks for webby 0.9.4 compatibility

Modified Paths:
--------------
    MacRubyWebsite/trunk/Sitefile
    MacRubyWebsite/trunk/tasks/blog.rake

Modified: MacRubyWebsite/trunk/Sitefile
===================================================================
--- MacRubyWebsite/trunk/Sitefile	2009-09-05 03:20:57 UTC (rev 2478)
+++ MacRubyWebsite/trunk/Sitefile	2009-09-05 03:20:58 UTC (rev 2479)
@@ -1,7 +1,6 @@
 SITE.user = 'sansonet'
 SITE.host = 'gamma.macosforge.org'
 SITE.remote_dir = '/www/hosts/www.macruby.org'
-SITE.blog_dir = 'blog'
 
 task :default => :build
 

Modified: MacRubyWebsite/trunk/tasks/blog.rake
===================================================================
--- MacRubyWebsite/trunk/tasks/blog.rake	2009-09-05 03:20:57 UTC (rev 2478)
+++ MacRubyWebsite/trunk/tasks/blog.rake	2009-09-05 03:20:58 UTC (rev 2479)
@@ -1,3 +1,7 @@
+Loquacious.configuration_for(:webby) {
+  desc "The default directory where new blog posts will be created."
+  blog_dir 'blog'
+}
 
 namespace :blog do
 
@@ -20,7 +24,7 @@
       page = File.join(dir, File.basename(page))
       page = Webby::Builder.create(page, :from => template,
                  :locals => {:title => title, :directory => dir})
-      exec(::Webby.editor, page) unless ::Webby.editor.nil?
+      Webby.exec_editor(page)
     end
   end  # each
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090904/070fac67/attachment.html>


More information about the macruby-changes mailing list