Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

0.6.2 - 11 June 2009

 * Fixed http://rick_denatale.lighthouseapp.com/projects/30941-ri_cal/tickets/12
      export-failure-for-unbounded-tzinfo-timezone
  • Loading branch information...
commit 393018784a2b3fe9bd8421b3ac269d39f3f29b12 1 parent 3b33116
@rubyredrick authored
View
3  History.txt
@@ -1,3 +1,6 @@
+=== 0.6.2 - 11 June 2009
+ * Fixed http://rick_denatale.lighthouseapp.com/projects/30941-ri_cal/tickets/12
+ export-failure-for-unbounded-tzinfo-timezone
=== 0.6.1 - 6 June 2009
* Fixed problem with file which loads activesupport for the rake spec:with_activesupport task, it now
requires >=2.2 instead of <=2.2 - Thanks to Paul Scott-Murphy for finding this.
View
2  lib/ri_cal.rb
@@ -14,7 +14,7 @@ module RiCal
autoload :OccurrenceEnumerator, "#{my_dir}/ri_cal/occurrence_enumerator.rb"
# :stopdoc:
- VERSION = '0.6.1'
+ VERSION = '0.6.2'
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
View
2  lib/ri_cal/component.rb
@@ -223,7 +223,7 @@ def export_to(export_stream)
export_stream.puts("BEGIN:#{entity_name}")
export_properties_to(export_stream)
export_x_properties_to(export_stream)
- subcomponents.values do |sub|
+ subcomponents.values.each do |sub|
export_subcomponent_to(export_subcomponent_to, sub)
end
export_stream.puts("END:#{entity_name}")
View
4 lib/ri_cal/component/calendar.rb
@@ -216,8 +216,6 @@ def puts(*strings) #:nodoc:
def export(to=nil)
export_stream = FoldingStream.new(to)
export_stream.puts("BEGIN:VCALENDAR")
- #TODO: right now I'm assuming that all timezones are internal what happens when we export
- # an imported calendar.
export_properties_to(export_stream)
export_x_properties_to(export_stream)
export_required_timezones(export_stream)
@@ -232,6 +230,8 @@ def export(to=nil)
export_stream.string
end
end
+
+ alias_method :export_to, :export
end
end
View
2  lib/ri_cal/component/t_z_info_timezone.rb
@@ -115,7 +115,7 @@ def export_utc_to(export_stream, utc_start, utc_end) #:nodoc:
period = tzinfo_timezone.period_for_utc(period.utc_start - 1)
while period && period.utc_start < utc_end
periods.add_period(period)
- period = tzinfo_timezone.period_for_utc(period.utc_end + 1)
+ period = period.utc_end && tzinfo_timezone.period_for_utc(period.utc_end + 1)
end
periods.export_to(export_stream)
export_stream.puts "END:VTIMEZONE\n"
View
4 ri_cal.gemspec
@@ -2,11 +2,11 @@
Gem::Specification.new do |s|
s.name = %q{ri_cal}
- s.version = "0.6.1"
+ s.version = "0.6.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["author=Rick DeNatale"]
- s.date = %q{2009-06-07}
+ s.date = %q{2009-06-11}
s.default_executable = %q{ri_cal}
s.description = %q{A new Ruby implementation of RFC2445 iCalendar.
View
17 spec/ri_cal/component/event_spec.rb
@@ -3,6 +3,23 @@
require File.join(File.dirname(__FILE__), %w[.. .. spec_helper])
describe RiCal::Component::Event do
+
+ context "bug report from Noboyuki Tomizawa" do
+ before(:each) do
+
+ @it = RiCal.Calendar do |cal|
+ cal.event do |event|
+ event.description = "test"
+ event.dtstart = "TZID=Asia/Tokyo:20090530T123000"
+ event.dtend = "TZID=Asia/Tokyo:20090530T123001"
+ end
+ end
+ end
+
+ it "should not fail" do
+ lambda {@it.export}.should_not raise_error
+ end
+ end
context "rdate property methods" do
before(:each) do
View
BIN  website/images/rubytrends.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 website/index.html
@@ -34,7 +34,13 @@
<div class="sidebar">
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ri-cal"; return false'>
<p>Get Version</p>
- <a href="http://rubyforge.org/projects/ri-cal" class="numbers">0.6.1</a>
+ <a href="http://rubyforge.org/projects/ri-cal" class="numbers">0.6.2</a>
+ <p>
+ <a href='http://www.pledgie.com/campaigns/4360'><img alt='Click here to lend your support to: ri_cal and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/4360.png?skin_name=chrome' border='0' /></a>
+ </p>
+ <p>
+ <a href='http://rubytrends.com/trend_votes/137'><img alt='Spread the word at RubyTrends if you like RiCal' src='images/rubytrends.png' border='0' /></a>
+ </p>
</div>
</div>
<h2>What</h2>
@@ -101,7 +107,7 @@
<h2>Contact</h2>
<p>Comments are welcome. Send an email to <a href="mailto:rick.denatale@gmail.com">Rick DeNatale</a></p>
<p class="coda">
- <a href="rick.denatale@gmail.com">Rick DeNatale</a>, 26th May 2009<br>
+ <a href="rick.denatale@gmail.com">Rick DeNatale</a>, 7th June 2009<br>
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
</p>
</div>
View
6 website/template.html.erb
@@ -35,6 +35,12 @@
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
<p>Get Version</p>
<a href="<%= download %>" class="numbers"><%= version %></a>
+ <p>
+ <a href='http://www.pledgie.com/campaigns/4360'><img alt='Click here to lend your support to: ri_cal and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/4360.png?skin_name=chrome' border='0' /></a>
+ </p>
+ <p>
+ <a href='http://rubytrends.com/trend_votes/137'><img alt='Spread the word at RubyTrends if you like RiCal' src='images/rubytrends.png' border='0' /></a>
+ </p>
</div>
</div>
<%= body %>
Please sign in to comment.
Something went wrong with that request. Please try again.