cartoonist-pages 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/page_controller.rb +4 -2
- data/app/models/page.rb +6 -0
- data/lib/cartoonist-pages/engine.rb +1 -1
- metadata +5 -5
data/app/models/page.rb
CHANGED
@@ -7,6 +7,12 @@ class Page < ActiveRecord::Base
|
|
7
7
|
entity_description &:title
|
8
8
|
attr_accessible :title, :path, :posted_at, :content, :locked, :comments, :in_sitemap
|
9
9
|
|
10
|
+
def to_backup_entries
|
11
|
+
page = Backup::Entry.new id, path, "markdown", content
|
12
|
+
meta = Backup::Entry.new id, "#{path}.meta", "json", to_json(:except => :content)
|
13
|
+
[page, meta]
|
14
|
+
end
|
15
|
+
|
10
16
|
def url
|
11
17
|
"/#{path}"
|
12
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cartoonist-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,19 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cartoonist
|
16
|
-
requirement: &
|
16
|
+
requirement: &19272580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.0.
|
21
|
+
version: 0.0.10
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *19272580
|
25
25
|
description: This core plugin for Cartoonist adds arbitrary pages.
|
26
26
|
email: reasonnumber@gmail.com
|
27
27
|
executables: []
|