rfcbib 0.2.1 → 0.2.2

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: ba5e03b00d32ab0dcbcdb229cbb3fe9b904de434bc26a51905995d8a1ad40839
4
- data.tar.gz: dc4c30e94ff3f1af5242f4f9b5334397bcbdfe618ef1632331369c14646dfce3
3
+ metadata.gz: c3c3222d54dac62bc53ae2aa83c8c17c91d0b10af9ae34b9c13482cfa9373814
4
+ data.tar.gz: 501faf3949bc0926ab835e1b8c35896ab25c6bb86a4d7fc421aa35e7cb6e5e0d
5
5
  SHA512:
6
- metadata.gz: 9550cb561a1859052ed5150c976dddba240cf9339d6cd7b1572345326c3cbb9dcd6bc2c5b496287cc0897438abb2c491fe81cc3847cacfda15f0d9b18e17cd3f
7
- data.tar.gz: 1720386b6400c1bcd6389969a52d56c2f7959b9243e5d458f777ab589f25011f90e3c5f6dcd861f5871825572bc6aff65639f55f743d58a94b7b1048677439c2
6
+ metadata.gz: 22eddb85d63b743be19f234d37a22862e631b5618421d1f3ecd0df80d919d6a6120bd5b40675e134f4b07cd52a4af339570648191f0f5795d26f84da45161db3
7
+ data.tar.gz: c1100e43e8a2a2d47a643d7b2a24d3874e18694bb54d86164737e0a78e66855585b77372d129ebe52e87a0946f35c87599dec4f8f296e0fb52f1682be9f10357
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfcbib (0.2.1)
4
+ rfcbib (0.2.2)
5
5
  iso-bib-item (~> 0.2.0)
6
6
 
7
7
  GEM
@@ -5,7 +5,7 @@ module Relaton
5
5
  class Processor < Relaton::Processor
6
6
  def initialize
7
7
  @short = :rfcbib
8
- @prefix = /^(IETF Standard )?(RFC|I-D\.?|I\.-D\.) /
8
+ @prefix = /^(IETF (Standard )?)?(RFC |I-D\.-)/
9
9
  end
10
10
 
11
11
  def get(code, date, opts)
@@ -17,7 +17,7 @@ module RfcBib
17
17
  if text =~ /^RFC/
18
18
  uri = URI("https://www.rfc-editor.org/refs/bibxml/reference.#{ref}")
19
19
  elsif text =~ /^I-D/
20
- uri = URI "https://xml2rfc.tools.ietf.org/public/rfc/bibxml-ids/reference.#{ref}"
20
+ uri = URI("https://xml2rfc.tools.ietf.org/public/rfc/bibxml-ids/reference.#{ref}")
21
21
  end
22
22
  doc = Nokogiri::HTML Net::HTTP.get(uri)
23
23
  @reference = doc.at('//reference')
@@ -1,3 +1,3 @@
1
1
  module Rfcbib
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfcbib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.