foxy_sync 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/foxy_sync/xml/base.rb
CHANGED
@@ -8,7 +8,7 @@ module FoxySync::Xml
|
|
8
8
|
unless @details
|
9
9
|
@details = []
|
10
10
|
|
11
|
-
node.xpath('
|
11
|
+
node.xpath('.//transaction_detail').each do |detail|
|
12
12
|
@details << TransactionDetail.new(detail)
|
13
13
|
end
|
14
14
|
end
|
@@ -21,7 +21,7 @@ module FoxySync::Xml
|
|
21
21
|
# Returns custom fields in a 'name' => 'value' +Hash+
|
22
22
|
def custom_fields
|
23
23
|
fields = {}
|
24
|
-
fields_xml = node.xpath '
|
24
|
+
fields_xml = node.xpath './/custom_field'
|
25
25
|
|
26
26
|
fields_xml.each do |node|
|
27
27
|
name = node.at_css('custom_field_name').content.strip
|
@@ -7,7 +7,7 @@ module FoxySync::Xml
|
|
7
7
|
# Returns custom product options in a 'name' => 'value' +Hash+
|
8
8
|
def custom_product_options
|
9
9
|
options = {}
|
10
|
-
options_xml = node.xpath '
|
10
|
+
options_xml = node.xpath './/transaction_detail_option'
|
11
11
|
|
12
12
|
options_xml.each do |node|
|
13
13
|
name = node.at_css('product_option_name').content.strip
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foxy_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|