kindle_manager 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -4
- data/kindle_manager.gemspec +1 -1
- data/lib/kindle_manager/adapters/books_adapter.rb +3 -3
- data/lib/kindle_manager/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5156be613ed3142c6881925ec57714373597022bd8d4c6661f5e1dc86519b4e6
|
4
|
+
data.tar.gz: 61b836b357775efaacf7a16b1266703190e51a46a64f845fdece2ababf4eabf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f757d7e151a4fc13bd17ad8f082523c47050549c38d12af8990550c205363e76586100616b7408cbaf0d890ec27d5a268d8be25d4d2afeccb3924f806c65db94
|
7
|
+
data.tar.gz: ecd703e8907b132e8483be923eac41130392d0d7370c4fb36c644aea5cd9bf444c67184c840bfc4f0782af47f9f4c42d4dfdcebcd379b9f9d4a31038cfce39a5
|
data/.travis.yml
CHANGED
data/kindle_manager.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
24
|
spec.add_runtime_dependency "amazon_auth", "~> 0.4.0"
|
25
|
-
spec.add_development_dependency "bundler"
|
25
|
+
spec.add_development_dependency "bundler"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
28
|
spec.add_development_dependency "byebug"
|
@@ -1,5 +1,7 @@
|
|
1
1
|
module KindleManager
|
2
2
|
class BooksAdapter < BaseAdapter
|
3
|
+
URL_FOR_KINDLE_CONTENTS = 'https://www.amazon.co.jp/gp/digital/fiona/manage?ie=UTF8&ref_=nav_youraccount_myk'
|
4
|
+
|
3
5
|
def fetch
|
4
6
|
go_to_kindle_management_page
|
5
7
|
begin
|
@@ -14,10 +16,8 @@ module KindleManager
|
|
14
16
|
|
15
17
|
def go_to_kindle_management_page
|
16
18
|
log "Visiting kindle management page"
|
17
|
-
wait_for_selector('#navFooter a', wait_time: 5)
|
18
19
|
3.times do
|
19
|
-
|
20
|
-
session.visit link
|
20
|
+
session.visit URL_FOR_KINDLE_CONTENTS
|
21
21
|
wait_for_selector('.navHeader_myx')
|
22
22
|
if session.first('.navHeader_myx')
|
23
23
|
log "Page found '#{session.first('.navHeader_myx').text}'"
|
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.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuho Yamaguchi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: amazon_auth
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.7.8
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Scrape information of kindle books from amazon site
|