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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca0645c584580d719c89e9b25ff1908512fe60640860f8db37d1a9f38e27f46f
4
- data.tar.gz: ee00d482ce6d81af64b2d0298dad3246defe9a95e254b3f98b6c07b3641b1545
3
+ metadata.gz: 37003b2ae4622d77476776909412cc7a9d48b4e25363244a8d3c45fcd6aaffe3
4
+ data.tar.gz: 65ba9e79b43513d0d26840ec1599f0f605faf66a3ec8df58882ff7a7e4e5a49c
5
5
  SHA512:
6
- metadata.gz: 5d9f3bc6101130b9dba2636d17513d46333e178cb565a3bd241bfd54452ee0fad96f1e64a1cf1e079ad0bdfcddb07a1cc878804991663498f9c5bfc2f7be263d
7
- data.tar.gz: 62a3deb1650b9fbee4e97a471db03737a1d0c992b6cc14318c82742d088624419d13cdc06d154a80034782ea6c156dbdf805c3e0886cfb31651d8a885648cb58
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 sales_restrictions?
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
  []
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.5.18"
5
+ VERSION = "0.5.19"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
@@ -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 [2012, 7, 22], product.parsed_publishing_date #data po wygaśnięciu wyłączności empiku
8
+ assert_equal Date.new(2012, 7, 22), product.sales_restrictions[0].end_date
9
9
  end
10
10
 
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.18
4
+ version: 0.5.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski