elibri_onix 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f50418e1d4a6edd648711bece18f570753b2c60
4
- data.tar.gz: 2d864edd6ccbebe1e5c662e650ac5631928e4f42
3
+ metadata.gz: b90e51ac6e2a3a1b2a091d68440962cfdb1a9a57
4
+ data.tar.gz: 946e311eee00c536b311bf632e315770c15803f6
5
5
  SHA512:
6
- metadata.gz: 8410b5f01f6b3fe54b44e16de387527595a0593e32bfb71c59095afb590034ed4800ca3b5ad7b513651fe1015b6d239978150f4c9b8b38a46ef2c716cb208b25
7
- data.tar.gz: 2a245f1a4ea879f25fa50dc0c12fc723cd2f34a71ee99369916a0d0d7b869d20c8f83740a226d9d29104a328678e146158fadae13d422bbce2285ae40446202c
6
+ metadata.gz: e5b50b3e65d3cb714d8a3aa6ff171a8e061d5ca680490ebce62de16180c247356da5eb7e52b6a9ad95b0b59bd1acaa7c42be57b074476be35952cfcd830d3b5a
7
+ data.tar.gz: 09c902f6ea80389d660600cc03a5bbd4a12040f6eb297adbb804b8e0fd8cffbbfe58fcb9d0b8a394bba883ecda909d39b15cee2f65ec008203bb0ad658ff5123
data/FIELDS.rdoc CHANGED
@@ -58,7 +58,7 @@ type, minimum_order_quantity, amount, currency_code, printed_on_product, positio
58
58
 
59
59
  == Product
60
60
  === Attributes
61
- elibri_dialect, height, width, thickness, weight, ean, isbn13, number_of_pages, duration, file_size, publisher_name, publisher_id, imprint_name, current_state, reading_age_from, reading_age_to, table_of_contents, description, reviews, excerpts, series, title, subtitle, collection_title, collection_part, full_title, original_title, trade_title, parsed_publishing_date, record_reference, deletion_text, cover_type, cover_price, vat, pkwiu, pdw_exclusiveness, product_composition, product_form, imprint, publisher, product_form, no_contributor, edition_statement, number_of_illustrations, publishing_status, publishing_date, premiere, front_cover, series_names, elibri_product_category1_id, elibri_product_category2_id, preview_exists, short_description
61
+ elibri_dialect, height, width, thickness, weight, ean, isbn13, number_of_pages, duration, file_size, publisher_name, publisher_id, imprint_name, current_state, reading_age_from, reading_age_to, table_of_contents, description, reviews, excerpts, series, title, subtitle, collection_title, collection_part, full_title, original_title, trade_title, parsed_publishing_date, record_reference, deletion_text, cover_type, cover_price, vat, pkwiu, pdw_exclusiveness, product_composition, product_form, imprint, publisher, product_form, no_contributor, edition_statement, number_of_illustrations, publishing_status, publishing_date, premiere, front_cover, series_names, elibri_product_category1_id, elibri_product_category2_id, preview_exists, short_description, additional_info
62
62
  === Relations
63
63
  contributors, related_products, languages, measures, supply_details, measures, title_details, collections, extents, subjects, audience_ranges, text_contents, supporting_resources, sales_restrictions, authors, ghostwriters, scenarists, originators, illustrators, photographers, author_of_prefaces, drawers, cover_designers, inked_or_colored_bys, editors, revisors, translators, editor_in_chiefs, read_bys
64
64
 
@@ -152,6 +152,9 @@ module Elibri
152
152
  #PDWExclusiveness
153
153
  attr_reader :pdw_exclusiveness
154
154
 
155
+ #AdditionalInfo
156
+ attr_reader :additional_info
157
+
155
158
  #kod ONIX typu produktu, np. 'BA' - lista dostępna pod adresem
156
159
  #https://github.com/elibri/elibri_onix_dict/blob/master/lib/elibri_onix_dict/onix_3_0/serialized/ProductFormCode.yml
157
160
  attr_reader :product_form
@@ -249,6 +252,7 @@ module Elibri
249
252
  @pkwiu = data.at_xpath('elibri:PKWiU').try(:text)
250
253
  @hyphenated_isbn = data.at_xpath('elibri:HyphenatedISBN').try(:text)
251
254
  @pdw_exclusiveness = data.at_xpath('elibri:PDWExclusiveness').try(:text)
255
+ @additional_info = data.at_xpath('elibri:AdditionalInfo').try(:text)
252
256
 
253
257
  @preview_exists = (data.at_xpath('elibri:preview_exists').try(:text) == "true")
254
258
  @identifiers = data.xpath('xmlns:ProductIdentifier').map { |ident_data| ProductIdentifier.new(ident_data) }
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.3.0"
5
+ VERSION = "0.4.0"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
@@ -12,6 +12,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
12
12
  assert_equal "58.11.1", product.pkwiu
13
13
  assert_equal "VIC", product.pdw_exclusiveness
14
14
  assert product.preview_exists?
15
+ assert_equal "PROMOCJA!", product.additional_info
15
16
  end
16
17
 
17
18
  end
@@ -52,5 +52,6 @@
52
52
  <elibri:PKWiU>58.11.1</elibri:PKWiU>
53
53
  <elibri:preview_exists>true</elibri:preview_exists>
54
54
  <elibri:PDWExclusiveness>VIC</elibri:PDWExclusiveness>
55
+ <elibri:AdditionalInfo>PROMOCJA!</elibri:AdditionalInfo>
55
56
  </Product>
56
57
  </ONIXMessage>
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-05-18 00:00:00.000000000 Z
12
+ date: 2017-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -167,7 +167,6 @@ files:
167
167
  - ".travis.yml"
168
168
  - FIELDS.rdoc
169
169
  - Gemfile
170
- - Gemfile.lock
171
170
  - LICENSE.txt
172
171
  - README.rdoc
173
172
  - Rakefile