buttercms 0.3.0 → 0.3.1
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 +4 -4
- data/app/views/buttercms/blog/butter_feed.rss.builder +6 -2
- data/lib/buttercms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 327551dc335aae41bf3736ea5a12fe7d408e2e72
|
|
4
|
+
data.tar.gz: d2551f50d1cc81b985df40294edcf896ab97c7c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e86cb5ec8f11b6a96dd53536424e9ff1484d8dd126cd5699f8cd420768ac6efc036be42b989e2d4edc0b194c1d1e5964d2bf96db3aaccb7a8899f304de4fbb7a
|
|
7
|
+
data.tar.gz: 9d81a69ca2ce7981d8c97e50473ba7ac4697106e5100dee52730d9e62135f7c8f8ddc793c34539195a4081ed9bb4a50974af7c7ea090d2598926121729c6bb49
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
xml.instruct!
|
|
2
|
-
xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
|
|
2
|
+
xml.rss :version => '2.0', 'xmlns:content' => 'http://purl.org/rss/1.0/modules/content/', 'xmlns:media' => 'http://search.yahoo.com/mrss/', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
|
|
3
3
|
|
|
4
4
|
xml.channel do
|
|
5
5
|
xml.tag! 'atom:link', :rel => 'self', :type => 'application/rss+xml', :href => blog_url + 'rss'
|
|
@@ -11,10 +11,14 @@ xml.rss :version => '2.0', 'xmlns:atom' => 'http://www.w3.org/2005/Atom' do
|
|
|
11
11
|
for post in @recent_posts
|
|
12
12
|
xml.item do
|
|
13
13
|
xml.title post['title']
|
|
14
|
-
xml.
|
|
14
|
+
xml.tag! "media:content", :medium => "image", :url => post['featured_image']
|
|
15
15
|
xml.link post['url']
|
|
16
16
|
xml.guid post['url']
|
|
17
17
|
xml.pubDate(Date.strptime(post['published'],"%m/%d/%Y").to_time.rfc2822)
|
|
18
|
+
xml.description post['summary']
|
|
19
|
+
xml.tag! "content:encoded" do
|
|
20
|
+
xml.cdata! post['body']
|
|
21
|
+
end
|
|
18
22
|
end
|
|
19
23
|
end
|
|
20
24
|
end
|
data/lib/buttercms/version.rb
CHANGED
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.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ButterCms
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|