relaton-cli 1.9.4 → 1.9.5

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: f15afd456524555eb4054280b44c054324682885cf75d6007df26ac06d7f6382
4
- data.tar.gz: 4a6ae9a8f06c07af7c7c71f425780486b0533a17d73a872f7df79655fa2c9a10
3
+ metadata.gz: 74e1f77c6c44c339078c1244032abeabca92a9142bbdf638a6483de3334abbc4
4
+ data.tar.gz: 91f26c098cd76f836c6c2bba322e7da5ee6182f1a0f08751d5e3735d431201ea
5
5
  SHA512:
6
- metadata.gz: 4c4b205b32b36c9fa78ed191717fa5e10482f189e989fae1018b2768a972b1b5f22123b624b80c74ef38af348eb5d39c3fcbeb639c5d279bf049dc232dcf1072
7
- data.tar.gz: 5752bfbaf2d2eaae483fde7b58d5a11b1f4dfa65ab6b7d2ab68e8c98152f2fe0c55b20cf521b02f9e77120722091cb213c346a6e07051df7b7da7d0ab5d71129
6
+ metadata.gz: e86eb1d09d3d713218833f803b6f08f2d42330fea5447e45bb9539245d613663012c945e908c37731decfc48afaeaf1e5acd1df4e32996ea4f57cabebab8634c
7
+ data.tar.gz: e6cb6378dcbc247a68f638a5a09a0a4cd137f52b410b77694fc32d9c4941332a66a783a15dbf469f4deabc8056ea98f1b31462b6c2f4955409d3ff8acc8bb1e7
@@ -0,0 +1,45 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ name: release
4
+
5
+ on:
6
+ workflow_dispatch:
7
+ inputs:
8
+ next_version:
9
+ description: |
10
+ Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
+ required: true
12
+ default: 'skip'
13
+ push:
14
+ tags: [ v* ]
15
+
16
+ jobs:
17
+ release:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+
22
+ - uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: '2.6'
25
+ bundler-cache: true
26
+
27
+ - run: gem install gem-release
28
+
29
+ - run: |
30
+ git config user.name github-actions
31
+ git config user.email github-actions@github.com
32
+
33
+ - if: github.event_name == 'workflow_dispatch' && github.event.inputs.next_version != 'skip'
34
+ run: gem bump --version ${{ github.event.inputs.next_version }} --tag --push
35
+
36
+ - name: publish to rubygems.org
37
+ env:
38
+ RUBYGEMS_API_KEY: ${{secrets.RELATON_CI_RUBYGEMS_API_KEY}}
39
+ run: |
40
+ envsubst << 'EOF' > ~/.gem/credentials
41
+ ---
42
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
43
+ EOF
44
+ chmod 0600 ~/.gem/credentials
45
+ gem release
data/docs/README.adoc CHANGED
@@ -73,6 +73,9 @@ Foloowing datasets are availabe:
73
73
  * `w3c-rdf` - http://www.w3.org/2002/01/tr-automation/tr.rdf
74
74
  * `iana-registries` - https://github.com/ietf-ribose/iana-registries
75
75
  * `status-smg-3GPP` - ftp://www.3gpp.org/Information/Databases/Spec_Status/
76
+ * `ietf-rfcsubseries` - https://www.rfc-editor.org/rfc-index.xml (`<bcp-entry>`, `<fyi-entry>`, `<std-entry>`)
77
+ * `ietf-internet-drafts` - https://www.ietf.org/lib/dt/sprint/bibxml-ids.tgz
78
+ * `ietf-rfc-entries` - https://www.rfc-editor.org/rfc-index.xml (`<rfc-entry>`)
76
79
 
77
80
  Options:
78
81
 
@@ -117,8 +117,8 @@ module Relaton
117
117
  if (bib = xml.at("//bibdata"))
118
118
  bib = nokogiri_document(bib.to_xml)
119
119
  elsif (rfc = xml.at("//rfc"))
120
- require "relaton_ietf/scrapper"
121
- ietf = RelatonIetf::Scrapper.fetch_rfc rfc
120
+ require "relaton_ietf/bibxml_parser"
121
+ ietf = RelatonIetf::BibXMLParser.fetch_rfc rfc
122
122
  bib = nokogiri_document ietf.to_xml(bibdata: true)
123
123
  else
124
124
  next
@@ -142,8 +142,8 @@ module Relaton
142
142
  xml_files.flatten.reduce([]) do |mem, xml|
143
143
  doc = nokogiri_document(xml[:content])
144
144
  if (rfc = doc.at("/rfc"))
145
- require "relaton_ietf/scrapper"
146
- ietf = RelatonIetf::Scrapper.fetch_rfc rfc
145
+ require "relaton_ietf/bibxml_parser"
146
+ ietf = RelatonIetf::BibXMLParser.fetch_rfc rfc
147
147
  d = nokogiri_document ietf.to_xml(bibdata: true)
148
148
  mem << bibdata_instance(d, xml[:file])
149
149
  elsif %w[bibitem bibdata].include? doc&.root&.name
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Cli
3
- VERSION = "1.9.4".freeze
3
+ VERSION = "1.9.5".freeze
4
4
  end
5
5
  end
data/relaton-cli.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "webmock"
37
37
 
38
38
  spec.add_runtime_dependency "liquid", "~> 4"
39
- spec.add_runtime_dependency "relaton", ">= 1.9.1"
39
+ spec.add_runtime_dependency "relaton", ">= 1.9.8"
40
40
  spec.add_runtime_dependency "thor"
41
41
  spec.add_runtime_dependency "thor-hollaback"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.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: 2021-12-12 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 1.9.1
173
+ version: 1.9.8
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 1.9.1
180
+ version: 1.9.8
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: thor
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -217,6 +217,7 @@ extra_rdoc_files:
217
217
  - LICENSE
218
218
  files:
219
219
  - ".github/workflows/rake.yml"
220
+ - ".github/workflows/release.yml"
220
221
  - ".gitignore"
221
222
  - ".hound.yml"
222
223
  - ".rspec"