blog-gem 0.1.16 → 0.1.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3f5438a564fec960a5b6ff386adaa9b1d4fc391
4
- data.tar.gz: 0c86a07a827a3072bfc765c5ef250ec7fc637c4b
3
+ metadata.gz: 47e8ad7d452f47e37d4339b933745278ae3c8a4e
4
+ data.tar.gz: 1bf2e34face41693d696a0781d509e8fea38b1e4
5
5
  SHA512:
6
- metadata.gz: 853d7509a9bfda014ca515aef74ca674244710841753aaf6cd572a5fade4e7a4d7b1bcfd64378a94e3851b8bb3bdcda10af44c44e5b0358ac6603782bfa2f6ce
7
- data.tar.gz: 99e596e5e2b53431233538f8a701bb63a7bc0ef02a9eaff39e771d3977855d45eb6382d1f363f778a113691d95e1d11e03d607064ab46d673ccb5fda0d26d25d
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Blog
2
2
  module Gem
3
- VERSION = '0.1.16'
3
+ VERSION = '0.1.17'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blog-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Thelang