amazon_auth 0.3.2 → 0.3.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
2
  SHA1:
3
- metadata.gz: a2bb8055aef5c1bcfd8b4e3da43e486120d7228d
4
- data.tar.gz: a153af19f3ede08f5d744e6a9f45464cf7d2ff23
3
+ metadata.gz: 5372326bf8eb4d5ad7208f1012fb3637f0d75bfb
4
+ data.tar.gz: 1318f2610357e659f04a3054c62b6ff1da7aa9e7
5
5
  SHA512:
6
- metadata.gz: 4096183c1635ee835d5d08df63c7778ea248b4e05eb1470368788e6ad9bad0180fdcd552ccca2ad1bbe6bc94a9e4df37926681f9bb15905efbdf98401e5594e0
7
- data.tar.gz: c64cce0a2af684bd9e8f270380e3ca739be3f525095a3bd847f8c8dbbeb4df8235ba5857e3ff1940367241f0e8265c43c9a4e735be878b0c31fe5540f0d3401d
6
+ metadata.gz: 2faa1765823348febcb15dca571b5849a8ac5fd9454f8e944cccbd4290354acb11d0f90b1dd782fffaefc553cd5f39a118cde44b4ceab6e972ade7b5ac0d06bf
7
+ data.tar.gz: dd44a0edf4af32714802cd63d2f6c222993661114025b4bd3972e108855dc87f1c26cfa55dcece5e46dc58252215c1be3d84d5c5b53786ddb3aaf3502c20d357
data/README.md CHANGED
@@ -112,8 +112,6 @@ client = AmazonAuth::Client.new(driver: :firefox)
112
112
 
113
113
  ## Development
114
114
 
115
- Some features come from https://github.com/kyamaguchi/kindle
116
-
117
115
  Use _.env.development_ instead of _.env_ in development.
118
116
 
119
117
  ```
@@ -41,10 +41,13 @@ module AmazonAuth
41
41
 
42
42
  def submit_signin_form
43
43
  debug "Begin submit_signin_form"
44
- return true unless session.has_selector?('#signInSubmit')
45
- session.fill_in 'ap_email', with: @login
44
+ unless session.has_selector?('#signInSubmit')
45
+ log "signInSubmit button not found"
46
+ return false
47
+ end
48
+ session.fill_in 'ap_email', with: @login if session.first('#ap_email').value.blank?
46
49
  session.fill_in 'ap_password', with: @password
47
- session.click_on('signInSubmit')
50
+ session.first('#signInSubmit').click
48
51
  log "Clicked signInSubmit"
49
52
 
50
53
  raise('Failed on signin') if alert_displayed?
@@ -1,3 +1,3 @@
1
1
  module AmazonAuth
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.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: 2017-06-17 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara