relaton-iev 0.1.4 → 0.1.5
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 +8 -4
- data/.github/workflows/ubuntu.yml +20 -4
- data/.github/workflows/windows.yml +5 -35
- data/lib/relaton_iev.rb +1 -1
- data/lib/relaton_iev/version.rb +1 -1
- metadata +2 -3
- data/.github/workflows/defaults.yml +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c323e66c2707261a232a125f2a62254dd2744306d9b1673b1584d6144e37c35
|
4
|
+
data.tar.gz: 6082e8314ca24ece45d2c353fc7db211b239ca86ff9ece005876197e19f498e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 219c6ad2e229dd9b72d597c777ac5a7cbec5fcf452b6627d00056d9f95be4ff07579b5602eb99482a1bb1e2abfddfbae311ed17ce89de6a8d8e350f966358352
|
7
|
+
data.tar.gz: a77b9316059c8caec8a8c66b0ec7b3a555709249e31d598b11203757c40967a32d38ea3fb14325bd50c05b127032697a38923efc7a4251e30c7a6ae3a5f514e1
|
data/.github/workflows/macos.yml
CHANGED
@@ -1,14 +1,18 @@
|
|
1
|
-
# Auto-generated
|
2
|
-
#
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
3
|
name: macos
|
4
4
|
|
5
|
-
on:
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master ]
|
8
|
+
pull_request:
|
6
9
|
|
7
10
|
jobs:
|
8
11
|
test-macos:
|
9
12
|
name: Test on Ruby ${{ matrix.ruby }} macOS
|
10
13
|
runs-on: macos-latest
|
11
14
|
strategy:
|
15
|
+
fail-fast: false
|
12
16
|
matrix:
|
13
17
|
ruby: [ '2.6', '2.5', '2.4' ]
|
14
18
|
steps:
|
@@ -20,7 +24,7 @@ jobs:
|
|
20
24
|
architecture: 'x64'
|
21
25
|
- name: Update gems
|
22
26
|
run: |
|
23
|
-
sudo gem install bundler
|
27
|
+
sudo gem install bundler --force
|
24
28
|
bundle install --jobs 4 --retry 3
|
25
29
|
- name: Run specs
|
26
30
|
run: |
|
@@ -1,14 +1,18 @@
|
|
1
|
-
# Auto-generated
|
2
|
-
#
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
3
|
name: ubuntu
|
4
4
|
|
5
|
-
on:
|
5
|
+
on:
|
6
|
+
push:
|
7
|
+
branches: [ master ]
|
8
|
+
pull_request:
|
6
9
|
|
7
10
|
jobs:
|
8
11
|
test-linux:
|
9
12
|
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
10
13
|
runs-on: ubuntu-latest
|
11
14
|
strategy:
|
15
|
+
fail-fast: false
|
12
16
|
matrix:
|
13
17
|
ruby: [ '2.6', '2.5', '2.4' ]
|
14
18
|
steps:
|
@@ -20,8 +24,20 @@ jobs:
|
|
20
24
|
architecture: 'x64'
|
21
25
|
- name: Update gems
|
22
26
|
run: |
|
23
|
-
gem install bundler
|
27
|
+
gem install bundler
|
24
28
|
bundle install --jobs 4 --retry 3
|
25
29
|
- name: Run specs
|
26
30
|
run: |
|
27
31
|
bundle exec rake
|
32
|
+
- name: Trigger dependent repositories
|
33
|
+
if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
|
34
|
+
env:
|
35
|
+
GH_USERNAME: ${{ secrets.PAT_USERNAME }}
|
36
|
+
GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
|
37
|
+
run: |
|
38
|
+
curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
|
39
|
+
[[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
|
40
|
+
for repo in $DEPENDENT_REPOS
|
41
|
+
do
|
42
|
+
sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
|
43
|
+
done
|
@@ -6,7 +6,6 @@ on:
|
|
6
6
|
push:
|
7
7
|
branches: [ master ]
|
8
8
|
pull_request:
|
9
|
-
branches: [ '**' ]
|
10
9
|
|
11
10
|
jobs:
|
12
11
|
test-windows:
|
@@ -26,38 +25,9 @@ jobs:
|
|
26
25
|
- name: Update gems
|
27
26
|
shell: pwsh
|
28
27
|
run: |
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
with:
|
34
|
-
node-version: '8'
|
35
|
-
- name: Install Puppeteer
|
36
|
-
shell: pwsh
|
37
|
-
run: |
|
38
|
-
npm install -g puppeteer
|
39
|
-
- name: Use Python
|
40
|
-
uses: actions/setup-python@v1
|
41
|
-
with:
|
42
|
-
python-version: '2.7'
|
43
|
-
architecture: 'x64'
|
44
|
-
- name: Install xml2rfc
|
45
|
-
run: |
|
46
|
-
pip install xml2rfc
|
47
|
-
- name: Metanorma compile
|
48
|
-
shell: pwsh
|
28
|
+
gem install bundler
|
29
|
+
bundle config --local path vendor/bundle
|
30
|
+
bundle install --jobs 4 --retry 3
|
31
|
+
- name: Run specs
|
49
32
|
run: |
|
50
|
-
|
51
|
-
$docTypes = ConvertFrom-StringData (Get-Content ./doctypes.env -Raw)
|
52
|
-
$docTypes.DOCTYPES.Split(" ") | % {
|
53
|
-
$t = $_.Trim('"')
|
54
|
-
& cmd /c "metanorma new result\$t --type $($docTypes.TYPE) --doctype $t --template . --overwrite 2>&1"
|
55
|
-
$doc = "result\$t\document.adoc"
|
56
|
-
if (Test-Path -Path $doc) {
|
57
|
-
& cmd /c "metanorma compile $doc 2>&1"
|
58
|
-
} else {
|
59
|
-
Get-ChildItem ".\result\$t" -Filter *.adoc | % {
|
60
|
-
& cmd /c "metanorma compile $_.FullName 2>&1"
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
33
|
+
bundle exec rake
|
data/lib/relaton_iev.rb
CHANGED
@@ -16,7 +16,7 @@ module RelatonIev
|
|
16
16
|
parts = Set.new
|
17
17
|
xmldoc.xpath("//eref[@citeas = 'IEC 60050:2011'] | "\
|
18
18
|
"//origin[@citeas = 'IEC 60050:2011']").each do |x|
|
19
|
-
cl = x&.at("
|
19
|
+
cl = x&.at(".//locality[@type = 'clause']/referenceFrom")&.text || next
|
20
20
|
m = /^(\d+)/.match cl || next
|
21
21
|
parts << m[0]
|
22
22
|
x["citeas"] = x["citeas"].sub(/60050/, "60050-#{m[0]}")
|
data/lib/relaton_iev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -157,7 +157,6 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
-
- ".github/workflows/defaults.yml"
|
161
160
|
- ".github/workflows/macos.yml"
|
162
161
|
- ".github/workflows/ubuntu.yml"
|
163
162
|
- ".github/workflows/windows.yml"
|
@@ -1,61 +0,0 @@
|
|
1
|
-
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
-
# See https://github.com/metanorma/cimas
|
3
|
-
name: defaults
|
4
|
-
|
5
|
-
on:
|
6
|
-
push:
|
7
|
-
branches: [ master ]
|
8
|
-
pull_request:
|
9
|
-
branches: [ '**' ]
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
test-nix:
|
13
|
-
name: Test on Ruby ${{ matrix.ruby }} *nix
|
14
|
-
strategy:
|
15
|
-
fail-fast: false
|
16
|
-
matrix:
|
17
|
-
os: [ macos-latest, ubuntu-latest ]
|
18
|
-
ruby: [ '2.6', '2.5', '2.4' ]
|
19
|
-
runs-on: ${{ matrix.os }}
|
20
|
-
steps:
|
21
|
-
- uses: actions/checkout@master
|
22
|
-
- name: Use Ruby
|
23
|
-
uses: actions/setup-ruby@v1
|
24
|
-
with:
|
25
|
-
ruby-version: ${{ matrix.ruby }}
|
26
|
-
architecture: 'x64'
|
27
|
-
- name: Update gems
|
28
|
-
run: |
|
29
|
-
source doctypes.env
|
30
|
-
gem install metanorma-cli metanorma-$TYPE
|
31
|
-
- name: Use Node
|
32
|
-
uses: actions/setup-node@v1
|
33
|
-
with:
|
34
|
-
node-version: '8'
|
35
|
-
- name: Install Puppeteer
|
36
|
-
run: |
|
37
|
-
npm install -g puppeteer
|
38
|
-
- name: Use Python
|
39
|
-
uses: actions/setup-python@v1
|
40
|
-
with:
|
41
|
-
python-version: '2.7'
|
42
|
-
architecture: 'x64'
|
43
|
-
- name: Install xml2rfc
|
44
|
-
run: |
|
45
|
-
pip install xml2rfc
|
46
|
-
- name: Metanorma compile
|
47
|
-
run: |
|
48
|
-
source doctypes.env
|
49
|
-
for template in $DOCTYPES
|
50
|
-
do
|
51
|
-
metanorma new test/$template --type $TYPE --doctype $template --template . --overwrite
|
52
|
-
if [ -f test/${template}/document.adoc ]
|
53
|
-
then
|
54
|
-
metanorma compile test/${template}/document.adoc
|
55
|
-
else
|
56
|
-
for docfile in test/${template}/*.adoc
|
57
|
-
do
|
58
|
-
metanorma compile $docfile
|
59
|
-
done
|
60
|
-
fi
|
61
|
-
done
|