magento_remote 0.1.3 → 0.1.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 +8 -8
- data/lib/magento_remote/magento_mech.rb +1 -4
- data/lib/magento_remote/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDI4ZTA1ZDYzOTc0MTkzNWQ3MGZjOGFhN2UxNmQyOWU3ZWIyMjhiNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2MzY2E1NjhiZDRiMWE0NzYzYThmMjZhZDkyYjJkZjAxOWNiMjlmNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDU5NGJiZDhlZDdmMjM4ZTdlZDBlYmJjYTQwNTNiMGNjODE5YzcyZTk1Y2Fi
|
10
|
+
ZjMzOWVjMTEwZDBiYTM3MzUwYmFiNDFlYjcyNTFiYzFjNDBhYTViN2NmMTlh
|
11
|
+
NTI5ZjAxM2MxNTliNTc0MjI5NDY0ZDkxYjcwOGJkYWZiYjgwOTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTEyMmM2ZDFhYTRkMzJlNDJmYjZiMzJkNWM3YjVjOGMzNTRiN2NmZDJhODRl
|
14
|
+
NzkwZmQ4ODhmY2MyMjVjNDk4YTlkYWE3OTAxNDU0ZWEwM2JiNjA3MTFiNWJj
|
15
|
+
YTY0ZmJlMjFjZTJiOGMxN2Q3NzQzOTQ1NTFhNjM3ZjliNWQyMzM=
|
@@ -178,15 +178,12 @@ class MagentoMech
|
|
178
178
|
def last_order_products
|
179
179
|
orders_url = relative_url("/customer/account/")
|
180
180
|
@mech.get orders_url
|
181
|
-
#@mech.page.save_as "orders_page.html"
|
182
181
|
order_url = @mech.page.search('.a-center a').first.attributes['href']
|
183
|
-
puts "order_url #{order_url}"
|
184
182
|
@mech.get order_url
|
185
|
-
@mech.page.save_as "order_page.html"
|
186
183
|
@mech.page.search('tr.border').map do |tr|
|
187
184
|
product_name = tr.children[1].children[0].content
|
188
185
|
product_sku = tr.children[3].children[0].content
|
189
|
-
product_qty = tr.children[7].children[1].content[/\d
|
186
|
+
product_qty = tr.children[7].children[1].content[/\d+/]
|
190
187
|
[product_name, product_sku, product_qty]
|
191
188
|
end
|
192
189
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magento_remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Wolfsteller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|