siteleaf 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +0 -2
- data/bin/siteleaf +0 -1
- data/lib/siteleaf/page.rb +2 -2
- data/lib/siteleaf/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -116,7 +116,6 @@ pages = site.pages
|
|
116
116
|
page = Siteleaf::Page.create({
|
117
117
|
:site_id => site.id
|
118
118
|
:title => 'My Page',
|
119
|
-
:slug => 'my-page', # optional
|
120
119
|
:body => 'This is my first page.'
|
121
120
|
})
|
122
121
|
|
@@ -127,7 +126,6 @@ page = Siteleaf::Page.find('519719ddcc85910626000001')
|
|
127
126
|
post = Siteleaf::Post.create({
|
128
127
|
:page_id => page.id
|
129
128
|
:title => 'My Post',
|
130
|
-
:slug => 'my-post', # optional
|
131
129
|
:body => 'This is my first post.'
|
132
130
|
})
|
133
131
|
|
data/bin/siteleaf
CHANGED
data/lib/siteleaf/page.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module Siteleaf
|
2
2
|
class Page < Entity
|
3
3
|
|
4
|
-
attr_accessor :title, :body, :
|
5
|
-
attr_reader :id, :created_at, :updated_at
|
4
|
+
attr_accessor :title, :body, :custom_slug, :url, :parent_id, :site_id, :published_at, :user_id, :meta, :assets
|
5
|
+
attr_reader :id, :slug, :created_at, :updated_at
|
6
6
|
|
7
7
|
def create_endpoint
|
8
8
|
"sites/#{self.site_id}/pages"
|
data/lib/siteleaf/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: siteleaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|