forked from railsbridge/bridge_troll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
155c852
commit 00b158d
Showing
7 changed files
with
115 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -427,4 +427,4 @@ DEPENDENCIES | |
webmock | ||
|
||
BUNDLED WITH | ||
1.10.4 | ||
1.10.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
atom_feed do |feed| | ||
feed.title("RailsBridge") | ||
feed.link root_url | ||
feed.updated @events.last.updated_at | ||
feed.id root_url | ||
|
||
@events.each do |event| | ||
feed.entry(event) do |entry| | ||
entry.title(event.title) | ||
entry.summary(event.details, type: 'html') | ||
entry.link event_path(event) | ||
entry.id event_path(event) | ||
entry.updated event.updated_at | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
xml.instruct! :xml, :version => "1.0" | ||
xml.rss :version => "2.0" do | ||
xml.channel do | ||
xml.title "RailsBridge" | ||
xml.link root_url | ||
xml.language "en" | ||
|
||
for event in @events | ||
xml.item do | ||
xml.title event.title | ||
xml.pubDate event.created_at.to_s(:rfc822) | ||
xml.link event_path(event) | ||
xml.guid event_path(event) | ||
xml.description event.details | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters