elibri_onix 0.1.23 → 0.2.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.
Files changed (40) hide show
  1. data/Gemfile +1 -0
  2. data/Gemfile.lock +3 -5
  3. data/elibri_onix.gemspec +2 -1
  4. data/lib/elibri_onix.rb +3 -2
  5. data/lib/elibri_onix/external_id.rb +15 -2
  6. data/lib/elibri_onix/external_timestamp.rb +5 -1
  7. data/lib/elibri_onix/nokogiri_patch.rb +17 -0
  8. data/lib/elibri_onix/onix_3_0/audience_range.rb +14 -8
  9. data/lib/elibri_onix/onix_3_0/collection.rb +10 -9
  10. data/lib/elibri_onix/onix_3_0/contributor.rb +21 -18
  11. data/lib/elibri_onix/onix_3_0/extent.rb +18 -11
  12. data/lib/elibri_onix/onix_3_0/header.rb +7 -6
  13. data/lib/elibri_onix/onix_3_0/imprint.rb +6 -5
  14. data/lib/elibri_onix/onix_3_0/language.rb +16 -9
  15. data/lib/elibri_onix/onix_3_0/measure.rb +17 -9
  16. data/lib/elibri_onix/onix_3_0/onix_message.rb +14 -30
  17. data/lib/elibri_onix/onix_3_0/price.rb +19 -17
  18. data/lib/elibri_onix/onix_3_0/product.rb +118 -77
  19. data/lib/elibri_onix/onix_3_0/product_identifier.rb +9 -7
  20. data/lib/elibri_onix/onix_3_0/publisher.rb +19 -9
  21. data/lib/elibri_onix/onix_3_0/publishing_date.rb +10 -9
  22. data/lib/elibri_onix/onix_3_0/related_product.rb +10 -15
  23. data/lib/elibri_onix/onix_3_0/sales_restriction.rb +11 -8
  24. data/lib/elibri_onix/onix_3_0/sender.rb +9 -8
  25. data/lib/elibri_onix/onix_3_0/stock_quantity_coded.rb +8 -11
  26. data/lib/elibri_onix/onix_3_0/subject.rb +19 -13
  27. data/lib/elibri_onix/onix_3_0/supplier.rb +15 -12
  28. data/lib/elibri_onix/onix_3_0/supplier_identifier.rb +9 -8
  29. data/lib/elibri_onix/onix_3_0/supply_detail.rb +16 -15
  30. data/lib/elibri_onix/onix_3_0/supporting_resource.rb +15 -15
  31. data/lib/elibri_onix/onix_3_0/text_content.rb +18 -15
  32. data/lib/elibri_onix/onix_3_0/title_detail.rb +17 -11
  33. data/lib/elibri_onix/onix_3_0/title_element.rb +10 -9
  34. data/lib/elibri_onix/version.rb +1 -1
  35. data/test/elibri_contributors_test.rb +1 -1
  36. data/test/elibri_onix_release_3_0_onix_message_test.rb +2 -2
  37. data/test/elibri_supporting_resources_test.rb +1 -1
  38. data/test/elibri_texts_test.rb +4 -4
  39. data/test/helper.rb +2 -1
  40. metadata +252 -295
@@ -5,13 +5,6 @@ module Elibri
5
5
  module Release_3_0
6
6
 
7
7
  class TitleDetail
8
- include ROXML
9
- include Inspector
10
-
11
- xml_name 'TitleDetail'
12
-
13
- xml_accessor :type, :from => 'TitleType'
14
- xml_accessor :elements, :as => [TitleElement]
15
8
 
16
9
  ATTRIBUTES = [
17
10
  :type, :type_name, :full_title, :product_level_title, :product_level, :collection_level_title,
@@ -21,10 +14,23 @@ module Elibri
21
14
  RELATIONS = [
22
15
  :elements, :inspect_include_fields
23
16
  ]
17
+
18
+ attr_accessor :type, :elements, :to_xml
19
+
20
+ def initialize(data)
21
+ @to_xml = data.to_s
22
+ @type = data.at_xpath('xmlns:TitleType').try(:text)
23
+ @elements = data.xpath('xmlns:TitleElement').map { |element_data| TitleElement.new(element_data) }
24
+ end
24
25
 
25
- def id
26
- type.to_i
26
+ def eid
27
+ @type.to_i
27
28
  end
29
+
30
+ def id
31
+ Kernel.warn "[DEPRECATION] `id` is deprecated. Please use `eid` instead."
32
+ eid
33
+ end
28
34
 
29
35
  def type_name
30
36
  Elibri::ONIX::Dict::Release_3_0::TitleType.find_by_onix_code(self.type).const_name.downcase
@@ -49,7 +55,7 @@ module Elibri
49
55
  end
50
56
 
51
57
  def product_level
52
- elements.find {|element| element.level == "01"}
58
+ @elements.find {|element| element.level == "01"}
53
59
  end
54
60
 
55
61
  def collection_level_title
@@ -57,7 +63,7 @@ module Elibri
57
63
  end
58
64
 
59
65
  def collection_level
60
- elements.find {|element| element.level == "02"}
66
+ @elements.find {|element| element.level == "02"}
61
67
  end
62
68
 
63
69
  end
@@ -4,21 +4,22 @@ module Elibri
4
4
  module Release_3_0
5
5
 
6
6
  class TitleElement
7
- include ROXML
8
- include Inspector
9
-
10
- xml_name 'TitleElement'
11
-
12
- xml_accessor :level, :from => 'TitleElementLevel'
13
- xml_accessor :part_number, :from => 'PartNumber'
14
- xml_accessor :title, :from => 'TitleText'
15
- xml_accessor :subtitle, :from => 'Subtitle'
16
7
 
17
8
  ATTRIBUTES = [
18
9
  :level, :part_number, :title, :subtitle, :full_title
19
10
  ]
20
11
 
21
12
  RELATIONS = []
13
+
14
+ attr_accessor :level, :part_number, :title, :subtitle, :to_xml
15
+
16
+ def initialize(data)
17
+ @to_xml = data.to_s
18
+ @level = data.at_xpath('xmlns:TitleElementLevel').try(:text)
19
+ @part_number = data.at_xpath('xmlns:PartNumber').try(:text)
20
+ @title = data.at_xpath('xmlns:TitleText').try(:text)
21
+ @subtitle = data.at_xpath('xmlns:Subtitle').try(:text)
22
+ end
22
23
 
23
24
  def full_title
24
25
  String.new(self.title.to_s.strip).tap do |_full_title|
@@ -1,6 +1,6 @@
1
1
  module Elibri
2
2
  module ONIX
3
- VERSION = "0.1.23"
3
+ VERSION = "0.2.0"
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -13,7 +13,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
13
13
  cont2 = product.contributors[1]
14
14
 
15
15
  assert_equal "contributorid:255", cont1.id_before_type_cast
16
- assert_equal 255, cont1.id
16
+ assert_equal 255, cont1.eid
17
17
  assert_equal "20111104T0905", cont1.datestamp_before_type_cast
18
18
  assert_equal Date.new(2011, 11, 04).to_time + 9.hours + 5.minutes, cont1.datestamp
19
19
 
@@ -7,7 +7,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
7
7
  it "should be able to parse all attributes supported in Elibri" do
8
8
  xml_string = File.read File.join(File.dirname(__FILE__), "..", "test", "fixtures", "all_possible_tags.xml")
9
9
 
10
- onix = Elibri::ONIX::Release_3_0::ONIXMessage.from_xml(xml_string)
10
+ onix = Elibri::ONIX::Release_3_0::ONIXMessage.new(xml_string)
11
11
  assert_equal '3.0', onix.release
12
12
  assert_equal '3.0.1', onix.elibri_dialect
13
13
  assert_equal 'Elibri.com.pl', onix.header.sender.sender_name
@@ -171,7 +171,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
171
171
  it "should consider elibri_dialect attribute and ignore attributes unrecognized in specified dialect" do
172
172
  xml_string = File.read File.join(File.dirname(__FILE__), "..", "test", "fixtures", "old_dialect.xml")
173
173
 
174
- onix = Elibri::ONIX::Release_3_0::ONIXMessage.from_xml(xml_string)
174
+ onix = Elibri::ONIX::Release_3_0::ONIXMessage.new(xml_string)
175
175
  assert_equal '3.0', onix.release
176
176
  assert_equal '3.0.0', onix.elibri_dialect
177
177
 
@@ -15,7 +15,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
15
15
 
16
16
  assert_equal "http://elibri.com.pl/sciezka/do/pliku.png", product.front_cover.link
17
17
  assert_equal Date.new(2011, 12, 1) + 18.hours + 5.minutes, product.front_cover.datestamp
18
- assert_equal 667, product.front_cover.id
18
+ assert_equal 667, product.front_cover.eid
19
19
 
20
20
  assert_equal "sample_content", product.supporting_resources[1].content_type_name
21
21
  assert_equal "text", product.supporting_resources[1].mode_name
@@ -10,7 +10,7 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
10
10
 
11
11
  assert_equal "1. Wprowadzenie<br />2. Rozdział pierwszy<br />[...]", product.table_of_contents.text
12
12
  assert_equal Date.new(2011, 12, 04) + 12.hours + 15.minutes, product.table_of_contents.datestamp
13
- assert_equal 133, product.table_of_contents.id
13
+ assert_equal 133, product.table_of_contents.eid
14
14
 
15
15
  assert_equal 1, product.reviews.size
16
16
  review = product.reviews.first
@@ -19,16 +19,16 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
19
19
  assert_equal "nakanapie.pl", review.source_title
20
20
  assert_equal "http://nakanapie.pl/books/420469/reviews/2892.odnalezc-swa-droge", review.source_url
21
21
  assert_equal Date.new(2011, 12, 4) + 12.hours + 18.minutes, review.datestamp
22
- assert_equal 134, review.id
22
+ assert_equal 134, review.eid
23
23
 
24
24
  assert_equal "Opis książki<br />[...]", product.description.text
25
25
  assert_equal Date.new(2011, 12, 4) + 12.hours + 25.minutes, product.description.datestamp
26
- assert_equal 135, product.description.id
26
+ assert_equal 135, product.description.eid
27
27
 
28
28
  assert_equal 1, product.excerpts.size
29
29
  excerpt = product.excerpts.first
30
30
  assert_equal "Fragment książki<br />[...]", excerpt.text
31
31
  assert_equal Date.new(2011, 12, 4) + 12.hours + 35.minutes, excerpt.datestamp
32
- assert_equal 136, excerpt.id
32
+ assert_equal 136, excerpt.eid
33
33
  end
34
34
  end
@@ -13,6 +13,7 @@ require 'test/unit'
13
13
  require 'minitest/autorun'
14
14
  require 'mocha'
15
15
  require 'pry'
16
+ #require 'ruby-debug'
16
17
 
17
18
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
18
19
  $LOAD_PATH.unshift(File.dirname(__FILE__))
@@ -23,6 +24,6 @@ end
23
24
 
24
25
  def load_fixture(filename)
25
26
  xml_string = File.read File.join(File.dirname(__FILE__), "..", "test", "fixtures", filename)
26
- onix = Elibri::ONIX::Release_3_0::ONIXMessage.from_xml(xml_string)
27
+ onix = Elibri::ONIX::Release_3_0::ONIXMessage.new(xml_string)
27
28
  return onix.products.first
28
29
  end
metadata CHANGED
@@ -1,333 +1,290 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- hash: 53
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 23
10
- version: 0.1.23
5
+ version: 0.2.0
11
6
  platform: ruby
12
7
  authors:
13
- - Marcin Urbanski
8
+ - Marcin Urbanski
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2012-05-18 00:00:00 Z
13
+ date: 2012-05-23 00:00:00 +02:00
14
+ default_executable:
19
15
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: activesupport
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 9
29
- segments:
30
- - 2
31
- - 3
32
- - 5
33
- version: 2.3.5
34
- type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: roxml
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - "="
43
- - !ruby/object:Gem::Version
44
- hash: 5
45
- segments:
46
- - 3
47
- - 1
48
- - 3
49
- version: 3.1.3
50
- type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: i18n
54
- prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 0
63
- version: "0"
64
- type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: elibri_onix_dict
68
- prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 21
75
- segments:
76
- - 0
77
- - 0
78
- - 5
79
- version: 0.0.5
80
- type: :runtime
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: pry
84
- prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
86
- none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- hash: 3
91
- segments:
92
- - 0
93
- version: "0"
94
- type: :development
95
- version_requirements: *id005
96
- - !ruby/object:Gem::Dependency
97
- name: mocha
98
- prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
108
- type: :development
109
- version_requirements: *id006
110
- - !ruby/object:Gem::Dependency
111
- name: minitest
112
- prerelease: false
113
- requirement: &id007 !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
122
- type: :development
123
- version_requirements: *id007
124
- - !ruby/object:Gem::Dependency
125
- name: bundler
126
- prerelease: false
127
- requirement: &id008 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 23
133
- segments:
134
- - 1
135
- - 0
136
- - 0
137
- version: 1.0.0
138
- type: :development
139
- version_requirements: *id008
140
- - !ruby/object:Gem::Dependency
141
- name: rake
142
- prerelease: false
143
- requirement: &id009 !ruby/object:Gem::Requirement
144
- none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- hash: 3
149
- segments:
150
- - 0
151
- version: "0"
152
- type: :development
153
- version_requirements: *id009
16
+ - !ruby/object:Gem::Dependency
17
+ name: activesupport
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 2.3.5
25
+ type: :runtime
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :runtime
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: i18n
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ type: :runtime
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: elibri_onix_dict
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: 0.0.5
58
+ type: :runtime
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: pry
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: "0"
69
+ type: :development
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: mocha
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: "0"
80
+ type: :development
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: minitest
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ type: :development
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: bundler
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: 1.0.0
102
+ type: :development
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: rake
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: "0"
113
+ type: :development
114
+ version_requirements: *id009
154
115
  description: EDItEUR ONIX format subset implementation used in Elibri publication system
155
116
  email:
156
- - marcin@urbanski.vdl.pl
117
+ - marcin@urbanski.vdl.pl
157
118
  executables: []
158
119
 
159
120
  extensions: []
160
121
 
161
122
  extra_rdoc_files:
162
- - LICENSE.txt
163
- - README.rdoc
164
- - FIELDS.rdoc
123
+ - LICENSE.txt
124
+ - README.rdoc
125
+ - FIELDS.rdoc
165
126
  files:
166
- - .gitignore
167
- - .travis.yml
168
- - FIELDS.rdoc
169
- - Gemfile
170
- - Gemfile.lock
171
- - LICENSE.txt
172
- - README.rdoc
173
- - Rakefile
174
- - elibri_onix.gemspec
175
- - generate.rb
176
- - lib/elibri_onix.rb
177
- - lib/elibri_onix/external_id.rb
178
- - lib/elibri_onix/external_timestamp.rb
179
- - lib/elibri_onix/inspector.rb
180
- - lib/elibri_onix/onix_3_0/audience_range.rb
181
- - lib/elibri_onix/onix_3_0/collection.rb
182
- - lib/elibri_onix/onix_3_0/contributor.rb
183
- - lib/elibri_onix/onix_3_0/extent.rb
184
- - lib/elibri_onix/onix_3_0/header.rb
185
- - lib/elibri_onix/onix_3_0/imprint.rb
186
- - lib/elibri_onix/onix_3_0/language.rb
187
- - lib/elibri_onix/onix_3_0/measure.rb
188
- - lib/elibri_onix/onix_3_0/onix_message.rb
189
- - lib/elibri_onix/onix_3_0/price.rb
190
- - lib/elibri_onix/onix_3_0/product.rb
191
- - lib/elibri_onix/onix_3_0/product_identifier.rb
192
- - lib/elibri_onix/onix_3_0/publisher.rb
193
- - lib/elibri_onix/onix_3_0/publishing_date.rb
194
- - lib/elibri_onix/onix_3_0/related_product.rb
195
- - lib/elibri_onix/onix_3_0/sales_restriction.rb
196
- - lib/elibri_onix/onix_3_0/sender.rb
197
- - lib/elibri_onix/onix_3_0/stock_quantity_coded.rb
198
- - lib/elibri_onix/onix_3_0/subject.rb
199
- - lib/elibri_onix/onix_3_0/supplier.rb
200
- - lib/elibri_onix/onix_3_0/supplier_identifier.rb
201
- - lib/elibri_onix/onix_3_0/supply_detail.rb
202
- - lib/elibri_onix/onix_3_0/supporting_resource.rb
203
- - lib/elibri_onix/onix_3_0/text_content.rb
204
- - lib/elibri_onix/onix_3_0/title_detail.rb
205
- - lib/elibri_onix/onix_3_0/title_element.rb
206
- - lib/elibri_onix/releases.rb
207
- - lib/elibri_onix/version.rb
208
- - test/elibri_audience_range_test.rb
209
- - test/elibri_categories_test.rb
210
- - test/elibri_contributors_test.rb
211
- - test/elibri_edition_test.rb
212
- - test/elibri_extensions_test.rb
213
- - test/elibri_extent_test.rb
214
- - test/elibri_languages_test.rb
215
- - test/elibri_measurement_test.rb
216
- - test/elibri_onix_release_3_0_onix_message_test.rb
217
- - test/elibri_onix_test.rb
218
- - test/elibri_product_form_test.rb
219
- - test/elibri_publisher_info_test.rb
220
- - test/elibri_publishing_status_test.rb
221
- - test/elibri_record_identifiers_test.rb
222
- - test/elibri_sale_restrictions_test.rb
223
- - test/elibri_series_memberships_test.rb
224
- - test/elibri_supporting_resources_test.rb
225
- - test/elibri_texts_test.rb
226
- - test/elibri_titles_test.rb
227
- - test/fixtures/all_possible_tags.xml
228
- - test/fixtures/old_dialect.xml
229
- - test/fixtures/onix_announced_product_example.xml
230
- - test/fixtures/onix_audience_range_example.xml
231
- - test/fixtures/onix_audiobook_extent_example.xml
232
- - test/fixtures/onix_categories_example.xml
233
- - test/fixtures/onix_collective_work_example.xml
234
- - test/fixtures/onix_contributors_example.xml
235
- - test/fixtures/onix_ebook_extent_example.xml
236
- - test/fixtures/onix_edition_example.xml
237
- - test/fixtures/onix_elibri_extensions_example.xml
238
- - test/fixtures/onix_languages_example.xml
239
- - test/fixtures/onix_measurement_example.xml
240
- - test/fixtures/onix_no_contributors_example.xml
241
- - test/fixtures/onix_out_of_print_product_example.xml
242
- - test/fixtures/onix_preorder_product_example.xml
243
- - test/fixtures/onix_product_form_example.xml
244
- - test/fixtures/onix_published_product_example.xml
245
- - test/fixtures/onix_publisher_info_example.xml
246
- - test/fixtures/onix_record_identifiers_example.xml
247
- - test/fixtures/onix_sale_restrictions_example.xml
248
- - test/fixtures/onix_series_memberships_example.xml
249
- - test/fixtures/onix_supporting_resources_example.xml
250
- - test/fixtures/onix_texts_example.xml
251
- - test/fixtures/onix_title_with_collection_example.xml
252
- - test/fixtures/onix_titles_example.xml
253
- - test/helper.rb
127
+ - .gitignore
128
+ - .travis.yml
129
+ - FIELDS.rdoc
130
+ - Gemfile
131
+ - Gemfile.lock
132
+ - LICENSE.txt
133
+ - README.rdoc
134
+ - Rakefile
135
+ - elibri_onix.gemspec
136
+ - generate.rb
137
+ - lib/elibri_onix.rb
138
+ - lib/elibri_onix/external_id.rb
139
+ - lib/elibri_onix/external_timestamp.rb
140
+ - lib/elibri_onix/inspector.rb
141
+ - lib/elibri_onix/nokogiri_patch.rb
142
+ - lib/elibri_onix/onix_3_0/audience_range.rb
143
+ - lib/elibri_onix/onix_3_0/collection.rb
144
+ - lib/elibri_onix/onix_3_0/contributor.rb
145
+ - lib/elibri_onix/onix_3_0/extent.rb
146
+ - lib/elibri_onix/onix_3_0/header.rb
147
+ - lib/elibri_onix/onix_3_0/imprint.rb
148
+ - lib/elibri_onix/onix_3_0/language.rb
149
+ - lib/elibri_onix/onix_3_0/measure.rb
150
+ - lib/elibri_onix/onix_3_0/onix_message.rb
151
+ - lib/elibri_onix/onix_3_0/price.rb
152
+ - lib/elibri_onix/onix_3_0/product.rb
153
+ - lib/elibri_onix/onix_3_0/product_identifier.rb
154
+ - lib/elibri_onix/onix_3_0/publisher.rb
155
+ - lib/elibri_onix/onix_3_0/publishing_date.rb
156
+ - lib/elibri_onix/onix_3_0/related_product.rb
157
+ - lib/elibri_onix/onix_3_0/sales_restriction.rb
158
+ - lib/elibri_onix/onix_3_0/sender.rb
159
+ - lib/elibri_onix/onix_3_0/stock_quantity_coded.rb
160
+ - lib/elibri_onix/onix_3_0/subject.rb
161
+ - lib/elibri_onix/onix_3_0/supplier.rb
162
+ - lib/elibri_onix/onix_3_0/supplier_identifier.rb
163
+ - lib/elibri_onix/onix_3_0/supply_detail.rb
164
+ - lib/elibri_onix/onix_3_0/supporting_resource.rb
165
+ - lib/elibri_onix/onix_3_0/text_content.rb
166
+ - lib/elibri_onix/onix_3_0/title_detail.rb
167
+ - lib/elibri_onix/onix_3_0/title_element.rb
168
+ - lib/elibri_onix/releases.rb
169
+ - lib/elibri_onix/version.rb
170
+ - test/elibri_audience_range_test.rb
171
+ - test/elibri_categories_test.rb
172
+ - test/elibri_contributors_test.rb
173
+ - test/elibri_edition_test.rb
174
+ - test/elibri_extensions_test.rb
175
+ - test/elibri_extent_test.rb
176
+ - test/elibri_languages_test.rb
177
+ - test/elibri_measurement_test.rb
178
+ - test/elibri_onix_release_3_0_onix_message_test.rb
179
+ - test/elibri_onix_test.rb
180
+ - test/elibri_product_form_test.rb
181
+ - test/elibri_publisher_info_test.rb
182
+ - test/elibri_publishing_status_test.rb
183
+ - test/elibri_record_identifiers_test.rb
184
+ - test/elibri_sale_restrictions_test.rb
185
+ - test/elibri_series_memberships_test.rb
186
+ - test/elibri_supporting_resources_test.rb
187
+ - test/elibri_texts_test.rb
188
+ - test/elibri_titles_test.rb
189
+ - test/fixtures/all_possible_tags.xml
190
+ - test/fixtures/old_dialect.xml
191
+ - test/fixtures/onix_announced_product_example.xml
192
+ - test/fixtures/onix_audience_range_example.xml
193
+ - test/fixtures/onix_audiobook_extent_example.xml
194
+ - test/fixtures/onix_categories_example.xml
195
+ - test/fixtures/onix_collective_work_example.xml
196
+ - test/fixtures/onix_contributors_example.xml
197
+ - test/fixtures/onix_ebook_extent_example.xml
198
+ - test/fixtures/onix_edition_example.xml
199
+ - test/fixtures/onix_elibri_extensions_example.xml
200
+ - test/fixtures/onix_languages_example.xml
201
+ - test/fixtures/onix_measurement_example.xml
202
+ - test/fixtures/onix_no_contributors_example.xml
203
+ - test/fixtures/onix_out_of_print_product_example.xml
204
+ - test/fixtures/onix_preorder_product_example.xml
205
+ - test/fixtures/onix_product_form_example.xml
206
+ - test/fixtures/onix_published_product_example.xml
207
+ - test/fixtures/onix_publisher_info_example.xml
208
+ - test/fixtures/onix_record_identifiers_example.xml
209
+ - test/fixtures/onix_sale_restrictions_example.xml
210
+ - test/fixtures/onix_series_memberships_example.xml
211
+ - test/fixtures/onix_supporting_resources_example.xml
212
+ - test/fixtures/onix_texts_example.xml
213
+ - test/fixtures/onix_title_with_collection_example.xml
214
+ - test/fixtures/onix_titles_example.xml
215
+ - test/helper.rb
216
+ has_rdoc: true
254
217
  homepage: http://github.com/elibri/elibri_onix
255
218
  licenses:
256
- - MIT
219
+ - MIT
257
220
  post_install_message:
258
221
  rdoc_options: []
259
222
 
260
223
  require_paths:
261
- - lib
224
+ - lib
262
225
  required_ruby_version: !ruby/object:Gem::Requirement
263
226
  none: false
264
227
  requirements:
265
- - - ">="
266
- - !ruby/object:Gem::Version
267
- hash: 3
268
- segments:
269
- - 0
270
- version: "0"
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: "0"
271
231
  required_rubygems_version: !ruby/object:Gem::Requirement
272
232
  none: false
273
233
  requirements:
274
- - - ">="
275
- - !ruby/object:Gem::Version
276
- hash: 3
277
- segments:
278
- - 0
279
- version: "0"
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: "0"
280
237
  requirements: []
281
238
 
282
239
  rubyforge_project:
283
- rubygems_version: 1.8.21
240
+ rubygems_version: 1.5.1
284
241
  signing_key:
285
242
  specification_version: 3
286
243
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system
287
244
  test_files:
288
- - test/elibri_audience_range_test.rb
289
- - test/elibri_categories_test.rb
290
- - test/elibri_contributors_test.rb
291
- - test/elibri_edition_test.rb
292
- - test/elibri_extensions_test.rb
293
- - test/elibri_extent_test.rb
294
- - test/elibri_languages_test.rb
295
- - test/elibri_measurement_test.rb
296
- - test/elibri_onix_release_3_0_onix_message_test.rb
297
- - test/elibri_onix_test.rb
298
- - test/elibri_product_form_test.rb
299
- - test/elibri_publisher_info_test.rb
300
- - test/elibri_publishing_status_test.rb
301
- - test/elibri_record_identifiers_test.rb
302
- - test/elibri_sale_restrictions_test.rb
303
- - test/elibri_series_memberships_test.rb
304
- - test/elibri_supporting_resources_test.rb
305
- - test/elibri_texts_test.rb
306
- - test/elibri_titles_test.rb
307
- - test/fixtures/all_possible_tags.xml
308
- - test/fixtures/old_dialect.xml
309
- - test/fixtures/onix_announced_product_example.xml
310
- - test/fixtures/onix_audience_range_example.xml
311
- - test/fixtures/onix_audiobook_extent_example.xml
312
- - test/fixtures/onix_categories_example.xml
313
- - test/fixtures/onix_collective_work_example.xml
314
- - test/fixtures/onix_contributors_example.xml
315
- - test/fixtures/onix_ebook_extent_example.xml
316
- - test/fixtures/onix_edition_example.xml
317
- - test/fixtures/onix_elibri_extensions_example.xml
318
- - test/fixtures/onix_languages_example.xml
319
- - test/fixtures/onix_measurement_example.xml
320
- - test/fixtures/onix_no_contributors_example.xml
321
- - test/fixtures/onix_out_of_print_product_example.xml
322
- - test/fixtures/onix_preorder_product_example.xml
323
- - test/fixtures/onix_product_form_example.xml
324
- - test/fixtures/onix_published_product_example.xml
325
- - test/fixtures/onix_publisher_info_example.xml
326
- - test/fixtures/onix_record_identifiers_example.xml
327
- - test/fixtures/onix_sale_restrictions_example.xml
328
- - test/fixtures/onix_series_memberships_example.xml
329
- - test/fixtures/onix_supporting_resources_example.xml
330
- - test/fixtures/onix_texts_example.xml
331
- - test/fixtures/onix_title_with_collection_example.xml
332
- - test/fixtures/onix_titles_example.xml
333
- - test/helper.rb
245
+ - test/elibri_audience_range_test.rb
246
+ - test/elibri_categories_test.rb
247
+ - test/elibri_contributors_test.rb
248
+ - test/elibri_edition_test.rb
249
+ - test/elibri_extensions_test.rb
250
+ - test/elibri_extent_test.rb
251
+ - test/elibri_languages_test.rb
252
+ - test/elibri_measurement_test.rb
253
+ - test/elibri_onix_release_3_0_onix_message_test.rb
254
+ - test/elibri_onix_test.rb
255
+ - test/elibri_product_form_test.rb
256
+ - test/elibri_publisher_info_test.rb
257
+ - test/elibri_publishing_status_test.rb
258
+ - test/elibri_record_identifiers_test.rb
259
+ - test/elibri_sale_restrictions_test.rb
260
+ - test/elibri_series_memberships_test.rb
261
+ - test/elibri_supporting_resources_test.rb
262
+ - test/elibri_texts_test.rb
263
+ - test/elibri_titles_test.rb
264
+ - test/fixtures/all_possible_tags.xml
265
+ - test/fixtures/old_dialect.xml
266
+ - test/fixtures/onix_announced_product_example.xml
267
+ - test/fixtures/onix_audience_range_example.xml
268
+ - test/fixtures/onix_audiobook_extent_example.xml
269
+ - test/fixtures/onix_categories_example.xml
270
+ - test/fixtures/onix_collective_work_example.xml
271
+ - test/fixtures/onix_contributors_example.xml
272
+ - test/fixtures/onix_ebook_extent_example.xml
273
+ - test/fixtures/onix_edition_example.xml
274
+ - test/fixtures/onix_elibri_extensions_example.xml
275
+ - test/fixtures/onix_languages_example.xml
276
+ - test/fixtures/onix_measurement_example.xml
277
+ - test/fixtures/onix_no_contributors_example.xml
278
+ - test/fixtures/onix_out_of_print_product_example.xml
279
+ - test/fixtures/onix_preorder_product_example.xml
280
+ - test/fixtures/onix_product_form_example.xml
281
+ - test/fixtures/onix_published_product_example.xml
282
+ - test/fixtures/onix_publisher_info_example.xml
283
+ - test/fixtures/onix_record_identifiers_example.xml
284
+ - test/fixtures/onix_sale_restrictions_example.xml
285
+ - test/fixtures/onix_series_memberships_example.xml
286
+ - test/fixtures/onix_supporting_resources_example.xml
287
+ - test/fixtures/onix_texts_example.xml
288
+ - test/fixtures/onix_title_with_collection_example.xml
289
+ - test/fixtures/onix_titles_example.xml
290
+ - test/helper.rb