kindle 0.7.0.beta5 → 0.7.0.beta6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +5 -5
- data/lib/kindle.rb +1 -1
- data/lib/kindle/parser/annotations.rb +1 -0
- 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: 4d4e97e0ace51b0d74997514e0642f316caf3a1c
|
4
|
+
data.tar.gz: cb285f0c8dcc4ea8d1a9fe32c23efe8c1e015879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d3e3e9ba191b810b5c577c13b12d0d20f0e707048cae178cef64ef5e0b90e4cd05ceb501ac0c35dfcbd081db4b1b0980d0cc966dda9f4b350b8a8609c33b34
|
7
|
+
data.tar.gz: 99355fd5d831bda8f60a2f89e6542cf502963ba54e057fe0f18051aa3302303156f31fb52457dda0b93df3de8c8def1e4729cbf4d1af287fce71403a83b1f45c
|
data/README.adoc
CHANGED
@@ -64,7 +64,7 @@ To initialize and save your password and username:
|
|
64
64
|
|
65
65
|
```sh
|
66
66
|
# Option 1
|
67
|
-
kindle --username=change@your.email --password=yoursecret init
|
67
|
+
kindle --username="change@your.email" --password="yoursecret" init
|
68
68
|
```
|
69
69
|
|
70
70
|
**OR**
|
@@ -73,7 +73,7 @@ To initialize with just a username:
|
|
73
73
|
|
74
74
|
```sh
|
75
75
|
# Option 2
|
76
|
-
kindle --username=change@your.email init
|
76
|
+
kindle --username="change@your.email" init
|
77
77
|
```
|
78
78
|
|
79
79
|
**OR**
|
@@ -90,12 +90,12 @@ kindle init
|
|
90
90
|
|
91
91
|
=== Step 2: Fetch your data
|
92
92
|
|
93
|
-
==== kindle update
|
93
|
+
==== kindle highlights update
|
94
94
|
|
95
95
|
The `update` sub-command uses either the passed in credentials or the saved credentials in the settings file and reaches out to Amazon's Kindle highlights website. It slurps all the highlights (and book info) and saves it in a SQLite3 database in `~/.kindle`.
|
96
96
|
|
97
97
|
```sh
|
98
|
-
kindle update
|
98
|
+
kindle highlights update
|
99
99
|
```
|
100
100
|
|
101
101
|
The `update` command will take a while to run, depending on how many highlights you have. Don't worry if it doesn't seem to do anything. That's okay. Trust in the UNIX-way.
|
@@ -106,7 +106,7 @@ The `update` command will take a while to run, depending on how many highlights
|
|
106
106
|
|
107
107
|
==== kindle highlights
|
108
108
|
|
109
|
-
The `highlights`
|
109
|
+
The `highlights` command requires a sub-command to generate the appropriate output. Currently the available output formats are: JSON, CSV, and Markdown.
|
110
110
|
|
111
111
|
Example with JSON:
|
112
112
|
|
data/lib/kindle.rb
CHANGED
@@ -60,6 +60,7 @@ module Kindle
|
|
60
60
|
def collect_authoritative_highlights
|
61
61
|
# NOTE: This fetch may fail if the highlight count is realy large.
|
62
62
|
books.each do |book|
|
63
|
+
next if kb.highlight_count == 0
|
63
64
|
kb = Kindle::Book.find_or_create_by(asin: book.asin, title: book.title, author: book.author)
|
64
65
|
if kb.highlight_count != book.highlight_count
|
65
66
|
kb.highlight_count = book.highlight_count
|