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 +4 -4
- data/lib/amazon_auth/extensions/session_extension.rb +3 -1
- data/lib/amazon_auth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb52bb61159de3aeef649b0203530e590d59355d
|
4
|
+
data.tar.gz: 2178634b98ead6d4c9196a9980a5b65311ab5148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/amazon_auth/version.rb
CHANGED
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.
|
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:
|
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.
|
200
|
+
rubygems_version: 2.6.13
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Login amazon.
|