amazon_auth 0.4.3 → 0.4.4
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 +4 -4
- data/lib/amazon_auth/extensions/session_extension.rb +8 -2
- 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: 548b9b912a0dc9dd5a2959caf877f8cd1bc831d6
|
|
4
|
+
data.tar.gz: '0749fb806cca89ac8ef503caea8e7db098459fb2'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d482b37632f35d2a72abf84db8eeaaa07e283b565309863b7bb6157d0be07cabd93a582cb2cfe74718d820169ac2c3b720c6a59613a9c253831e7de4760ae73c
|
|
7
|
+
data.tar.gz: 448f37f1a5163de7e39e0017f35b5c86e8202ffd344f59adb9a1ce0e62e0ddf7b28329adde3f0e16124662d86e3755a7202b8fda8868dde9748c7b06fdc7ccd3
|
|
@@ -53,8 +53,14 @@ module AmazonAuth
|
|
|
53
53
|
session.first('.cvf-account-switcher-profile-details').click if session.has_selector?('.cvf-account-switcher-profile-details')
|
|
54
54
|
debug "Begin submit_signin_form"
|
|
55
55
|
unless session.has_selector?('#signInSubmit')
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
if session.has_selector?('input#continue') && session.has_selector?('input#ap_email')
|
|
57
|
+
log "Found a form which asks only email"
|
|
58
|
+
session.fill_in 'ap_email', with: login
|
|
59
|
+
session.first('input#continue').click
|
|
60
|
+
else
|
|
61
|
+
log "signInSubmit button not found in this page"
|
|
62
|
+
return false
|
|
63
|
+
end
|
|
58
64
|
end
|
|
59
65
|
session.fill_in 'ap_email', with: login if session.first('#ap_email', minimum: 0) && session.first('#ap_email').value.blank?
|
|
60
66
|
session.fill_in 'ap_password', with: password
|
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.4
|
|
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-
|
|
11
|
+
date: 2018-06-27 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.12
|
|
201
201
|
signing_key:
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: Login amazon.
|