relaton-ietf 1.12.5 → 1.12.6

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: 0eddad3431b1f0aade4e139456c33ae9cd067eaec9dd38b64257be00e285efd7
4
- data.tar.gz: 156d9d50c7964ec4167526fc1f31460134c717fbd48c4dd41b7d4bc42450c094
3
+ metadata.gz: '029ac486811190a8734f2b620b92a99b5270e8f100a793901d96052c71f6dbed'
4
+ data.tar.gz: 2cb2fc3ef85479025d220878b3796587de1ce3622c1372f21faeaa37d581775d
5
5
  SHA512:
6
- metadata.gz: ab78ea185c4bf6e7be09f78a7457f36ac3f1951b46bc0b2c3c33b6465fcdee9cdad00cb69f3fc606144bba3efe2e94e765a340933d129a67dfd29aa6c8dfa14f
7
- data.tar.gz: 8e5e48e4257c89edcca19c85e54d5ef2dfc8a941ebed64cd3b826f63373774d25f2ef6b9c65ae2752e36fb7efa118874be489e5ee9f6faefceae674d9919e4dd
6
+ metadata.gz: 2da2657783478b1fa88cf1669fb5d5e1f556baed0d43e4efbbf8728309dc10c27a6ffd073653f80e97b3eb9619776fac8ee78264868ce2bcfb0ef8dad38f1298
7
+ data.tar.gz: 5828a4b7d87cc7c258c213c5a3bb6d0cd7ed11f7c60d5eaaf8ede3ed8d65213a1d7fefe7254705ce9f1355e4450e7903bfb0859067ad4d205c43f31c6fd1d9cf
@@ -67,7 +67,7 @@ module RelatonIetf
67
67
  versions = Dir["bibxml-ids/*.xml"].each_with_object([]) do |path, vers|
68
68
  file = File.basename path, ".xml"
69
69
  if file.include?("D.draft-")
70
- vers << file.sub(/^reference\.I-D\./, "")
70
+ vers << file.sub(/^reference\.I-D\./, "").downcase
71
71
  /(?<ver>\d+)$/ =~ file
72
72
  end
73
73
  bib = BibXMLParser.parse(File.read(path, encoding: "UTF-8"))
@@ -92,7 +92,7 @@ module RelatonIetf
92
92
  match = /(?<series>draft-.+)-(?<ver>\d{2})\.#{@ext}$/.match file
93
93
  if match
94
94
  if series != match[:series]
95
- bib_versions = versions.grep(/^#{match[:series]}-\d{2}/)
95
+ bib_versions = versions.grep(/^#{Regexp.quote match[:series]}-\d{2}/)
96
96
  create_series match[:series], bib_versions
97
97
  series = match[:series]
98
98
  end
@@ -115,8 +115,6 @@ module RelatonIetf
115
115
  # @param [Array<String>] versions list of versions
116
116
  #
117
117
  def create_series(ref, versions) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
118
- return if versions.size < 2
119
-
120
118
  vs = versions.sort_by { |v| v.match(/\d+$/).to_s.to_i }
121
119
  fref = RelatonBib::FormattedRef.new content: ref
122
120
  docid = RelatonBib::DocumentIdentifier.new type: "Internet-Draft", id: ref, primary: true
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.12.5".freeze
2
+ VERSION = "1.12.6".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.5
4
+ version: 1.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.