kindle 0.7.0.beta6 → 0.7.0.beta7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d4e97e0ace51b0d74997514e0642f316caf3a1c
4
- data.tar.gz: cb285f0c8dcc4ea8d1a9fe32c23efe8c1e015879
3
+ metadata.gz: 0cef0e34f2b1c8e9b50af3cce4e0c0acd6ae7706
4
+ data.tar.gz: 89a3242831883da625176f2f52dd2a5100a00bd5
5
5
  SHA512:
6
- metadata.gz: e8d3e3e9ba191b810b5c577c13b12d0d20f0e707048cae178cef64ef5e0b90e4cd05ceb501ac0c35dfcbd081db4b1b0980d0cc966dda9f4b350b8a8609c33b34
7
- data.tar.gz: 99355fd5d831bda8f60a2f89e6542cf502963ba54e057fe0f18051aa3302303156f31fb52457dda0b93df3de8c8def1e4729cbf4d1af287fce71403a83b1f45c
6
+ metadata.gz: ea0d050d3100ae460fcb2acc1db7b11bb0db9dc9129bbcca7d259e533bd0f299b3b43f7c8e55ebce547e121400c32689905bafa20c259229df082050c9863237
7
+ data.tar.gz: 8250c1c86b7f058a7bc5e5171916bb1a93fc45adebb306a39aa4ea6677fc0a9236c5ad16de32581d5c518deada9e8355420b35cc7d828cdf690f2b41abc2c386
@@ -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.beta6"
19
+ VERSION = "0.7.0.beta7"
20
20
  include Models
21
21
  end
@@ -25,8 +25,12 @@ module Kindle
25
25
  end
26
26
 
27
27
  def load_highlights
28
+ # Log in to kindle.amazon.TLD
28
29
  login
30
+ # Collect the list of books that have highlighted passages
29
31
  fetch_highlights
32
+ # Because the web interface doesn't show us ALL of the highlights,
33
+ # we iterate and collect the authoritative highlights for each book
30
34
  collect_authoritative_highlights
31
35
  end
32
36
 
@@ -60,7 +64,7 @@ module Kindle
60
64
  def collect_authoritative_highlights
61
65
  # NOTE: This fetch may fail if the highlight count is realy large.
62
66
  books.each do |book|
63
- next if kb.highlight_count == 0
67
+ next if book.highlight_count == 0
64
68
  kb = Kindle::Book.find_or_create_by(asin: book.asin, title: book.title, author: book.author)
65
69
  if kb.highlight_count != book.highlight_count
66
70
  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.beta6
4
+ version: 0.7.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Petty