rfcbib 0.2.4 → 0.3.0

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: ad77029a892d6d83bf3bbe6c7f89846f5591466f879496ad52dffc0fe46247e2
4
- data.tar.gz: 9bdcade50f7d7bf77a3dc7ec6255088affd70665e0edf3343e96994639d5c420
3
+ metadata.gz: 841490d1cc201afc1837d5d3f774c336027e258375cc0307f9e8a689ff6fbd98
4
+ data.tar.gz: 79784a1d4d2106d359316be886bb7c8e45be2cf6fe257211c9ccecb18de2dd0f
5
5
  SHA512:
6
- metadata.gz: a024522ab6812e6dd9f2ac5723681a2edd7f028bd37d77ba2185ca5e1aea274bfeb3f9c72b231bfbdcdbd8302ee7494025b47eb73fa4846031a9835abf23c59a
7
- data.tar.gz: 5888832d1edf7c8f8a5909f671c3a43f4e5b1c02b83d53cecfe7772d2769dc3769e86ec3a498c5cf5620966c346a5bd92f90b7a263cfe49ac98d9c8b0879a750
6
+ metadata.gz: 7ce54df2766cadce1956040710e54cb979d811976e252c21f5a947364ab34d3aafb68382fc5d889fd44245bcc3aaa444542fb8014361b06270087cac26beac59
7
+ data.tar.gz: 634a253f4b7b9adba50b1fd530e74bddcaec437187eb121b08124fc3753dac891a301de385f30cfb6e3cedeef8ebb4fad0623a69475a1f74e98a0e3a0e985c9c
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rfcbib (0.2.3)
5
- iso-bib-item (~> 0.2.0)
4
+ rfcbib (0.3.0)
5
+ iso-bib-item (~> 0.3.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -13,7 +13,7 @@ GEM
13
13
  docile (1.3.1)
14
14
  equivalent-xml (0.6.0)
15
15
  nokogiri (>= 1.4.3)
16
- iso-bib-item (0.2.5)
16
+ iso-bib-item (0.3.0)
17
17
  isoics (~> 0.1.6)
18
18
  nokogiri (~> 1.8.4)
19
19
  ruby_deep_clone (~> 0.8.0)
@@ -5,7 +5,8 @@ module Relaton
5
5
  class Processor < Relaton::Processor
6
6
  def initialize
7
7
  @short = :rfcbib
8
- @prefix = /^(IETF (Standard )?)?(RFC |I-D\.-)/
8
+ @prefix = "IETF"
9
+ @defaultprefix = /^RFC /
9
10
  end
10
11
 
11
12
  def get(code, date, opts)
@@ -174,10 +174,7 @@ module RfcBib
174
174
  ret << IsoBibItem::DocumentIdentifier.new(type: "IETF", id: id)
175
175
  ret = ret + @reference.xpath('//seriesinfo').map do |si|
176
176
  next unless si[:name] == 'DOI'
177
- IsoBibItem::DocumentIdentifier.new(
178
- id: si[:value],
179
- type: si[:name]
180
- )
177
+ IsoBibItem::DocumentIdentifier.new(id: si[:value], type: si[:name])
181
178
  end.compact
182
179
  end
183
180
 
@@ -1,3 +1,3 @@
1
1
  module Rfcbib
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.3.0'.freeze
3
3
  end
data/rfcbib.gemspec CHANGED
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'rspec', '~> 3.0'
32
32
  spec.add_development_dependency 'simplecov'
33
33
 
34
- spec.add_dependency 'iso-bib-item', '~> 0.2.0'
34
+ spec.add_dependency 'iso-bib-item', '~> 0.3.0'
35
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfcbib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-01 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.0
103
+ version: 0.3.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.2.0
110
+ version: 0.3.0
111
111
  description: 'RfcBib: retrieve RFC Standards for bibliographic use using the BibliographicItem
112
112
  model'
113
113
  email: