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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQ0NWJkN2IyZDM2NmQ0YzBkY2Q5NDM4ZWJhNDI3NGU4NjZkMzdjMQ==
4
+ NDI4ZTA1ZDYzOTc0MTkzNWQ3MGZjOGFhN2UxNmQyOWU3ZWIyMjhiNA==
5
5
  data.tar.gz: !binary |-
6
- ZWQwMjE5NjIwMTY5ZjA4NDU1MzEzMzA4NTQ1NTc0Nzg2N2UxOTg2OA==
6
+ Y2MzY2E1NjhiZDRiMWE0NzYzYThmMjZhZDkyYjJkZjAxOWNiMjlmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2RmYmE3YWM5NzEyODcxMTFkYWRiYmQ3MjAzMjg1M2VhNDg5NjcyYjI0YTIw
10
- ZmExNjg5MmI2MTA1Y2VhZDc2MmFlNTJkOGY5ODk2NGIyMzhhYmZjNDA5ZTZm
11
- MGVlYWJiMjk5NzYzOGRiZmJlMzY4ZGU1NTUyNDMzOGMyZWZlYzI=
9
+ ZDU5NGJiZDhlZDdmMjM4ZTdlZDBlYmJjYTQwNTNiMGNjODE5YzcyZTk1Y2Fi
10
+ ZjMzOWVjMTEwZDBiYTM3MzUwYmFiNDFlYjcyNTFiYzFjNDBhYTViN2NmMTlh
11
+ NTI5ZjAxM2MxNTliNTc0MjI5NDY0ZDkxYjcwOGJkYWZiYjgwOTM=
12
12
  data.tar.gz: !binary |-
13
- MmFmY2RlNDQ3NTY2ZDc5Y2M3YTllMDU5MmM5ZDI0YjI1N2I2N2Y2NmI4NTEz
14
- NDE0NDM3ODg2YzJhMjJiMGY1MTBkNDcxMmE2ZGQxOWJlMDkxZmJjYjI4NGM5
15
- ZTA3OWRlNzlhMDg3ZWE3ODVhNzk5Y2RjNzgxZjRkZDBhYTczOWM=
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
@@ -1,3 +1,3 @@
1
1
  module MagentoRemote
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  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.3
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-23 00:00:00.000000000 Z
11
+ date: 2014-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize