elibri_onix 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b90e51ac6e2a3a1b2a091d68440962cfdb1a9a57
4
- data.tar.gz: 946e311eee00c536b311bf632e315770c15803f6
3
+ metadata.gz: 4d1ab3e6a1bbef702f224046eb3d62013d683313
4
+ data.tar.gz: 212b84f9f6d1714292ff5383863000fc55820a58
5
5
  SHA512:
6
- metadata.gz: e5b50b3e65d3cb714d8a3aa6ff171a8e061d5ca680490ebce62de16180c247356da5eb7e52b6a9ad95b0b59bd1acaa7c42be57b074476be35952cfcd830d3b5a
7
- data.tar.gz: 09c902f6ea80389d660600cc03a5bbd4a12040f6eb297adbb804b8e0fd8cffbbfe58fcb9d0b8a394bba883ecda909d39b15cee2f65ec008203bb0ad658ff5123
6
+ metadata.gz: e16483c3bbe9aee6736f8ee66101ebffbe4f4b7d8120f9b738a684cf7ea12204aca32c679ec40c51ce3fec855774d1646b514456eba8351e804b881954639927
7
+ data.tar.gz: 350921ba16cdc78e560c2591306399c447ae897fad633f2735a26dc3dc0c172dab2102f12db0d805d63a7a2889b2470cfe43be269a02b2c7186573dfc8772015
@@ -17,12 +17,24 @@ number, role, person_name, from_language, titles_before_names, names_before_key,
17
17
  === Relations
18
18
  inspect_include_fields
19
19
 
20
+ == ExcerptInfo
21
+ === Attributes
22
+ file_type, file_size, md5, updated_at, link
23
+ === Relations
24
+ inspect_include_fields
25
+
20
26
  == Extent
21
27
  === Attributes
22
28
  type, value, unit, type_name, unit_name
23
29
  === Relations
24
30
  inspect_include_fields
25
31
 
32
+ == FileInfo
33
+ === Attributes
34
+ file_type, file_size, md5, updated_at
35
+ === Relations
36
+ inspect_include_fields
37
+
26
38
  == Header
27
39
  === Attributes
28
40
  sent_date_time, sender
@@ -58,7 +70,7 @@ type, minimum_order_quantity, amount, currency_code, printed_on_product, positio
58
70
 
59
71
  == Product
60
72
  === Attributes
61
- elibri_dialect, height, width, thickness, weight, ean, isbn13, number_of_pages, duration, file_size, publisher_name, publisher_id, imprint_name, current_state, reading_age_from, reading_age_to, table_of_contents, description, reviews, excerpts, series, title, subtitle, collection_title, collection_part, full_title, original_title, trade_title, parsed_publishing_date, record_reference, deletion_text, cover_type, cover_price, vat, pkwiu, pdw_exclusiveness, product_composition, product_form, imprint, publisher, product_form, no_contributor, edition_statement, number_of_illustrations, publishing_status, publishing_date, premiere, front_cover, series_names, elibri_product_category1_id, elibri_product_category2_id, preview_exists, short_description, additional_info
73
+ elibri_dialect, height, width, thickness, weight, ean, isbn13, number_of_pages, duration, file_size, publisher_name, publisher_id, imprint_name, current_state, reading_age_from, reading_age_to, table_of_contents, description, reviews, excerpts, series, title, subtitle, collection_title, collection_part, full_title, original_title, trade_title, parsed_publishing_date, record_reference, deletion_text, cover_type, cover_price, vat, pkwiu, additional_info, product_composition, publisher, product_form, no_contributor, edition_statement, number_of_illustrations, publishing_status, publishing_date, premiere, front_cover, series_names, city_of_publication, elibri_product_category1_id, elibri_product_category2_id, preview_exists, short_description, sale_restricted_to_poland, technical_protection_onix_code, unlimited_licence, hyphenated_isbn, preorder_embargo_date
62
74
  === Relations
63
75
  contributors, related_products, languages, measures, supply_details, measures, title_details, collections, extents, subjects, audience_ranges, text_contents, supporting_resources, sales_restrictions, authors, ghostwriters, scenarists, originators, illustrators, photographers, author_of_prefaces, drawers, cover_designers, inked_or_colored_bys, editors, revisors, translators, editor_in_chiefs, read_bys
64
76
 
@@ -70,7 +82,7 @@ inspect_include_fields
70
82
 
71
83
  == Publisher
72
84
  === Attributes
73
- role, name, id
85
+ role, name, eid
74
86
 
75
87
 
76
88
  == PublishingDate
@@ -80,7 +92,7 @@ role, format, date, parsed
80
92
 
81
93
  == RelatedProduct
82
94
  === Attributes
83
- relation_code, isbn13, proprietary_identifiers, record_reference
95
+ relation_code, proprietary_identifiers, record_reference
84
96
  === Relations
85
97
  identifiers
86
98
 
@@ -2,16 +2,16 @@ module Nokogiri
2
2
  module XML
3
3
  class Node
4
4
  alias_method :orig_xpath, :xpath
5
-
6
- def xpath *paths
5
+
6
+ def xpath(*paths)
7
7
  unless Nokogiri.uses_libxml?
8
8
  paths.each do |path|
9
9
  path.gsub!(/xmlns:/, ' :') if path.is_a?(String)
10
10
  end
11
11
  end
12
- orig_xpath *paths
12
+ orig_xpath(*paths)
13
13
  end
14
-
14
+
15
15
  end
16
16
  end
17
- end
17
+ end
@@ -2,28 +2,28 @@
2
2
  module Elibri
3
3
  module ONIX
4
4
  module Release_3_0
5
-
5
+
6
6
  #klasa abstahuje parsowanie wymiarów książki.
7
7
  class Measure
8
-
8
+
9
9
  include HashId
10
-
10
+
11
11
  ATTRIBUTES = [
12
12
  :type, :measurement, :unit, :type_name
13
13
  ]
14
-
14
+
15
15
  RELATIONS = [
16
16
  :inspect_include_fields
17
17
  ]
18
-
19
- attr_accessor :type, :measurement, :unit, :type_name, :to_xml
20
-
18
+
19
+ attr_accessor :type, :measurement, :unit, :to_xml
20
+
21
21
  def initialize(data)
22
22
  @to_xml = data.to_s
23
23
  @type = data.at_xpath('xmlns:MeasureType').try(:text)
24
24
  @measurement = data.at_xpath('xmlns:Measurement').try(:text).try(:to_i)
25
25
  @unit = data.at_xpath('xmlns:MeasureUnitCode').try(:text)
26
-
26
+
27
27
  end
28
28
 
29
29
  def type_name
@@ -37,7 +37,7 @@ module Elibri
37
37
  # def eid
38
38
  # @type.to_i
39
39
  # end
40
-
40
+
41
41
  def id
42
42
  Kernel.warn "[DEPRECATION] `id` is deprecated. Please use `eid` instead."
43
43
  eid
@@ -15,7 +15,7 @@ module Elibri
15
15
  :file_size, :publisher_name, :publisher_id, :imprint_name, :current_state, :reading_age_from, :reading_age_to,
16
16
  :table_of_contents, :description, :reviews, :excerpts, :series, :title, :subtitle, :collection_title,
17
17
  :collection_part, :full_title, :original_title, :trade_title, :parsed_publishing_date, :record_reference,
18
- :deletion_text, :cover_type, :cover_price, :vat, :pkwiu, :product_composition,
18
+ :deletion_text, :cover_type, :cover_price, :vat, :pkwiu, :additional_info, :product_composition,
19
19
  :publisher, :product_form, :no_contributor, :edition_statement, :number_of_illustrations, :publishing_status,
20
20
  :publishing_date, :premiere, :front_cover, :series_names, :city_of_publication,
21
21
  :elibri_product_category1_id, :elibri_product_category2_id, :preview_exists, :short_description, :sale_restricted_to_poland,
@@ -211,7 +211,6 @@ module Elibri
211
211
  attr_reader :audience_ranges
212
212
  attr_reader :supply_details
213
213
  attr_reader :identifiers
214
- attr_reader :no_contributor
215
214
  attr_reader :supporting_resources
216
215
  attr_reader :sales_restrictions
217
216
  attr_reader :publishing_date
@@ -397,11 +396,6 @@ module Elibri
397
396
  end
398
397
  end
399
398
 
400
- #czy istnieje podgląd?
401
- def preview_exists?
402
- @preview_exists
403
- end
404
-
405
399
  #okładka ksiązki, instance SupportingResource
406
400
  def front_cover
407
401
  @supporting_resources.find { |resource| resource.content_type_name == "front_cover" }
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.4.0"
5
+ VERSION = "0.4.1"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
@@ -10,14 +10,13 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
10
10
  assert product.unnamed_persons?
11
11
 
12
12
  cont1 = product.contributors[0]
13
- cont2 = product.contributors[1]
14
13
 
15
14
  # assert_equal "contributorid:255", cont1.id_before_type_cast
16
15
  assert_nil cont1.eid
17
16
  assert_nil cont1.datestamp_before_type_cast
18
17
 
19
18
  assert_equal "author", cont1.role_name
20
- assert_equal nil, cont1.person_name
19
+ assert_nil cont1.person_name
21
20
  assert_equal ["praca zbiorowa"], product.authors
22
21
  assert !cont1.biographical_note.present?
23
22
 
@@ -4,8 +4,8 @@ require 'helper'
4
4
  describe Elibri::ONIX do
5
5
 
6
6
  it "should be able to establish its version" do
7
- assert_match /\d+\.\d+\.\d+/, Elibri::ONIX::VERSION
8
- assert_match /\d+\.\d+\.\d+/, Elibri::ONIX::Version
7
+ assert_match %r{\d+\.\d+\.\d+}, Elibri::ONIX::VERSION
8
+ assert_match %r{\d+\.\d+\.\d+}, Elibri::ONIX::Version
9
9
  end
10
10
 
11
11
  end
@@ -9,7 +9,7 @@ rescue Bundler::BundlerError => e
9
9
  $stderr.puts "Run `bundle install` to install missing gems"
10
10
  exit e.status_code
11
11
  end
12
- require 'test/unit'
12
+
13
13
  require 'minitest/autorun'
14
14
  require 'mocha'
15
15
  require 'pry'
@@ -19,9 +19,6 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
19
19
  $LOAD_PATH.unshift(File.dirname(__FILE__))
20
20
  require 'elibri_onix'
21
21
 
22
- class Test::Unit::TestCase
23
- end
24
-
25
22
  def load_fixture(filename, idx = 0)
26
23
  xml_string = File.read File.join(File.dirname(__FILE__), "..", "test", "fixtures", filename)
27
24
  onix = Elibri::ONIX::Release_3_0::ONIXMessage.new(xml_string)
metadata CHANGED
@@ -1,158 +1,163 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Urbanski
8
8
  - Piotr Szmielew
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-18 00:00:00.000000000 Z
12
+ date: 2017-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - ">="
19
18
  - !ruby/object:Gem::Version
20
19
  version: 2.3.5
21
- type: :runtime
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5'
23
+ name: activesupport
22
24
  prerelease: false
25
+ type: :runtime
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: 2.3.5
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5'
28
34
  - !ruby/object:Gem::Dependency
29
- name: nokogiri
30
35
  requirement: !ruby/object:Gem::Requirement
31
36
  requirements:
32
- - - ">="
37
+ - - "~>"
33
38
  - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :runtime
39
+ version: '1.4'
40
+ name: nokogiri
36
41
  prerelease: false
42
+ type: :runtime
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
- - - ">="
45
+ - - "~>"
40
46
  - !ruby/object:Gem::Version
41
- version: '0'
47
+ version: '1.4'
42
48
  - !ruby/object:Gem::Dependency
43
- name: i18n
44
49
  requirement: !ruby/object:Gem::Requirement
45
50
  requirements:
46
51
  - - ">="
47
52
  - !ruby/object:Gem::Version
48
53
  version: '0'
49
- type: :runtime
54
+ name: i18n
50
55
  prerelease: false
56
+ type: :runtime
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
55
61
  version: '0'
56
62
  - !ruby/object:Gem::Dependency
57
- name: elibri_onix_dict
58
63
  requirement: !ruby/object:Gem::Requirement
59
64
  requirements:
60
65
  - - ">="
61
66
  - !ruby/object:Gem::Version
62
67
  version: 0.0.5
63
- type: :runtime
68
+ name: elibri_onix_dict
64
69
  prerelease: false
70
+ type: :runtime
65
71
  version_requirements: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - ">="
68
74
  - !ruby/object:Gem::Version
69
75
  version: 0.0.5
70
76
  - !ruby/object:Gem::Dependency
71
- name: pry
72
77
  requirement: !ruby/object:Gem::Requirement
73
78
  requirements:
74
79
  - - ">="
75
80
  - !ruby/object:Gem::Version
76
81
  version: '0'
77
- type: :development
82
+ name: pry
78
83
  prerelease: false
84
+ type: :development
79
85
  version_requirements: !ruby/object:Gem::Requirement
80
86
  requirements:
81
87
  - - ">="
82
88
  - !ruby/object:Gem::Version
83
89
  version: '0'
84
90
  - !ruby/object:Gem::Dependency
85
- name: mocha
86
91
  requirement: !ruby/object:Gem::Requirement
87
92
  requirements:
88
93
  - - ">="
89
94
  - !ruby/object:Gem::Version
90
95
  version: '0'
91
- type: :development
96
+ name: mocha
92
97
  prerelease: false
98
+ type: :development
93
99
  version_requirements: !ruby/object:Gem::Requirement
94
100
  requirements:
95
101
  - - ">="
96
102
  - !ruby/object:Gem::Version
97
103
  version: '0'
98
104
  - !ruby/object:Gem::Dependency
99
- name: minitest
100
105
  requirement: !ruby/object:Gem::Requirement
101
106
  requirements:
102
107
  - - ">="
103
108
  - !ruby/object:Gem::Version
104
109
  version: '0'
105
- type: :development
110
+ name: minitest
106
111
  prerelease: false
112
+ type: :development
107
113
  version_requirements: !ruby/object:Gem::Requirement
108
114
  requirements:
109
115
  - - ">="
110
116
  - !ruby/object:Gem::Version
111
117
  version: '0'
112
118
  - !ruby/object:Gem::Dependency
113
- name: bundler
114
119
  requirement: !ruby/object:Gem::Requirement
115
120
  requirements:
116
- - - ">="
121
+ - - "~>"
117
122
  - !ruby/object:Gem::Version
118
- version: 1.0.0
119
- type: :development
123
+ version: '1.7'
124
+ name: bundler
120
125
  prerelease: false
126
+ type: :development
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
- - - ">="
129
+ - - "~>"
124
130
  - !ruby/object:Gem::Version
125
- version: 1.0.0
131
+ version: '1.7'
126
132
  - !ruby/object:Gem::Dependency
127
- name: rake
128
133
  requirement: !ruby/object:Gem::Requirement
129
134
  requirements:
130
135
  - - ">="
131
136
  - !ruby/object:Gem::Version
132
137
  version: '0'
133
- type: :development
138
+ name: rake
134
139
  prerelease: false
140
+ type: :development
135
141
  version_requirements: !ruby/object:Gem::Requirement
136
142
  requirements:
137
143
  - - ">="
138
144
  - !ruby/object:Gem::Version
139
145
  version: '0'
140
146
  - !ruby/object:Gem::Dependency
141
- name: rdoc
142
147
  requirement: !ruby/object:Gem::Requirement
143
148
  requirements:
144
149
  - - ">="
145
150
  - !ruby/object:Gem::Version
146
151
  version: '0'
147
- type: :development
152
+ name: rdoc
148
153
  prerelease: false
154
+ type: :development
149
155
  version_requirements: !ruby/object:Gem::Requirement
150
156
  requirements:
151
157
  - - ">="
152
158
  - !ruby/object:Gem::Version
153
159
  version: '0'
154
- description: EDItEUR ONIX format subset implementation used in Elibri publication
155
- system
160
+ description: EDItEUR ONIX format subset implementation used in Elibri publication system
156
161
  email:
157
162
  - marcin@urbanski.vdl.pl
158
163
  - p.szmielew@ava.waw.pl
@@ -163,15 +168,10 @@ extra_rdoc_files:
163
168
  - README.rdoc
164
169
  - FIELDS.rdoc
165
170
  files:
166
- - ".gitignore"
167
- - ".travis.yml"
168
171
  - FIELDS.rdoc
169
- - Gemfile
170
172
  - LICENSE.txt
171
173
  - README.rdoc
172
174
  - Rakefile
173
- - elibri_onix.gemspec
174
- - generate.rb
175
175
  - lib/elibri_onix.rb
176
176
  - lib/elibri_onix/external_id.rb
177
177
  - lib/elibri_onix/external_timestamp.rb
@@ -270,7 +270,7 @@ homepage: http://github.com/elibri/elibri_onix
270
270
  licenses:
271
271
  - MIT
272
272
  metadata: {}
273
- post_install_message:
273
+ post_install_message:
274
274
  rdoc_options: []
275
275
  require_paths:
276
276
  - lib
@@ -285,67 +285,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubyforge_project:
288
+ rubyforge_project:
289
289
  rubygems_version: 2.4.8
290
- signing_key:
290
+ signing_key:
291
291
  specification_version: 4
292
292
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system
293
- test_files:
294
- - test/elibri_audience_range_test.rb
295
- - test/elibri_categories_test.rb
296
- - test/elibri_contributors_test.rb
297
- - test/elibri_ebook_files_test.rb
298
- - test/elibri_edition_test.rb
299
- - test/elibri_extensions_test.rb
300
- - test/elibri_extent_test.rb
301
- - test/elibri_formats_and_protection_test.rb
302
- - test/elibri_group_contributor_test.rb
303
- - test/elibri_languages_test.rb
304
- - test/elibri_licence_information_test.rb
305
- - test/elibri_measurement_test.rb
306
- - test/elibri_onix_release_3_0_onix_message_test.rb
307
- - test/elibri_onix_test.rb
308
- - test/elibri_product_form_test.rb
309
- - test/elibri_publisher_info_test.rb
310
- - test/elibri_publishing_status_test.rb
311
- - test/elibri_record_identifiers_test.rb
312
- - test/elibri_related_products_test.rb
313
- - test/elibri_sale_restrictions_test.rb
314
- - test/elibri_series_memberships_test.rb
315
- - test/elibri_supporting_resources_test.rb
316
- - test/elibri_territorial_rights_test.rb
317
- - test/elibri_texts_test.rb
318
- - test/elibri_titles_test.rb
319
- - test/fixtures/all_possible_tags.xml
320
- - test/fixtures/old_dialect.xml
321
- - test/fixtures/onix_announced_product_example.xml
322
- - test/fixtures/onix_audience_range_example.xml
323
- - test/fixtures/onix_audiobook_extent_example.xml
324
- - test/fixtures/onix_categories_example.xml
325
- - test/fixtures/onix_collective_work_example.xml
326
- - test/fixtures/onix_contributors_example.xml
327
- - test/fixtures/onix_ebook_extent_example.xml
328
- - test/fixtures/onix_ebook_with_files_example.xml
329
- - test/fixtures/onix_edition_example.xml
330
- - test/fixtures/onix_elibri_extensions_example.xml
331
- - test/fixtures/onix_epub_details_example.xml
332
- - test/fixtures/onix_languages_example.xml
333
- - test/fixtures/onix_measurement_example.xml
334
- - test/fixtures/onix_no_contributors_example.xml
335
- - test/fixtures/onix_out_of_print_product_example.xml
336
- - test/fixtures/onix_preorder_product_example.xml
337
- - test/fixtures/onix_product_form_example.xml
338
- - test/fixtures/onix_published_group_product_example.xml
339
- - test/fixtures/onix_published_product_example.xml
340
- - test/fixtures/onix_publisher_info_example.xml
341
- - test/fixtures/onix_record_identifiers_example.xml
342
- - test/fixtures/onix_related_products_example.xml
343
- - test/fixtures/onix_sale_restrictions_example.xml
344
- - test/fixtures/onix_series_memberships_example.xml
345
- - test/fixtures/onix_supporting_resources_example.xml
346
- - test/fixtures/onix_territorial_rights_example.xml
347
- - test/fixtures/onix_texts_example.xml
348
- - test/fixtures/onix_title_with_collection_example.xml
349
- - test/fixtures/onix_titles_example.xml
350
- - test/fixtures/onix_unlimited_book_sample_example.xml
351
- - test/helper.rb
293
+ test_files: []
data/.gitignore DELETED
@@ -1,52 +0,0 @@
1
- /Gemfile.lock
2
- # rcov generated
3
- coverage
4
-
5
- # rdoc generated
6
- rdoc
7
-
8
- # yard generated
9
- doc
10
- .yardoc
11
-
12
- # bundler
13
- .bundle
14
-
15
- # jeweler generated
16
- pkg
17
-
18
- # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
- #
20
- # * Create a file at ~/.gitignore
21
- # * Include files you want ignored
22
- # * Run: git config --global core.excludesfile ~/.gitignore
23
- #
24
- # After doing this, these files will be ignored in all your git projects,
25
- # saving you from having to 'pollute' every project you touch with them
26
- #
27
- # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
- #
29
- # For MacOS:
30
- #
31
- #.DS_Store
32
-
33
- # For TextMate
34
- #*.tmproj
35
- #tmtags
36
-
37
- # For emacs:
38
- #*~
39
- #\#*
40
- #.\#*
41
-
42
- # For vim:
43
- #*.swp
44
-
45
- # For redcar:
46
- #.redcar
47
-
48
- # For rubinius:
49
- #*.rbc
50
-
51
- tests.watchr
52
- .rake_tasks~
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.1.5
4
- - jruby-19mode
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in elibri_onix.gemspec
4
- gemspec
5
- # gem 'ruby-debug'
@@ -1,40 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/elibri_onix/version', __FILE__)
3
-
4
- Gem::Specification.new do |gem|
5
- gem.authors = ["Marcin Urbanski", "Piotr Szmielew"]
6
- gem.email = ["marcin@urbanski.vdl.pl", "p.szmielew@ava.waw.pl"]
7
- gem.description = %q{EDItEUR ONIX format subset implementation used in Elibri publication system}
8
- gem.summary = %q{EDItEUR ONIX format subset implementation used in Elibri publication system}
9
- gem.homepage = "http://github.com/elibri/elibri_onix"
10
-
11
- gem.licenses = ["MIT"]
12
-
13
- gem.files = `git ls-files`.split($\)
14
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
- gem.name = "elibri_onix"
17
- gem.require_paths = ["lib"]
18
- gem.version = Elibri::ONIX::VERSION
19
-
20
- gem.extra_rdoc_files = [
21
- "LICENSE.txt",
22
- "README.rdoc",
23
- "FIELDS.rdoc"
24
- ]
25
-
26
- gem.add_runtime_dependency 'activesupport', '>= 2.3.5'
27
- gem.add_runtime_dependency 'nokogiri'
28
- gem.add_runtime_dependency 'i18n'
29
- gem.add_runtime_dependency 'elibri_onix_dict', '>= 0.0.5'
30
-
31
- gem.add_development_dependency "pry"
32
- gem.add_development_dependency "mocha"
33
- gem.add_development_dependency "minitest", ">= 0"
34
- gem.add_development_dependency "bundler", ">= 1.0.0"
35
- gem.add_development_dependency "rake"
36
- gem.add_development_dependency "rdoc"
37
- #gem.add_development_dependency "ruby-debug"
38
- #gem.add_development_dependency "rcov", ">= 0"
39
-
40
- end
@@ -1,13 +0,0 @@
1
- require 'rubygems'
2
- require 'lib/elibri_onix'
3
-
4
- File.open("FIELDS.rdoc", 'w') do |f|
5
- f.write("= List of attributes in Elibri_Onix classes\n\n")
6
- Elibri::ONIX::Release_3_0.constants.sort.each do |submodule|
7
- f.write("== #{submodule}\n")
8
- f.write "=== Attributes\n" + "Elibri::ONIX::Release_3_0::#{submodule}".constantize::ATTRIBUTES.join(", ")
9
- f.write "\n"
10
- f.write "=== Relations\n" + "Elibri::ONIX::Release_3_0::#{submodule}".constantize::RELATIONS.join(", ") unless "Elibri::ONIX::Release_3_0::#{submodule}".constantize::RELATIONS.empty?
11
- f.write "\n\n"
12
- end
13
- end