oddb2xml 2.3.3 → 2.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f5d2126b5e798ee01ff3d7bac5a161ed13b8ee8
4
- data.tar.gz: 2315c6c09e502d4adc11f8876b05fea8655b8907
3
+ metadata.gz: d0a865b8a3e2de90ecb0e96df994782cf60a34ec
4
+ data.tar.gz: 2c453c126a5f50ff246f5466721f6e28dd170430
5
5
  SHA512:
6
- metadata.gz: eccaf5843a5fd5dcbd2f3e49162820c51e5e47fef0e38528c68d3da9a17bb83c38384276717823e5f967939a903ed85da35cf87c864ba6bb719d1644a9e6aa7b
7
- data.tar.gz: c4719fe785483468f9c88db63574109d7c9fe11b22b53128d529cae81f6cc162fecab9bf034b416bd7e2d995478255437ec6348f58dc18a01efb68b949648662
6
+ metadata.gz: 63eacbae5d49794781e65d5c1fb3a9e953b863cc2fe30f83d4cef17ce39e42652610500f9b97514ec9360fc76cceffeb4b8e2f79cda238d5dc815994bdb91c1f
7
+ data.tar.gz: 08f80192c4d21fe65d18b233191c73d0c0471fc2be1ec9f9909b74e5b3f71a743cef281bad687b7af3df59b0f5f40f4214834d5d74034d8aa0f2072990d4881b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- oddb2xml (2.3.3)
4
+ oddb2xml (2.3.4)
5
5
  archive-tar-minitar
6
6
  httpi (>= 2.4.1)
7
7
  mechanize
@@ -55,7 +55,7 @@ GEM
55
55
  multi_json (1.11.2)
56
56
  net-http-digest_auth (1.4)
57
57
  net-http-persistent (2.9.4)
58
- nokogiri (1.6.7)
58
+ nokogiri (1.6.7.1)
59
59
  mini_portile2 (~> 2.0.0.rc2)
60
60
  nori (2.6.0)
61
61
  ntlm-http (0.1.1)
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.3.4 /20.01.2016
2
+
3
+ * Remove VDAT from oddb_article.xml as this is always updated to the current date and therefore changes the SHA256 attribute
4
+
1
5
  === 2.3.3 /12.01.2016
2
6
 
3
7
  * Remove unused value 'E' from oddb_codes.xml. Thanks to Julian Sgier how reported this error
data/README.md CHANGED
@@ -168,22 +168,18 @@ oddb2xml creates article.xml as oddb_article.xml by default.
168
168
  <BCSTAT>A</BCSTAT>
169
169
  </ARTBAR>
170
170
  <ARTPRI>
171
- <VDAT>01.11.2012</VDAT>
172
171
  <PTYP>PEXF</PTYP>
173
172
  <PRICE>4.768575</PRICE>
174
173
  </ARTPRI>
175
174
  <ARTPRI>
176
- <VDAT>01.11.2012</VDAT>
177
175
  <PTYP>PPUB</PTYP>
178
176
  <PRICE>8.8</PRICE>
179
177
  </ARTPRI>
180
178
  <ARTPRI>
181
- <VDAT>09.09.2015</VDAT>
182
179
  <PTYP>ZURROSE</PTYP>
183
180
  <PRICE>4.77</PRICE>
184
181
  </ARTPRI>
185
182
  <ARTPRI>
186
- <VDAT>09.09.2015</VDAT>
187
183
  <PTYP>ZURROSEPUB</PTYP>
188
184
  <PRICE>8.80</PRICE>
189
185
  </ARTPRI>
@@ -911,7 +911,6 @@ module Oddb2xml
911
911
  if pac and pac[:prices]
912
912
  pac[:prices].each_pair do |key, price|
913
913
  xml.ARTPRI {
914
- xml.VDAT price[:valid_date] unless price[:valid_date].empty?
915
914
  xml.PTYP price[:price_code] unless price[:price_code].empty?
916
915
  xml.PRICE price[:price] unless price[:price].empty?
917
916
  }
@@ -919,40 +918,21 @@ module Oddb2xml
919
918
  end
920
919
  if info_zur_rose
921
920
  price = info_zur_rose[:price]
922
- vdat = Time.parse(datetime).strftime("%d.%m.%Y")
923
921
  xml.ARTPRI {
924
- xml.VDAT vdat
925
922
  xml.PTYP "ZURROSE"
926
923
  xml.PRICE price
927
924
  }
928
925
  xml.ARTPRI {
929
- xml.VDAT vdat
930
926
  xml.PTYP "ZURROSEPUB"
931
927
  xml.PRICE info_zur_rose[:pub_price]
932
928
  }
933
929
  xml.ARTPRI {
934
- xml.VDAT vdat
935
930
  xml.PTYP "RESELLERPUB"
936
931
  xml.PRICE (price.to_f*(1 + (@options[:percent].to_f/100))).round_by(0.05).round(2)
937
932
  } if @options[:percent] != nil
938
933
  end
939
- #xml.ARTMIG {
940
- #xml.VDAT
941
- #xml.MIGCD
942
- #xml.LINENO
943
- #}
944
- #xml.ARTDAN {
945
- #xml.CDTYP
946
- #xml.LINENO
947
- #xml.CDVAL
948
- #}
949
- #xml.ARTLIM {
950
- # xml.LIMCD
951
- #}
952
934
  if nincd
953
935
  xml.ARTINS {
954
- #xml.VDAT
955
- #xml.INCD
956
936
  xml.NINCD nincd
957
937
  }
958
938
  end
@@ -1,3 +1,3 @@
1
1
  module Oddb2xml
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
3
3
  end
data/oddb2xml.xsd CHANGED
@@ -248,7 +248,6 @@
248
248
  <xs:complexType>
249
249
  <xs:sequence>
250
250
  <xs:sequence minOccurs="0">
251
- <xs:element ref="ns1:VDAT"/>
252
251
  <xs:element ref="ns1:PTYP"/>
253
252
  </xs:sequence>
254
253
  <xs:element minOccurs="0" ref="ns1:PRICE"/>
@@ -325,7 +324,6 @@
325
324
  </xs:sequence>
326
325
  <xs:element ref="ns1:ARTCOMPMD"/>
327
326
  <xs:element ref="ns1:ARTBARMD"/>
328
- <xs:element minOccurs="0" maxOccurs="unbounded" ref="ns1:ARTPRIMD"/>
329
327
  <xs:element minOccurs="0" ref="ns1:ARTINSMD"/>
330
328
  </xs:sequence>
331
329
  <xs:attribute name="DT" use="required"/>
@@ -409,7 +407,6 @@
409
407
  <xs:complexType>
410
408
  <xs:sequence>
411
409
  <xs:sequence minOccurs="0">
412
- <xs:element ref="ns1:VDATMD"/>
413
410
  <xs:element ref="ns1:PTYPMD"/>
414
411
  </xs:sequence>
415
412
  <xs:element minOccurs="0" ref="ns1:PRICEMD"/>
data/spec/builder_spec.rb CHANGED
@@ -29,7 +29,6 @@ ARTICLE_MISSING_ELEMENTS = [
29
29
  ARTICLE_ZURROSE_ELEMENTS = [
30
30
  ['ARTICLE/ART/REF_DATA', '0'],
31
31
  ['ARTICLE/ART/ARTCOMP/COMPNO', '7601001000858'],
32
- ['ARTICLE/ART/ARTPRI/VDAT', Date.today.strftime('%d.%m.%Y')], # TODO:
33
32
  ['ARTICLE/ART/ARTPRI/PTYP', 'PEXF'],
34
33
  ['ARTICLE/ART/ARTPRI/PTYP', 'PPUB'],
35
34
  ['ARTICLE/ART/ARTPRI/PTYP', 'ZURROSE'],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oddb2xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhiro Asaka, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-12 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip