relaton-bib 1.14.8 → 1.14.9

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: ff4c62e3683ecca566b1d7c049ec5c3baf69f75fe3813acda5f747a8d385bafa
4
- data.tar.gz: cf3201b765d07ebb8db5a07637aeb86dca0e0bb60fad3bf1d0673dab103fb58e
3
+ metadata.gz: 1273f9228474261e4a5a9364d279c8fa3206f513fa20abf9c6dc25eaf141e00a
4
+ data.tar.gz: ec2ba1a41d35c28b90a188ade205ce7b450fe391cea19648f4d09ebee5e5ca0c
5
5
  SHA512:
6
- metadata.gz: addfb32431cc77d4cb144661cc9e2967ab7733ca47e2f039f939915988f855d02629e320d5fd913aacca5381155cc6e60d6ddef5327383623dc9cc424141346c
7
- data.tar.gz: afce6d86c91eb274d2e43c4ffd2c9c15e06340d613daf3fbe364c67299968c143ec482878af20836855d47fb691a65b79f7f2c1470f060a4749d47834afbe5a8
6
+ metadata.gz: 742952cf22934e1569bdc0adedd75edc306e45176709211b7fcdf82752c0e5143f625d1d035d4d21c003b73c4b2d2666682f739cab038fcb482dfff0131e015c
7
+ data.tar.gz: 604ce84dc9d51c2496280ddd04710d3403e8e6d83c914b4a6955d3c2aa2fdba65530d7255a8ab964dc328fed21965714c0deeb9384b0564f487972e9a92d333a
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.14.8".freeze
2
+ VERSION = "1.14.9".freeze
3
3
  end
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.8
4
+ version: 1.14.9
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-03-30 00:00:00.000000000 Z
11
+ date: 2023-04-04 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"