relaton-bib 1.0.1 → 1.1.1
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.
- checksums.yaml +4 -4
- data/.gitmodules +0 -3
- data/grammars/basicdoc.rng +986 -0
- data/grammars/biblio.rng +1237 -0
- data/grammars/isodoc.rng +1504 -0
- data/grammars/reqt.rng +171 -0
- data/lib/relaton_bib.rb +7 -4
- data/lib/relaton_bib/bibliographic_item.rb +128 -26
- data/lib/relaton_bib/bibtex_parser.rb +22 -20
- data/lib/relaton_bib/copyright_association.rb +28 -9
- data/lib/relaton_bib/document_relation.rb +22 -10
- data/lib/relaton_bib/document_relation_collection.rb +5 -5
- data/lib/relaton_bib/document_status.rb +49 -10
- data/lib/relaton_bib/editorial_group.rb +27 -0
- data/lib/relaton_bib/formatted_string.rb +3 -3
- data/lib/relaton_bib/hash_converter.rb +96 -26
- data/lib/relaton_bib/ics.rb +26 -0
- data/lib/relaton_bib/localized_string.rb +33 -12
- data/lib/relaton_bib/structured_identifier.rb +141 -0
- data/lib/relaton_bib/technical_committee.rb +25 -0
- data/lib/relaton_bib/typed_title_string.rb +39 -9
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib/workgroup.rb +36 -0
- data/lib/relaton_bib/xml_parser.rb +85 -27
- data/relaton-bib.gemspec +3 -3
- metadata +25 -16
data/relaton-bib.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path("
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require "relaton_bib/version"
|
4
4
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
-
spec.files = Dir.chdir(File.expand_path(
|
18
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
19
19
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
end
|
21
21
|
spec.bindir = "exe"
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
25
25
|
|
26
|
+
spec.add_development_dependency "byebug"
|
26
27
|
spec.add_development_dependency "debase"
|
27
28
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
28
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -30,7 +31,6 @@ Gem::Specification.new do |spec|
|
|
30
31
|
spec.add_development_dependency "ruby-debug-ide"
|
31
32
|
spec.add_development_dependency "ruby-jing"
|
32
33
|
spec.add_development_dependency "simplecov"
|
33
|
-
spec.add_development_dependency "byebug"
|
34
34
|
|
35
35
|
spec.add_dependency "addressable"
|
36
36
|
spec.add_dependency "bibtex-ruby"
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: byebug
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: debase
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +122,6 @@ dependencies:
|
|
108
122
|
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: byebug
|
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
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: addressable
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,6 +201,10 @@ files:
|
|
201
201
|
- bin/rspec
|
202
202
|
- bin/setup
|
203
203
|
- docs/hash.adoc
|
204
|
+
- grammars/basicdoc.rng
|
205
|
+
- grammars/biblio.rng
|
206
|
+
- grammars/isodoc.rng
|
207
|
+
- grammars/reqt.rng
|
204
208
|
- lib/relaton_bib.rb
|
205
209
|
- lib/relaton_bib/bib_item_locality.rb
|
206
210
|
- lib/relaton_bib/biblio_note.rb
|
@@ -217,22 +221,27 @@ files:
|
|
217
221
|
- lib/relaton_bib/document_relation.rb
|
218
222
|
- lib/relaton_bib/document_relation_collection.rb
|
219
223
|
- lib/relaton_bib/document_status.rb
|
224
|
+
- lib/relaton_bib/editorial_group.rb
|
220
225
|
- lib/relaton_bib/formatted_ref.rb
|
221
226
|
- lib/relaton_bib/formatted_string.rb
|
222
227
|
- lib/relaton_bib/hash_converter.rb
|
223
228
|
- lib/relaton_bib/hit.rb
|
224
229
|
- lib/relaton_bib/hit_collection.rb
|
230
|
+
- lib/relaton_bib/ics.rb
|
225
231
|
- lib/relaton_bib/localized_string.rb
|
226
232
|
- lib/relaton_bib/medium.rb
|
227
233
|
- lib/relaton_bib/organization.rb
|
228
234
|
- lib/relaton_bib/person.rb
|
229
235
|
- lib/relaton_bib/place.rb
|
230
236
|
- lib/relaton_bib/series.rb
|
237
|
+
- lib/relaton_bib/structured_identifier.rb
|
238
|
+
- lib/relaton_bib/technical_committee.rb
|
231
239
|
- lib/relaton_bib/typed_title_string.rb
|
232
240
|
- lib/relaton_bib/typed_uri.rb
|
233
241
|
- lib/relaton_bib/validity.rb
|
234
242
|
- lib/relaton_bib/version.rb
|
235
243
|
- lib/relaton_bib/workers_pool.rb
|
244
|
+
- lib/relaton_bib/workgroup.rb
|
236
245
|
- lib/relaton_bib/xml_parser.rb
|
237
246
|
- relaton-bib.gemspec
|
238
247
|
homepage: https://github.com/relaton/relaton-bib
|