relaton-bib 1.14.8 → 1.14.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a629df727fd6d8fb5429936488b905865be53d089945aeb55f0f0fd51c266ab8
|
4
|
+
data.tar.gz: 1612798330ec595fe856bc465013d441aca9fbc8b894e6e6c41ee252152f7269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0808918cd59dcdba35172ef1b8453dbabae6a0c60e56a0924d52ca103b1dd5d6885a6432c61c9c3b6dd4bf1e67ce1e79ba8c8effa5cbc7412f681632b336b5a7'
|
7
|
+
data.tar.gz: 407b46555e0af962a6bc61722da91af43856aa638b555146ec8e2ce18106cca47602ed8207fd18d5d230f2c9be1965f7a23fb3b74ced9e28115430d17c8cb1e4
|
@@ -0,0 +1,54 @@
|
|
1
|
+
name: integration-tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master, main ]
|
6
|
+
pull_request:
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
tests:
|
10
|
+
name: Integration test ${{ matrix.repo }}
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
|
13
|
+
concurrency:
|
14
|
+
group: '${{ github.workflow }}-${{ github.job }}-${{ matrix.repo }}-${{ github.head_ref || github.ref_name }}'
|
15
|
+
cancel-in-progress: true
|
16
|
+
|
17
|
+
continue-on-error: true
|
18
|
+
strategy:
|
19
|
+
matrix:
|
20
|
+
repo: [ relaton-render ]
|
21
|
+
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v3
|
24
|
+
with:
|
25
|
+
submodules: true
|
26
|
+
|
27
|
+
- uses: ruby/setup-ruby@v1
|
28
|
+
with:
|
29
|
+
ruby-version: '3.1'
|
30
|
+
bundler-cache: true
|
31
|
+
|
32
|
+
- uses: actions/checkout@v3
|
33
|
+
with:
|
34
|
+
submodules: recursive
|
35
|
+
repository: relaton/${{ matrix.repo }}
|
36
|
+
path: ${{ matrix.repo }}
|
37
|
+
fetch-depth: 0
|
38
|
+
|
39
|
+
- if: github.event_name == 'pull_request'
|
40
|
+
run: |
|
41
|
+
if [ `git rev-parse --verify "${GITHUB_HEAD_REF}" 2>/dev/null` ]
|
42
|
+
then
|
43
|
+
git checkout "${GITHUB_HEAD_REF}"
|
44
|
+
fi
|
45
|
+
working-directory: ${{ matrix.repo }}
|
46
|
+
|
47
|
+
- run: |
|
48
|
+
gem_name=$(echo ${GITHUB_REPOSITORY} | cut -d "/" -f 2)
|
49
|
+
bundle remove ${gem_name} || true
|
50
|
+
bundle add ${gem_name} --path ..
|
51
|
+
working-directory: ${{ matrix.repo }}
|
52
|
+
|
53
|
+
- run: bundle exec rake
|
54
|
+
working-directory: ${{ matrix.repo }}
|
@@ -28,17 +28,17 @@ module RelatonBib
|
|
28
28
|
def remove_part
|
29
29
|
case @type
|
30
30
|
when "Chinese Standard" then @id.sub!(/\.\d+/, "")
|
31
|
-
when "ISO", "IEC", "BSI" then @id.sub!(/-[^:]+/, "")
|
32
31
|
when "URN" then remove_urn_part
|
32
|
+
else @id.sub!(/-[^:]+/, "")
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
def remove_date
|
37
37
|
case @type
|
38
38
|
when "Chinese Standard" then @id.sub!(/-[12]\d\d\d/, "")
|
39
|
-
when "ISO", "IEC", "BSI" then @id.sub!(/:[12]\d\d\d/, "")
|
40
39
|
when "URN"
|
41
40
|
@id.sub!(/^(urn:iec:std:[^:]+:[^:]+:)[^:]*/, '\1')
|
41
|
+
else @id.sub!(/:[12]\d\d\d/, "")
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
data/lib/relaton_bib/hit.rb
CHANGED
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -213,6 +213,7 @@ executables: []
|
|
213
213
|
extensions: []
|
214
214
|
extra_rdoc_files: []
|
215
215
|
files:
|
216
|
+
- ".github/workflows/integration-tests.yml"
|
216
217
|
- ".github/workflows/rake.yml"
|
217
218
|
- ".github/workflows/release.yml"
|
218
219
|
- ".gitignore"
|