relaton-ieee 1.12.1 → 1.12.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c9ad7ed0600b55a10bf86c90d4e9a0bd0b7b7b39f15b4162456227e3a79dd44
4
- data.tar.gz: 35070ebc17399869b94e03cfb6922b29b3c57ab3d9e08d81e495fa5e25cdf199
3
+ metadata.gz: 2c4811b6bf08c0df0c59f408c0f730db58f8dbe0e40fac0935195ad29e86b139
4
+ data.tar.gz: 887eb9b829a9d15ad132d89f9776657459e185cb0bab6776bc436e4dcccb0f32
5
5
  SHA512:
6
- metadata.gz: 76541d16ef2c5b0e167f819306a4bcdf7ccc2d253eec34e8b442f70a27a3090b04722d3dd01e9d7b05d39408b2dc3b2cda7a9f4a81b77883ce289fb6929395ca
7
- data.tar.gz: 1dad051905cc2721348fb90bd5ae758093b16aca56c5f435661bdfdeda05456ee198eb66fa0d46c49993d95e0ec5b798c50aef49d9104b553ff192f28fede4c0
6
+ metadata.gz: 62638acbd29676f6c377bf6b27019bb8920139f9aa73a18f54bd7b4d6915bc0eeecf270273abfc1301438d8f49568f415e52e1350a349990d8bdecdec48958c2
7
+ data.tar.gz: 73c063f312988a3d1c32f0d17fc90f8fb4c5bd47246d4c175bfe444f21b2c24626e51fed83eac12b82e0a747a54ee587bc85df2e869d1708e378ec9b1d14ca9b
data/README.adoc CHANGED
@@ -170,7 +170,7 @@ hash = YAML.load_file 'spec/fixtures/ieee_528_2019.yaml'
170
170
 
171
171
  === Fetch data
172
172
 
173
- There is an IEEE dataset https://github.com/ietf-ribose/ieee-rawbib which can be converted into BibXML/BibYAML formats. The dataset needs to be placed into local directiory.
173
+ There is an IEEE dataset https://github.com/relaton/ieee-rawbib which can be converted into BibXML/BibYAML formats. The dataset needs to be placed into local directiory.
174
174
 
175
175
  The method `RelatonIeee::DataFetcher.fetch(output: "data", format: "yaml")` converts all the documents from the local `ieee-rawbib` directory and save them to the `./data` folder in YAML format.
176
176
  Arguments:
@@ -28,7 +28,7 @@ module RelatonIeee
28
28
  # @option args [String] :year
29
29
  # @option args [String] :month
30
30
  #
31
- def initialize(number:, **args) # rubocop:disable Metrics/MethodLength
31
+ def initialize(number:, **args) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
32
32
  @publisher = args[:publisher]
33
33
  @stage = args[:stage]
34
34
  @number = number
@@ -56,7 +56,7 @@ module RelatonIeee
56
56
  out = "#{approval} #{out}" if approval
57
57
  out = "#{status} #{out}" if status
58
58
  out = "#{publisher} #{out}" if publisher
59
- out += "-#{part}" if part
59
+ out += ".#{part}" if part
60
60
  out += edition_to_s + draft_to_s + rev_to_s + corr_to_s + amd_to_s
61
61
  out + year_to_s + month_to_s + redline_to_s
62
62
  end
@@ -82,7 +82,7 @@ module RelatonIeee
82
82
  end
83
83
 
84
84
  def year_to_s
85
- year ? ".#{year}" : ""
85
+ year ? "-#{year}" : ""
86
86
  end
87
87
 
88
88
  def month_to_s
@@ -458,7 +458,7 @@ module RelatonIeee
458
458
  #
459
459
  # @return [String]
460
460
  def sp(parts)
461
- parts.gsub ".", "-"
461
+ parts # .gsub ".", "-"
462
462
  end
463
463
 
464
464
  #
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.12.1".freeze
2
+ VERSION = "1.12.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.1
4
+ version: 1.12.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: 2022-07-05 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: equivalent-xml