relaton-iev 0.1.1 → 0.1.2
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 +27 -0
- data/.github/workflows/ubuntu.yml +27 -0
- data/.github/workflows/windows.yml +30 -0
- data/Gemfile.lock +37 -29
- data/README.adoc +2 -2
- data/lib/relaton_iev/version.rb +1 -1
- data/relaton_iev.gemspec +2 -1
- metadata +21 -5
- data/.travis.yml +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9091d0dfddcb14c0c1631964a041402bb1ac8603134618d53439058389c28360
|
4
|
+
data.tar.gz: c773a37e33181fd1ee673e5e65546ad30af0db03c7e90428e6514673368d8d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c191a55db432cf7c465001413b152a1c52b158697ecd518aafb85ea39a07bb7b00aad51b3a7210595751d8d2e73d50336a802a87a82bd144d69568e8077ba4ca
|
7
|
+
data.tar.gz: 4d48aac6a09308e049fddf1be2ee69a33186d981a7ab56c1f74aa98b0e98df9d263567b258fbc703e542c1b78aa354aac23c9190b9a394e1d5384afb67eedf3d
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
+
name: macos
|
4
|
+
|
5
|
+
on: [push]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test-macos:
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} macOS
|
10
|
+
runs-on: macos-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@master
|
16
|
+
- name: Use Ruby
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
architecture: 'x64'
|
21
|
+
- name: Update gems
|
22
|
+
run: |
|
23
|
+
sudo gem install bundler -v "~> 2" --force
|
24
|
+
bundle install --jobs 4 --retry 3
|
25
|
+
- name: Run specs
|
26
|
+
run: |
|
27
|
+
bundle exec rake
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
+
name: ubuntu
|
4
|
+
|
5
|
+
on: [push]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test-linux:
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} Ubuntu
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@master
|
16
|
+
- name: Use Ruby
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
architecture: 'x64'
|
21
|
+
- name: Update gems
|
22
|
+
run: |
|
23
|
+
gem install bundler -v "~> 2"
|
24
|
+
bundle install --jobs 4 --retry 3
|
25
|
+
- name: Run specs
|
26
|
+
run: |
|
27
|
+
bundle exec rake
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Auto-generated !!! Do not edit it manually
|
2
|
+
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
+
name: windows
|
4
|
+
|
5
|
+
on: [push]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test-windows:
|
9
|
+
name: Test on Ruby ${{ matrix.ruby }} Windows
|
10
|
+
runs-on: windows-latest
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: [ '2.6', '2.5', '2.4' ]
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@master
|
16
|
+
- name: Use Ruby
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby }}
|
20
|
+
architecture: 'x64'
|
21
|
+
- name: Update gems
|
22
|
+
shell: pwsh
|
23
|
+
run: |
|
24
|
+
gem install bundler -v "~> 2"
|
25
|
+
bundle config --local path vendor/bundle
|
26
|
+
bundle update
|
27
|
+
bundle install --jobs 4 --retry 3
|
28
|
+
- name: Run specs
|
29
|
+
run: |
|
30
|
+
bundle exec rake
|
data/Gemfile.lock
CHANGED
@@ -7,29 +7,30 @@ PATH
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
addressable (2.
|
11
|
-
public_suffix (>= 2.0.2, <
|
12
|
-
algoliasearch (1.26.0)
|
13
|
-
httpclient (~> 2.8, >= 2.8.3)
|
14
|
-
json (>= 1.5.1)
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
15
12
|
byebug (11.0.1)
|
16
|
-
cnccs (0.1.
|
13
|
+
cnccs (0.1.5)
|
17
14
|
coderay (1.1.2)
|
18
15
|
crack (0.4.3)
|
19
16
|
safe_yaml (~> 1.0.0)
|
20
|
-
debase (0.2.
|
17
|
+
debase (0.2.4.1)
|
21
18
|
debase-ruby_core_source (>= 0.10.2)
|
22
|
-
debase-ruby_core_source (0.10.
|
19
|
+
debase-ruby_core_source (0.10.7)
|
23
20
|
diff-lcs (1.3)
|
24
21
|
docile (1.3.2)
|
25
|
-
|
22
|
+
equivalent-xml (0.6.0)
|
23
|
+
nokogiri (>= 1.4.3)
|
24
|
+
faraday (0.17.1)
|
25
|
+
multipart-post (>= 1.2, < 3)
|
26
|
+
gb-agencies (0.0.6)
|
26
27
|
hashdiff (1.0.0)
|
27
|
-
|
28
|
-
isoics (0.1.7)
|
28
|
+
isoics (0.1.8)
|
29
29
|
json (2.2.0)
|
30
30
|
method_source (0.9.2)
|
31
31
|
mini_portile2 (2.4.0)
|
32
|
-
|
32
|
+
multipart-post (2.1.1)
|
33
|
+
nokogiri (1.10.5)
|
33
34
|
mini_portile2 (~> 2.4.0)
|
34
35
|
pry (0.12.2)
|
35
36
|
coderay (~> 1.1.0)
|
@@ -37,41 +38,47 @@ GEM
|
|
37
38
|
pry-byebug (3.7.0)
|
38
39
|
byebug (~> 11.0)
|
39
40
|
pry (~> 0.10)
|
40
|
-
public_suffix (
|
41
|
+
public_suffix (4.0.1)
|
41
42
|
rake (10.5.0)
|
42
|
-
relaton (0.5.
|
43
|
-
|
43
|
+
relaton (0.5.19)
|
44
|
+
relaton-calconnect (~> 0.1.0)
|
44
45
|
relaton-gb (~> 0.6.0)
|
45
46
|
relaton-iec (~> 0.4.0)
|
46
47
|
relaton-ietf (~> 0.6.0)
|
47
48
|
relaton-iso (~> 0.6.0)
|
48
|
-
relaton-iso-bib (~> 0.3.0)
|
49
49
|
relaton-itu (~> 0.3.0)
|
50
50
|
relaton-nist (~> 0.3.0)
|
51
|
-
|
51
|
+
relaton-ogc (~> 0.1.0)
|
52
|
+
relaton-bib (0.3.12)
|
52
53
|
addressable
|
53
|
-
nokogiri
|
54
|
-
relaton-
|
54
|
+
nokogiri
|
55
|
+
relaton-calconnect (0.1.2)
|
56
|
+
faraday
|
57
|
+
relaton-iso-bib (~> 0.3.0)
|
58
|
+
relaton-gb (0.6.8)
|
55
59
|
cnccs (~> 0.1.1)
|
56
60
|
gb-agencies (~> 0.0.1)
|
57
61
|
relaton-iso-bib (~> 0.3.0)
|
58
|
-
relaton-iec (0.4.
|
62
|
+
relaton-iec (0.4.12)
|
59
63
|
addressable
|
60
64
|
relaton-iso-bib (~> 0.3.0)
|
61
|
-
relaton-ietf (0.6.
|
62
|
-
relaton-
|
63
|
-
relaton-iso (0.6.
|
65
|
+
relaton-ietf (0.6.10)
|
66
|
+
relaton-bib (~> 0.3.0)
|
67
|
+
relaton-iso (0.6.10)
|
64
68
|
relaton-iec (~> 0.4.0)
|
65
69
|
relaton-iso-bib (~> 0.3.0)
|
66
|
-
relaton-iso-bib (0.3.
|
70
|
+
relaton-iso-bib (0.3.12)
|
67
71
|
isoics (~> 0.1.6)
|
68
72
|
relaton-bib (~> 0.3.0)
|
69
73
|
ruby_deep_clone (~> 0.8.0)
|
70
|
-
relaton-itu (0.3.
|
74
|
+
relaton-itu (0.3.11)
|
71
75
|
relaton-iso-bib (~> 0.3.0)
|
72
|
-
relaton-nist (0.3.
|
76
|
+
relaton-nist (0.3.9)
|
73
77
|
relaton-bib (~> 0.3.0)
|
74
78
|
rubyzip
|
79
|
+
relaton-ogc (0.1.4)
|
80
|
+
faraday
|
81
|
+
relaton-iso-bib (~> 0.3.0)
|
75
82
|
rspec (3.8.0)
|
76
83
|
rspec-core (~> 3.8.0)
|
77
84
|
rspec-expectations (~> 3.8.0)
|
@@ -88,7 +95,7 @@ GEM
|
|
88
95
|
ruby-debug-ide (0.7.0)
|
89
96
|
rake (>= 0.8.1)
|
90
97
|
ruby_deep_clone (0.8.0)
|
91
|
-
rubyzip (
|
98
|
+
rubyzip (2.0.0)
|
92
99
|
safe_yaml (1.0.5)
|
93
100
|
simplecov (0.17.0)
|
94
101
|
docile (~> 1.1)
|
@@ -96,7 +103,7 @@ GEM
|
|
96
103
|
simplecov-html (~> 0.10.0)
|
97
104
|
simplecov-html (0.10.2)
|
98
105
|
vcr (5.0.0)
|
99
|
-
webmock (3.
|
106
|
+
webmock (3.7.2)
|
100
107
|
addressable (>= 2.3.6)
|
101
108
|
crack (>= 0.3.2)
|
102
109
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -107,6 +114,7 @@ PLATFORMS
|
|
107
114
|
DEPENDENCIES
|
108
115
|
bundler (~> 2.0)
|
109
116
|
debase
|
117
|
+
equivalent-xml (~> 0.6)
|
110
118
|
pry-byebug
|
111
119
|
rake (~> 10.0)
|
112
120
|
relaton-iev!
|
@@ -117,4 +125,4 @@ DEPENDENCIES
|
|
117
125
|
webmock
|
118
126
|
|
119
127
|
BUNDLED WITH
|
120
|
-
2.0.
|
128
|
+
2.0.2
|
data/README.adoc
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
= RelatonIev Refactor IEV reference
|
2
2
|
|
3
3
|
image:https://img.shields.io/gem/v/relaton-iev.svg["Gem Version", link="https://rubygems.org/gems/relaton-iev"]
|
4
|
-
image:https://
|
4
|
+
image:https://travis-ci.com/metanorma/relaton-iev.svg?branch=master["Build Status", link="https://travis-ci.com/metanorma/relaton-iev"]
|
5
5
|
image:https://codeclimate.com/github/metanorma/relaton-iev/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/metanorma/relaton-iev"]
|
6
6
|
image:https://ci.appveyor.com/api/projects/status/qdadxv7rqfy33p66?svg=true["Appveyor Build Status", link="https://ci.appveyor.com/project/ribose/relaton-iev"]
|
7
7
|
|
8
8
|
|
9
|
-
Metanorma references IEV as a single source, IEC 60050. In reality, IEC 60050 is dozens of separate documents, each with their own part number (corresponding to the starting number of the clause reference; so IEV clause 101-2-3 is actually IEC 60050-101 clause 101-2-3.) This gem helps
|
9
|
+
Metanorma references IEV as a single source, IEC 60050. In reality, IEC 60050 is dozens of separate documents, each with their own part number (corresponding to the starting number of the clause reference; so IEV clause 101-2-3 is actually IEC 60050-101 clause 101-2-3.) This gem helps rewrite the single IEV reference in a Metanorma document, out into all the references it actually corresponds to in the given document. It does so by parsing all first-level clauses in citations to IEV, replacing each by a reference to the IEC 60050 part corresponding to that clause, then looking up each of the IEC 60050 part documents using `relaton-iec`, and inserting those references into the XML document.
|
10
10
|
|
11
11
|
== Installation
|
12
12
|
|
data/lib/relaton_iev/version.rb
CHANGED
data/relaton_iev.gemspec
CHANGED
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "simplecov"
|
31
31
|
spec.add_development_dependency "vcr"
|
32
32
|
spec.add_development_dependency "webmock"
|
33
|
+
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
33
34
|
|
34
|
-
spec.add_dependency "relaton", "~> 0.
|
35
|
+
spec.add_dependency "relaton", "~> 0.6.0"
|
35
36
|
end
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,20 +136,34 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: equivalent-xml
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.6'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.6'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: relaton
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
157
|
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
159
|
+
version: 0.6.0
|
146
160
|
type: :runtime
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
164
|
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
166
|
+
version: 0.6.0
|
153
167
|
description: 'RelatonIev: manipulates IEV references to IEC 60050.'
|
154
168
|
email:
|
155
169
|
- open.source@ribose.com
|
@@ -157,10 +171,12 @@ executables: []
|
|
157
171
|
extensions: []
|
158
172
|
extra_rdoc_files: []
|
159
173
|
files:
|
174
|
+
- ".github/workflows/macos.yml"
|
175
|
+
- ".github/workflows/ubuntu.yml"
|
176
|
+
- ".github/workflows/windows.yml"
|
160
177
|
- ".gitignore"
|
161
178
|
- ".rspec"
|
162
179
|
- ".rubocop.yml"
|
163
|
-
- ".travis.yml"
|
164
180
|
- Gemfile
|
165
181
|
- Gemfile.lock
|
166
182
|
- LICENSE.txt
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# Auto-generated !!! Do not edit it manually
|
2
|
-
# use ci-master https://github.com/metanorma/metanorma-build-scripts
|
3
|
-
language: ruby
|
4
|
-
cache: bundler
|
5
|
-
os:
|
6
|
-
- linux
|
7
|
-
- osx
|
8
|
-
rvm:
|
9
|
-
- 2.5
|
10
|
-
- 2.4
|
11
|
-
- ruby-head
|
12
|
-
before_install:
|
13
|
-
- gem install bundler -v 2.0.1
|
14
|
-
- bundle update
|
15
|
-
matrix:
|
16
|
-
allow_failures:
|
17
|
-
- rvm: ruby-head
|