relaton 0.2.0 → 0.2.1

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: 33f253d144e0c65c1566fbca9cf1ed1091bc3cbc45684ba6018ed55931b74bf2
4
- data.tar.gz: 45512a29a7ca17f7163d6b1ad638b24f27362bf664d36b46e8d46ca1e18d189d
3
+ metadata.gz: 42657976ee71d76c27bac1941026c136517bea759989c972c648ba32c81158ba
4
+ data.tar.gz: 7831b19745e10f9c29149062f7a6ca58a5ef57228ea94c979c12304471e9d8a2
5
5
  SHA512:
6
- metadata.gz: f0faf8d0629d94b8903ffb8bccc8b6a136a15845c7deaeabeb25a95a8ede5fb8290b37d40dd5d8eaf5d7eb0819452f859f653d4f232e8c9d7fa4879e3cd0770e
7
- data.tar.gz: a8016b0c497a30e2f2af7d82d1f6ffe47114ace623ad825fd5654ead94591d7cb4cb7daedd5be4cb4a5e991d3c35f9534552ce75848e9007039420b861033afd
6
+ metadata.gz: b7892859942c64071e0d135313201915b97330778e339f296b992846fc10502ff114cec5c826ce6151e6f242439bcd801921f16429038adec040989e06542c78
7
+ data.tar.gz: deb64d1b2ee5a6222624ab991dba4b8f3178bf44c8a75318d169c952c8f53bf77e872f73b1c83e4a2ac9a59bf9a91860bff79753c63f5c331c568527d0616fa2
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton (0.2.0)
4
+ relaton (0.2.1)
5
5
  algoliasearch
6
6
  gbbib (~> 0.3.0)
7
+ ietfbib (~> 0.4.0)
7
8
  iso-bib-item (~> 0.3.0)
8
9
  isobib (~> 0.3.0)
9
- rfcbib (~> 0.3.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -44,6 +44,8 @@ GEM
44
44
  guard-compat (~> 1.1)
45
45
  rspec (>= 2.99.0, < 4.0)
46
46
  httpclient (2.8.3)
47
+ ietfbib (0.4.0)
48
+ iso-bib-item (~> 0.3.0)
47
49
  iso-bib-item (0.3.0)
48
50
  isoics (~> 0.1.6)
49
51
  nokogiri (~> 1.8.4)
@@ -82,8 +84,6 @@ GEM
82
84
  rb-fsevent (0.10.3)
83
85
  rb-inotify (0.9.10)
84
86
  ffi (>= 0.5.0, < 2)
85
- rfcbib (0.3.0)
86
- iso-bib-item (~> 0.3.0)
87
87
  rspec (3.8.0)
88
88
  rspec-core (~> 3.8.0)
89
89
  rspec-expectations (~> 3.8.0)
@@ -97,7 +97,7 @@ GEM
97
97
  diff-lcs (>= 1.2.0, < 2.0)
98
98
  rspec-support (~> 3.8.0)
99
99
  rspec-support (3.8.0)
100
- rubocop (0.58.2)
100
+ rubocop (0.59.0)
101
101
  jaro_winkler (~> 1.5.1)
102
102
  parallel (~> 1.10)
103
103
  parser (>= 2.5, != 2.5.1.1)
@@ -5,7 +5,7 @@ module Relaton
5
5
  class RelatonError < StandardError; end
6
6
 
7
7
  class Db
8
- SUPPORTED_GEMS = %w[isobib rfcbib gbbib].freeze
8
+ SUPPORTED_GEMS = %w[isobib ietfbib gbbib].freeze
9
9
 
10
10
  # @param global_cache [String] filename of global DB
11
11
  # @param local_cache [String] filename of local DB
@@ -31,7 +31,7 @@ module Relaton
31
31
  end
32
32
 
33
33
  # The class of reference requested is determined by the prefix of the code:
34
- # GB Standard for gbbib, IETF for rfcbib, ISO or IEC or IEV for isobib
34
+ # GB Standard for gbbib, IETF for ietfbib, ISO or IEC or IEV for isobib
35
35
  # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
36
36
  # @param year [String] the year the standard was published (optional)
37
37
  # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "algoliasearch"
31
31
  spec.add_dependency "gbbib", "~> 0.3.0"
32
32
  spec.add_dependency "isobib", "~> 0.3.0"
33
- spec.add_dependency "rfcbib", "~> 0.3.0"
33
+ spec.add_dependency "ietfbib", "~> 0.4.0"
34
34
  spec.add_dependency 'iso-bib-item', '~> 0.3.0'
35
35
 
36
36
  spec.add_development_dependency "bundler", "~> 1.15"
@@ -88,7 +88,7 @@ RSpec.describe Relaton::Db do
88
88
  end
89
89
 
90
90
  it "get RFC reference and cache it" do
91
- stub_bib RfcBib::RfcBibliography
91
+ stub_bib IETFBib::RfcBibliography
92
92
  bib = @db.fetch "RFC 8341", nil, {}
93
93
  expect(bib).to be_instance_of IsoBibItem::BibliographicItem
94
94
  expect(bib.to_xml).to include "<bibitem id=\"RFC8341\">"
@@ -7,8 +7,6 @@ end
7
7
 
8
8
  require "bundler/setup"
9
9
  require "relaton"
10
- # require "isobib"
11
- # require "gbbib"
12
10
  require "rspec/matchers"
13
11
  require "equivalent-xml"
14
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: algoliasearch
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: rfcbib
56
+ name: ietfbib
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.3.0
61
+ version: 0.4.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.3.0
68
+ version: 0.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: iso-bib-item
71
71
  requirement: !ruby/object:Gem::Requirement