elibri_onix 0.5.18 → 0.5.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elibri_onix/onix_3_0/product.rb +1 -4
- data/lib/elibri_onix/version.rb +1 -1
- data/test/elibri_sale_restrictions_test.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: 37003b2ae4622d77476776909412cc7a9d48b4e25363244a8d3c45fcd6aaffe3
|
4
|
+
data.tar.gz: 65ba9e79b43513d0d26840ec1599f0f605faf66a3ec8df58882ff7a7e4e5a49c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9964327c8934259778d663562bf814f39248877cf4b2eb97cdf85680d3306100664d8822ca8b754e1866b8d8db889c8ef11db4b90b97cc53562b52397b57127
|
7
|
+
data.tar.gz: b10744c7de5f78ae9e7b57dd3fd835949fc8b0a5fc2c772618650e910e8e92f4cca5ac6e97e2eb77fc5c088f8c8f4e86e1f3d0a96baf674015b2404e12b5c8d2
|
@@ -537,10 +537,7 @@ module Elibri
|
|
537
537
|
#data premiery w postaci listy [rok, miesiąc, dzień], [rok, miesiąc], [rok], lub pustej listy - jeśli data premiery nie jest znana
|
538
538
|
#(data premiery może nie być znana w przypadku backlisty)
|
539
539
|
def parsed_publishing_date
|
540
|
-
if
|
541
|
-
date = sales_restrictions[0].end_date
|
542
|
-
[date.year, date.month, date.day]
|
543
|
-
elsif publishing_date
|
540
|
+
if publishing_date
|
544
541
|
publishing_date.parsed
|
545
542
|
else
|
546
543
|
[]
|
data/lib/elibri_onix/version.rb
CHANGED
@@ -5,7 +5,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
|
|
5
5
|
it "should be able to parse information about sales restrictions" do
|
6
6
|
product = load_fixture("onix_sale_restrictions_example.xml")
|
7
7
|
assert product.sales_restrictions?
|
8
|
-
assert_equal
|
8
|
+
assert_equal Date.new(2012, 7, 22), product.sales_restrictions[0].end_date
|
9
9
|
end
|
10
10
|
|
11
11
|
end
|