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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8f724a467facd86ac9e5f5738174a7380282557f
4
- data.tar.gz: 696ccbc5f0019d29addcc405e057dae771997d0c
2
+ SHA256:
3
+ metadata.gz: 5156be613ed3142c6881925ec57714373597022bd8d4c6661f5e1dc86519b4e6
4
+ data.tar.gz: 61b836b357775efaacf7a16b1266703190e51a46a64f845fdece2ababf4eabf8
5
5
  SHA512:
6
- metadata.gz: acc224f1be0406e908abb0f51a5854c8429af0db2a8c60c8569426d1056d470a7c77d2ef9139462eebc1d4e707d968989d1e94a7a3cfb2f3ec53d10d12222d72
7
- data.tar.gz: 21c455e7ee1e39b8dca13a87b69a923e73cc729e945181247a86e1a0cc0a628253b1b776d2243583d4ce623d170ee12dd3b88b1b9b59389622b77f6e70613544
6
+ metadata.gz: f757d7e151a4fc13bd17ad8f082523c47050549c38d12af8990550c205363e76586100616b7408cbaf0d890ec27d5a268d8be25d4d2afeccb3924f806c65db94
7
+ data.tar.gz: ecd703e8907b132e8483be923eac41130392d0d7370c4fb36c644aea5cd9bf444c67184c840bfc4f0782af47f9f4c42d4dfdcebcd379b9f9d4a31038cfce39a5
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.7
5
- - 2.3.4
6
- - 2.4.1
7
- before_install: gem install bundler -v 1.14.6
4
+ - 2.4.5
5
+ - 2.5.3
6
+ - 2.6.0
7
+ before_install: gem install bundler
@@ -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", "~> 1.14"
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
- link = links_for('#navFooter a').find{|link| link =~ %r{/gp/digital/fiona/manage/} }
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}'"
@@ -1,3 +1,3 @@
1
1
  module KindleManager
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
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.6.2
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: 2018-06-09 00:00:00.000000000 Z
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: '1.14'
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: '1.14'
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.6.13
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