Skip to content

Commit

Permalink
Fixed a silly bug generating the feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyatom committed Oct 16, 2009
1 parent ca1299d commit 9b1ba50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -25,7 +25,7 @@ if Object.const_defined?(:Gem)

# Change these as appropriate
s.name = "vanilla"
s.version = "1.9.11"
s.version = "1.9.11.1"
s.summary = "A bliki-type web content thing."
s.author = "James Adam"
s.email = "james@lazyatom.com.com"
Expand Down
4 changes: 2 additions & 2 deletions lib/vanilla/dynasnips/kind.rb
Expand Up @@ -29,7 +29,7 @@ def render_entry_in_template(snip, as, kind)
e.title = snip.name
e.authors = [Atom::Person.new(:name => snip.author || domain)]
e.links << Atom::Link.new(:href => "http://#{domain}#{url_to(snip.name)}")
e.id = "tag:#{domain},#{(snip.created_at || Date.today.to_s).split[0]}:/#{snip.name}"
e.id = "tag:#{domain},#{(snip.created_at.to_s || Date.today.to_s).split[0]}:/#{snip.name}"
end
end
end
Expand All @@ -47,7 +47,7 @@ def render_entry_collection(snips, entries, as, kind)
when :xml
Atom::Feed.new do |f|
f.title = feed_title
f.updated = DateTime.parse(snips[0].updated_at)
f.updated = snips[0].updated_at
f.id = "tag:#{domain},2008-06-01:kind/#{kind}"
f.entries = entries
end.to_xml
Expand Down
6 changes: 3 additions & 3 deletions vanilla.gemspec
Expand Up @@ -2,11 +2,11 @@

Gem::Specification.new do |s|
s.name = %q{vanilla}
s.version = "1.9.11"
s.version = "1.9.11.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["James Adam"]
s.date = %q{2009-10-13}
s.date = %q{2009-10-16}
s.default_executable = %q{vanilla}
s.email = %q{james@lazyatom.com.com}
s.executables = ["vanilla"]
Expand All @@ -16,7 +16,7 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--main", "README"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{vanilla}
s.rubygems_version = %q{1.3.3}
s.rubygems_version = %q{1.3.5}
s.summary = %q{A bliki-type web content thing.}

if s.respond_to? :specification_version then
Expand Down

0 comments on commit 9b1ba50

Please sign in to comment.