elibri_onix 0.5.0 → 0.5.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d46cc27f982a8005b92e213b0bc65671508b37543a5a1dd2c44d4c3811f2f91
|
4
|
+
data.tar.gz: cdcfd10f7f0067dfc3da631d4ed82fb220f7db44ee92e5265df1448d0f9356eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2861d6e54eee0d29a104f722ecbb3bc911ee0d89ce6c9e6deac39fd95ea1dff4e0cc6986e69bde4aaa54d73afa141267ed340a560bb7c8c5f1ad213ada2b043
|
7
|
+
data.tar.gz: 1e15855ae05389cbe8d6484585ffcd27c808925b8673f4cf60f39e42a3b8845f5c91f14a09cd7f91d139d798e863dcb1a513413375e379d721b9b5b219f699b8
|
@@ -16,7 +16,7 @@ module Elibri
|
|
16
16
|
:table_of_contents, :description, :reviews, :excerpts, :series, :title, :subtitle, :collection_title,
|
17
17
|
:collection_part, :full_title, :original_title, :trade_title, :parsed_publishing_date, :record_reference,
|
18
18
|
:deletion_text, :cover_type, :cover_price, :vat, :pkwiu, :additional_info, :product_composition,
|
19
|
-
:publisher, :product_form, :no_contributor, :edition_statement, :number_of_illustrations, :publishing_status,
|
19
|
+
:publisher, :product_form, :no_contributor, :edition_statement, :edition_type_onix_code, :number_of_illustrations, :publishing_status,
|
20
20
|
:publishing_date, :premiere, :front_cover, :series_names, :city_of_publication,
|
21
21
|
:preview_exists, :short_description, :sale_restricted_to_poland,
|
22
22
|
:technical_protection_onix_code, :unlimited_licence, :hyphenated_isbn, :preorder_embargo_date, :additional_trade_information
|
@@ -166,6 +166,9 @@ module Elibri
|
|
166
166
|
#informacja o numerze wydania
|
167
167
|
attr_reader :edition_statement
|
168
168
|
|
169
|
+
#informacja o type wydanie, kod onix
|
170
|
+
attr_reader :edition_type_onix_code
|
171
|
+
|
169
172
|
#liczba ilustracji
|
170
173
|
attr_reader :number_of_illustrations
|
171
174
|
|
@@ -392,6 +395,10 @@ module Elibri
|
|
392
395
|
end
|
393
396
|
|
394
397
|
@edition_statement = data.at_css('EditionStatement').try(:text)
|
398
|
+
if Elibri::ONIX::Dict::Release_3_0::EditionType.find_by_onix_code(data.at_css('EditionType').try(:text))
|
399
|
+
@edition_type_onix_code = data.at_css('EditionType').try(:text)
|
400
|
+
end
|
401
|
+
|
395
402
|
@number_of_illustrations = data.at_css('NumberOfIllustrations').try(:text).try(:to_i)
|
396
403
|
end
|
397
404
|
|
data/lib/elibri_onix/version.rb
CHANGED
data/test/elibri_edition_test.rb
CHANGED
@@ -5,6 +5,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
|
|
5
5
|
it "should be able to parse edition number" do
|
6
6
|
product = load_fixture("onix_edition_example.xml")
|
7
7
|
assert_equal "wyd. 3, poprawione", product.edition_statement
|
8
|
+
assert_equal "LTE", product.edition_type_onix_code
|
8
9
|
assert_equal "Warszawa", product.city_of_publication
|
9
10
|
end
|
10
11
|
|
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.
|
4
|
+
version: 0.5.1
|
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: 2019-
|
12
|
+
date: 2019-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.0.
|
62
|
+
version: 0.0.50
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.0.
|
69
|
+
version: 0.0.50
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: pry
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|