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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5df40793942c890de33041d60b6e27efe076a695
4
- data.tar.gz: 31a5cbce41c6b166de7954cb876f041fc4ddf3ec
3
+ metadata.gz: 418f253db30050e8e9521fb94e14bd7e3818f3d9
4
+ data.tar.gz: 5d3f9d3a9edb024f57966db632561b2f6da03812
5
5
  SHA512:
6
- metadata.gz: 4d9ac40336b50f1f6f10c201f11eef301eb11ae373e8bd9fd88c5167edd00e4cf6edc95fda3b82f2436d440d1dff8f9ca8e459708967d66fd0756086927a6b30
7
- data.tar.gz: 315a3ae71152310075fe4d855355bd93c280af92c6d400f2bbb5ae2333941380f598b8092373f3aa3d63b0a371162e1a050407e772b437abe181a96b28b17c11
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('h1.kp-notebook-metadata').first.text
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('h1.kp-notebook-metadata').last.text.strip
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
@@ -1,3 +1,3 @@
1
1
  module KindleManager
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  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.5.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 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazon_auth