magento_remote 0.1.5 → 0.1.6
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 +8 -8
- data/lib/magento_remote/magento_mech.rb +3 -1
- data/lib/magento_remote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTJhNDBjMTU0NjEyODY3MTdlOTlkYmVkYmZlZGFmN2EyNTFiMGI4Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzcwMjQzNjdhZmE5YTg4NTg3MDk5ZTU1MDFjMWYyMGQ4NDgxNTlmNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWY2NjRjMzFiZTFkODdlMzFiZmU3NjE2Y2Q0MGQzZTA1ZGFkOWRlNmM0MTM2
|
10
|
+
MGU3NDg4ZGIyODc5MGU1NDdhOGJkZWY1YjNiNmNiZWNhZTMyMGI4NGEwZWZj
|
11
|
+
MDI4NzJmOWY1ZTFkYTJlMzRjNGQ5OTIyNGM0NTlkYjFlZGY1ZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2Y2MzdlOGM3MTNiOGE5OTdkMDcwZTNiODMwMGRhNmJkZWQyMzM2MGU3OTgw
|
14
|
+
NjI3YWFiYTM1NzRjMzIzZjZiZmE3OTU0MDJmM2IxMjE3MWU3ZTZkNmI3M2Q2
|
15
|
+
MGZmNTIyNzk3ZWY5OGNhZGU3ZTAzNmUwM2RkMDU5ZmQ2MGI0NzA=
|
@@ -21,7 +21,8 @@ class MagentoMech
|
|
21
21
|
# Create Mech with base_uri
|
22
22
|
def initialize base_uri
|
23
23
|
@mech = Mechanize.new
|
24
|
-
|
24
|
+
#@mech.user_agent = 'Mac Safari'
|
25
|
+
#@mech.user_agent = ''
|
25
26
|
@base_uri = base_uri
|
26
27
|
@mech.agent.allowed_error_codes = [429]
|
27
28
|
end
|
@@ -104,6 +105,7 @@ class MagentoMech
|
|
104
105
|
login_page = @mech.get("#{@base_uri}/customer/account/login/")
|
105
106
|
|
106
107
|
form = login_page.form_with(:action => '#', :method => 'POST')
|
108
|
+
form.action = "#{@base_uri}/customer/account/loginPost/"
|
107
109
|
form.fields.find{|f| f.name == 'login[username]'}.value = username
|
108
110
|
form.fields.find{|f| f.name == 'login[password]'}.value = password
|
109
111
|
@mech.submit(form)
|