relaton-iso-bib 0.3.5 → 0.3.6

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: e582dc61722d2b4fe79dfb6d25debc0f2844bae7
4
- data.tar.gz: 45f81d2be3f8261401aeb600b540479d81ad54b1
3
+ metadata.gz: 0411f24d480b2e4d3773fce1aa5c901bd71e2cca
4
+ data.tar.gz: f33b8b479148543c53cc5d5b64907f21bde3cd0d
5
5
  SHA512:
6
- metadata.gz: c5602dcb2b522a5db62616cff786134e51ca59a4ced7c6365acbd08108b43db294f03b9326723d98f597877429a57cffec9c52f33ce29bc42e0d48b933ad57e1
7
- data.tar.gz: 64fb22d607b84c346cae1a87a7da80e515c59ed62cbd42201d81dc9137e3899850df8ecf99c5d03b5d76ac4c7bb0cc68681275fbb887bb254c549c9f169facc4
6
+ metadata.gz: 42c4dd941b689d08aebd6cc02f12908041bb8b6251a1de234825d33c4198eca63f9cced401e222b58c88a01cd40b7ae6abdda94d5d8f378105e5013fd7303e81
7
+ data.tar.gz: bc98b926015b267b0eeb07dad7ad6d34453b164d4b901e98108a31286d12da2a4574d579b24fa1a818cc937a7d3ff4c4b6bf36c89aedb365d2a525604ab0a6bc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton-iso-bib (0.3.5)
4
+ relaton-iso-bib (0.3.6)
5
5
  isoics (~> 0.1.6)
6
6
  relaton-bib (~> 0.3.0)
7
7
  ruby_deep_clone (~> 0.8.0)
@@ -13,7 +13,7 @@ GEM
13
13
  public_suffix (>= 2.0.2, < 5.0)
14
14
  byebug (11.0.1)
15
15
  coderay (1.1.2)
16
- debase (0.2.2)
16
+ debase (0.2.4.1)
17
17
  debase-ruby_core_source (>= 0.10.2)
18
18
  debase-ruby_core_source (0.10.5)
19
19
  diff-lcs (1.3)
@@ -34,14 +34,14 @@ GEM
34
34
  pry (~> 0.10)
35
35
  public_suffix (4.0.1)
36
36
  rake (10.5.0)
37
- relaton-bib (0.3.5)
37
+ relaton-bib (0.3.7)
38
38
  addressable
39
- nokogiri (~> 1.10)
39
+ nokogiri
40
40
  rspec (3.8.0)
41
41
  rspec-core (~> 3.8.0)
42
42
  rspec-expectations (~> 3.8.0)
43
43
  rspec-mocks (~> 3.8.0)
44
- rspec-core (3.8.1)
44
+ rspec-core (3.8.2)
45
45
  rspec-support (~> 3.8.0)
46
46
  rspec-expectations (3.8.4)
47
47
  diff-lcs (>= 1.2.0, < 2.0)
@@ -53,7 +53,7 @@ GEM
53
53
  ruby-debug-ide (0.7.0)
54
54
  rake (>= 0.8.1)
55
55
  ruby_deep_clone (0.8.0)
56
- simplecov (0.16.1)
56
+ simplecov (0.17.1)
57
57
  docile (~> 1.1)
58
58
  json (>= 1.8, < 3)
59
59
  simplecov-html (~> 0.10.0)
@@ -16,7 +16,7 @@ module RelatonIsoBib
16
16
  end
17
17
 
18
18
  def split_title(content, lang = "en", script = "Latn")
19
- titles = content&.split " -- "
19
+ titles = content&.split(/ (?:--|—|–) /)
20
20
  case titles&.size
21
21
  when nil, 0
22
22
  intro, main, part = nil, "", nil
@@ -176,7 +176,7 @@ module RelatonIsoBib
176
176
  @language.each do |l|
177
177
  @title.delete_if { |t| t.type == "title-part" }
178
178
  ttl = @title.select { |t| t.type != "main" && t.title.language.include?(l) }
179
- tm_en = ttl.map { |t| t.title.content }.join " - "
179
+ tm_en = ttl.map { |t| t.title.content }.join " "
180
180
  @title.detect { |t| t.type == "main" && t.title.language.include?(l) }&.title&.content = tm_en
181
181
  end
182
182
  @abstract = []
@@ -317,7 +317,7 @@ module RelatonIsoBib
317
317
 
318
318
  unless titles.empty?
319
319
  titles << TypedTitleString.new(
320
- type: "main", content: titles.map { |t| t.title.content }.join(" - "),
320
+ type: "main", content: titles.map { |t| t.title.content }.join(" "),
321
321
  language: title[:language], script: title[:script], format: "text/plain",
322
322
  )
323
323
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "0.3.5".freeze
2
+ VERSION = "0.3.6".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.5
4
+ version: 0.3.6
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-09-11 00:00:00.000000000 Z
11
+ date: 2019-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler