iso-bib-item 0.1.1 → 0.1.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
  SHA1:
3
- metadata.gz: 3e224cd0a76535c51c7bedd5f62315320931e2f5
4
- data.tar.gz: 6bda0b366a57d703d4a92442db1f0f3f62c7fea6
3
+ metadata.gz: 167f7de884af87babfc49d2b3c7b61d08ab60279
4
+ data.tar.gz: b8ded89ff398ca057030f2e5d6f85da7a8be8e01
5
5
  SHA512:
6
- metadata.gz: 7a668f88e71dcb1066d3c986a586a1f14a73c6886987c0c5d88d1e640eed5a7df54c9b12ffd181c3e7c10702679904ccb16c794ec2bc7260b3fca01e075130c3
7
- data.tar.gz: 641178e6d888f9d4cff8626ae9f665c5f0a49c0271d5f4d8b7b9e0ae05e2c313d0bc8df8c31fde150c112a8a72129fe4bf6ae9e7db0551cdcbe93fdb6902301c
6
+ metadata.gz: a6db4bb0307e3116f6554ba6cd728cd77b08619d632b9b9a6f596083cebbeadd548741dd28d696a17476faa4009f9f3556c43e028017f6bfc13a00cc1b1a85ee
7
+ data.tar.gz: efd0b655b0efe911fa6d08f9175619c76dcf4768aeaae710bca57a8b8610b14cf3576064d7b0b747061d832a974e2a630425b26b26099e893bfa77c312d8e861
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency 'rspec', '~> 3.0'
29
29
  spec.add_development_dependency 'simplecov'
30
30
 
31
- spec.add_dependency 'isoics'
31
+ spec.add_dependency 'isoics', '~> 0.1.6'
32
32
  spec.add_dependency 'nokogiri'
33
33
  end
@@ -33,7 +33,10 @@ module IsoBibItem
33
33
 
34
34
  # @return [String]
35
35
  def to_s
36
- "#{@title_intro} -- #{@title_main} -- #{@title_part}"
36
+ ret = @title_main
37
+ ret = "#{@title_intro} -- #{ret}" if @title_intro && !@title_intro.empty?
38
+ ret = "#{ret} -- #{@title_part}" if @title_part && !@title_part.empty?
39
+ ret
37
40
  end
38
41
 
39
42
  def to_xml(builder)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module IsoBibItem
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
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.1.1
4
+ version: 0.1.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-05-25 00:00:00.000000000 Z
11
+ date: 2018-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,16 +84,16 @@ dependencies:
84
84
  name: isoics
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 0.1.6
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 0.1.6
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: nokogiri
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.6.12
166
+ rubygems_version: 2.6.14
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: 'IsoBibItem: Ruby ISOXMLDOC impementation.'