adva-blog 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  class PostsController < BaseController
2
+ respond_to :html, :atom
3
+
2
4
  nested_belongs_to :blog
3
5
  before_filter :set_id, :only => :show
4
6
 
@@ -0,0 +1,14 @@
1
+ atom_feed({ :id => "tag:#{site.host},2011:atom" }) do |feed|
2
+ feed.title(site.title)
3
+ feed.updated(collection.first.published_at)
4
+ collection[0, 15].each do |post|
5
+ feed.entry([blog, post], :id => "tag:#{site.host},2011:#{post.slug}") do |entry|
6
+ entry.title(post.title)
7
+ entry.content(post.body_html, :type => 'html')
8
+ entry.updated(post.published_at.xmlschema)
9
+ entry.author do |author|
10
+ author.name('') # post.author_name
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module AdvaBlog
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adva-blog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ingo Weiss
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-13 00:00:00 +01:00
19
+ date: 2011-02-28 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -73,6 +73,7 @@ files:
73
73
  - app/views/posts/index.html.rb
74
74
  - app/views/posts/show.html.rb
75
75
  - app/views/posts/_meta.html.rb
76
+ - app/views/posts/index.atom.builder
76
77
  - app/models/post.rb
77
78
  - app/models/site_slice.rb
78
79
  - app/models/blog.rb
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  requirements: []
116
117
 
117
118
  rubyforge_project: "[none]"
118
- rubygems_version: 1.5.0
119
+ rubygems_version: 1.4.2
119
120
  signing_key:
120
121
  specification_version: 3
121
122
  summary: Blog engine for adva-cms2