This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

change indent

  • Loading branch information...
1 parent d106d5a commit 4711bbfab78a29261b15b3f4e3a35c1bcc6bcda6 @sdague committed Mar 10, 2011
Showing with 105 additions and 29 deletions.
  1. +4 −0 History.txt
  2. +1 −1 Rakefile
  3. +17 −17 test/component/test_todo.rb
  4. +83 −11 website/index.html
View
@@ -1,3 +1,7 @@
+=== 1.1.6 2011-03-10
+* Fix todo handling (thanks to Frank Schwarz)
+* clean up a number of warnings during test runs
+
=== 1.1.5 2010-06-21
* Fix for windows line endings (thanks to Rowan Collins)
View
@@ -5,7 +5,7 @@ require 'fileutils'
require './lib/icalendar'
Hoe.plugin :newgem
-# Hoe.plugin :website
+Hoe.plugin :website
# Hoe.plugin :cucumberfeatures
# Generate all the Rake tasks
@@ -3,29 +3,29 @@
require 'date'
class TestTodo < Test::Unit::TestCase
- include Icalendar
+ include Icalendar
- def test_todo_fields
+ def test_todo_fields
- cal = Calendar.new
+ cal = Calendar.new
- t = cal.todo do
- summary "Plan next vacations"
- description "Let's have a break"
- percent 50
- seq 1
- add_category "TRAVEL"
- add_category "SPORTS"
- end
+ t = cal.todo do
+ summary "Plan next vacations"
+ description "Let's have a break"
+ percent 50
+ seq 1
+ add_category "TRAVEL"
+ add_category "SPORTS"
+ end
- calString = cal.to_ical
+ calString = cal.to_ical
- assert_match(/PERCENT-COMPLETE:50/, calString)
- assert_match(/DESCRIPTION:Let's have a break/, calString)
- assert_match(/CATEGORIES:TRAVEL,SPORTS/, calString)
- assert_match(/SEQUENCE:1/, calString)
+ assert_match(/PERCENT-COMPLETE:50/, calString)
+ assert_match(/DESCRIPTION:Let's have a break/, calString)
+ assert_match(/CATEGORIES:TRAVEL,SPORTS/, calString)
+ assert_match(/SEQUENCE:1/, calString)
- end
+ end
end
View
@@ -1,11 +1,83 @@
-<html>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>icalendar</title>
-
- </head>
- <body id="body">
- <p>This page has not yet been created for RubyGem <code>icalendar</code></p>
- <p>To the developer: To generate it, update website/index.txt and run the rake task <code>website</code> to generate this <code>index.html</code> file.</p>
- </body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>
+ icalendar
+ </title>
+ <script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
+<style>
+
+</style>
+ <script type="text/javascript">
+ window.onload = function() {
+ settings = {
+ tl: { radius: 10 },
+ tr: { radius: 10 },
+ bl: { radius: 10 },
+ br: { radius: 10 },
+ antiAlias: true,
+ autoPad: true,
+ validTags: ["div"]
+ }
+ var versionBox = new curvyCorners(settings, document.getElementById("version"));
+ versionBox.applyCornersToAll();
+ }
+ </script>
+</head>
+<body>
+<div id="main">
+
+ <h1>icalendar</h1>
+ <div class="sidebar">
+ <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/icalendar"; return false'>
+ <p>Get Version</p>
+ <a href="http://rubyforge.org/projects/icalendar" class="numbers">1.1.6</a>
+ </div>
+ </div>
+ <h2>What</h2>
+<h2>Installing</h2>
+<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">icalendar</span></pre></p>
+<h2>The basics</h2>
+<h2>Demonstration of usage</h2>
+<h2>Forum</h2>
+<p><a href="http://groups.google.com/group/icalendar">http://groups.google.com/group/icalendar</a></p>
+<p><span class="caps">TODO</span> &#8211; create Google Group &#8211; icalendar</p>
+<h2>How to submit patches</h2>
+<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
+<p><span class="caps">TODO</span> &#8211; pick <span class="caps">SVN</span> or Git instructions</p>
+<p>The trunk repository is <code>svn://rubyforge.org/var/svn/icalendar/trunk</code> for anonymous access.</p>
+<p><span class="caps">OOOORRRR</span></p>
+<p>You can fetch the source from either:</p>
+<ul>
+ <li>rubyforge: <a href="http://rubyforge.org/scm/?group_id=540">http://rubyforge.org/scm/?group_id=540</a></li>
+</ul>
+<pre>git clone git://rubyforge.org/icalendar.git</pre>
+<ul>
+ <li>github: <a href="http://github.com/sdague/icalendar/tree/master">http://github.com/sdague/icalendar/tree/master</a></li>
+</ul>
+<pre>git clone git://github.com/sdague/icalendar.git</pre>
+<ul>
+ <li>gitorious: <a href="git://gitorious.org/icalendar/mainline.git">git://gitorious.org/icalendar/mainline.git</a></li>
+</ul>
+<pre>git clone git://gitorious.org/icalendar/mainline.git</pre>
+<h3>Build and test instructions</h3>
+<pre>cd icalendar
+rake test
+rake install_gem</pre>
+<h2>License</h2>
+<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
+<h2>Contact</h2>
+<p>Comments are welcome. Send an email to <a href="mailto:FIXME"><span class="caps">FIXME</span> full name</a> email via the <a href="http://groups.google.com/group/icalendar">forum</a></p>
+ <p class="coda">
+ <a href="FIXME email">FIXME full name</a>, 10th March 2010<br>
+ Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
+ </p>
+</div>
+
+<!-- insert site tracking codes here, like Google Urchin -->
+
+</body>
+</html>

0 comments on commit 4711bbf

Please sign in to comment.