cartoonist-blog 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/blog_post.rb +2 -3
- data/lib/cartoonist-blog/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79cc411e1894306b5cc921c1199a8938782259b9
|
4
|
+
data.tar.gz: 976d67900a0e1dcb9d2f3d4939209776ed519c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e124b46685537340f1c2df34fa3090ff73d5c97615f337321621316484ab6a947ba0538af3e4e61e39c5ea696b1244ae9770958b1d841cda04a2fad0b01fe9f1
|
7
|
+
data.tar.gz: 63516d4ce17c8421c298216b2b2427bc24bf8dae65209977fe3920e6fdae527ee17f73c7a4f379f3b2663a101b25e1c7a803d1c58a3f7e663308ff574162935a
|
data/app/models/blog_post.rb
CHANGED
@@ -9,7 +9,6 @@ class BlogPost < ActiveRecord::Base
|
|
9
9
|
entity_edit_url &:edit_url
|
10
10
|
entity_description &:title
|
11
11
|
attr_accessor :for_preview
|
12
|
-
attr_accessible :title, :url_title, :author, :posted_at, :content, :locked
|
13
12
|
|
14
13
|
def to_backup_entries
|
15
14
|
post = Backup::Entry.new id, url_title, "markdown", content
|
@@ -189,7 +188,7 @@ class BlogPost < ActiveRecord::Base
|
|
189
188
|
def archives(preview = false)
|
190
189
|
context = BlogPost
|
191
190
|
context = posted unless preview
|
192
|
-
context.reverse_chronological.select([:url_title, :title, :posted_at]).
|
191
|
+
context.reverse_chronological.select([:url_title, :title, :posted_at]).to_a
|
193
192
|
end
|
194
193
|
|
195
194
|
def feed
|
@@ -197,7 +196,7 @@ class BlogPost < ActiveRecord::Base
|
|
197
196
|
end
|
198
197
|
|
199
198
|
def sitemap
|
200
|
-
posted.reverse_chronological.
|
199
|
+
posted.reverse_chronological.to_a
|
201
200
|
end
|
202
201
|
end
|
203
202
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Virata-Stone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.19
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.19
|
55
55
|
description: This core plugin for Cartoonist adds a simple blog.
|
56
56
|
email: reasonnumber@gmail.com
|
57
57
|
executables: []
|