kindle 0.7.0.beta4 → 0.7.0.beta5
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 +4 -4
- data/lib/kindle.rb +1 -1
- data/lib/kindle/parser/annotations.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eaa0b6c50e175a1621348862cbcd48cf30d6dde4
|
|
4
|
+
data.tar.gz: 1ca54f241246f5b07e90fe2f4ded4fa602cfce91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be9f071c6a82e7fb4dec9d8fd28e888a632fa6955daab234205102d28eff13e7528c28dcb9f773537d43d58a243192803bce9ad8c415c29aabbef9b101aaa187
|
|
7
|
+
data.tar.gz: 7e02ccbac24f4e39d0d9c86b531a8624b5fba92798fb3a1e9a9bf7ba0925202215af63848de40985890ab3752170ae8442ed790a3fe5bd8c16642b7dc885e71e
|
data/lib/kindle.rb
CHANGED
|
@@ -119,10 +119,11 @@ module Kindle
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
def parse_highlight(hl, state)
|
|
122
|
-
highlight_id
|
|
122
|
+
# TODO: highlight_id
|
|
123
|
+
# highlight_id = hl.xpath('//*[@id="annotation_id"]').first["value"]
|
|
123
124
|
highlight_text = (hl/".highlight").text
|
|
124
125
|
asin = (hl/".asin").text
|
|
125
|
-
highlight = Kindle::Remote::Highlight.new(
|
|
126
|
+
highlight = Kindle::Remote::Highlight.new(highlight: highlight_text, asin: asin)
|
|
126
127
|
highlight
|
|
127
128
|
end
|
|
128
129
|
end
|