relaton-cie 1.14.1 → 1.16.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
  SHA256:
3
- metadata.gz: a55c7a70b3d2fe2a2300cf69bf6d1e000d684d9897106c1510c690fa598e994c
4
- data.tar.gz: 4d57b3900f4092e4a94553c6c285eaf606bdfc3366571e0605d90f7445d799b9
3
+ metadata.gz: 736da12c1c19f8a12b9dcf4b7ceed1fc8a2f30b25a43dc3ee745e6be4cb42f44
4
+ data.tar.gz: fb84d6dbeea2788218efe2f7f6ed003be5b077bf507a756d73367b16218219d9
5
5
  SHA512:
6
- metadata.gz: 59626d155d94bc7f8d128071b70c1eefa6efff43f580e080e5226645c9ca669352e6b2d5126604c3508f435068638306184aa6a4187a8b336fa07e6633d31eef
7
- data.tar.gz: 5fed598422fc98c9c458d6d46b0a987ba0cb40ea17f1681f527248f54c74ab955bd40895f80cf4eb036d587ab7c968d8f34197d29e15edca65465cb667978224
6
+ metadata.gz: 17c841542d8ee4922923d7e741ed7b1e8abacf52be55234c24ad859190c81155402f1cf561901f603210a0f5f5aaaf2998c8926a5e04db6b2d71496be5d1164f
7
+ data.tar.gz: cb10e7ede2db4f1dccc38e6ff13cfed5fa6876adae21e3e7602892c4a75c54aaf434d21f4f649d77dafc500c9eeb8921107c3be229321864c23ebfe05ea91475
@@ -7,7 +7,8 @@ on:
7
7
  inputs:
8
8
  next_version:
9
9
  description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
10
+ Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
11
+ Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
11
12
  required: true
12
13
  default: 'skip'
13
14
  repository_dispatch:
data/grammars/biblio.rng CHANGED
@@ -1283,7 +1283,7 @@
1283
1283
  <value>mergedInto</value>
1284
1284
  <value>splits</value>
1285
1285
  <value>splitInto</value>
1286
- <value>instance</value>
1286
+ <value>instanceOf</value>
1287
1287
  <value>hasInstance</value>
1288
1288
  <value>exemplarOf</value>
1289
1289
  <value>hasExemplar</value>
@@ -15,13 +15,13 @@ module RelatonCie
15
15
  # @param opts [Hash] not used
16
16
  # @return [RelatonCie::BibliographicItem] Relaton of reference
17
17
  def get(code, _year = nil, _opts = {})
18
- warn "[relaton-cie] (\"#{code}\") fetching..."
18
+ Util.warn "(#{code}) fetching..."
19
19
  result = search code
20
20
  if result
21
- warn "[relaton-cie] (\"#{code}\") found #{result.docidentifier.first.id}"
21
+ Util.warn "(#{code}) found `#{result.docidentifier.first.id}`"
22
22
  else
23
- warn "[relaton-cie] WARNING no match found online for #{code}. " \
24
- "The code must be exactly like it is on the standards website."
23
+ Util.warn "(#{code}) WARNING no match found online for `#{code}`. " \
24
+ "The code must be exactly like it is on the standards website."
25
25
  end
26
26
  result
27
27
  end
@@ -0,0 +1,10 @@
1
+ module RelatonCie
2
+ module Config
3
+ include RelatonBib::Config
4
+ end
5
+ extend Config
6
+
7
+ class Configuration < RelatonBib::Configuration
8
+ PROGNAME = "relaton-cie".freeze
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ module RelatonCie
2
+ module Util
3
+ extend RelatonBib::Util
4
+
5
+ def self.logger
6
+ RelatonCie.configuration.logger
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module RelatonCie
2
- VERSION = "1.14.1".freeze
2
+ VERSION = "1.16.1".freeze
3
3
  end
data/lib/relaton_cie.rb CHANGED
@@ -5,6 +5,8 @@ require "relaton/index"
5
5
  require "relaton_bib"
6
6
  # require "relaton_bib/name_parser"
7
7
  require "relaton_cie/version"
8
+ require "relaton_cie/config"
9
+ require "relaton_cie/util"
8
10
  require "relaton_cie/bibliographic_item"
9
11
  require "relaton_cie/cie_bibliography"
10
12
  require "relaton_cie/scrapper"
@@ -16,9 +18,9 @@ module RelatonCie
16
18
  # Returns hash of XML reammar
17
19
  # @return [String]
18
20
  def self.grammar_hash
19
- gem_path = File.expand_path "..", __dir__
20
- grammars_path = File.join gem_path, "grammars", "*"
21
- grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
22
- Digest::MD5.hexdigest grammars
21
+ # gem_path = File.expand_path "..", __dir__
22
+ # grammars_path = File.join gem_path, "grammars", "*"
23
+ # grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
24
+ Digest::MD5.hexdigest RelatonCie::VERSION + RelatonBib::VERSION # grammars
23
25
  end
24
26
  end
data/relaton_cie.gemspec CHANGED
@@ -7,11 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.email = ["open.source@ribose.com"]
8
8
 
9
9
  spec.summary = <<~DESCRIPTION
10
- RelatonEcma: retrieve CIE Standards for bibliographic use
10
+ RelatonEcma: retrieve CIE Standards for bibliographic use
11
11
  using the BibliographicItem model.
12
12
  DESCRIPTION
13
13
  spec.description = <<~DESCRIPTION
14
- RelatonEcma: retrieve CIE Standards for bibliographic use
14
+ RelatonEcma: retrieve CIE Standards for bibliographic use
15
15
  using the BibliographicItem model.
16
16
  DESCRIPTION
17
17
  spec.homepage = "https://github.com/metanorma/relaton-cie"
@@ -31,6 +31,6 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.add_dependency "mechanize", "~> 2.8.0"
33
33
  spec.add_dependency "parslet", "~> 2.0.0"
34
- spec.add_dependency "relaton-bib", "~> 1.14.0"
34
+ spec.add_dependency "relaton-bib", "~> 1.16.0"
35
35
  spec.add_dependency "relaton-index", "~> 0.2.0"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.16.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: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.14.0
47
+ version: 1.16.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.14.0
54
+ version: 1.16.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: relaton-index
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,9 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.2.0
69
- description: "RelatonEcma: retrieve CIE Standards for bibliographic use \nusing the
70
- BibliographicItem model.\n"
69
+ description: |
70
+ RelatonEcma: retrieve CIE Standards for bibliographic use
71
+ using the BibliographicItem model.
71
72
  email:
72
73
  - open.source@ribose.com
73
74
  executables: []
@@ -94,10 +95,12 @@ files:
94
95
  - lib/relaton_cie.rb
95
96
  - lib/relaton_cie/bibliographic_item.rb
96
97
  - lib/relaton_cie/cie_bibliography.rb
98
+ - lib/relaton_cie/config.rb
97
99
  - lib/relaton_cie/data_fetcher.rb
98
100
  - lib/relaton_cie/hash_converter.rb
99
101
  - lib/relaton_cie/processor.rb
100
102
  - lib/relaton_cie/scrapper.rb
103
+ - lib/relaton_cie/util.rb
101
104
  - lib/relaton_cie/version.rb
102
105
  - lib/relaton_cie/xml_parser.rb
103
106
  - relaton_cie.gemspec
@@ -124,6 +127,6 @@ requirements: []
124
127
  rubygems_version: 3.3.26
125
128
  signing_key:
126
129
  specification_version: 4
127
- summary: 'RelatonEcma: retrieve CIE Standards for bibliographic use using the BibliographicItem
130
+ summary: 'RelatonEcma: retrieve CIE Standards for bibliographic use using the BibliographicItem
128
131
  model.'
129
132
  test_files: []