relaton-bipm 1.5.0 → 1.6.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +2 -0
- data/lib/relaton_bipm.rb +0 -1
- data/lib/relaton_bipm/bipm_bibliographic_item.rb +2 -2
- data/lib/relaton_bipm/version.rb +1 -1
- data/relaton_bipm.gemspec +1 -1
- metadata +6 -7
- data/lib/relaton_bipm/document_status.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38859e5abe95b6b72bc8cc3f287400d5ebb4449efde7fd2c246073b8c595e09d
|
4
|
+
data.tar.gz: 28af0afcccb28a9b33a19f6aed0ad5cd9d7e17776540608ee05315f36cdfa53b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e167723c316f4364d3b18db3681e819ecf8241bdb9e5b98c698c89d9ffafa50fbf6d5f20a255e3d66508b7f043c401b04dc92deb9a940cac1e144a8f519b82df
|
7
|
+
data.tar.gz: 7b168fe55b9ebef53e7f6298d388e186fee2cd5e2d8308946eea5e5af1e6ff0c549bb93a4ed259f70ddb3391dbf2ced343966112b5ffb1018db1034e3c7c6542
|
data/.github/workflows/macos.yml
CHANGED
@@ -26,6 +26,8 @@ jobs:
|
|
26
26
|
- name: Update gems
|
27
27
|
run: |
|
28
28
|
sudo gem install bundler --force
|
29
|
+
ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
|
30
|
+
ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
|
29
31
|
bundle install --jobs 4 --retry 3
|
30
32
|
- name: Run specs
|
31
33
|
run: |
|
data/lib/relaton_bipm.rb
CHANGED
@@ -5,7 +5,6 @@ require "relaton_bipm/structured_identifier"
|
|
5
5
|
require "relaton_bipm/bibliographic_date"
|
6
6
|
require "relaton_bipm/document_relation"
|
7
7
|
require "relaton_bipm/comment_periond"
|
8
|
-
require "relaton_bipm/document_status"
|
9
8
|
require "relaton_bipm/bipm_bibliographic_item"
|
10
9
|
require "relaton_bipm/bipm_bibliography"
|
11
10
|
require "relaton_bipm/hash_converter"
|
@@ -26,12 +26,12 @@ module RelatonBipm
|
|
26
26
|
# @param structuredidentifier [RelatonBipm::StructuredIdentifier]
|
27
27
|
def initialize(**args) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
28
28
|
if args[:docstatus] && !STATUSES.include?(args[:docstatus].stage)
|
29
|
-
warn "[relaton-bipm] Warning: invalid docstatus #{args[:docstatus]}. "\
|
29
|
+
warn "[relaton-bipm] Warning: invalid docstatus: #{args[:docstatus]}. "\
|
30
30
|
"It should be one of: #{STATUSES}"
|
31
31
|
end
|
32
32
|
|
33
33
|
if args[:si_aspect] && !SI_ASPECTS.include?(args[:si_aspect])
|
34
|
-
warn "[relaton-bipm] Warning: invalid si_aspect #{args[:si_aspect]}. "\
|
34
|
+
warn "[relaton-bipm] Warning: invalid si_aspect: #{args[:si_aspect]}. "\
|
35
35
|
"It should be one of: #{SI_ASPECTS}"
|
36
36
|
end
|
37
37
|
|
data/lib/relaton_bipm/version.rb
CHANGED
data/relaton_bipm.gemspec
CHANGED
@@ -43,5 +43,5 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
|
|
43
43
|
spec.add_development_dependency "vcr"
|
44
44
|
spec.add_development_dependency "webmock"
|
45
45
|
|
46
|
-
spec.add_dependency "relaton-bib", "~> 1.
|
46
|
+
spec.add_dependency "relaton-bib", "~> 1.6.pre"
|
47
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bipm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.pre1
|
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-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 1.
|
159
|
+
version: 1.6.pre
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 1.
|
166
|
+
version: 1.6.pre
|
167
167
|
description: 'RelatonBipm: retrieve BIPM Standards for bibliographic use using the
|
168
168
|
BibliographicItem model'
|
169
169
|
email:
|
@@ -196,7 +196,6 @@ files:
|
|
196
196
|
- lib/relaton_bipm/bipm_bibliography.rb
|
197
197
|
- lib/relaton_bipm/comment_periond.rb
|
198
198
|
- lib/relaton_bipm/document_relation.rb
|
199
|
-
- lib/relaton_bipm/document_status.rb
|
200
199
|
- lib/relaton_bipm/editorial_group.rb
|
201
200
|
- lib/relaton_bipm/hash_converter.rb
|
202
201
|
- lib/relaton_bipm/processor.rb
|
@@ -221,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
221
220
|
version: 2.4.0
|
222
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
222
|
requirements:
|
224
|
-
- - "
|
223
|
+
- - ">"
|
225
224
|
- !ruby/object:Gem::Version
|
226
|
-
version:
|
225
|
+
version: 1.3.1
|
227
226
|
requirements: []
|
228
227
|
rubygems_version: 3.0.6
|
229
228
|
signing_key:
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module RelatonBipm
|
4
|
-
# Document status.
|
5
|
-
class DocumentStatus
|
6
|
-
# @return [String]
|
7
|
-
attr_reader :status
|
8
|
-
|
9
|
-
# @param status [String]
|
10
|
-
def initialize(status)
|
11
|
-
@status = status
|
12
|
-
end
|
13
|
-
|
14
|
-
# @param [Nokogiri::XML::Builder]
|
15
|
-
def to_xml(builder)
|
16
|
-
builder.status status
|
17
|
-
end
|
18
|
-
|
19
|
-
# @return [String]
|
20
|
-
def to_hash
|
21
|
-
status
|
22
|
-
end
|
23
|
-
|
24
|
-
# @param prefix [String]
|
25
|
-
# @return [String]
|
26
|
-
def to_asciibib(prefix = "")
|
27
|
-
pref = prefix.empty? ? prefix : prefix + "."
|
28
|
-
"#{pref}docstatus:: #{status}\n"
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|