termium 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yaml +21 -0
- data/lib/termium/entry_term.rb +7 -1
- data/lib/termium/version.rb +1 -1
- data/termium.gemspec +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b855f913eef90fa77b61f7d6c0be26b202c4cfc140bc92d9b5ad81bc5b35a15
|
4
|
+
data.tar.gz: 25b5dbfbc1854402fdd909f40692b1170b27626b42eba0fcad9b1486c9d8ca4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e7ffe3b5666f22dcd10884b174257f72c21959858695419e86bb8cfea9965857ceea92474f395264e8e3c2e23a31e0d96b7c476c1412050732c85507f5103df
|
7
|
+
data.tar.gz: a32cd300c99f24a8a88d6f7acfef6f3e4e1b7b892fa7db4ff48fe5d945fb666cf011f77a567ee537349ee09055e6441f2d7906cc90294a5850c0d567efe1c7da
|
@@ -0,0 +1,21 @@
|
|
1
|
+
name: release
|
2
|
+
|
3
|
+
on:
|
4
|
+
workflow_dispatch:
|
5
|
+
inputs:
|
6
|
+
next_version:
|
7
|
+
description: |
|
8
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
9
|
+
required: true
|
10
|
+
default: 'skip'
|
11
|
+
repository_dispatch:
|
12
|
+
types: [ do-release ]
|
13
|
+
|
14
|
+
jobs:
|
15
|
+
release:
|
16
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
17
|
+
with:
|
18
|
+
next_version: ${{ github.event.inputs.next_version }}
|
19
|
+
secrets:
|
20
|
+
rubygems-api-key: ${{ secrets.GLOSSARIST_CI_RUBYGEMS_API_KEY }}
|
21
|
+
pat_token: ${{ secrets.GLOSSARIST_CI_PAT_TOKEN }}
|
data/lib/termium/entry_term.rb
CHANGED
@@ -62,11 +62,17 @@ module Termium
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def normative_status
|
66
|
+
return "deprecated" if deprecated
|
67
|
+
|
68
|
+
order == 1 ? "preferred" : "admitted"
|
69
|
+
end
|
70
|
+
|
65
71
|
def to_h
|
66
72
|
set = {
|
67
73
|
"designation" => value,
|
68
74
|
"type" => "expression",
|
69
|
-
"normative_status" =>
|
75
|
+
"normative_status" => normative_status
|
70
76
|
}
|
71
77
|
|
72
78
|
set["geographical_area"] = geographical_area if geographical_area
|
data/lib/termium/version.rb
CHANGED
data/termium.gemspec
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "glossarist", "~>
|
33
|
+
spec.add_dependency "glossarist", "~> 2.0"
|
34
34
|
spec.add_dependency "shale"
|
35
35
|
spec.add_dependency "thor"
|
36
36
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: termium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glossarist
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: shale
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- open.source@ribose.com
|
114
114
|
executables:
|
@@ -117,6 +117,7 @@ extensions: []
|
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
119
|
- ".github/workflows/main.yml"
|
120
|
+
- ".github/workflows/release.yaml"
|
120
121
|
- ".gitignore"
|
121
122
|
- ".rspec"
|
122
123
|
- CODE_OF_CONDUCT.md
|
@@ -149,7 +150,7 @@ metadata:
|
|
149
150
|
homepage_uri: https://github.com/glossarist/termium
|
150
151
|
source_code_uri: https://github.com/glossarist/termium
|
151
152
|
bug_tracker_uri: https://github.com/glossarist/termium/issues
|
152
|
-
post_install_message:
|
153
|
+
post_install_message:
|
153
154
|
rdoc_options: []
|
154
155
|
require_paths:
|
155
156
|
- lib
|
@@ -164,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
165
|
- !ruby/object:Gem::Version
|
165
166
|
version: '0'
|
166
167
|
requirements: []
|
167
|
-
rubygems_version: 3.3.
|
168
|
-
signing_key:
|
168
|
+
rubygems_version: 3.3.26
|
169
|
+
signing_key:
|
169
170
|
specification_version: 4
|
170
171
|
summary: Parser for the TERMIUM Plus terminology database of the Government of Canada
|
171
172
|
test_files: []
|