rbook-onix 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -1
- data/examples/header.xml +55 -0
- data/examples/message.rb +8 -0
- data/examples/stream_reader.rb +2 -1
- data/lib/rbook/onix.rb +1 -0
- data/lib/rbook/onix/contributor.rb +36 -38
- data/lib/rbook/onix/message.rb +68 -67
- data/lib/rbook/onix/product.rb +112 -108
- data/lib/rbook/onix/sales_restriction.rb +26 -31
- data/lib/rbook/onix/stream_reader.rb +32 -10
- data/lib/rbook/onix/supply_detail.rb +47 -51
- data/specs/contributor_with_data_spec.rb +13 -5
- data/specs/data/2_ids.xml +55 -0
- data/specs/data/leading_garbage.xml +70 -0
- data/specs/data/truncated.xml +80 -0
- data/specs/data/with_ampersands.xml +111 -0
- data/specs/message_class_spec.rb +10 -3
- data/specs/message_with_data_spec.rb +25 -4
- data/specs/product_class_spec.rb +10 -0
- data/specs/product_with_data_spec.rb +30 -9
- data/specs/sales_restriction_with_data_spec.rb +12 -5
- data/specs/stream_reader_spec.rb +57 -0
- data/specs/supply_detail_with_data_spec.rb +18 -9
- metadata +51 -27
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rbook-onix
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.6.0
|
7
|
+
date: 2007-11-23 00:00:00 +11:00
|
8
8
|
summary: A library for manipulating ONIX files
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -29,65 +29,71 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- James Healy
|
31
31
|
files:
|
32
|
+
- examples/header.xml
|
33
|
+
- examples/message.rb
|
32
34
|
- examples/stream_reader.rb
|
33
35
|
- lib/rbook
|
36
|
+
- lib/rbook/onix.rb
|
34
37
|
- lib/rbook/onix
|
38
|
+
- lib/rbook/onix/contributor.rb
|
39
|
+
- lib/rbook/onix/lists.rb
|
35
40
|
- lib/rbook/onix/lists
|
36
41
|
- lib/rbook/onix/lists/contributor_role.rb
|
37
42
|
- lib/rbook/onix/lists/product_form.rb
|
43
|
+
- lib/rbook/onix/message.rb
|
44
|
+
- lib/rbook/onix/product.rb
|
38
45
|
- lib/rbook/onix/sales_restriction.rb
|
39
46
|
- lib/rbook/onix/stream_reader.rb
|
40
|
-
- lib/rbook/onix/
|
47
|
+
- lib/rbook/onix/stream_writer.rb
|
41
48
|
- lib/rbook/onix/supply_detail.rb
|
42
|
-
- lib/rbook/onix/product.rb
|
43
|
-
- lib/rbook/onix/message.rb
|
44
49
|
- lib/rbook/onix/xchar.rb
|
45
|
-
-
|
46
|
-
-
|
47
|
-
- lib/rbook/onix.rb
|
50
|
+
- specs/contributor_class_spec.rb
|
51
|
+
- specs/contributor_with_data_spec.rb
|
48
52
|
- specs/data
|
49
|
-
- specs/data/
|
53
|
+
- specs/data/10_products.xml
|
54
|
+
- specs/data/2_products_utf16.xml
|
50
55
|
- specs/data/abingdon.xml
|
51
|
-
- specs/data/
|
52
|
-
- specs/data/single_product.xml
|
56
|
+
- specs/data/augsburg.xml
|
53
57
|
- specs/data/chalice.xml
|
54
|
-
- specs/data/not_xml.csv
|
55
|
-
- specs/data/10_products.xml
|
56
58
|
- specs/data/eerdsman.xml
|
57
|
-
- specs/data/
|
58
|
-
- specs/data/2_products_utf16.xml
|
59
|
+
- specs/data/invalid_no_product.xml
|
59
60
|
- specs/data/invalid_xml.xml
|
61
|
+
- specs/data/not_xml.csv
|
62
|
+
- specs/data/single_product.xml
|
63
|
+
- specs/data/truncated.xml
|
64
|
+
- specs/data/with_ampersands.xml
|
65
|
+
- specs/data/xml_not_onix.xml
|
66
|
+
- specs/data/2_ids.xml
|
67
|
+
- specs/data/leading_garbage.xml
|
60
68
|
- specs/message_class_spec.rb
|
61
|
-
- specs/
|
69
|
+
- specs/message_with_data_spec.rb
|
62
70
|
- specs/product_class_spec.rb
|
63
71
|
- specs/product_with_data_spec.rb
|
64
|
-
- specs/message_with_data_spec.rb
|
65
|
-
- specs/contributor_with_data_spec.rb
|
66
|
-
- specs/xchar_spec.rb
|
67
|
-
- specs/supply_detail_class_spec.rb
|
68
|
-
- specs/supply_detail_with_data_spec.rb
|
69
72
|
- specs/sales_restriction_class_spec.rb
|
70
73
|
- specs/sales_restriction_with_data_spec.rb
|
71
74
|
- specs/stream_reader_spec.rb
|
72
75
|
- specs/stream_writer_spec.rb
|
76
|
+
- specs/supply_detail_class_spec.rb
|
77
|
+
- specs/supply_detail_with_data_spec.rb
|
78
|
+
- specs/xchar_spec.rb
|
73
79
|
- Rakefile
|
74
80
|
- README
|
75
81
|
- COPYING
|
76
82
|
- LICENSE
|
77
83
|
test_files:
|
78
|
-
- specs/message_class_spec.rb
|
79
84
|
- specs/contributor_class_spec.rb
|
85
|
+
- specs/contributor_with_data_spec.rb
|
86
|
+
- specs/message_class_spec.rb
|
87
|
+
- specs/message_with_data_spec.rb
|
80
88
|
- specs/product_class_spec.rb
|
81
89
|
- specs/product_with_data_spec.rb
|
82
|
-
- specs/message_with_data_spec.rb
|
83
|
-
- specs/contributor_with_data_spec.rb
|
84
|
-
- specs/xchar_spec.rb
|
85
|
-
- specs/supply_detail_class_spec.rb
|
86
|
-
- specs/supply_detail_with_data_spec.rb
|
87
90
|
- specs/sales_restriction_class_spec.rb
|
88
91
|
- specs/sales_restriction_with_data_spec.rb
|
89
92
|
- specs/stream_reader_spec.rb
|
90
93
|
- specs/stream_writer_spec.rb
|
94
|
+
- specs/supply_detail_class_spec.rb
|
95
|
+
- specs/supply_detail_with_data_spec.rb
|
96
|
+
- specs/xchar_spec.rb
|
91
97
|
rdoc_options:
|
92
98
|
- --title
|
93
99
|
- onix Documentation
|
@@ -114,3 +120,21 @@ dependencies:
|
|
114
120
|
- !ruby/object:Gem::Version
|
115
121
|
version: "1.0"
|
116
122
|
version:
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: hpricot
|
125
|
+
version_requirement:
|
126
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: "0.6"
|
131
|
+
version:
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: builder
|
134
|
+
version_requirement:
|
135
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 2.1.2
|
140
|
+
version:
|