relaton-iso-bib 0.3.11 → 0.3.12

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: ba6b72fc66aa8a06f0a59c58042c4eaeb05ef2925a92041d07fd4aa9eb709248
4
- data.tar.gz: d0a4cf71db548e00711ddd726a5dfbf0016d4244664ce32f74d266ce143bf8d0
3
+ metadata.gz: 7fde43ad2b5ed4626156837d01cbba679ac0fdf0a37079a1c2484de05b6229b7
4
+ data.tar.gz: ecc80f5059c2a14f2ed74635619b2ae673a9b93f1ce99a778bc756c5c9465961
5
5
  SHA512:
6
- metadata.gz: 191d481ecc5316be81dc423957966d987ec92d3cdb250f49c96055602cbdc754bb81c42c021f8f8f80718f678fc94c4b03ffbc9e3f76773890cb6eea41e75d04
7
- data.tar.gz: 55d9c90295de1f86d8169ba1b2108789106bab16fd2ac5e4db8d68fa906e4221ac04e2fbd7a636ba459de8898dd5ff8deb7666eb22d4dd9b9179ded0969afa31
6
+ metadata.gz: 86fecd91650295317ba9863fc6a1d3d3c07234dda2c9d6f589413d5161d1fbdc1c2bf442a02baf1b205ca30931d965553225b2eae3513d0820e8f2e768c7fdb2
7
+ data.tar.gz: 8b4d38686f0bfb31994403212bb9c0c3f04872ac61e0fa0ee5b31b0ec914e16bca029c6a825b2608bd05cf07e7138a042c903adfb144da6373281c51e3aa3252
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-iso-bib (0.3.11)
4
+ relaton-iso-bib (0.3.12)
5
5
  isoics (~> 0.1.6)
6
6
  relaton-bib (~> 0.3.0)
7
7
  ruby_deep_clone (~> 0.8.0)
@@ -34,7 +34,7 @@ GEM
34
34
  pry (~> 0.10)
35
35
  public_suffix (4.0.1)
36
36
  rake (10.5.0)
37
- relaton-bib (0.3.11)
37
+ relaton-bib (0.3.12)
38
38
  addressable
39
39
  nokogiri
40
40
  rspec (3.8.0)
@@ -232,7 +232,8 @@ module RelatonIsoBib
232
232
  end
233
233
  end
234
234
  super builder, **opts do |b|
235
- if opts[:bibdata]
235
+ if opts[:bibdata] && (doctype || respond_to?(:committee) && committee ||
236
+ editorialgroup || ics.any? || structuredidentifier || block_given?)
236
237
  b.ext do
237
238
  b.doctype doctype if doctype
238
239
  # GB renders gbcommittee elements istead of an editorialgroup element.
@@ -255,7 +256,7 @@ module RelatonIsoBib
255
256
  hash["editorialgroup"] = editorialgroup.to_hash if editorialgroup
256
257
  hash["ics"] = single_element_array(ics) if ics&.any?
257
258
  hash["structuredidentifier"] = structuredidentifier.to_hash if structuredidentifier
258
- hash["type"] = doctype if doctype
259
+ hash["doctype"] = doctype if doctype
259
260
  hash
260
261
  end
261
262
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "0.3.11".freeze
2
+ VERSION = "0.3.12".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iso-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler