[macruby-changes] [1594] MacRubyWebsite/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Sat May 23 19:11:01 PDT 2009
Revision: 1594
http://trac.macosforge.org/projects/ruby/changeset/1594
Author: mattaimonetti at gmail.com
Date: 2009-05-23 19:11:00 -0700 (Sat, 23 May 2009)
Log Message:
-----------
refactored the talks and screencasts helpers
Modified Paths:
--------------
MacRubyWebsite/trunk/content/documentation.txt
MacRubyWebsite/trunk/lib/team.rb
Added Paths:
-----------
MacRubyWebsite/trunk/lib/screencasts.rb
MacRubyWebsite/trunk/lib/talks.rb
Modified: MacRubyWebsite/trunk/content/documentation.txt
===================================================================
--- MacRubyWebsite/trunk/content/documentation.txt 2009-05-23 01:47:25 UTC (rev 1593)
+++ MacRubyWebsite/trunk/content/documentation.txt 2009-05-24 02:11:00 UTC (rev 1594)
@@ -17,26 +17,13 @@
h2. Screencasts
<ul class="screencast_list">
- <li>
- <span class="date">2009-05-19</span>
- <span class="name"><a href="http://peepcode.com/products/meet-macruby">Meet MacRuby</a></span>
- <span class="author">Geoffrey Grosenbach (Peepcode)</span>
- </li>
- <li>
- <span class="date">2009-05-16</span>
- <span class="name"><a href="http://nubyonrails.com/articles/macruby-presentation-from-rubyfest">MacRuby Presentation (Free)</a></span>
- <span class="author">Geoffrey Grosenbach (Peepcode)</span>
- </li>
- <li>
- <span class="date">2009-05-05</span>
- <span class="name"><a href="http://pragmaticstudio.com/screencasts/6-macruby">MacRuby - Bonus Track (Free)</a></span>
- <span class="author">Mike Clark (The Pragmatic Studio)</span>
- </li>
- <li>
- <span class="date">2009-05-11</span>
- <span class="name"><a href="http://pragmaticstudio.com/screencasts/7-embedding-macruby">Embedding MacRuby - Bonus track (Free)</a></span>
- <span class="author">Mike Clark (The Pragmatic Studio)</span>
- </li>
+ <% macruby_screencasts.each do |screencast| -%>
+ <li>
+ <span class="date"><%= screencast.date %></span>
+ <span class="name"><a href="<%= screencast.href %>"><%= screencast.name %></a></span>
+ <span class="author"><%= screencast.author%> <%= "(#{screencast.company})" if screencast.company %></span>
+ </li>
+ <% end -%>
</ul>
h2. Tutorials
@@ -55,27 +42,13 @@
h2. Talks
<ul class="screencast_list">
- <li>
- <span class="date">2009-04-22 (GoGaRuCo)</span>
- <span class="name"><a href="http://www.slideshare.net/mattetti/macruby-hotcocoa-presentation-by-rich-kilmer">MacRuby and HotCocoa (slides only)</a></span>
- <span class="author">Rich Kilmer</span>
- </li>
- <li>
- <span class="date">2009-01-13 (SDRuby)</span>
- <span class="name"><a href="http://sdruby.com/podcast/58">MacRuby: What's the big deal?</a> <a href="http://www.slideshare.net/mattetti/macruby-when-objectivec-and-ruby-meet">(slides)</a></span>
- <span class="author">Matt Aimonetti</span>
- </li>
- <li>
- <span class="date">2008-11-07 (RubyConf)</span>
- <span class="name"><a href="http://rubyconf2008.confreaks.com/os-x-application-development-with-hotcocoa.html">OS X Application Development with HotCocoa</a></span>
- <span class="author">Rich Kilmer</span>
- </li>
- <li>
- <span class="date">2008-11-06 (RubyConf)</span>
- <span class="name"><a href="http://rubyconf2008.confreaks.com/macruby-ruby-for-your-mac.html">MacRuby: Ruby for your Mac </a></span>
- <span class="author">Laurent Sansonetti</span>
- </li>
-
+ <% macruby_talks.each do |talk| -%>
+ <li>
+ <span class="date"><%= talk.date %> <%= "(#{talk.location})" if talk.location %></span>
+ <span class="name"><a href="<%= talk.href %>"><%= talk.name %></a> <%= "<a href='#{talk.slides_href}'>(slides)</a>" if talk.slides_href %></span>
+ <span class="author"><%= talk.author%></span>
+ </li>
+ <% end -%>
</ul>
Added: MacRubyWebsite/trunk/lib/screencasts.rb
===================================================================
--- MacRubyWebsite/trunk/lib/screencasts.rb (rev 0)
+++ MacRubyWebsite/trunk/lib/screencasts.rb 2009-05-24 02:11:00 UTC (rev 1594)
@@ -0,0 +1,16 @@
+module MacRubyScreencastsHelper
+
+ Screencast = Struct.new(:date, :name, :href, :author, :company)
+
+ def macruby_screencasts
+ [
+ Screencast.new("2009-05-19", "Meet MacRuby", "http://peepcode.com/products/meet-macruby", "Geoffrey Grosenbach", "Peepcode"),
+ Screencast.new("2009-05-19", "MacRuby Presentation (Free)", "http://nubyonrails.com/articles/macruby-presentation-from-rubyfest", "Geoffrey Grosenbach", "Peepcode"),
+ Screencast.new("2009-05-05", "MacRuby - Bonus Track (Free)", "http://pragmaticstudio.com/screencasts/6-macruby", "Mike Clark", "Pragmatic Studio"),
+ Screencast.new("2009-05-11", "Embedding MacRuby - Bonus track (Free)", "http://pragmaticstudio.com/screencasts/7-embedding-macruby", "Mike Clark", "Pragmatic Studio")
+ ]
+ end
+
+end
+
+Webby::Helpers.register(MacRubyScreencastsHelper)
\ No newline at end of file
Added: MacRubyWebsite/trunk/lib/talks.rb
===================================================================
--- MacRubyWebsite/trunk/lib/talks.rb (rev 0)
+++ MacRubyWebsite/trunk/lib/talks.rb 2009-05-24 02:11:00 UTC (rev 1594)
@@ -0,0 +1,16 @@
+module MacRubyTalksHelper
+
+ Talk = Struct.new(:date, :location, :name, :href, :author, :slides_href)
+
+ def macruby_screencasts
+ [
+ Talk.new("2009-04-22", "GoGaruCo", "MacRuby and HotCocoa (slides only)", "http://www.slideshare.net/mattetti/macruby-hotcocoa-presentation-by-rich-kilmer", "Rich Kilmer", nil),
+ Talk.new("2009-01-13", "SDRuby", "MacRuby: What's the big deal?", "http://sdruby.com/podcast/58", "Matt Aimonetti", "http://www.slideshare.net/mattetti/macruby-when-objectivec-and-ruby-meet"),
+ Talk.new("2009-11-07", "RubyConf", "OS X Application Development with HotCocoa", "http://rubyconf2008.confreaks.com/os-x-application-development-with-hotcocoa.html", "Rich Kilmer", nil),
+ Talk.new("2009-11-06", "RubyConf", "MacRuby: Ruby for your Mac", "http://rubyconf2008.confreaks.com/macruby-ruby-for-your-mac.html", "Laurent Sansonetti", nil)
+ ]
+ end
+
+end
+
+Webby::Helpers.register(MacRubyTalksHelper)
\ No newline at end of file
Modified: MacRubyWebsite/trunk/lib/team.rb
===================================================================
--- MacRubyWebsite/trunk/lib/team.rb 2009-05-23 01:47:25 UTC (rev 1593)
+++ MacRubyWebsite/trunk/lib/team.rb 2009-05-24 02:11:00 UTC (rev 1594)
@@ -18,7 +18,7 @@
Member.new("patrick", "Patrick Thomson", "Apple, Inc.", nil, "pthomson at apple.com", "All things OS X"),
Member.new("eloy", "Eloy Duran", nil, nil, "eloy.de.enige at gmail.com", "Testing"),
Member.new("vincent", "Vincent Isambart"),
- Member.new("matt", "Matt Aimonetti")
+ Member.new("matt", "Matt Aimonetti", "m|a agile consulting", nil, "http://merbist.com", "HotCocoa")
]
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090523/beed761e/attachment.html>
More information about the macruby-changes
mailing list