hatenablog 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -1
- data/lib/hatenablog/client.rb +3 -2
- data/lib/hatenablog/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: d9278d2c56596a6d4022836122cd11258376b5d5761e5b0685ca63fa1df55648
|
4
|
+
data.tar.gz: daf90442052c2b216d46ffdf759406c373967832edf66ef1b4c289e78f968b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40a08dbb7cfe60613caff523b02ed759e4ce0ce556919561bd6b720c208dbde5fe6ac9a3cbbddadf79586f4a576435b44383bdcd24707a3013768fba476c8027
|
7
|
+
data.tar.gz: d694f725a5a5d35ed3c5272f3aa82a32d0ef0473adffd88a9baaae7bfa2f0c21349f9523d9ee71291c14bae6a2702e2b44b10349a55eb7bb52d799c51fefe84a
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## 0.9.0 - 2022-04-11
|
10
|
+
|
11
|
+
### Added
|
12
|
+
|
13
|
+
- [feat: Add `updated` parameter to post_entry](https://github.com/kymmt90/hatenablog/pull/29)
|
14
|
+
|
9
15
|
## 0.8.0 - 2021-11-20
|
10
16
|
|
11
17
|
### Added
|
data/README.md
CHANGED
@@ -194,7 +194,8 @@ entry = client.post_entry(
|
|
194
194
|
'Example Title', # title
|
195
195
|
'This is the **example** entry.', # content
|
196
196
|
['Ruby', 'Rails'], # categories
|
197
|
-
'yes'
|
197
|
+
'yes', # draft
|
198
|
+
'2022-04-11T15:43:20+09:00' # updated
|
198
199
|
)
|
199
200
|
entry.id
|
200
201
|
entry.uri
|
data/lib/hatenablog/client.rb
CHANGED
@@ -93,9 +93,10 @@ module Hatenablog
|
|
93
93
|
# @param [String] content entry content
|
94
94
|
# @param [Array] categories entry categories
|
95
95
|
# @param [String] draft this entry is draft if 'yes', otherwise it is not draft
|
96
|
+
# @param [String] updated entry updated datetime (ISO 8601)
|
96
97
|
# @return [Hatenablog::BlogEntry] posted entry
|
97
|
-
def post_entry(title = '', content = '', categories = [], draft = 'no')
|
98
|
-
entry_xml = entry_xml(title, content, categories, draft)
|
98
|
+
def post_entry(title = '', content = '', categories = [], draft = 'no', updated = '')
|
99
|
+
entry_xml = entry_xml(title, content, categories, draft, updated)
|
99
100
|
response = post(entry_xml)
|
100
101
|
Entry.load_xml(response.body)
|
101
102
|
end
|
data/lib/hatenablog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hatenablog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kohei Yamamoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|