relaton-bib 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +14 -4
- data/Gemfile.lock +9 -9
- data/lib/relaton_bib/bibliographic_item.rb +1 -1
- data/lib/relaton_bib/formatted_string.rb +2 -2
- data/lib/relaton_bib/localized_string.rb +1 -1
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib/xml_parser.rb +1 -1
- data/relaton-bib.gemspec +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c6818bbef8c9a0205b38a566df13f9429df3186c7fc9000820b23678491f2f2c
|
4
|
+
data.tar.gz: 695fe41e85cec267fe47faf8227ca48ecaae561e0e0c74f06bb4b4900d7148f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044f8730130ed7e06192acf26d6dab58bcd47c3a9b8c9cdb4602d813ce4759da5bafad8b2dc1ea150f63da72bb9c9988d6b83a6f56ef3b39bacd09dfb887fc98
|
7
|
+
data.tar.gz: 64fa2a7dee66702e0c1d6d2b1f50aa40ece33495de4986e7422515559cf3815884876f43b0e42c5c6cfc969d2014e20d695267df99386060c06f0c5ad23f9bdb
|
data/.travis.yml
CHANGED
@@ -1,7 +1,17 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
3
|
language: ruby
|
4
4
|
cache: bundler
|
5
|
+
os:
|
6
|
+
- linux
|
7
|
+
- osx
|
5
8
|
rvm:
|
6
|
-
|
7
|
-
|
9
|
+
- 2.5
|
10
|
+
- 2.4
|
11
|
+
- ruby-head
|
12
|
+
before_install:
|
13
|
+
- gem install bundler -v 2.0.1
|
14
|
+
- bundle update
|
15
|
+
matrix:
|
16
|
+
allow_failures:
|
17
|
+
- rvm: ruby-head
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-bib (0.
|
4
|
+
relaton-bib (0.2.0)
|
5
5
|
addressable
|
6
6
|
nokogiri (~> 1.8.4)
|
7
7
|
|
@@ -12,31 +12,31 @@ GEM
|
|
12
12
|
public_suffix (>= 2.0.2, < 4.0)
|
13
13
|
debase (0.2.2)
|
14
14
|
debase-ruby_core_source (>= 0.10.2)
|
15
|
-
debase-ruby_core_source (0.10.
|
15
|
+
debase-ruby_core_source (0.10.5)
|
16
16
|
diff-lcs (1.3)
|
17
|
-
docile (1.3.
|
17
|
+
docile (1.3.2)
|
18
18
|
equivalent-xml (0.6.0)
|
19
19
|
nokogiri (>= 1.4.3)
|
20
20
|
json (2.2.0)
|
21
21
|
mini_portile2 (2.3.0)
|
22
22
|
nokogiri (1.8.5)
|
23
23
|
mini_portile2 (~> 2.3.0)
|
24
|
-
public_suffix (3.0
|
24
|
+
public_suffix (3.1.0)
|
25
25
|
rake (10.5.0)
|
26
26
|
rspec (3.8.0)
|
27
27
|
rspec-core (~> 3.8.0)
|
28
28
|
rspec-expectations (~> 3.8.0)
|
29
29
|
rspec-mocks (~> 3.8.0)
|
30
|
-
rspec-core (3.8.
|
30
|
+
rspec-core (3.8.1)
|
31
31
|
rspec-support (~> 3.8.0)
|
32
|
-
rspec-expectations (3.8.
|
32
|
+
rspec-expectations (3.8.4)
|
33
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
34
|
rspec-support (~> 3.8.0)
|
35
|
-
rspec-mocks (3.8.
|
35
|
+
rspec-mocks (3.8.1)
|
36
36
|
diff-lcs (>= 1.2.0, < 2.0)
|
37
37
|
rspec-support (~> 3.8.0)
|
38
|
-
rspec-support (3.8.
|
39
|
-
ruby-debug-ide (0.
|
38
|
+
rspec-support (3.8.2)
|
39
|
+
ruby-debug-ide (0.7.0)
|
40
40
|
rake (>= 0.8.1)
|
41
41
|
simplecov (0.16.1)
|
42
42
|
docile (~> 1.1)
|
@@ -211,8 +211,8 @@ module RelatonBib
|
|
211
211
|
end
|
212
212
|
|
213
213
|
@docidentifier = args[:docid] || []
|
214
|
-
@id = args[:id] || makeid(nil, false)
|
215
214
|
@formattedref = args[:formattedref] if title.empty?
|
215
|
+
@id = args[:id] || makeid(nil, false)
|
216
216
|
@type = args[:type]
|
217
217
|
@docnumber = args[:docnumber]
|
218
218
|
@edition = args[:edition]
|
@@ -16,9 +16,9 @@ module RelatonBib
|
|
16
16
|
# @param language [String] language code Iso639
|
17
17
|
# @param script [String] script code Iso15924
|
18
18
|
# @param format [String] the content type
|
19
|
-
def initialize(content:, language: nil, script: nil, format:
|
19
|
+
def initialize(content:, language: nil, script: nil, format: "text/plain")
|
20
20
|
# if format && !FORMATS.include?(format)
|
21
|
-
|
21
|
+
# raise ArgumentError, %{Format "#{format}" is invalid.}
|
22
22
|
# end
|
23
23
|
|
24
24
|
super(content, language, script)
|
data/lib/relaton_bib/version.rb
CHANGED
data/relaton-bib.gemspec
CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.bindir = "exe"
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
24
25
|
|
25
26
|
spec.add_development_dependency "bundler", "~> 2.0"
|
26
27
|
spec.add_development_dependency "debase"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -193,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
193
|
requirements:
|
194
194
|
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
196
|
+
version: 2.4.0
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.6
|
204
|
+
rubygems_version: 2.7.6
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: 'RelatonBib: Ruby XMLDOC impementation.'
|