adf_builder 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/adf_builder.rb +6 -4
- data/lib/adf_builder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363203a0be498b2a4c64b3a8468fb9f5107c0a64a53f7931ebfc6b5804763b96
|
4
|
+
data.tar.gz: 7b1500ef7e17368b62987600f306f216321e5ffdeecfdc439569db89a85cb0d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3966f161aeeff1e4657860bf6f87a6d730ffc689c7ff726353ceb2f84c8a87dd942f64374623bd0e7c0532d22e844e9f7bc275534cd9cda7bd3b04ebbad12986
|
7
|
+
data.tar.gz: 5eafe81b9c315faf6f9e4f6302fb2f5328916033e3f9ef3507a0618dabcbdf6f59729f2c1dbe772022c4a8ef42b353a06f38ef5bf530048af8e7a54a75d6a6f0
|
data/CHANGELOG.md
CHANGED
@@ -17,6 +17,13 @@
|
|
17
17
|
- Add Provider structure
|
18
18
|
- Add Price structure
|
19
19
|
|
20
|
+
## [0.0.6] - 2021-08-08
|
21
|
+
- minimal_lead function will remove all previous adf nodes
|
22
|
+
- Created ability to reset doc
|
23
|
+
|
24
|
+
## [0.0.5] - 2021-08-08
|
25
|
+
- Fixed bug that kept us from using the library
|
26
|
+
|
20
27
|
## [0.0.4] - 2021-08-08
|
21
28
|
- Added Customer, Contact, Vendor basic structure
|
22
29
|
|
data/Gemfile.lock
CHANGED
data/lib/adf_builder.rb
CHANGED
@@ -40,8 +40,6 @@ module AdfBuilder
|
|
40
40
|
|
41
41
|
# def an example of minimal XML taken from ADF spec file http://adfxml.info/adf_spec.pdf
|
42
42
|
def minimal_lead
|
43
|
-
adf = Ox::Element.new("adf")
|
44
|
-
|
45
43
|
prospect = Ox::Element.new("prospect")
|
46
44
|
|
47
45
|
request_date = Ox::Element.new("requestdate")
|
@@ -84,11 +82,15 @@ module AdfBuilder
|
|
84
82
|
vendor << contact
|
85
83
|
|
86
84
|
prospect << request_date << vehicle << customer << vendor
|
87
|
-
adf
|
88
|
-
@doc <<
|
85
|
+
@doc.remove_children_by_path("adf/prospect")
|
86
|
+
@doc.adf << prospect
|
89
87
|
Ox.dump(@doc, {})
|
90
88
|
end
|
91
89
|
|
90
|
+
# go back to the initial structure
|
91
|
+
def reset_doc
|
92
|
+
@doc.adf.prospect.remove_children_by_path("*")
|
93
|
+
end
|
92
94
|
|
93
95
|
# all the files will start with this same header
|
94
96
|
def init_doc
|
data/lib/adf_builder/version.rb
CHANGED