kindle_manager 0.5.0 → 0.6.0
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_manager/parsers/highlights_parser.rb +2 -2
- data/lib/kindle_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 418f253db30050e8e9521fb94e14bd7e3818f3d9
|
4
|
+
data.tar.gz: 5d3f9d3a9edb024f57966db632561b2f6da03812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc663d21a01982599048a94e40bf19293fcbd52b2866944a114afbcfc4b6224c40113ca1e91c9a2770fd1c51cfb37d9032ad3b880d30cdd07e93454803b0abb
|
7
|
+
data.tar.gz: 9ca16b0c679da61180b4625c3e71551497362c6b4c7c9880f5ba9fdb0b3ae63d7293bc99d0ae1171c8061bb490aebb3d70e0392a0056311bcbdc7bb9e1b75c25
|
@@ -21,7 +21,7 @@ module KindleManager
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def author
|
24
|
-
@_author ||= @node.css('
|
24
|
+
@_author ||= @node.css('p.kp-notebook-metadata.a-size-base').first.text
|
25
25
|
end
|
26
26
|
|
27
27
|
def last_annotated_on
|
@@ -61,7 +61,7 @@ module KindleManager
|
|
61
61
|
# This can be used to verify the count of hightlights and notes
|
62
62
|
def count_summary
|
63
63
|
@_count_summary ||= begin
|
64
|
-
text = @node.css('
|
64
|
+
text = @node.css('.kp-notebook-row-separator > .kp-notebook-metadata').last.text.strip
|
65
65
|
a, b = text.split('|').map{|text| m = text.match(/\d+/); m.nil? ? nil : m[0].to_i }
|
66
66
|
{'text' => text, 'highlights_count' => a, 'notes_count' => b}
|
67
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kindle_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuho Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazon_auth
|