buttercms 0.2.7 → 0.2.8
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 827873805b5cda153f28104fb2173cd291d693ad
|
|
4
|
+
data.tar.gz: b804daab221eab9edab7ce7c94cb65ae3d0a4751
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77a9c5938d4f723ef08db102ec5a689c8a580b61523bd0e9feeb300eb31fadc9adc214f4e408804f444d264398c08068542cedf31c58f8fa0dd607ea8d495f82
|
|
7
|
+
data.tar.gz: 0542fdb020fd5d88a34aa8eb2a6c549aae9def0ec14a80fa2a8c13a853a31ed376a2a050787dd01a7bccc1ca02a00efa0afd9d6e4489127fbfeb05dd20eaf7ad
|
|
@@ -2,7 +2,9 @@ xml.instruct!
|
|
|
2
2
|
xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
|
|
3
3
|
|
|
4
4
|
xml.channel do
|
|
5
|
+
xml.tag! 'atom:link', :rel => 'self', :type => 'application/rss+xml', :href => blog_url + 'rss'
|
|
5
6
|
xml.title 'Latest blog posts'
|
|
7
|
+
xml.description 'Latest blog posts from ' + blog_url
|
|
6
8
|
xml.link blog_url
|
|
7
9
|
xml.language 'en-us'
|
|
8
10
|
|
|
@@ -11,9 +13,8 @@ xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
|
|
|
11
13
|
xml.title post['title']
|
|
12
14
|
xml.description post['summary']
|
|
13
15
|
xml.link post['url']
|
|
14
|
-
xml.tag!("dc:creator", post['author']['first_name'])
|
|
15
16
|
xml.guid post['url']
|
|
16
|
-
xml.pubDate(post['published'])
|
|
17
|
+
xml.pubDate(Time.parse(post['published']).rfc2822)
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
end
|
data/lib/buttercms.rb
CHANGED
data/lib/buttercms/version.rb
CHANGED
|
@@ -8,4 +8,9 @@ Buttercms.configure do |config|
|
|
|
8
8
|
# For example uncomment the line below and define the layout in /view/layout/blog.html.erb
|
|
9
9
|
# You can of course also use your existing main application layout.
|
|
10
10
|
# config.layout = "blog"
|
|
11
|
+
|
|
12
|
+
# Specify a custom parent controller for Butter's BlogController to inherit from.
|
|
13
|
+
# By default Butter inherit's from ApplicationController but you can override this with your own
|
|
14
|
+
# controller and tell Butter to use that with this config option.
|
|
15
|
+
# config.parent_controller = "ApplicationController"
|
|
11
16
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: buttercms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ButterCms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|