tinycms 0.1.6 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14e557f5dac9c44f3a2a566d323cf0434d5d7d023b00d411bcda4aa7cd98414b
4
- data.tar.gz: 21bdae5b5e652286048f4b158cb2bf5a333e56ddef2252264244dcee8ec85dfd
3
+ metadata.gz: e94fd38069a3895779a777d9aa3219aeffd58630afb025006c6432ea9a6468b0
4
+ data.tar.gz: c52c045992a4a50f5a60e2584e23114b253400f44f23511b5541a9de4ce37da8
5
5
  SHA512:
6
- metadata.gz: 7b5ad057b5882af99a1e03ca01c743a85e00a6b6787c6a51e59b3db56d472ec48c109779ef3dc7001811d92433cbfa9780096738d9a771690275f23ad7dd3c23
7
- data.tar.gz: 9966cf8828a1ff8ec8ffd0419753804bc9fc0815f58cd02a7edf2a8f95133c310e9f277599f1af6754cf36c7cfd505082d44d963df8759d84101d87869771ac5
6
+ metadata.gz: '0158323b009d92018be5152a0e826dfccacb42bb4249bdda372b526d196f86008d298935371fc3c66bc1de7a89cbf9948a78757537573e4e0b2e4a83c22906b1'
7
+ data.tar.gz: 5058273be55bfe22ed39c4bf0d1ddcea1b2675ed3de480bdbc1d002e51884e30306b2716fe342c72530ca10d18c754a3bbcb898232a68dabd1905a807e524104
@@ -2,15 +2,17 @@
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:, avatar_url:, 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
11
+ @avatar_url = avatar_url
10
12
  @created_at = created_at
11
13
  @updated_at = updated_at
12
14
  end
13
15
 
14
- attr_reader :id, :email, :first_name, :last_name, :created_at, :updated_at
16
+ attr_reader :id, :email, :first_name, :last_name, :full_name, :created_at, :updated_at
15
17
  end
16
18
  end
@@ -10,6 +10,7 @@ module Tinycms
10
10
  first_name: response_body["first_name"],
11
11
  last_name: response_body["last_name"],
12
12
  full_name: response_body["full_name"],
13
+ avatar_url: response_body["avatar_url"],
13
14
  created_at: Time.zone.parse(response_body["created_at"]),
14
15
  updated_at: Time.zone.parse(response_body["updated_at"])
15
16
  )
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tinycms
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jeon