amazon_auth 0.4.0 → 0.4.1

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
2
  SHA1:
3
- metadata.gz: 54054238c0843dbd6acc152aa7cd42186645b564
4
- data.tar.gz: 80d121226920bde30c3493d90e33bf9819bf2adb
3
+ metadata.gz: fb52bb61159de3aeef649b0203530e590d59355d
4
+ data.tar.gz: 2178634b98ead6d4c9196a9980a5b65311ab5148
5
5
  SHA512:
6
- metadata.gz: 2761572472a93eb91acb879cb19f7614ba0b393671c7de020552386319ef606e1dc8abac78c40c5ba33d8fe120e96bf4327a2f670c8b577af06645f9744e8f7b
7
- data.tar.gz: 68d334892df7fe5a338df6772fec708fff3f634581e561412322c39a529b9be4e842e4370cf28e2b67e5556c14b781b532a1c63308cc2f57f35935550ab3e58a
6
+ metadata.gz: 150b640f60be7bf3a1b8b0229514517adbd5d14a713cc7ab14eea6f680c4ecbb1186ed1604433f3294069951b40cdc4574c7616396c59ef81083ba0d0064fdf7
7
+ data.tar.gz: 27d9bf5c9b4e7a7251451076474c99a8a08f38cdcf4e2a6c44e4841f4ee7e9884761d6d8c497987d3f5af377facd7bafb8953fe5471d85b7252c90386decc2f6
@@ -55,7 +55,7 @@ module AmazonAuth
55
55
  log "signInSubmit button not found in this page"
56
56
  return false
57
57
  end
58
- session.fill_in 'ap_email', with: login if session.first('#ap_email').value.blank?
58
+ session.fill_in 'ap_email', with: login if session.first('#ap_email') && session.first('#ap_email').value.blank?
59
59
  session.fill_in 'ap_password', with: password
60
60
  session.first('#signInSubmit').click
61
61
  log "Clicked signInSubmit"
@@ -67,6 +67,8 @@ module AmazonAuth
67
67
  debug "End submit_signin_form"
68
68
  session.save_cookies if keep_cookie?
69
69
  true
70
+ rescue => e
71
+ raise("#{e.message} #{e.backtrace.first}\n\n#{session.body}")
70
72
  end
71
73
 
72
74
  def retry_signin_form_with_image_recognition
@@ -1,3 +1,3 @@
1
1
  module AmazonAuth
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amazon_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-10 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.6.11
200
+ rubygems_version: 2.6.13
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Login amazon.