tinycms 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tinycms/author.rb +3 -2
- data/lib/tinycms/authors/mapper.rb +1 -0
- data/lib/tinycms/post.rb +3 -2
- data/lib/tinycms/posts/mapper.rb +1 -0
- data/lib/tinycms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62bde8dfe454484fa4f1a9717ffb4db16bd61ada3e0075096ea3f7f77a9ece46
|
4
|
+
data.tar.gz: 70f051ad82e4ca8d23ab87da48ff46708bda2db1188ba26ab3441272d5bfcc2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdf9bee3a9a66395724e98746fe5e61e87d58dbef9362375f647687d405aaaabbb64a6ea0a9d3597c7cf6a5d60bc5d8c440fa1a4afdcaa36b27e4e1682025927
|
7
|
+
data.tar.gz: 6fcf900a130721669fcc50e21503e2fb06ca82998c1968d2958c24a13f08e6363839581fed8be5c4aaa41da31020e5b68f95a5211b2a0fa8431bb3d9108ed786
|
data/lib/tinycms/author.rb
CHANGED
@@ -2,15 +2,16 @@
|
|
2
2
|
|
3
3
|
module Tinycms
|
4
4
|
class Author
|
5
|
-
def initialize(id:, email:, first_name:, last_name:, created_at:, updated_at:)
|
5
|
+
def initialize(id:, email:, first_name:, last_name:, full_name:, created_at:, updated_at:)
|
6
6
|
@id = id
|
7
7
|
@email = email
|
8
8
|
@first_name = first_name
|
9
9
|
@last_name = last_name
|
10
|
+
@full_name = full_name
|
10
11
|
@created_at = created_at
|
11
12
|
@updated_at = updated_at
|
12
13
|
end
|
13
14
|
|
14
|
-
attr_reader :id, :email, :first_name, :last_name, :created_at, :updated_at
|
15
|
+
attr_reader :id, :email, :first_name, :last_name, :full_name, :created_at, :updated_at
|
15
16
|
end
|
16
17
|
end
|
@@ -9,6 +9,7 @@ module Tinycms
|
|
9
9
|
email: response_body["email"],
|
10
10
|
first_name: response_body["first_name"],
|
11
11
|
last_name: response_body["last_name"],
|
12
|
+
full_name: response_body["full_name"],
|
12
13
|
created_at: Time.zone.parse(response_body["created_at"]),
|
13
14
|
updated_at: Time.zone.parse(response_body["updated_at"])
|
14
15
|
)
|
data/lib/tinycms/post.rb
CHANGED
@@ -2,15 +2,16 @@
|
|
2
2
|
|
3
3
|
module Tinycms
|
4
4
|
class Post
|
5
|
-
def initialize(id:, title:, author:, content:, created_at:, updated_at:)
|
5
|
+
def initialize(id:, title:, author:, content:, content_plain_text:, created_at:, updated_at:)
|
6
6
|
@id = id
|
7
7
|
@title = title
|
8
8
|
@author = author
|
9
9
|
@content = content
|
10
|
+
@content_plain_text = content_plain_text
|
10
11
|
@created_at = created_at
|
11
12
|
@updated_at = updated_at
|
12
13
|
end
|
13
14
|
|
14
|
-
attr_reader :id, :title, :author, :content, :created_at, :updated_at
|
15
|
+
attr_reader :id, :title, :author, :content, :content_plain_text, :created_at, :updated_at
|
15
16
|
end
|
16
17
|
end
|
data/lib/tinycms/posts/mapper.rb
CHANGED
@@ -9,6 +9,7 @@ module Tinycms
|
|
9
9
|
title: response_body["title"],
|
10
10
|
author: ::Tinycms::Authors::Mapper.map(response_body["author"]),
|
11
11
|
content: response_body["content"],
|
12
|
+
content_plain_text: response_body["content_plain_text"],
|
12
13
|
created_at: Time.zone.parse(response_body["created_at"]),
|
13
14
|
updated_at: Time.zone.parse(response_body["updated_at"])
|
14
15
|
)
|
data/lib/tinycms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tinycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Jeon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|