gb-agencies 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +20 -0
- data/.github/workflows/release.yml +67 -0
- data/.rubocop.yml +29 -8
- data/README.adoc +9 -11
- data/gb-agencies.gemspec +5 -6
- data/lib/gb_agencies/gb_agencies.rb +12 -12
- data/lib/gb_agencies/version.rb +1 -1
- metadata +20 -23
- data/.github/workflows/macos.yml +0 -38
- data/.github/workflows/ubuntu.yml +0 -56
- data/.github/workflows/windows.yml +0 -40
- data/.hound.yml +0 -3
- data/Gemfile.lock +0 -51
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a36406524dfe5bc779cface12fb3f32063d5b39708c87a68d724283972e2306
|
|
4
|
+
data.tar.gz: b44f2fe33a5c799ad11a67f7ba5da99f093c9c98e05226733bc17fecaf8e84fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: afbcac02b3e2593c395c293d975b41626bb66710b764cf0cba4742bef98fa75da2c22902044693dad166bffdda90700857cafdd00d9b45974734aa2bc10a0316
|
|
7
|
+
data.tar.gz: 115fd8431ae0a7dbf4a76aa6ae7e6d14f7449fe92ce9fbf5bad36f3c411eabbcdb898cb3665bcd152c5f9792339cd0a2858dc4b8902580e23b44ca677e10e6bc
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Formerly cimas-managed. Now consumer-owned per metanorma/cimas#68
|
|
2
|
+
# (workflow-file conversion from cimas-synced copied stubs to reusable-workflow
|
|
3
|
+
# references). Pins metanorma/ci reusable at @v1 (moving major, three-tier
|
|
4
|
+
# tagging discipline per metanorma/ci#372).
|
|
5
|
+
name: rake
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
push:
|
|
9
|
+
branches: [ master, main ]
|
|
10
|
+
tags: [ v* ]
|
|
11
|
+
pull_request:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
rake:
|
|
18
|
+
uses: metanorma/ci/.github/workflows/generic-rake.yml@v1
|
|
19
|
+
secrets:
|
|
20
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
|
+
# See https://github.com/metanorma/cimas
|
|
3
|
+
# Variant of `release.yml` for gems whose maintainers write GitHub Release
|
|
4
|
+
# notes by hand at release time and want to opt out of the auto-generated
|
|
5
|
+
# notes floor introduced in metanorma/ci#354.
|
|
6
|
+
#
|
|
7
|
+
# The only difference from the parent `release.yml` template is the
|
|
8
|
+
# `release_notes: manual` input passed to the reusable `rubygems-release.yml`
|
|
9
|
+
# — that flag makes the reusable's Ensure-GitHub-Release step skip itself
|
|
10
|
+
# entirely, leaving Release creation + notes authoring to the maintainer.
|
|
11
|
+
#
|
|
12
|
+
# Used by opoudjis-maintained gems (all `metanorma-*` except
|
|
13
|
+
# `metanorma-plugin-*` and `metanorma-utils`, plus `isodoc`, `isodoc-i18n`,
|
|
14
|
+
# `basicdoc-models`). See the `release_wo_bundle_install_manual_notes.yml`
|
|
15
|
+
# sibling variant for gems that also opt out of the shared workflow's
|
|
16
|
+
# implicit bundle install (metanorma-utils today). Gems mapping
|
|
17
|
+
# `release_github_packages.yml` are exempt-by-construction — that
|
|
18
|
+
# template calls `ghpkg-release.yml`, not `rubygems-release.yml`, so
|
|
19
|
+
# metanorma/ci#354's auto-notes floor doesn't reach them.
|
|
20
|
+
#
|
|
21
|
+
# To switch from opt-out back to the auto-notes floor: change the
|
|
22
|
+
# cimas.yml mapping for this gem from `master/release_manual_notes.yml`
|
|
23
|
+
# back to `master/release.yml`. No content edit needed.
|
|
24
|
+
#
|
|
25
|
+
# See metanorma/ci#354 for the rationale and metanorma/ci#PR-number for
|
|
26
|
+
# the introduction of this variant.
|
|
27
|
+
|
|
28
|
+
name: release
|
|
29
|
+
|
|
30
|
+
on:
|
|
31
|
+
workflow_dispatch:
|
|
32
|
+
inputs:
|
|
33
|
+
next_version:
|
|
34
|
+
description: |
|
|
35
|
+
Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
|
|
36
|
+
Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
|
|
37
|
+
required: true
|
|
38
|
+
default: 'skip'
|
|
39
|
+
repository_dispatch:
|
|
40
|
+
types: [ do-release ]
|
|
41
|
+
# The publish leg: when the release PR (head branch release/v*) merges,
|
|
42
|
+
# metanorma/ci tags the merge commit and publishes (metanorma/ci#515).
|
|
43
|
+
# Ordinary PR closes are skipped inside the reusable workflow.
|
|
44
|
+
pull_request:
|
|
45
|
+
types:
|
|
46
|
+
- closed
|
|
47
|
+
|
|
48
|
+
# Least-privilege ceiling for the called rubygems-release.yml: its release job
|
|
49
|
+
# needs contents:write (git tag push) and id-token:write (OIDC Trusted Publishing).
|
|
50
|
+
permissions:
|
|
51
|
+
contents: write
|
|
52
|
+
id-token: write
|
|
53
|
+
pull-requests: write
|
|
54
|
+
|
|
55
|
+
jobs:
|
|
56
|
+
release:
|
|
57
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
|
58
|
+
with:
|
|
59
|
+
next_version: ${{ github.event.inputs.next_version }}
|
|
60
|
+
# Opt out of the auto-generated GitHub Release notes floor added in
|
|
61
|
+
# metanorma/ci#354. Notes are written by hand at release time; the
|
|
62
|
+
# workflow skips the ensure-release step entirely and the maintainer
|
|
63
|
+
# creates the Release with their own notes.
|
|
64
|
+
release_notes: manual
|
|
65
|
+
secrets:
|
|
66
|
+
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
|
67
|
+
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/.rubocop.yml
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
|
-
#
|
|
2
|
-
# https://github.com/
|
|
3
|
-
# All project-specific additions and overrides should be specified in this file.
|
|
4
|
-
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
|
+
# See https://github.com/metanorma/cimas
|
|
5
3
|
inherit_from:
|
|
6
|
-
- https://raw.githubusercontent.com/riboseinc/oss-guides/
|
|
4
|
+
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
|
+
# .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
|
|
6
|
+
# if listed before oss-guides, the shared config's stricter Metrics/
|
|
7
|
+
# (MethodLength, BlockLength, etc.) rules override the todo's per-file
|
|
8
|
+
# grandfathering, and the todo becomes inert on those cops. Empirically
|
|
9
|
+
# verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
|
|
10
|
+
# remained; moved last, cleared. Every gem in the metanorma-org fleet
|
|
11
|
+
# already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
|
|
12
|
+
# 54/54 have it), so this reference is safe to emit unconditionally.
|
|
13
|
+
- .rubocop_todo.yml
|
|
14
|
+
|
|
15
|
+
# Rubocop plugins enabled centrally so every metanorma-org gem picks them up
|
|
16
|
+
# on cimas sync — best practice belongs at the shared-template layer, not
|
|
17
|
+
# per-repo. Per ronaldtse feedback on metanorma/ci#332.
|
|
18
|
+
plugins:
|
|
19
|
+
- rubocop-rspec
|
|
20
|
+
- rubocop-performance
|
|
21
|
+
- rubocop-rake
|
|
22
|
+
|
|
23
|
+
# local repo-specific modifications
|
|
24
|
+
# ...
|
|
25
|
+
|
|
7
26
|
AllCops:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
27
|
+
# 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
|
|
28
|
+
# Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
|
|
29
|
+
# this commit — 3.4 was above the org's stated minimum and would have
|
|
30
|
+
# applied Rubocop rules that fail-close on gems still targeting 3.3.
|
|
31
|
+
TargetRubyVersion: 3.3
|
data/README.adoc
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
== gb-agencies
|
|
2
2
|
|
|
3
3
|
image:https://img.shields.io/gem/v/gb-agencies.svg["Gem Version", link="https://rubygems.org/gems/gb-agencies"]
|
|
4
|
-
image:https://github.com/metanorma/gb-agencies/workflows/
|
|
5
|
-
image:https://github.com/metanorma/gb-agencies/workflows/macos/badge.svg["OSX Build Status", link="https://github.com/metanorma/gb-agencies/actions?query=workflow%3Amacos"]
|
|
6
|
-
image:https://github.com/metanorma/gb-agencies/workflows/windows/badge.svg["Windows Build Status", link="https://github.com/metanorma/gb-agencies/actions?query=workflow%3Awindows"]
|
|
4
|
+
image:https://github.com/metanorma/gb-agencies/workflows/rake/badge.svg["Build Status", link="https://github.com/metanorma/gb-agencies/actions?workflow=rake"]
|
|
7
5
|
image:https://codeclimate.com/github/metanorma/gb-agencies/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/gb-agencies"]
|
|
8
6
|
image:https://img.shields.io/github/issues-pr-raw/metanorma/gb-agencies.svg["Pull Requests", link="https://github.com/metanorma/gb-agencies/pulls"]
|
|
9
7
|
image:https://img.shields.io/github/commits-since/metanorma/gb-agencies/latest.svg["Commits since latest",link="https://github.com/metanorma/gb-agencies/releases"]
|
|
@@ -17,15 +15,15 @@ LABELS = { "PRC" => "PRC", # People's Republic of China
|
|
|
17
15
|
"industry_standard" => "Industry Standard",
|
|
18
16
|
"local_standard" => "Local Standard",
|
|
19
17
|
"enterprise_standard" => "Enterprise Standard",
|
|
20
|
-
"
|
|
18
|
+
"group_standard" => "Group Standard" }
|
|
21
19
|
|
|
22
20
|
# language (only "en", "zh" defined)
|
|
23
21
|
# LABELS: hash of localised labels
|
|
24
|
-
# issuer: name of organisation issuing the standard (only used for enterprise and
|
|
22
|
+
# issuer: name of organisation issuing the standard (only used for enterprise and group standards;
|
|
25
23
|
# this gem provides lookup for local, sector, and national agency names)
|
|
26
24
|
gba = GbAgencies::Agencies.new("en", LABELS, "My Org")
|
|
27
25
|
|
|
28
|
-
# scope: "national", "sector", "local", "enterprise", "
|
|
26
|
+
# scope: "national", "sector", "local", "enterprise", "group"
|
|
29
27
|
# prefix: the prefix of the standard
|
|
30
28
|
# mandate: "mandatory", "recommended", "guide"
|
|
31
29
|
gba.standard_class("national", "GB", "mandatory")
|
|
@@ -34,7 +32,7 @@ gba.standard_class("national", "GB", "mandatory")
|
|
|
34
32
|
gba.standard_class("local", "81", "guide")
|
|
35
33
|
=> "Hong Kong Special Administrative Region Local Standard"
|
|
36
34
|
|
|
37
|
-
# scope: "national", "sector", "local", "enterprise", "
|
|
35
|
+
# scope: "national", "sector", "local", "enterprise", "group"
|
|
38
36
|
# prefix: the prefix of the standard
|
|
39
37
|
# mandate: "mandatory", "recommended", "guide"
|
|
40
38
|
gba.standard_agency("national", "GB", "mandatory")
|
|
@@ -47,20 +45,20 @@ GbAgencies::Agencies.new("zh", LABELS, "My Org").standard_agency1("national", "G
|
|
|
47
45
|
GbAgencies::Agencies.new("zh", LABELS, "My Org").standard_agency("national", "GB", "mandatory")
|
|
48
46
|
=> "["中华人民共和国国家质量监督检验检疫总局 中国国家标准化管理委员会"]
|
|
49
47
|
|
|
50
|
-
# scope: "national", "sector", "local", "enterprise", "
|
|
48
|
+
# scope: "national", "sector", "local", "enterprise", "group"
|
|
51
49
|
# prefix: the prefix of the standard
|
|
52
50
|
# mandate: "mandatory", "recommended", "guide"
|
|
53
51
|
# year: year of publication
|
|
54
52
|
# nunumber: the number of the standard
|
|
55
|
-
gba.docidentifier("
|
|
53
|
+
gba.docidentifier("group", "PREFIX", "guide", "2002", "123")
|
|
56
54
|
=> "T/Z/PREFIX 123—2002"
|
|
57
55
|
|
|
58
|
-
# scope: "national", "sector", "local", "enterprise", "
|
|
56
|
+
# scope: "national", "sector", "local", "enterprise", "group"
|
|
59
57
|
# prefix: the prefix of the standard
|
|
60
58
|
gba.gbtype_validate("national", "GB")
|
|
61
59
|
=> true
|
|
62
60
|
|
|
63
|
-
# scope: "national", "sector", "local", "enterprise", "
|
|
61
|
+
# scope: "national", "sector", "local", "enterprise", "group"
|
|
64
62
|
# prefix: the prefix of the standard
|
|
65
63
|
gba.gbtype_validate("national", "ZZ")
|
|
66
64
|
ZZ is not a recognised national prefix
|
data/gb-agencies.gemspec
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require "gb_agencies/version"
|
|
5
4
|
|
|
@@ -9,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
|
9
8
|
spec.authors = ["Ribose Inc."]
|
|
10
9
|
spec.email = ["open.source@ribose.com"]
|
|
11
10
|
|
|
12
|
-
spec.summary =
|
|
13
|
-
spec.description =
|
|
11
|
+
spec.summary = "Gem to look up agency names for GB standards."
|
|
12
|
+
spec.description = "Gem to look up agency names for GB standards."
|
|
14
13
|
spec.homepage = "https://github.com/metanorma/gb-agencies"
|
|
15
14
|
spec.license = "BSD-2-Clause"
|
|
16
15
|
|
|
@@ -20,11 +19,11 @@ Gem::Specification.new do |spec|
|
|
|
20
19
|
spec.bindir = "exe"
|
|
21
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
21
|
spec.require_paths = ["lib"]
|
|
23
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 2.
|
|
22
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
|
|
24
23
|
|
|
25
24
|
spec.add_development_dependency "bundler"
|
|
25
|
+
spec.add_development_dependency "debug"
|
|
26
26
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
|
28
28
|
spec.add_development_dependency "simplecov"
|
|
29
|
-
spec.add_development_dependency "pry-byebug"
|
|
30
29
|
end
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module GbAgencies
|
|
2
2
|
class Agencies
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
def initialize(lang, labels = nil, issuer = nil)
|
|
4
|
+
@lang = lang
|
|
5
|
+
@labels = labels || { "PRC" => "", "industry_standard" => "",
|
|
6
|
+
"local_standard" => "", "enterprise_standard" => "",
|
|
7
|
+
"group_standard" => "" }
|
|
8
|
+
@issuer = issuer || "(not supplied)"
|
|
9
|
+
end
|
|
10
10
|
|
|
11
11
|
SECTOR = { "zh" => {
|
|
12
12
|
AQ: { industry: "安全生产", admin: "国家安全生产管理局" },
|
|
@@ -278,7 +278,7 @@ module GbAgencies
|
|
|
278
278
|
when "enterprise"
|
|
279
279
|
#issuer = get_metadata[:issuer]
|
|
280
280
|
"#{@issuer}#{spc}#{@labels["enterprise_standard"]}"
|
|
281
|
-
when "
|
|
281
|
+
when "group" then @labels["group_standard"]
|
|
282
282
|
when "professional" then "PROFESSIONAL STANDARD" # TODO
|
|
283
283
|
end
|
|
284
284
|
end
|
|
@@ -295,7 +295,7 @@ module GbAgencies
|
|
|
295
295
|
SECTOR&.dig(@lang, prefix.to_sym, :admin) || nil
|
|
296
296
|
when "local"
|
|
297
297
|
LOCAL&.dig(@lang, prefix.to_sym) || nil
|
|
298
|
-
when "enterprise", "
|
|
298
|
+
when "enterprise", "group"
|
|
299
299
|
@issuer || nil
|
|
300
300
|
when "professional" then "PROFESSIONAL STANDARD" # TODO
|
|
301
301
|
end
|
|
@@ -311,7 +311,7 @@ module GbAgencies
|
|
|
311
311
|
SECTOR&.dig(@lang, prefix.to_sym, :admin) || nil
|
|
312
312
|
when "local"
|
|
313
313
|
"#{LOCAL&.dig(@lang, prefix.to_sym) || 'XXXX'}#{@labels["local_issuer"]}"
|
|
314
|
-
when "enterprise", "
|
|
314
|
+
when "enterprise", "group"
|
|
315
315
|
@issuer || nil
|
|
316
316
|
when "professional" then "PROFESSIONAL STANDARD" # TODO
|
|
317
317
|
end
|
|
@@ -319,7 +319,7 @@ module GbAgencies
|
|
|
319
319
|
|
|
320
320
|
SCOPEPFX = {
|
|
321
321
|
:local => "DB",
|
|
322
|
-
|
|
322
|
+
group: "T",
|
|
323
323
|
:enterprise => "Q",
|
|
324
324
|
}.freeze
|
|
325
325
|
|
|
@@ -331,7 +331,7 @@ module GbAgencies
|
|
|
331
331
|
when "local"
|
|
332
332
|
"#{SCOPEPFX[scope.to_sym]}#{mandate_suffix(prefix, mandate)}/"\
|
|
333
333
|
"#{docnum}".gsub(%r{/([TZ])/}, "/\\1 ")
|
|
334
|
-
when "
|
|
334
|
+
when "group", "enterprise"
|
|
335
335
|
"#{mandate_suffix(SCOPEPFX[scope.to_sym], mandate)}/"\
|
|
336
336
|
"#{prefix}#{initslash ? "" : " "}#{docnum}"
|
|
337
337
|
else
|
data/lib/gb_agencies/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gb-agencies
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-12-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -25,49 +25,49 @@ dependencies:
|
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
28
|
+
name: debug
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- - "
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
42
|
+
name: rake
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
47
|
+
version: '13.0'
|
|
48
48
|
type: :development
|
|
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: '
|
|
54
|
+
version: '13.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: rspec
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
61
|
+
version: '3.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
68
|
+
version: '3.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ">="
|
|
@@ -87,15 +87,12 @@ executables: []
|
|
|
87
87
|
extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
|
89
89
|
files:
|
|
90
|
-
- ".github/workflows/
|
|
91
|
-
- ".github/workflows/
|
|
92
|
-
- ".github/workflows/windows.yml"
|
|
93
|
-
- ".hound.yml"
|
|
90
|
+
- ".github/workflows/rake.yml"
|
|
91
|
+
- ".github/workflows/release.yml"
|
|
94
92
|
- ".rubocop.ribose.yml"
|
|
95
93
|
- ".rubocop.tb.yml"
|
|
96
94
|
- ".rubocop.yml"
|
|
97
95
|
- Gemfile
|
|
98
|
-
- Gemfile.lock
|
|
99
96
|
- LICENSE.txt
|
|
100
97
|
- README.adoc
|
|
101
98
|
- Rakefile
|
|
@@ -115,14 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
115
112
|
requirements:
|
|
116
113
|
- - ">="
|
|
117
114
|
- !ruby/object:Gem::Version
|
|
118
|
-
version: 2.
|
|
115
|
+
version: 2.7.0
|
|
119
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
117
|
requirements:
|
|
121
118
|
- - ">="
|
|
122
119
|
- !ruby/object:Gem::Version
|
|
123
120
|
version: '0'
|
|
124
121
|
requirements: []
|
|
125
|
-
rubygems_version: 3.
|
|
122
|
+
rubygems_version: 3.5.22
|
|
126
123
|
signing_key:
|
|
127
124
|
specification_version: 4
|
|
128
125
|
summary: Gem to look up agency names for GB standards.
|
data/.github/workflows/macos.yml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
|
-
# See https://github.com/metanorma/cimas
|
|
3
|
-
name: macos
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
pull_request:
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- .github/workflows/ubuntu.yml
|
|
11
|
-
- .github/workflows/windows.yml
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test-macos:
|
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} macOS
|
|
16
|
-
runs-on: macos-latest
|
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
18
|
-
strategy:
|
|
19
|
-
fail-fast: false
|
|
20
|
-
matrix:
|
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
|
22
|
-
experimental: [false]
|
|
23
|
-
include:
|
|
24
|
-
- ruby: '2.7'
|
|
25
|
-
experimental: true
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@master
|
|
28
|
-
- name: Use Ruby
|
|
29
|
-
uses: actions/setup-ruby@v1
|
|
30
|
-
with:
|
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
|
32
|
-
- name: Update gems
|
|
33
|
-
run: |
|
|
34
|
-
sudo gem install bundler --force
|
|
35
|
-
bundle install --jobs 4 --retry 3
|
|
36
|
-
- name: Run specs
|
|
37
|
-
run: |
|
|
38
|
-
bundle exec rake
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
|
-
# See https://github.com/metanorma/cimas
|
|
3
|
-
name: ubuntu
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
tags:
|
|
9
|
-
- '*'
|
|
10
|
-
pull_request:
|
|
11
|
-
paths-ignore:
|
|
12
|
-
- .github/workflows/macos.yml
|
|
13
|
-
- .github/workflows/windows.yml
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
test-linux:
|
|
17
|
-
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
20
|
-
strategy:
|
|
21
|
-
fail-fast: false
|
|
22
|
-
matrix:
|
|
23
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
|
24
|
-
experimental: [false]
|
|
25
|
-
include:
|
|
26
|
-
- ruby: '2.7'
|
|
27
|
-
experimental: true
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@master
|
|
30
|
-
- name: Use Ruby
|
|
31
|
-
uses: actions/setup-ruby@v1
|
|
32
|
-
with:
|
|
33
|
-
ruby-version: ${{ matrix.ruby }}
|
|
34
|
-
- name: Update gems
|
|
35
|
-
run: |
|
|
36
|
-
gem install bundler
|
|
37
|
-
bundle install --jobs 4 --retry 3
|
|
38
|
-
- name: Run specs
|
|
39
|
-
run: |
|
|
40
|
-
bundle exec rake
|
|
41
|
-
- name: Trigger repositories
|
|
42
|
-
if: matrix.ruby == '2.6'
|
|
43
|
-
env:
|
|
44
|
-
GH_USERNAME: metanorma-ci
|
|
45
|
-
GH_ACCESS_TOKEN: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
|
46
|
-
run: |
|
|
47
|
-
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
|
48
|
-
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
|
49
|
-
CLIENT_PAYLOAD=$(cat <<EOF
|
|
50
|
-
"{ "ref": "${GITHUB_REF}", "repo": "${GITHUB_REPOSITORY}" }"
|
|
51
|
-
EOF
|
|
52
|
-
)
|
|
53
|
-
for repo in $REPOS
|
|
54
|
-
do
|
|
55
|
-
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY "$CLIENT_PAYLOAD"
|
|
56
|
-
done
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
|
-
# See https://github.com/metanorma/cimas
|
|
3
|
-
name: windows
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
pull_request:
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- .github/workflows/macos.yml
|
|
11
|
-
- .github/workflows/ubuntu.yml
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test-windows:
|
|
15
|
-
name: Test on Ruby ${{ matrix.ruby }} Windows
|
|
16
|
-
runs-on: windows-latest
|
|
17
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
18
|
-
strategy:
|
|
19
|
-
fail-fast: false
|
|
20
|
-
matrix:
|
|
21
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
|
22
|
-
experimental: [false]
|
|
23
|
-
include:
|
|
24
|
-
- ruby: '2.7'
|
|
25
|
-
experimental: true
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@master
|
|
28
|
-
- name: Use Ruby
|
|
29
|
-
uses: actions/setup-ruby@v1
|
|
30
|
-
with:
|
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
|
32
|
-
- name: Update gems
|
|
33
|
-
shell: pwsh
|
|
34
|
-
run: |
|
|
35
|
-
gem install bundler
|
|
36
|
-
bundle config --local path vendor/bundle
|
|
37
|
-
bundle install --jobs 4 --retry 3
|
|
38
|
-
- name: Run specs
|
|
39
|
-
run: |
|
|
40
|
-
bundle exec rake
|
data/.hound.yml
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
gb-agencies (0.0.6)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
byebug (11.1.3)
|
|
10
|
-
coderay (1.1.3)
|
|
11
|
-
diff-lcs (1.4.4)
|
|
12
|
-
docile (1.3.2)
|
|
13
|
-
method_source (1.0.0)
|
|
14
|
-
pry (0.13.1)
|
|
15
|
-
coderay (~> 1.1)
|
|
16
|
-
method_source (~> 1.0)
|
|
17
|
-
pry-byebug (3.9.0)
|
|
18
|
-
byebug (~> 11.0)
|
|
19
|
-
pry (~> 0.13.0)
|
|
20
|
-
rake (13.0.1)
|
|
21
|
-
rspec (3.9.0)
|
|
22
|
-
rspec-core (~> 3.9.0)
|
|
23
|
-
rspec-expectations (~> 3.9.0)
|
|
24
|
-
rspec-mocks (~> 3.9.0)
|
|
25
|
-
rspec-core (3.9.2)
|
|
26
|
-
rspec-support (~> 3.9.3)
|
|
27
|
-
rspec-expectations (3.9.2)
|
|
28
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
29
|
-
rspec-support (~> 3.9.0)
|
|
30
|
-
rspec-mocks (3.9.1)
|
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
32
|
-
rspec-support (~> 3.9.0)
|
|
33
|
-
rspec-support (3.9.3)
|
|
34
|
-
simplecov (0.18.5)
|
|
35
|
-
docile (~> 1.1)
|
|
36
|
-
simplecov-html (~> 0.11)
|
|
37
|
-
simplecov-html (0.12.2)
|
|
38
|
-
|
|
39
|
-
PLATFORMS
|
|
40
|
-
ruby
|
|
41
|
-
|
|
42
|
-
DEPENDENCIES
|
|
43
|
-
bundler
|
|
44
|
-
gb-agencies!
|
|
45
|
-
pry-byebug
|
|
46
|
-
rake (~> 13.0)
|
|
47
|
-
rspec (~> 3.0)
|
|
48
|
-
simplecov
|
|
49
|
-
|
|
50
|
-
BUNDLED WITH
|
|
51
|
-
2.1.4
|