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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaa0b6c50e175a1621348862cbcd48cf30d6dde4
4
- data.tar.gz: 1ca54f241246f5b07e90fe2f4ded4fa602cfce91
3
+ metadata.gz: 4d4e97e0ace51b0d74997514e0642f316caf3a1c
4
+ data.tar.gz: cb285f0c8dcc4ea8d1a9fe32c23efe8c1e015879
5
5
  SHA512:
6
- metadata.gz: be9f071c6a82e7fb4dec9d8fd28e888a632fa6955daab234205102d28eff13e7528c28dcb9f773537d43d58a243192803bce9ad8c415c29aabbef9b101aaa187
7
- data.tar.gz: 7e02ccbac24f4e39d0d9c86b531a8624b5fba92798fb3a1e9a9bf7ba0925202215af63848de40985890ab3752170ae8442ed790a3fe5bd8c16642b7dc885e71e
6
+ metadata.gz: e8d3e3e9ba191b810b5c577c13b12d0d20f0e707048cae178cef64ef5e0b90e4cd05ceb501ac0c35dfcbd081db4b1b0980d0cc966dda9f4b350b8a8609c33b34
7
+ data.tar.gz: 99355fd5d831bda8f60a2f89e6542cf502963ba54e057fe0f18051aa3302303156f31fb52457dda0b93df3de8c8def1e4729cbf4d1af287fce71403a83b1f45c
@@ -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` sub-command requires a third command to generate the appropriate output. Currently the available output formats are: JSON, CSV, and Markdown.
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
 
@@ -16,6 +16,6 @@ require_relative "kindle/exports/csv"
16
16
  ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: Kindle::Settings::KINDLE_DATABASE_FILENAME)
17
17
 
18
18
  module Kindle
19
- VERSION = "0.7.0.beta5"
19
+ VERSION = "0.7.0.beta6"
20
20
  include Models
21
21
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0.beta5
4
+ version: 0.7.0.beta6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Petty