onix2 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +209 -0
- data/README.markdown +69 -0
- data/TODO +14 -0
- data/dtd/2.1r3/iso-amsa.ent +173 -0
- data/dtd/2.1r3/iso-amsb.ent +146 -0
- data/dtd/2.1r3/iso-amsc.ent +49 -0
- data/dtd/2.1r3/iso-amsn.ent +117 -0
- data/dtd/2.1r3/iso-amso.ent +77 -0
- data/dtd/2.1r3/iso-amsr.ent +205 -0
- data/dtd/2.1r3/iso-box.ent +67 -0
- data/dtd/2.1r3/iso-cyr1.ent +94 -0
- data/dtd/2.1r3/iso-cyr2.ent +53 -0
- data/dtd/2.1r3/iso-dia.ent +41 -0
- data/dtd/2.1r3/iso-grk3.ent +70 -0
- data/dtd/2.1r3/iso-lat1.ent +89 -0
- data/dtd/2.1r3/iso-lat2.ent +148 -0
- data/dtd/2.1r3/iso-mfrk.ent +79 -0
- data/dtd/2.1r3/iso-mopf.ent +53 -0
- data/dtd/2.1r3/iso-mscr.ent +79 -0
- data/dtd/2.1r3/iso-num.ent +103 -0
- data/dtd/2.1r3/iso-num.old.ent +103 -0
- data/dtd/2.1r3/iso-pub.ent +110 -0
- data/dtd/2.1r3/iso-tech.ent +183 -0
- data/dtd/2.1r3/onix-international.dtd +1012 -0
- data/dtd/2.1r3/onix-xhtml.elt +672 -0
- data/dtd/2.1r3/reference.elt +4758 -0
- data/dtd/2.1r3/xhtml-special.ent +79 -0
- data/dtd/2.1r3/xhtml-symbol.ent +242 -0
- data/lib/onix2.rb +85 -0
- data/lib/onix2/addressee_identifier.rb +29 -0
- data/lib/onix2/apa_product.rb +785 -0
- data/lib/onix2/audience_range.rb +37 -0
- data/lib/onix2/code_list_extractor.rb +69 -0
- data/lib/onix2/contributor.rb +55 -0
- data/lib/onix2/discount_coded.rb +29 -0
- data/lib/onix2/header.rb +68 -0
- data/lib/onix2/imprint.rb +31 -0
- data/lib/onix2/language.rb +29 -0
- data/lib/onix2/lists.rb +134 -0
- data/lib/onix2/market_representation.rb +38 -0
- data/lib/onix2/measure.rb +29 -0
- data/lib/onix2/media_file.rb +33 -0
- data/lib/onix2/other_text.rb +35 -0
- data/lib/onix2/price.rb +47 -0
- data/lib/onix2/product.rb +97 -0
- data/lib/onix2/product_identifier.rb +27 -0
- data/lib/onix2/publisher.rb +33 -0
- data/lib/onix2/reader.rb +157 -0
- data/lib/onix2/sales_restriction.rb +25 -0
- data/lib/onix2/sales_rights.rb +28 -0
- data/lib/onix2/sender_identifier.rb +29 -0
- data/lib/onix2/series.rb +28 -0
- data/lib/onix2/series_identifier.rb +27 -0
- data/lib/onix2/simple_product.rb +47 -0
- data/lib/onix2/stock.rb +29 -0
- data/lib/onix2/subject.rb +33 -0
- data/lib/onix2/supply_detail.rb +53 -0
- data/lib/onix2/title.rb +33 -0
- data/lib/onix2/version.rb +3 -0
- data/lib/onix2/website.rb +29 -0
- data/lib/onix2/writer.rb +86 -0
- data/spec/addressee_identifier_spec.rb +33 -0
- data/spec/apa_product_spec.rb +116 -0
- data/spec/audience_range_spec.rb +44 -0
- data/spec/contributor_spec.rb +38 -0
- data/spec/discount_coded_spec.rb +34 -0
- data/spec/header_spec.rb +153 -0
- data/spec/imprint_spec.rb +31 -0
- data/spec/language_spec.rb +38 -0
- data/spec/lists_spec.rb +33 -0
- data/spec/market_representation_spec.rb +33 -0
- data/spec/measure_spec.rb +38 -0
- data/spec/media_file_spec.rb +38 -0
- data/spec/other_text_spec.rb +33 -0
- data/spec/price_spec.rb +52 -0
- data/spec/product_identifier_spec.rb +34 -0
- data/spec/product_spec.rb +102 -0
- data/spec/publisher_spec.rb +33 -0
- data/spec/reader_spec.rb +155 -0
- data/spec/sales_restriction_spec.rb +27 -0
- data/spec/sender_identifier.rb +33 -0
- data/spec/series_identifier_spec.rb +33 -0
- data/spec/series_spec.rb +47 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/stock_spec.rb +39 -0
- data/spec/subject_spec.rb +34 -0
- data/spec/supply_detail_spec.rb +97 -0
- data/spec/title_spec.rb +38 -0
- data/spec/website_spec.rb +33 -0
- data/spec/writer_spec.rb +78 -0
- data/support/codes/001.tsv +10 -0
- data/support/codes/002.tsv +5 -0
- data/support/codes/003.tsv +7 -0
- data/support/codes/005.tsv +13 -0
- data/support/codes/006.tsv +76 -0
- data/support/codes/007.tsv +123 -0
- data/support/codes/008.tsv +7 -0
- data/support/codes/009.tsv +7 -0
- data/support/codes/010.tsv +34 -0
- data/support/codes/011.tsv +11 -0
- data/support/codes/012.tsv +11 -0
- data/support/codes/013.tsv +7 -0
- data/support/codes/014.tsv +4 -0
- data/support/codes/015.tsv +13 -0
- data/support/codes/016.tsv +6 -0
- data/support/codes/017.tsv +90 -0
- data/support/codes/018.tsv +3 -0
- data/support/codes/019.tsv +7 -0
- data/support/codes/020.tsv +0 -0
- data/support/codes/021.tsv +31 -0
- data/support/codes/022.tsv +9 -0
- data/support/codes/023.tsv +9 -0
- data/support/codes/024.tsv +11 -0
- data/support/codes/025.tsv +29 -0
- data/support/codes/026.tsv +75 -0
- data/support/codes/027.tsv +75 -0
- data/support/codes/028.tsv +8 -0
- data/support/codes/029.tsv +16 -0
- data/support/codes/030.tsv +15 -0
- data/support/codes/031.tsv +3 -0
- data/support/codes/032.tsv +2 -0
- data/support/codes/033.tsv +36 -0
- data/support/codes/034.tsv +14 -0
- data/support/codes/035.tsv +6 -0
- data/support/codes/036.tsv +3 -0
- data/support/codes/037.tsv +6 -0
- data/support/codes/038.tsv +36 -0
- data/support/codes/039.tsv +8 -0
- data/support/codes/040.tsv +6 -0
- data/support/codes/041.tsv +6 -0
- data/support/codes/042.tsv +16 -0
- data/support/codes/043.tsv +4 -0
- data/support/codes/044.tsv +13 -0
- data/support/codes/045.tsv +12 -0
- data/support/codes/046.tsv +3 -0
- data/support/codes/047.tsv +4 -0
- data/support/codes/048.tsv +11 -0
- data/support/codes/049.tsv +84 -0
- data/support/codes/050.tsv +8 -0
- data/support/codes/051.tsv +27 -0
- data/support/codes/052.tsv +1 -0
- data/support/codes/053.tsv +3 -0
- data/support/codes/054.tsv +23 -0
- data/support/codes/055.tsv +13 -0
- data/support/codes/056.tsv +2 -0
- data/support/codes/057.tsv +5 -0
- data/support/codes/058.tsv +21 -0
- data/support/codes/059.tsv +4 -0
- data/support/codes/060.tsv +2 -0
- data/support/codes/061.tsv +3 -0
- data/support/codes/062.tsv +5 -0
- data/support/codes/063.tsv +0 -0
- data/support/codes/064.tsv +13 -0
- data/support/codes/065.tsv +25 -0
- data/support/codes/066.tsv +4 -0
- data/support/codes/067.tsv +2 -0
- data/support/codes/068.tsv +15 -0
- data/support/codes/069.tsv +4 -0
- data/support/codes/070.tsv +2 -0
- data/support/codes/071.tsv +9 -0
- data/support/codes/072.tsv +7 -0
- data/support/codes/073.tsv +36 -0
- data/support/codes/074.tsv +489 -0
- data/support/codes/075.tsv +2 -0
- data/support/codes/076.tsv +12 -0
- data/support/codes/077.tsv +19 -0
- data/support/codes/078.tsv +148 -0
- data/support/codes/079.tsv +17 -0
- data/support/codes/080.tsv +19 -0
- data/support/codes/081.tsv +11 -0
- data/support/codes/082.tsv +17 -0
- data/support/codes/083.tsv +68 -0
- data/support/codes/084.tsv +10 -0
- data/support/codes/085.tsv +23 -0
- data/support/codes/086.tsv +5 -0
- data/support/codes/087.tsv +6 -0
- data/support/codes/088.tsv +0 -0
- data/support/codes/089.tsv +1 -0
- data/support/codes/090.tsv +11 -0
- data/support/codes/091.tsv +248 -0
- data/support/codes/092.tsv +7 -0
- data/support/codes/093.tsv +13 -0
- data/support/codes/094.tsv +3 -0
- data/support/codes/095.tsv +3 -0
- data/support/codes/096.tsv +185 -0
- data/support/codes/097.tsv +1 -0
- data/support/codes/098.tsv +21 -0
- data/support/codes/099.tsv +24 -0
- data/support/codes/100.tsv +4 -0
- data/support/codes/101.tsv +2 -0
- data/support/codes/102.tsv +3 -0
- data/support/codes/121.tsv +127 -0
- data/support/codes/138.tsv +6 -0
- data/support/codes/139.tsv +70 -0
- data/support/codes/140.tsv +7 -0
- data/support/codes/141.tsv +10 -0
- data/support/codes/142.tsv +12 -0
- data/support/codes/143.tsv +7 -0
- data/support/codes/144.tsv +4 -0
- data/support/codes/145.tsv +5 -0
- data/support/codes/146.tsv +3 -0
- data/support/codes/147.tsv +7 -0
- data/support/codes/148.tsv +3 -0
- data/support/codes/149.tsv +4 -0
- data/support/codes/150.tsv +124 -0
- data/support/codes/151.tsv +7 -0
- data/support/codes/152.tsv +2 -0
- data/support/codes/153.tsv +14 -0
- data/support/codes/154.tsv +9 -0
- data/support/codes/155.tsv +5 -0
- data/support/codes/156.tsv +4 -0
- data/support/codes/157.tsv +4 -0
- data/support/codes/158.tsv +24 -0
- data/support/codes/159.tsv +6 -0
- data/support/codes/160.tsv +0 -0
- data/support/codes/161.tsv +3 -0
- data/support/codes/162.tsv +3 -0
- data/support/codes/163.tsv +7 -0
- data/support/codes/164.tsv +2 -0
- data/support/codes/165.tsv +2 -0
- data/support/codes/166.tsv +2 -0
- data/support/codes/167.tsv +3 -0
- data/support/codes/168.tsv +2 -0
- data/support/codes/169.tsv +3 -0
- data/support/codes/170.tsv +0 -0
- data/support/codes/171.tsv +2 -0
- data/support/codes/172.tsv +1 -0
- data/support/codes/173.tsv +2 -0
- data/support/codes/174.tsv +2 -0
- data/support/codes/175.tsv +175 -0
- data/support/codes/176.tsv +12 -0
- data/support/codes/177.tsv +2 -0
- data/support/codes/178.tsv +17 -0
- data/support/entities.txt +1499 -0
- data/support/extract.rb +25 -0
- data/support/switch-onix-2.1-short-to-reference.xsl +24 -0
- data/support/switch-onix-tagnames-1.1.xsl +25 -0
- data/support/switch-onix-tagnames-2.0.xsl +37 -0
- metadata +440 -0
data/support/extract.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/usr/bin/env ruby1.9
|
2
|
+
|
3
|
+
#
|
4
|
+
# A small script to extract entities from the ONIX DTD
|
5
|
+
#
|
6
|
+
# USAGE: ./extract <dir>
|
7
|
+
#
|
8
|
+
# Where dir is a directory containing an ONIX 2.1r3 DTD.
|
9
|
+
#
|
10
|
+
|
11
|
+
unless File.directory?(ARGV.first)
|
12
|
+
$stderr.puts "directory doesn't exist"
|
13
|
+
exit(1)
|
14
|
+
end
|
15
|
+
|
16
|
+
Dir.entries(ARGV.first).each do |f|
|
17
|
+
next unless f[-4,4] == ".ent"
|
18
|
+
|
19
|
+
content = File.binread(ARGV.first + "/" + f)
|
20
|
+
content.scan(/ENTITY [a-zA-Z0-9]+.*"\&#x.+;/).each do |str|
|
21
|
+
m, name, numeric = *str.match(/ENTITY ([a-zA-Z0-9]+).*"\&([^;]+);/)
|
22
|
+
puts "#{name}:#{numeric}"
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
3
|
+
<xsl:variable name="target"><xsl:choose>
|
4
|
+
<xsl:when test="/ONIXMessage">short</xsl:when>
|
5
|
+
<xsl:otherwise>reference</xsl:otherwise>
|
6
|
+
</xsl:choose></xsl:variable>
|
7
|
+
<xsl:output method="xml" doctype-system="http://www.editeur.org/onix/2.1/reference/onix-international.dtd"/>
|
8
|
+
<xsl:template match="*">
|
9
|
+
<xsl:variable name="target-name">
|
10
|
+
<xsl:choose>
|
11
|
+
<xsl:when test="$target='short' and @shortname"><xsl:value-of select="@shortname"/></xsl:when>
|
12
|
+
<xsl:when test="$target='reference' and @refname"><xsl:value-of select="@refname"/></xsl:when>
|
13
|
+
<xsl:otherwise><xsl:value-of select="name()"/></xsl:otherwise>
|
14
|
+
</xsl:choose>
|
15
|
+
</xsl:variable>
|
16
|
+
<xsl:element name="{$target-name}">
|
17
|
+
<xsl:copy-of select="@*[not(name()='refname' or name()='shortname')]"/>
|
18
|
+
<xsl:apply-templates select="*|text()"/>
|
19
|
+
</xsl:element>
|
20
|
+
</xsl:template>
|
21
|
+
<xsl:template match="text()">
|
22
|
+
<xsl:copy/>
|
23
|
+
</xsl:template>
|
24
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
3
|
+
<xsl:variable name="release" select="/*/@release"/>
|
4
|
+
<xsl:variable name="target"><xsl:choose>
|
5
|
+
<xsl:when test="/ONIXMessage">short</xsl:when>
|
6
|
+
<xsl:otherwise>reference</xsl:otherwise>
|
7
|
+
</xsl:choose></xsl:variable>
|
8
|
+
<xsl:variable name="dtd-url">http://www.editeur.org/onix/<xsl:value-of select="$release"/>/<xsl:value-of select="$target"/>/onix-international.dtd</xsl:variable>
|
9
|
+
<xsl:output method="xml" doctype-system="{$dtd-url}"/>
|
10
|
+
<xsl:template match="*">
|
11
|
+
<xsl:variable name="target-name">
|
12
|
+
<xsl:choose>
|
13
|
+
<xsl:when test="$target='short'"><xsl:value-of select="@shortname"/></xsl:when>
|
14
|
+
<xsl:otherwise><xsl:value-of select="@refname"/></xsl:otherwise>
|
15
|
+
</xsl:choose>
|
16
|
+
</xsl:variable>
|
17
|
+
<xsl:element name="{$target-name}">
|
18
|
+
<xsl:copy-of select="@*[not(name()='refname' or name()='shortname')]"/>
|
19
|
+
<xsl:apply-templates select="*|text()"/>
|
20
|
+
</xsl:element>
|
21
|
+
</xsl:template>
|
22
|
+
<xsl:template match="text()">
|
23
|
+
<xsl:copy/>
|
24
|
+
</xsl:template>
|
25
|
+
</xsl:stylesheet>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
3
|
+
<xsl:param name="result-document" required="yes"/>
|
4
|
+
<xsl:variable name="release" select="/*/@release"/>
|
5
|
+
<xsl:variable name="target">
|
6
|
+
<xsl:choose>
|
7
|
+
<xsl:when test="/ONIXMessage">short</xsl:when>
|
8
|
+
<xsl:otherwise>reference</xsl:otherwise>
|
9
|
+
</xsl:choose>
|
10
|
+
</xsl:variable>
|
11
|
+
<xsl:variable name="dtd-url">http://www.editeur.org/onix/<xsl:value-of select="$release"/>/<xsl:value-of select="$target"/>/onix-international.dtd</xsl:variable>
|
12
|
+
<xsl:output method="xml"/>
|
13
|
+
<xsl:template match="/">
|
14
|
+
<xsl:result-document href="{$result-document}" method="xml" doctype-system="{$dtd-url}">
|
15
|
+
<xsl:apply-templates/>
|
16
|
+
</xsl:result-document>
|
17
|
+
</xsl:template>
|
18
|
+
<xsl:template match="*">
|
19
|
+
<xsl:variable name="target-name">
|
20
|
+
<xsl:choose>
|
21
|
+
<xsl:when test="$target='short'">
|
22
|
+
<xsl:value-of select="@shortname"/>
|
23
|
+
</xsl:when>
|
24
|
+
<xsl:otherwise>
|
25
|
+
<xsl:value-of select="@refname"/>
|
26
|
+
</xsl:otherwise>
|
27
|
+
</xsl:choose>
|
28
|
+
</xsl:variable>
|
29
|
+
<xsl:element name="{$target-name}">
|
30
|
+
<xsl:copy-of select="@*[not(name()='refname' or name()='shortname')]"/>
|
31
|
+
<xsl:apply-templates select="*|text()"/>
|
32
|
+
</xsl:element>
|
33
|
+
</xsl:template>
|
34
|
+
<xsl:template match="text()">
|
35
|
+
<xsl:copy/>
|
36
|
+
</xsl:template>
|
37
|
+
</xsl:stylesheet>
|
metadata
ADDED
@@ -0,0 +1,440 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: onix2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Evgeny Li
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.5
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.5
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.4'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.4'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: representable
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: virtus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.12'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.12'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec-given
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: A convient mapping between ruby objects and the ONIX 2.1 XML specification
|
140
|
+
email:
|
141
|
+
- exAspArk@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- CHANGELOG
|
147
|
+
- README.markdown
|
148
|
+
- TODO
|
149
|
+
- dtd/2.1r3/iso-amsa.ent
|
150
|
+
- dtd/2.1r3/iso-amsb.ent
|
151
|
+
- dtd/2.1r3/iso-amsc.ent
|
152
|
+
- dtd/2.1r3/iso-amsn.ent
|
153
|
+
- dtd/2.1r3/iso-amso.ent
|
154
|
+
- dtd/2.1r3/iso-amsr.ent
|
155
|
+
- dtd/2.1r3/iso-box.ent
|
156
|
+
- dtd/2.1r3/iso-cyr1.ent
|
157
|
+
- dtd/2.1r3/iso-cyr2.ent
|
158
|
+
- dtd/2.1r3/iso-dia.ent
|
159
|
+
- dtd/2.1r3/iso-grk3.ent
|
160
|
+
- dtd/2.1r3/iso-lat1.ent
|
161
|
+
- dtd/2.1r3/iso-lat2.ent
|
162
|
+
- dtd/2.1r3/iso-mfrk.ent
|
163
|
+
- dtd/2.1r3/iso-mopf.ent
|
164
|
+
- dtd/2.1r3/iso-mscr.ent
|
165
|
+
- dtd/2.1r3/iso-num.ent
|
166
|
+
- dtd/2.1r3/iso-num.old.ent
|
167
|
+
- dtd/2.1r3/iso-pub.ent
|
168
|
+
- dtd/2.1r3/iso-tech.ent
|
169
|
+
- dtd/2.1r3/onix-international.dtd
|
170
|
+
- dtd/2.1r3/onix-xhtml.elt
|
171
|
+
- dtd/2.1r3/reference.elt
|
172
|
+
- dtd/2.1r3/xhtml-special.ent
|
173
|
+
- dtd/2.1r3/xhtml-symbol.ent
|
174
|
+
- lib/onix2.rb
|
175
|
+
- lib/onix2/addressee_identifier.rb
|
176
|
+
- lib/onix2/apa_product.rb
|
177
|
+
- lib/onix2/audience_range.rb
|
178
|
+
- lib/onix2/code_list_extractor.rb
|
179
|
+
- lib/onix2/contributor.rb
|
180
|
+
- lib/onix2/discount_coded.rb
|
181
|
+
- lib/onix2/header.rb
|
182
|
+
- lib/onix2/imprint.rb
|
183
|
+
- lib/onix2/language.rb
|
184
|
+
- lib/onix2/lists.rb
|
185
|
+
- lib/onix2/market_representation.rb
|
186
|
+
- lib/onix2/measure.rb
|
187
|
+
- lib/onix2/media_file.rb
|
188
|
+
- lib/onix2/other_text.rb
|
189
|
+
- lib/onix2/price.rb
|
190
|
+
- lib/onix2/product.rb
|
191
|
+
- lib/onix2/product_identifier.rb
|
192
|
+
- lib/onix2/publisher.rb
|
193
|
+
- lib/onix2/reader.rb
|
194
|
+
- lib/onix2/sales_restriction.rb
|
195
|
+
- lib/onix2/sales_rights.rb
|
196
|
+
- lib/onix2/sender_identifier.rb
|
197
|
+
- lib/onix2/series.rb
|
198
|
+
- lib/onix2/series_identifier.rb
|
199
|
+
- lib/onix2/simple_product.rb
|
200
|
+
- lib/onix2/stock.rb
|
201
|
+
- lib/onix2/subject.rb
|
202
|
+
- lib/onix2/supply_detail.rb
|
203
|
+
- lib/onix2/title.rb
|
204
|
+
- lib/onix2/version.rb
|
205
|
+
- lib/onix2/website.rb
|
206
|
+
- lib/onix2/writer.rb
|
207
|
+
- spec/addressee_identifier_spec.rb
|
208
|
+
- spec/apa_product_spec.rb
|
209
|
+
- spec/audience_range_spec.rb
|
210
|
+
- spec/contributor_spec.rb
|
211
|
+
- spec/discount_coded_spec.rb
|
212
|
+
- spec/header_spec.rb
|
213
|
+
- spec/imprint_spec.rb
|
214
|
+
- spec/language_spec.rb
|
215
|
+
- spec/lists_spec.rb
|
216
|
+
- spec/market_representation_spec.rb
|
217
|
+
- spec/measure_spec.rb
|
218
|
+
- spec/media_file_spec.rb
|
219
|
+
- spec/other_text_spec.rb
|
220
|
+
- spec/price_spec.rb
|
221
|
+
- spec/product_identifier_spec.rb
|
222
|
+
- spec/product_spec.rb
|
223
|
+
- spec/publisher_spec.rb
|
224
|
+
- spec/reader_spec.rb
|
225
|
+
- spec/sales_restriction_spec.rb
|
226
|
+
- spec/sender_identifier.rb
|
227
|
+
- spec/series_identifier_spec.rb
|
228
|
+
- spec/series_spec.rb
|
229
|
+
- spec/spec_helper.rb
|
230
|
+
- spec/stock_spec.rb
|
231
|
+
- spec/subject_spec.rb
|
232
|
+
- spec/supply_detail_spec.rb
|
233
|
+
- spec/title_spec.rb
|
234
|
+
- spec/website_spec.rb
|
235
|
+
- spec/writer_spec.rb
|
236
|
+
- support/codes/001.tsv
|
237
|
+
- support/codes/002.tsv
|
238
|
+
- support/codes/003.tsv
|
239
|
+
- support/codes/005.tsv
|
240
|
+
- support/codes/006.tsv
|
241
|
+
- support/codes/007.tsv
|
242
|
+
- support/codes/008.tsv
|
243
|
+
- support/codes/009.tsv
|
244
|
+
- support/codes/010.tsv
|
245
|
+
- support/codes/011.tsv
|
246
|
+
- support/codes/012.tsv
|
247
|
+
- support/codes/013.tsv
|
248
|
+
- support/codes/014.tsv
|
249
|
+
- support/codes/015.tsv
|
250
|
+
- support/codes/016.tsv
|
251
|
+
- support/codes/017.tsv
|
252
|
+
- support/codes/018.tsv
|
253
|
+
- support/codes/019.tsv
|
254
|
+
- support/codes/020.tsv
|
255
|
+
- support/codes/021.tsv
|
256
|
+
- support/codes/022.tsv
|
257
|
+
- support/codes/023.tsv
|
258
|
+
- support/codes/024.tsv
|
259
|
+
- support/codes/025.tsv
|
260
|
+
- support/codes/026.tsv
|
261
|
+
- support/codes/027.tsv
|
262
|
+
- support/codes/028.tsv
|
263
|
+
- support/codes/029.tsv
|
264
|
+
- support/codes/030.tsv
|
265
|
+
- support/codes/031.tsv
|
266
|
+
- support/codes/032.tsv
|
267
|
+
- support/codes/033.tsv
|
268
|
+
- support/codes/034.tsv
|
269
|
+
- support/codes/035.tsv
|
270
|
+
- support/codes/036.tsv
|
271
|
+
- support/codes/037.tsv
|
272
|
+
- support/codes/038.tsv
|
273
|
+
- support/codes/039.tsv
|
274
|
+
- support/codes/040.tsv
|
275
|
+
- support/codes/041.tsv
|
276
|
+
- support/codes/042.tsv
|
277
|
+
- support/codes/043.tsv
|
278
|
+
- support/codes/044.tsv
|
279
|
+
- support/codes/045.tsv
|
280
|
+
- support/codes/046.tsv
|
281
|
+
- support/codes/047.tsv
|
282
|
+
- support/codes/048.tsv
|
283
|
+
- support/codes/049.tsv
|
284
|
+
- support/codes/050.tsv
|
285
|
+
- support/codes/051.tsv
|
286
|
+
- support/codes/052.tsv
|
287
|
+
- support/codes/053.tsv
|
288
|
+
- support/codes/054.tsv
|
289
|
+
- support/codes/055.tsv
|
290
|
+
- support/codes/056.tsv
|
291
|
+
- support/codes/057.tsv
|
292
|
+
- support/codes/058.tsv
|
293
|
+
- support/codes/059.tsv
|
294
|
+
- support/codes/060.tsv
|
295
|
+
- support/codes/061.tsv
|
296
|
+
- support/codes/062.tsv
|
297
|
+
- support/codes/063.tsv
|
298
|
+
- support/codes/064.tsv
|
299
|
+
- support/codes/065.tsv
|
300
|
+
- support/codes/066.tsv
|
301
|
+
- support/codes/067.tsv
|
302
|
+
- support/codes/068.tsv
|
303
|
+
- support/codes/069.tsv
|
304
|
+
- support/codes/070.tsv
|
305
|
+
- support/codes/071.tsv
|
306
|
+
- support/codes/072.tsv
|
307
|
+
- support/codes/073.tsv
|
308
|
+
- support/codes/074.tsv
|
309
|
+
- support/codes/075.tsv
|
310
|
+
- support/codes/076.tsv
|
311
|
+
- support/codes/077.tsv
|
312
|
+
- support/codes/078.tsv
|
313
|
+
- support/codes/079.tsv
|
314
|
+
- support/codes/080.tsv
|
315
|
+
- support/codes/081.tsv
|
316
|
+
- support/codes/082.tsv
|
317
|
+
- support/codes/083.tsv
|
318
|
+
- support/codes/084.tsv
|
319
|
+
- support/codes/085.tsv
|
320
|
+
- support/codes/086.tsv
|
321
|
+
- support/codes/087.tsv
|
322
|
+
- support/codes/088.tsv
|
323
|
+
- support/codes/089.tsv
|
324
|
+
- support/codes/090.tsv
|
325
|
+
- support/codes/091.tsv
|
326
|
+
- support/codes/092.tsv
|
327
|
+
- support/codes/093.tsv
|
328
|
+
- support/codes/094.tsv
|
329
|
+
- support/codes/095.tsv
|
330
|
+
- support/codes/096.tsv
|
331
|
+
- support/codes/097.tsv
|
332
|
+
- support/codes/098.tsv
|
333
|
+
- support/codes/099.tsv
|
334
|
+
- support/codes/100.tsv
|
335
|
+
- support/codes/101.tsv
|
336
|
+
- support/codes/102.tsv
|
337
|
+
- support/codes/121.tsv
|
338
|
+
- support/codes/138.tsv
|
339
|
+
- support/codes/139.tsv
|
340
|
+
- support/codes/140.tsv
|
341
|
+
- support/codes/141.tsv
|
342
|
+
- support/codes/142.tsv
|
343
|
+
- support/codes/143.tsv
|
344
|
+
- support/codes/144.tsv
|
345
|
+
- support/codes/145.tsv
|
346
|
+
- support/codes/146.tsv
|
347
|
+
- support/codes/147.tsv
|
348
|
+
- support/codes/148.tsv
|
349
|
+
- support/codes/149.tsv
|
350
|
+
- support/codes/150.tsv
|
351
|
+
- support/codes/151.tsv
|
352
|
+
- support/codes/152.tsv
|
353
|
+
- support/codes/153.tsv
|
354
|
+
- support/codes/154.tsv
|
355
|
+
- support/codes/155.tsv
|
356
|
+
- support/codes/156.tsv
|
357
|
+
- support/codes/157.tsv
|
358
|
+
- support/codes/158.tsv
|
359
|
+
- support/codes/159.tsv
|
360
|
+
- support/codes/160.tsv
|
361
|
+
- support/codes/161.tsv
|
362
|
+
- support/codes/162.tsv
|
363
|
+
- support/codes/163.tsv
|
364
|
+
- support/codes/164.tsv
|
365
|
+
- support/codes/165.tsv
|
366
|
+
- support/codes/166.tsv
|
367
|
+
- support/codes/167.tsv
|
368
|
+
- support/codes/168.tsv
|
369
|
+
- support/codes/169.tsv
|
370
|
+
- support/codes/170.tsv
|
371
|
+
- support/codes/171.tsv
|
372
|
+
- support/codes/172.tsv
|
373
|
+
- support/codes/173.tsv
|
374
|
+
- support/codes/174.tsv
|
375
|
+
- support/codes/175.tsv
|
376
|
+
- support/codes/176.tsv
|
377
|
+
- support/codes/177.tsv
|
378
|
+
- support/codes/178.tsv
|
379
|
+
- support/entities.txt
|
380
|
+
- support/extract.rb
|
381
|
+
- support/switch-onix-2.1-short-to-reference.xsl
|
382
|
+
- support/switch-onix-tagnames-1.1.xsl
|
383
|
+
- support/switch-onix-tagnames-2.0.xsl
|
384
|
+
homepage: http://github.com/exAspArk/onix2
|
385
|
+
licenses: []
|
386
|
+
metadata: {}
|
387
|
+
post_install_message:
|
388
|
+
rdoc_options:
|
389
|
+
- --title
|
390
|
+
- ONIX - Working with the ONIX XML spec
|
391
|
+
- --line-numbers
|
392
|
+
require_paths:
|
393
|
+
- lib
|
394
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
395
|
+
requirements:
|
396
|
+
- - ! '>='
|
397
|
+
- !ruby/object:Gem::Version
|
398
|
+
version: '1.9'
|
399
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
400
|
+
requirements:
|
401
|
+
- - ! '>='
|
402
|
+
- !ruby/object:Gem::Version
|
403
|
+
version: '0'
|
404
|
+
requirements: []
|
405
|
+
rubyforge_project:
|
406
|
+
rubygems_version: 2.2.2
|
407
|
+
signing_key:
|
408
|
+
specification_version: 4
|
409
|
+
summary: A convient mapping between ruby objects and the ONIX 2.1 XML specification
|
410
|
+
test_files:
|
411
|
+
- spec/addressee_identifier_spec.rb
|
412
|
+
- spec/apa_product_spec.rb
|
413
|
+
- spec/audience_range_spec.rb
|
414
|
+
- spec/contributor_spec.rb
|
415
|
+
- spec/discount_coded_spec.rb
|
416
|
+
- spec/header_spec.rb
|
417
|
+
- spec/imprint_spec.rb
|
418
|
+
- spec/language_spec.rb
|
419
|
+
- spec/lists_spec.rb
|
420
|
+
- spec/market_representation_spec.rb
|
421
|
+
- spec/measure_spec.rb
|
422
|
+
- spec/media_file_spec.rb
|
423
|
+
- spec/other_text_spec.rb
|
424
|
+
- spec/price_spec.rb
|
425
|
+
- spec/product_identifier_spec.rb
|
426
|
+
- spec/product_spec.rb
|
427
|
+
- spec/publisher_spec.rb
|
428
|
+
- spec/reader_spec.rb
|
429
|
+
- spec/sales_restriction_spec.rb
|
430
|
+
- spec/sender_identifier.rb
|
431
|
+
- spec/series_identifier_spec.rb
|
432
|
+
- spec/series_spec.rb
|
433
|
+
- spec/spec_helper.rb
|
434
|
+
- spec/stock_spec.rb
|
435
|
+
- spec/subject_spec.rb
|
436
|
+
- spec/supply_detail_spec.rb
|
437
|
+
- spec/title_spec.rb
|
438
|
+
- spec/website_spec.rb
|
439
|
+
- spec/writer_spec.rb
|
440
|
+
has_rdoc: true
|