iso-bib-item 0.4.0 → 0.4.1

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: c1a1bd9ee86b20e2f62362a7d3a32a3d652d37a940faf0b84a72a0a33154f7f0
4
- data.tar.gz: 3b4368c16c6d0339a4fb248a4b625adf4a4480f4a0d9b2d127f4e097e9a9259e
3
+ metadata.gz: 851d7eeda20441447ee2a82966d8c0bd57677d009361d52a0875538a56deb56d
4
+ data.tar.gz: 4bbc5a4c779795d8b1fbb7a251d48dd0934d9ee1f4775c1ec82a4719e780c3d8
5
5
  SHA512:
6
- metadata.gz: bf24100c5bb263e037001e48cce1d93a5125b794f92738ee3c1b6dfb4422cd3af042dd5d6cf2982c222cc8384ff9547cc06dc5fe78748117905cb3be72940501
7
- data.tar.gz: 78f2b6faa51d28559b2043bde2e64c47f92487e9b2d1f486218b73258bf0541a844ac82d382e7a6aac725b13502e1fd478de6459bbcf2d5f7edc61a2c6a64cf8
6
+ metadata.gz: c6fd6f005183cbeb54120ea58a491456ca3402f1ad460706e88e5df54853a0fc749bd5ab756608da81b26ee01e0e6d8502166262550d618e31f091ba3f3559a0
7
+ data.tar.gz: 373808606b09e65fc2f317e06cf114aacffa5a6faaa0aab98747156fad54afa60fc4953a52847f105267aece743fd3621ede69c4837679561e59cab0ba65a1de
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iso-bib-item (0.4.0)
4
+ iso-bib-item (0.4.1)
5
5
  isoics (~> 0.1.6)
6
6
  nokogiri (~> 1.8.4)
7
7
  ruby_deep_clone (~> 0.8.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module IsoBibItem
4
- VERSION = '0.4.0'.freeze
4
+ VERSION = '0.4.1'.freeze
5
5
  end
@@ -39,7 +39,7 @@ module IsoBibItem
39
39
  else
40
40
  id = get_id did
41
41
  ret << IsoBibItem::IsoDocumentId.new(project_number: id.nil? ? did.text : id[:project],
42
- part_number: id.nil? ? nil : id[:part],
42
+ part_number: (id.nil? || !id.names.include?("part")) ? nil : id[:part],
43
43
  prefix: nil,
44
44
  id: did.text,
45
45
  type: type&.text)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso-bib-item
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-10-16 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler