Skip to content

Commit f437523

Browse files
committed
v1.0.1
1 parent 3b5af3a commit f437523

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## [Unreleased]
44

5+
## [1.0.1] - 2025-06-29
6+
- Handle absent tags in transforming highlights
7+
58
## [1.0.0] - 2025-06-29
69
- Add Readwise API v3 support for Reader documents ([#13](https://github.com/joshbeckman/readwise-ruby/pull/13))
710
- Add `daily_review` client method and Review type ([#14](https://github.com/joshbeckman/readwise-ruby/pull/14))

lib/readwise/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def transform_highlight(res)
227227
location_type: res['location_type'],
228228
note: res['note'],
229229
readwise_url: res['readwise_url'],
230-
tags: res['tags'].map { |tag| transform_tag(tag) },
230+
tags: (res['tags'] || []).map { |tag| transform_tag(tag) },
231231
text: res['text'],
232232
updated_at: res['updated_at'],
233233
url: res['url'],

lib/readwise/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Readwise
2-
VERSION = "1.0.0"
2+
VERSION = "1.0.1"
33
end

0 commit comments

Comments
 (0)