elibri_onix 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.document +5 -0
  2. data/Gemfile +14 -0
  3. data/Gemfile.lock +48 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.rdoc +19 -0
  6. data/Rakefile +55 -0
  7. data/VERSION +1 -0
  8. data/elibri_onix.gemspec +104 -0
  9. data/lib/elibri_onix.rb +16 -0
  10. data/lib/elibri_onix/onix_3_0/audience_range.rb +20 -0
  11. data/lib/elibri_onix/onix_3_0/collection.rb +23 -0
  12. data/lib/elibri_onix/onix_3_0/contributor.rb +27 -0
  13. data/lib/elibri_onix/onix_3_0/extent.rb +18 -0
  14. data/lib/elibri_onix/onix_3_0/header.rb +18 -0
  15. data/lib/elibri_onix/onix_3_0/imprint.rb +18 -0
  16. data/lib/elibri_onix/onix_3_0/language.rb +19 -0
  17. data/lib/elibri_onix/onix_3_0/measure.rb +18 -0
  18. data/lib/elibri_onix/onix_3_0/onix_message.rb +18 -0
  19. data/lib/elibri_onix/onix_3_0/price.rb +40 -0
  20. data/lib/elibri_onix/onix_3_0/product.rb +144 -0
  21. data/lib/elibri_onix/onix_3_0/product_identifier.rb +17 -0
  22. data/lib/elibri_onix/onix_3_0/publisher.rb +20 -0
  23. data/lib/elibri_onix/onix_3_0/publishing_date.rb +21 -0
  24. data/lib/elibri_onix/onix_3_0/related_product.rb +35 -0
  25. data/lib/elibri_onix/onix_3_0/sales_restriction.rb +21 -0
  26. data/lib/elibri_onix/onix_3_0/sender.rb +17 -0
  27. data/lib/elibri_onix/onix_3_0/stock_quantity_coded.rb +21 -0
  28. data/lib/elibri_onix/onix_3_0/subject.rb +28 -0
  29. data/lib/elibri_onix/onix_3_0/supplier.rb +29 -0
  30. data/lib/elibri_onix/onix_3_0/supplier_identifier.rb +22 -0
  31. data/lib/elibri_onix/onix_3_0/supply_detail.rb +34 -0
  32. data/lib/elibri_onix/onix_3_0/supporting_resource.rb +25 -0
  33. data/lib/elibri_onix/onix_3_0/text_content.rb +21 -0
  34. data/lib/elibri_onix/onix_3_0/title_detail.rb +42 -0
  35. data/lib/elibri_onix/onix_3_0/title_element.rb +28 -0
  36. data/lib/elibri_onix/releases.rb +10 -0
  37. data/lib/elibri_onix/version.rb +13 -0
  38. data/test/elibri_onix_release_3_0_onix_message_test.rb +178 -0
  39. data/test/elibri_onix_test.rb +10 -0
  40. data/test/fixtures/all_possible_tags.xml +442 -0
  41. data/test/helper.rb +20 -0
  42. metadata +241 -0
@@ -0,0 +1,20 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'minitest/autorun'
12
+ require 'mocha'
13
+ require 'pry'
14
+
15
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
16
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
17
+ require 'elibri_onix'
18
+
19
+ class Test::Unit::TestCase
20
+ end
metadata ADDED
@@ -0,0 +1,241 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: elibri_onix
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Marcin Urbanski
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-10-06 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ type: :runtime
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 9
29
+ segments:
30
+ - 3
31
+ - 1
32
+ - 5
33
+ version: 3.1.5
34
+ name: roxml
35
+ version_requirements: *id001
36
+ prerelease: false
37
+ - !ruby/object:Gem::Dependency
38
+ type: :runtime
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ name: i18n
49
+ version_requirements: *id002
50
+ prerelease: false
51
+ - !ruby/object:Gem::Dependency
52
+ type: :runtime
53
+ requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ hash: 3
59
+ segments:
60
+ - 3
61
+ - 1
62
+ - 0
63
+ version: 3.1.0
64
+ name: activesupport
65
+ version_requirements: *id003
66
+ prerelease: false
67
+ - !ruby/object:Gem::Dependency
68
+ type: :development
69
+ requirement: &id004 !ruby/object:Gem::Requirement
70
+ none: false
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
77
+ version: "0"
78
+ name: pry
79
+ version_requirements: *id004
80
+ prerelease: false
81
+ - !ruby/object:Gem::Dependency
82
+ type: :development
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ name: mocha
93
+ version_requirements: *id005
94
+ prerelease: false
95
+ - !ruby/object:Gem::Dependency
96
+ type: :development
97
+ requirement: &id006 !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
106
+ name: minitest
107
+ version_requirements: *id006
108
+ prerelease: false
109
+ - !ruby/object:Gem::Dependency
110
+ type: :development
111
+ requirement: &id007 !ruby/object:Gem::Requirement
112
+ none: false
113
+ requirements:
114
+ - - ~>
115
+ - !ruby/object:Gem::Version
116
+ hash: 23
117
+ segments:
118
+ - 1
119
+ - 0
120
+ - 0
121
+ version: 1.0.0
122
+ name: bundler
123
+ version_requirements: *id007
124
+ prerelease: false
125
+ - !ruby/object:Gem::Dependency
126
+ type: :development
127
+ requirement: &id008 !ruby/object:Gem::Requirement
128
+ none: false
129
+ requirements:
130
+ - - ~>
131
+ - !ruby/object:Gem::Version
132
+ hash: 11
133
+ segments:
134
+ - 1
135
+ - 6
136
+ - 2
137
+ version: 1.6.2
138
+ name: jeweler
139
+ version_requirements: *id008
140
+ prerelease: false
141
+ - !ruby/object:Gem::Dependency
142
+ type: :development
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
+ name: rcov
153
+ version_requirements: *id009
154
+ prerelease: false
155
+ description: EDItEUR ONIX format subset implementation used in Elibri publication system
156
+ email: marcin@urbanski.vdl.pl
157
+ executables: []
158
+
159
+ extensions: []
160
+
161
+ extra_rdoc_files:
162
+ - LICENSE.txt
163
+ - README.rdoc
164
+ files:
165
+ - .document
166
+ - Gemfile
167
+ - Gemfile.lock
168
+ - LICENSE.txt
169
+ - README.rdoc
170
+ - Rakefile
171
+ - VERSION
172
+ - elibri_onix.gemspec
173
+ - lib/elibri_onix.rb
174
+ - lib/elibri_onix/onix_3_0/audience_range.rb
175
+ - lib/elibri_onix/onix_3_0/collection.rb
176
+ - lib/elibri_onix/onix_3_0/contributor.rb
177
+ - lib/elibri_onix/onix_3_0/extent.rb
178
+ - lib/elibri_onix/onix_3_0/header.rb
179
+ - lib/elibri_onix/onix_3_0/imprint.rb
180
+ - lib/elibri_onix/onix_3_0/language.rb
181
+ - lib/elibri_onix/onix_3_0/measure.rb
182
+ - lib/elibri_onix/onix_3_0/onix_message.rb
183
+ - lib/elibri_onix/onix_3_0/price.rb
184
+ - lib/elibri_onix/onix_3_0/product.rb
185
+ - lib/elibri_onix/onix_3_0/product_identifier.rb
186
+ - lib/elibri_onix/onix_3_0/publisher.rb
187
+ - lib/elibri_onix/onix_3_0/publishing_date.rb
188
+ - lib/elibri_onix/onix_3_0/related_product.rb
189
+ - lib/elibri_onix/onix_3_0/sales_restriction.rb
190
+ - lib/elibri_onix/onix_3_0/sender.rb
191
+ - lib/elibri_onix/onix_3_0/stock_quantity_coded.rb
192
+ - lib/elibri_onix/onix_3_0/subject.rb
193
+ - lib/elibri_onix/onix_3_0/supplier.rb
194
+ - lib/elibri_onix/onix_3_0/supplier_identifier.rb
195
+ - lib/elibri_onix/onix_3_0/supply_detail.rb
196
+ - lib/elibri_onix/onix_3_0/supporting_resource.rb
197
+ - lib/elibri_onix/onix_3_0/text_content.rb
198
+ - lib/elibri_onix/onix_3_0/title_detail.rb
199
+ - lib/elibri_onix/onix_3_0/title_element.rb
200
+ - lib/elibri_onix/releases.rb
201
+ - lib/elibri_onix/version.rb
202
+ - test/elibri_onix_release_3_0_onix_message_test.rb
203
+ - test/elibri_onix_test.rb
204
+ - test/fixtures/all_possible_tags.xml
205
+ - test/helper.rb
206
+ has_rdoc: true
207
+ homepage: http://github.com/elibri/elibri_onix
208
+ licenses:
209
+ - MIT
210
+ post_install_message:
211
+ rdoc_options: []
212
+
213
+ require_paths:
214
+ - lib
215
+ required_ruby_version: !ruby/object:Gem::Requirement
216
+ none: false
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ hash: 3
221
+ segments:
222
+ - 0
223
+ version: "0"
224
+ required_rubygems_version: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ hash: 3
230
+ segments:
231
+ - 0
232
+ version: "0"
233
+ requirements: []
234
+
235
+ rubyforge_project:
236
+ rubygems_version: 1.6.2
237
+ signing_key:
238
+ specification_version: 3
239
+ summary: EDItEUR ONIX format subset implementation used in Elibri publication system
240
+ test_files: []
241
+