Skip to content

Commit

Permalink
0.6.2 - 11 June 2009
Browse files Browse the repository at this point in the history
 * Fixed http://rick_denatale.lighthouseapp.com/projects/30941-ri_cal/tickets/12
      export-failure-for-unbounded-tzinfo-timezone
  • Loading branch information
rubyredrick committed Jun 11, 2009
1 parent 3b33116 commit 3930187
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 9 deletions.
3 changes: 3 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/ri_cal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/ri_cal/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
4 changes: 2 additions & 2 deletions lib/ri_cal/component/calendar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -232,6 +230,8 @@ def export(to=nil)
export_stream.string
end
end

alias_method :export_to, :export

end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/ri_cal/component/t_z_info_timezone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions ri_cal.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 17 additions & 0 deletions spec/ri_cal/component/event_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added website/images/rubytrends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ <h1>RiCal</h1>
<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>
Expand Down Expand Up @@ -101,7 +107,7 @@ <h2>License</h2>
<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>
Expand Down
6 changes: 6 additions & 0 deletions website/template.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down

0 comments on commit 3930187

Please sign in to comment.