kindle 0.1.2 → 0.1.3

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: f307250bf968a0ccca940eb6b373e0f5ed8bcac8
4
- data.tar.gz: 33b385a263ba8f3eeed136f5ada6496306d791b6
3
+ metadata.gz: 4fafc93d8eb10c2b27dec751b4a5f846b460cd02
4
+ data.tar.gz: 5c42068c457ea86d97b8047f11aa17ec9a53d058
5
5
  SHA512:
6
- metadata.gz: e00da24874c5fd44dc59133b3b824ed39a6a0b2073e25ffd731a04f1815bc680d45fc178524e896c16fff49951e5d443d8ecd8b2295d3a185fc3f75540ccac25
7
- data.tar.gz: 939384b4f1ab9e2ef973a27f0df1468dcca655500529f437257f8dfeb2927458572525ac9cbd2a249ff6ec9eed803757cb11967ee6cada5b65177e31a3bf4ae2
6
+ metadata.gz: 60060ece4b26901906d818bae5fb85e9a784db63b4c8695ac1fe91aabe704d4b38259569891bf9375f736a93bd592a923684955d6c91dad05e3c9c8f1a54fc93
7
+ data.tar.gz: 513db19d90ee37e3bd126d636a84c4269bece90b8090c0719f88f60298e08dea551a7b7e60bdec809cd98b1b1ecb363c1ea89c12db40dd31f76533eb76b869fc
data/bin/kindle CHANGED
@@ -9,7 +9,7 @@ passwd = ask("Enter your Amazon.com password (This is not stored): ") { |q| q.e
9
9
  begin
10
10
  k = Kindle::Highlights.new(:login => login, :password => passwd)
11
11
  puts "Getting your kindle highlights..."
12
- highlights = k.fetch_kindle_highlights # TODO: Pass in something to bide our time
12
+ highlights = k.fetch_highlights # TODO: Pass in something to bide our time
13
13
  # TODO: Multiple output formats. CSV, JSON, Pretty, HTML?
14
14
  highlights.each do |highlight|
15
15
  puts "#{highlight.asin};#{highlight.title};#{highlight.author};#{highlight.highlight}"
@@ -12,8 +12,7 @@ module Kindle
12
12
  end
13
13
 
14
14
  def fetch_highlights
15
- parser = HighlightsParser.new(login: @login, password: @password)
16
- parser.get_highlights
15
+ HighlightsParser.new(login: @login, password: @password).get_highlights
17
16
  end
18
17
 
19
18
  end
@@ -32,7 +32,7 @@ module Kindle
32
32
 
33
33
  def get_login_page
34
34
  page = agent.get(KINDLE_URL)
35
- page.link_with(:text => "Sign in").click
35
+ page.link_with(href: "https://kindle.amazon.com/login").click
36
36
  end
37
37
 
38
38
  def login
@@ -1,3 +1,3 @@
1
1
  module Kindle
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Petty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-10 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project: kindle
95
- rubygems_version: 2.2.1
95
+ rubygems_version: 2.2.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Manage your kindle highlights with ruby