relaton-ecma 1.14.1 → 1.14.3

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: 5bc67bcba0ff063e94f85b12e208b74231c8ffd77736a047e910797eb1da211c
4
- data.tar.gz: 34396c96fdf0d4b8d8d1f1cff04f72f135a103f3a830f6784521ff46f5e24367
3
+ metadata.gz: 355c4680079e9d9fb205ae1fe1cc426728017f12626731a54b8eafc29ee9e058
4
+ data.tar.gz: 4e289a1a46651d8cce4032d4f80f85a7422210d631c8633ce01fde008a53e98e
5
5
  SHA512:
6
- metadata.gz: 83fde052717c206e86a00e893581538878f03ae25a06c24f9288d8adbc69c92ec4e3a1003b39ff7e8a834be4360e7a81eb802e42924c7d14c178a18c39f013c1
7
- data.tar.gz: e4adc23d844076f2c555b677db11a2e799041ae5b9fc3ec43f7fac51fd583db964bef5cf874dc656fd5c5b3d23151bb60752f3f270f7d631f62ce3b05412cbdc
6
+ metadata.gz: 286412c6cf8fd5fff1ff6050f887b018746b448d0e3ed6342af7a21e94ece2d08d2e3b6fb8674bb8812442ad9eb3e4626950b2007cb8f7157ff91e8e491997ba
7
+ data.tar.gz: 7f9a10cc5f80cc4151512fc70b206e72d3e1d4f83ec6ab636975dde118c1f99705ebdc9dd1aac4bfa47294e11e6a26a4d520c79e6881bec21ab0e071b7c98dca
@@ -5,6 +5,7 @@ name: rake
5
5
  on:
6
6
  push:
7
7
  branches: [ master, main ]
8
+ tags: [ v* ]
8
9
  pull_request:
9
10
 
10
11
  jobs:
@@ -10,8 +10,9 @@ on:
10
10
  Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
11
  required: true
12
12
  default: 'skip'
13
- push:
14
- tags: [ v* ]
13
+ repository_dispatch:
14
+ types: [ do-release ]
15
+
15
16
 
16
17
  jobs:
17
18
  release:
data/.gitignore CHANGED
@@ -6,6 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /vendor/
9
10
 
10
11
  # rspec failure tracking
11
12
  .rspec_status
data/.rubocop.yml CHANGED
@@ -7,6 +7,6 @@ require: rubocop-rails
7
7
  inherit_from:
8
8
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
9
9
  AllCops:
10
- TargetRubyVersion: 2.5
10
+ TargetRubyVersion: 2.7
11
11
  Rails:
12
12
  Enabled: false
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ gemspec
6
6
  gem "rake", "~> 13.0"
7
7
  gem "rspec", "~> 3.0"
8
8
 
9
+ gem "equivalent-xml", "~> 0.6"
9
10
  gem "pry-byebug"
10
11
  gem "ruby-jing"
11
12
  gem "simplecov"
data/README.adoc CHANGED
@@ -32,12 +32,15 @@ Or install it yourself as:
32
32
  === Fetch documents
33
33
 
34
34
  Documents can be fetched by reference. The structure of the reference depends on the type of the document. There are three types of documents:
35
+
35
36
  - ECMA standards
36
37
  - ECMA technical reports
37
38
  - ECMA mementos
38
39
 
39
40
  ECMA standards have the following reference structure: `ECMA-{NUMBER}[ ed{EDITION}][ vol{VOLUME}]`. Where: `NUMBER` is a number of the standard, `EDITION` is an edition of the standard, and `VOLUME` is a volume of the standard. The `EDITION` and `VOLUME` are optional. If `EDITION` is not specified, the latest edition of the standard will be fetched. If `VOLUME` is not specified, the first volume of the standard will be fetched. +
41
+
40
42
  ECMA technical reports have the following reference structure: `ECMA TR/{NUMBER}[ ed{EDITION}]`. Where: `NUMBER` is a number of the technical report, and `EDITION` is an edition of the technical report. The `EDITION` is optional. If `EDITION` is not specified, the latest edition of the technical report will be fetched. +
43
+
41
44
  ECMA mementos have the following reference structure: `ECMA MEM/{YEAR}`. Where: `YEAR` is an year of the memento.
42
45
 
43
46
  [source,ruby]
@@ -47,5 +47,12 @@ module RelatonEcma
47
47
  def grammar_hash
48
48
  @grammar_hash ||= ::RelatonEcma.grammar_hash
49
49
  end
50
+
51
+ #
52
+ # Remove index file
53
+ #
54
+ def remove_index_file
55
+ Relaton::Index.find_or_create(:ECMA, url: true).remove_file
56
+ end
50
57
  end
51
58
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonEcma
2
- VERSION = "1.14.1".freeze
2
+ VERSION = "1.14.3".freeze
3
3
  end
data/relaton_ecma.gemspec CHANGED
@@ -6,15 +6,15 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
6
6
  spec.authors = ["Ribose Inc."]
7
7
  spec.email = ["open.source@ribose.com"]
8
8
 
9
- spec.summary = "RelatonIetf: retrieve ECMA Standards for bibliographic use "\
10
- "using the BibliographicItem model"
9
+ spec.summary = "RelatonIetf: retrieve ECMA Standards for bibliographic " \
10
+ "use using the BibliographicItem model"
11
11
  spec.description = <<~DESCRIPTION
12
- RelatonEcma: retrieve ECMA Standards for bibliographic use
12
+ RelatonEcma: retrieve ECMA Standards for bibliographic use
13
13
  using the BibliographicItem model.
14
14
  DESCRIPTION
15
15
  spec.homepage = "https://github.com/metanorma/relaton-ecma"
16
16
  spec.license = "BSD-2-Clause"
17
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
17
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
18
18
 
19
19
  spec.metadata["homepage_uri"] = spec.homepage
20
20
 
@@ -27,10 +27,7 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_development_dependency "equivalent-xml", "~> 0.6"
31
- spec.add_development_dependency "rake", "~> 10.0"
32
-
33
- spec.add_dependency "mechanize", "~> 2.7"
30
+ spec.add_dependency "mechanize", "~> 2.8.0"
34
31
  spec.add_dependency "relaton-bib", "~> 1.14.0"
35
- spec.add_dependency "relaton-index", "~> 0.1.6"
32
+ spec.add_dependency "relaton-index", "~> 0.2.0"
36
33
  end
metadata CHANGED
@@ -1,57 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ecma
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-27 00:00:00.000000000 Z
11
+ date: 2023-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: equivalent-xml
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.6'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '0.6'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: mechanize
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: '2.7'
19
+ version: 2.8.0
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: '2.7'
26
+ version: 2.8.0
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: relaton-bib
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -72,16 +44,17 @@ dependencies:
72
44
  requirements:
73
45
  - - "~>"
74
46
  - !ruby/object:Gem::Version
75
- version: 0.1.6
47
+ version: 0.2.0
76
48
  type: :runtime
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
52
  - - "~>"
81
53
  - !ruby/object:Gem::Version
82
- version: 0.1.6
83
- description: "RelatonEcma: retrieve ECMA Standards for bibliographic use \nusing the
84
- BibliographicItem model.\n"
54
+ version: 0.2.0
55
+ description: |
56
+ RelatonEcma: retrieve ECMA Standards for bibliographic use
57
+ using the BibliographicItem model.
85
58
  email:
86
59
  - open.source@ribose.com
87
60
  executables: []
@@ -119,7 +92,7 @@ licenses:
119
92
  - BSD-2-Clause
120
93
  metadata:
121
94
  homepage_uri: https://github.com/metanorma/relaton-ecma
122
- post_install_message:
95
+ post_install_message:
123
96
  rdoc_options: []
124
97
  require_paths:
125
98
  - lib
@@ -127,15 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
100
  requirements:
128
101
  - - ">="
129
102
  - !ruby/object:Gem::Version
130
- version: 2.5.0
103
+ version: 2.7.0
131
104
  required_rubygems_version: !ruby/object:Gem::Requirement
132
105
  requirements:
133
106
  - - ">="
134
107
  - !ruby/object:Gem::Version
135
108
  version: '0'
136
109
  requirements: []
137
- rubygems_version: 3.4.9
138
- signing_key:
110
+ rubygems_version: 3.3.26
111
+ signing_key:
139
112
  specification_version: 4
140
113
  summary: 'RelatonIetf: retrieve ECMA Standards for bibliographic use using the BibliographicItem
141
114
  model'