blog-gem 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/blog/gem/blog/index.atom.builder +1 -2
- data/config/routes.rb +1 -0
- data/lib/blog/gem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47e8ad7d452f47e37d4339b933745278ae3c8a4e
|
4
|
+
data.tar.gz: 1bf2e34face41693d696a0781d509e8fea38b1e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb26e347770b37e2690a82726c260d7fe28601d90dbf9d6d3dad3cca8c076a5b7b5d2e170c00b8205668201cb045c8d4a33bb4b0e3da4f283168b568a532ad04
|
7
|
+
data.tar.gz: 5b33a7c56d4551dc63f23cabe9289dc05d0c525836e9719bba3abbf15d0d6879bab898f8743fe631dca0db5d0a899cfe80a30dc1dadeb2aeec8222d57f9c69e5
|
@@ -3,14 +3,13 @@ atom_feed(language: 'de', url: Blog::Gem.url) do |feed|
|
|
3
3
|
feed.updated @posts.maximum(:updated_at)
|
4
4
|
|
5
5
|
@posts.each do |post|
|
6
|
-
feed.entry post, {published: post.published_at, updated: post.updated_at} do |entry|
|
6
|
+
feed.entry post, {published: post.published_at, updated: post.updated_at, url: post.to_url} do |entry|
|
7
7
|
entry.title post.title
|
8
8
|
entry.content post.body, type: 'html'
|
9
9
|
entry.author do |author|
|
10
10
|
author.name post.author_name
|
11
11
|
end
|
12
12
|
entry.url post.to_url
|
13
|
-
entry.link post.to_url
|
14
13
|
entry.summary post.teaser, type: 'html'
|
15
14
|
end
|
16
15
|
end
|
data/config/routes.rb
CHANGED
@@ -4,6 +4,7 @@ Blog::Gem::Engine.routes.draw do
|
|
4
4
|
get "/feed.atom" => "blog#index", as: :blog_feed
|
5
5
|
get "/api" => "blog#index", as: :blog_api_index, format: "json"
|
6
6
|
get "/api/:id" => "blog#api", as: :blog_api_show, format: "json"
|
7
|
+
get "/api/:id" => "blog#api", as: :post_path
|
7
8
|
|
8
9
|
get "/tag/:tag" => "blog#index", as: :blog_tag
|
9
10
|
get "/category/:category" => "blog#index", as: :blog_category
|
data/lib/blog/gem/version.rb
CHANGED