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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c6ebd627cfd566a53f9423b632b3ef6f42d285e2ffa84b176af438022a78bbe
4
- data.tar.gz: c7dbd064aee0d3557c17464be93b351cc741b973c16ede5dd6d8cf6afde30bfc
3
+ metadata.gz: d9278d2c56596a6d4022836122cd11258376b5d5761e5b0685ca63fa1df55648
4
+ data.tar.gz: daf90442052c2b216d46ffdf759406c373967832edf66ef1b4c289e78f968b4e
5
5
  SHA512:
6
- metadata.gz: fe094c01e6c51c1b41bd674bc6aa891767532c3472135312709d090bd1301dfcc3041fb95e90a7a641c20ea07f5a32403d6d006a13a8a6c16aa319c74ad1c454
7
- data.tar.gz: 8c86b99f15106170419012c8e8d15c90b1a2644488a62b16cfb76defad288ca81cb04a920f772d8fedf314f88ff8c4351889439a766e59305caad5134d0d15cf
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' # draft
197
+ 'yes', # draft
198
+ '2022-04-11T15:43:20+09:00' # updated
198
199
  )
199
200
  entry.id
200
201
  entry.uri
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hatenablog
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.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: 2021-11-20 00:00:00.000000000 Z
11
+ date: 2022-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler