blog-gem 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a4dc75aeb0cc7fe0fbd42eedd60fe4c5b494cca
4
- data.tar.gz: 97291716f7e5b442c8b93838f995e7231b6a6d90
3
+ metadata.gz: c3f5438a564fec960a5b6ff386adaa9b1d4fc391
4
+ data.tar.gz: 0c86a07a827a3072bfc765c5ef250ec7fc637c4b
5
5
  SHA512:
6
- metadata.gz: '08d79a4902ec142c032307dfd8cad8334dfd2d9798489ed4c2dfaed4cb2246a7582be95e1fa4e7cc03ba2b1331c22027c93b38b6f5668c5f63faa5d49300b188'
7
- data.tar.gz: 060ceca1a4798e8509f4bc90e9c6c9f0db3822e728e99f954ef1da2624b9f3278509efa455534ac4cc3f6b7ffdf989a4d59fa6f290af934a3014da3282261182
6
+ metadata.gz: 853d7509a9bfda014ca515aef74ca674244710841753aaf6cd572a5fade4e7a4d7b1bcfd64378a94e3851b8bb3bdcda10af44c44e5b0358ac6603782bfa2f6ce
7
+ data.tar.gz: 99e596e5e2b53431233538f8a701bb63a7bc0ef02a9eaff39e771d3977855d45eb6382d1f363f778a113691d95e1d11e03d607064ab46d673ccb5fda0d26d25d
@@ -20,7 +20,7 @@ class Blog::Gem::Post < Blog::Gem::ApplicationRecord
20
20
  scope :unpublished, -> { where("published_at > ?", Time.now).order('published_at desc') }
21
21
 
22
22
  def author_name
23
- if author.present?
23
+ if author.present? && show_author
24
24
  author.name
25
25
  end
26
26
  end
@@ -1,15 +1,16 @@
1
1
  atom_feed(language: 'de', url: Blog::Gem.url) do |feed|
2
2
  feed.title t("blog.index.page_title")
3
- feed.updated @posts.maximum(:published_at)
3
+ feed.updated @posts.maximum(:updated_at)
4
4
 
5
5
  @posts.each do |post|
6
6
  feed.entry post, {published: post.published_at, updated: post.updated_at} do |entry|
7
7
  entry.title post.title
8
8
  entry.content post.body, type: 'html'
9
9
  entry.author do |author|
10
- author.name post.author.name
10
+ author.name post.author_name
11
11
  end
12
12
  entry.url post.to_url
13
+ entry.link post.to_url
13
14
  entry.summary post.teaser, type: 'html'
14
15
  end
15
16
  end
@@ -1,5 +1,5 @@
1
1
  module Blog
2
2
  module Gem
3
- VERSION = '0.1.15'
3
+ VERSION = '0.1.16'
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.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Thelang
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-26 00:00:00.000000000 Z
12
+ date: 2017-12-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails