relaton-bib 1.14.10 → 1.14.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -0
- data/.github/workflows/release.yml +3 -0
- data/lib/relaton_bib/formatted_string.rb +1 -1
- data/lib/relaton_bib/typed_uri.rb +3 -3
- data/lib/relaton_bib/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d799e6b7be315a63d122e6a89f1f60dbc1aef9d21f9b3a267ad1e2de408d92df
|
4
|
+
data.tar.gz: c7cac7e1155483ee1006e95fff21a0940447217c67872b33dd217e401e2be3ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1331ea995b1c2dd1625f39e0a01640bd44f7638e0233078b01f915609191d3df6864520e34d19de75d6dafeea78102e48d03a14d7943b20f15eb69a28cd98b2
|
7
|
+
data.tar.gz: 2c3d2bae17e7af02f28cafedcf323ffcd79bc9cef7686873bc0a4611f456bee7e6d866635005bfc3626f9206ce713ba0580f0205663338894f2efe083aff924c
|
data/.github/workflows/rake.yml
CHANGED
@@ -123,7 +123,7 @@ module RelatonBib
|
|
123
123
|
.gsub(/<i>/, "<em>").gsub(/<\/i>/, "</em>")
|
124
124
|
.gsub(/<b>/, "<strong>").gsub(/<\/b>/, "</strong>")
|
125
125
|
.gsub(/<(?!\/?(em|strong|stem|sup|sub|tt|br\s?\/|p))[^\s!]\/?.*?>/, "")
|
126
|
-
.gsub(/\s+([.,:;!?<])/, "\\1").strip
|
126
|
+
.gsub(/\s+([.,:;!?<])/, "\\1").strip.squeeze(" ")
|
127
127
|
end
|
128
128
|
end
|
129
129
|
end
|
@@ -13,10 +13,10 @@ module RelatonBib
|
|
13
13
|
# @param language [String, nil] language code Iso639 (optional) (default: nil)
|
14
14
|
# @param script [String, nil] script code Iso15924 (optional) (default: nil)
|
15
15
|
def initialize(content:, type: nil, language: nil, script: nil)
|
16
|
-
@type
|
16
|
+
@type = type
|
17
17
|
@language = language
|
18
|
-
@script
|
19
|
-
@content
|
18
|
+
@script = script
|
19
|
+
@content = Addressable::URI.parse content if content
|
20
20
|
end
|
21
21
|
|
22
22
|
# @param url [String]
|
data/lib/relaton_bib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -284,7 +284,7 @@ homepage: https://github.com/relaton/relaton-bib
|
|
284
284
|
licenses:
|
285
285
|
- BSD-2-Clause
|
286
286
|
metadata: {}
|
287
|
-
post_install_message:
|
287
|
+
post_install_message:
|
288
288
|
rdoc_options: []
|
289
289
|
require_paths:
|
290
290
|
- lib
|
@@ -299,8 +299,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
299
299
|
- !ruby/object:Gem::Version
|
300
300
|
version: '0'
|
301
301
|
requirements: []
|
302
|
-
rubygems_version: 3.
|
303
|
-
signing_key:
|
302
|
+
rubygems_version: 3.4.9
|
303
|
+
signing_key:
|
304
304
|
specification_version: 4
|
305
305
|
summary: 'RelatonBib: Ruby XMLDOC impementation.'
|
306
306
|
test_files: []
|