elibri_onix_dict 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elibri_onix_dict (0.0.18)
4
+ elibri_onix_dict (0.0.20)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -8,6 +8,7 @@
8
8
  pl: książka
9
9
  digital: false
10
10
  carrier: druk
11
+ mandatory_isbn: true
11
12
 
12
13
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
13
14
  onix_code: 'EA'
@@ -17,6 +18,7 @@
17
18
  pl: e-book
18
19
  digital: true
19
20
  carrier: plik
21
+ mandatory_isbn: true
20
22
 
21
23
 
22
24
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
@@ -27,6 +29,7 @@
27
29
  pl: audiobook w formie pliku
28
30
  digital: true
29
31
  carrier: plik
32
+ mandatory_isbn: true
30
33
 
31
34
 
32
35
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
@@ -37,6 +40,7 @@
37
40
  pl: audiobook na płycie CD
38
41
  digital: false
39
42
  carrier: CD
43
+ mandatory_isbn: true
40
44
 
41
45
 
42
46
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
@@ -47,6 +51,7 @@
47
51
  pl: audiobook na płycie DVD
48
52
  digital: false
49
53
  carrier: DVD
54
+ mandatory_isbn: true
50
55
 
51
56
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
52
57
  onix_code: 'CA'
@@ -56,7 +61,7 @@
56
61
  pl: mapa
57
62
  digital: false
58
63
  carrier: mapa
59
-
64
+ mandatory_isbn: false
60
65
 
61
66
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
62
67
  onix_code: 'CB'
@@ -66,6 +71,8 @@
66
71
  pl: mapa składana
67
72
  digital: false
68
73
  carrier: mapa
74
+ mandatory_isbn: false
75
+
69
76
 
70
77
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
71
78
  onix_code: 'CC'
@@ -75,7 +82,7 @@
75
82
  pl: mapa płaska
76
83
  digital: false
77
84
  carrier: mapa
78
-
85
+ mandatory_isbn: false
79
86
 
80
87
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
81
88
  onix_code: 'CD'
@@ -85,6 +92,7 @@
85
92
  pl: mapa w rolce
86
93
  digital: false
87
94
  carrier: mapa
95
+ mandatory_isbn: false
88
96
 
89
97
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
90
98
  onix_code: 'CZ'
@@ -94,7 +102,7 @@
94
102
  pl: inny format kartograficzny
95
103
  digital: false
96
104
  carrier: mapa
97
-
105
+ mandatory_isbn: false
98
106
 
99
107
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
100
108
  onix_code: 'PC'
@@ -104,6 +112,7 @@
104
112
  pl: kalendarz
105
113
  digital: false
106
114
  carrier: druk
115
+ mandatory_isbn: false
107
116
 
108
117
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
109
118
  onix_code: 'ZE'
@@ -113,4 +122,5 @@
113
122
  pl: gra planszowa
114
123
  digital: false
115
124
  carrier: druk
125
+ mandatory_isbn: false
116
126
 
@@ -1,7 +1,7 @@
1
1
  module Elibri
2
2
  module ONIX
3
3
  module Dict
4
- VERSION = "0.0.20"
4
+ VERSION = "0.0.21"
5
5
  Version = VERSION
6
6
  end
7
7
  end
@@ -6,9 +6,8 @@ require 'helper'
6
6
  describe Elibri::ONIX::Dict::Release_3_0 do
7
7
 
8
8
  it "should be able to build classes on the fly from .yml files" do
9
- assert_equal 11, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
10
- assert_equal 9, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
11
- assert_equal 9, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except(['BA', 'EA']).size
9
+ assert_equal 12, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
10
+ assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
12
11
  assert_equal 'BA', Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK
13
12
  assert_equal '02', Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus::LIMITED
14
13
  assert_equal '01', Elibri::ONIX::Dict::Release_3_0::EpubUsageType::PREVIEW
@@ -19,6 +18,8 @@ describe Elibri::ONIX::Dict::Release_3_0 do
19
18
  assert_equal 'book', form.name(:en)
20
19
  assert_equal 'BA', form.onix_code
21
20
  assert_equal "druk", form.carrier
21
+ assert form.mandatory_isbn
22
+
22
23
  assert !form.digital
23
24
  assert !form.digital?
24
25
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_dict
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 20
10
- version: 0.0.20
9
+ - 21
10
+ version: 0.0.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcin Urbanski