amazon_auth 0.4.3 → 0.4.4

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: ea1813a746339a62a99590ceb61c86c4e26a50b1
4
- data.tar.gz: 71a1511fe0582cf36b1a3226a6efca496cdaf755
3
+ metadata.gz: 548b9b912a0dc9dd5a2959caf877f8cd1bc831d6
4
+ data.tar.gz: '0749fb806cca89ac8ef503caea8e7db098459fb2'
5
5
  SHA512:
6
- metadata.gz: ed72f566bc716cc31fccbae412889faa255fb1cdb93247d3328ecd5cd2d21b0a94d6d0ce0f1f9d44fabe87dfc90dd765b6d85324c83f5b4f03034478f1943a29
7
- data.tar.gz: 651537cd232764dbfe1fe6f2eab87197e4f55b9cfea98ad3b022be0452ddf8005f91e6eb8f622930406e96100d8c51888eedc556cd4ae9d41b313dc0d7e62185
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
- log "signInSubmit button not found in this page"
57
- return false
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
@@ -1,3 +1,3 @@
1
1
  module AmazonAuth
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
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.3
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-20 00:00:00.000000000 Z
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.8
200
+ rubygems_version: 2.6.12
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: Login amazon.