isobib 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: bf74496dde550035db49835da840400924291407cb76fe1a9dbc9a96cc8e12de
4
- data.tar.gz: e7055116cc3c01c3e6efe3b5bce98e5e372333b49d809ff47a941fd02e845787
3
+ metadata.gz: ff1175d6550a39c4f9a71de9df704450338cbc6b209fd428ca7246125301bc85
4
+ data.tar.gz: '092ca049b61e5d2679186c089d3dd9c7cb815745dfe523b5f4bf617c15f6559b'
5
5
  SHA512:
6
- metadata.gz: 91e3413992182f15809e2eba4fb8b03dfb498540d9f51443178f990e6a1634969145b0ef7d1430226c7077350f1f49ac2835bbf50b867b145aa2cfde1acb18bc
7
- data.tar.gz: 4006c209098d787dc209412ed5820e5c628ad2a804b18691e00bb2dbf08dc61c1b2dca92c4f8dfe247465353dd7185d4ccde05e22681e3890d6eb093999da846
6
+ metadata.gz: c6ad16bec6986fd3a08dc267c07beedc40c6bf21466a538ca90088bb9a97246dc50bf9b140c75218b3780342baa1c6bd2a50ad31ae95295d13eb994da6e37769
7
+ data.tar.gz: 6d13daf781bf41b62904b42c4642bfda4bc576617ce3776b4f47544f4c24009183ff1816a58f8c087f23e3fd893ab461e4ccf44e0826e7cc11779877d8fc8409
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isobib (0.2.0)
4
+ isobib (0.2.2)
5
5
  algoliasearch
6
- iso-bib-item (~> 0.2.1)
6
+ iso-bib-item (~> 0.2.3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -18,7 +18,7 @@ GEM
18
18
  equivalent-xml (0.6.0)
19
19
  nokogiri (>= 1.4.3)
20
20
  httpclient (2.8.3)
21
- iso-bib-item (0.2.2)
21
+ iso-bib-item (0.2.3)
22
22
  isoics (~> 0.1.6)
23
23
  nokogiri (~> 1.8.4)
24
24
  ruby_deep_clone (~> 0.8.0)
@@ -25,7 +25,7 @@ module Isobib
25
25
  # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
26
26
  # @return [String] Relaton XML serialisation of reference
27
27
  def get(code, year, opts)
28
- return iev.to_xml if code.casecmp('IEV') == 0
28
+ return iev if code.casecmp('IEV') == 0
29
29
  code += '-1' if opts[:all_parts]
30
30
  ret = isobib_get1(code, year, opts)
31
31
  return nil if ret.nil?
@@ -79,7 +79,7 @@ module Isobib
79
79
 
80
80
 
81
81
  def iev
82
- Nokogiri::XML.fragment(<<~"END")
82
+ IsoBibItem.from_xml(<<~"END")
83
83
  <bibitem type="international-standard" id="IEV">
84
84
  <title format="text/plain" language="en" script="Latn">Electropedia:
85
85
  The World's Online Electrotechnical Vocabulary</title>
@@ -96,6 +96,7 @@ module Isobib
96
96
  </contributor>
97
97
  <language>en</language> <language>fr</language>
98
98
  <script>Latn</script>
99
+ <status> <stage>60</stage> </status>
99
100
  <copyright>
100
101
  <from>#{Date.today.year}</from>
101
102
  <owner>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isobib
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isobib
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.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler