stanford-mods 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +24 -0
- data/lib/stanford-mods/name.rb +1 -1
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/name_spec.rb +2 -2
- metadata +4 -4
- data/.travis.yml +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3ee98d51451363706aeeeec977b5836e1d9b4c0ed4959672382fafc996a283
|
4
|
+
data.tar.gz: 466e49dceede8b1c04c959f9b69b839ec31f62a3d34af686f45ef1e255943b56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '079d53973ab2747996b97cd64c562ebcfd62f0173196d9edd4e644cea1c6726cba9a42a831f9ab1a27d2044c7573bffcd5a7a82a11659fff4bbb65aa19b132a6'
|
7
|
+
data.tar.gz: 6ea034ef6590c9cdf48d934fc80f464f7dd495d4f9aa2a8848727c70db7645bd4ec1ee6ce463ba649da799ae1369a9a54bc878c88cb1a0ae43c04a88245fc4bf
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
tests:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: [jruby-9.2.14.0, 2.7, 3.0]
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v2
|
17
|
+
- name: Set up Ruby
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
- name: Install dependencies
|
22
|
+
run: bundle install
|
23
|
+
- name: Run tests
|
24
|
+
run: bundle exec rake
|
data/lib/stanford-mods/name.rb
CHANGED
@@ -17,7 +17,7 @@ module Stanford
|
|
17
17
|
first_wo_role ||= n if n.role.empty?
|
18
18
|
n.role.each { |r|
|
19
19
|
if r.authority.include?('marcrelator') &&
|
20
|
-
|
20
|
+
r.value.any? { |v| v.match(/creator/i) || v.match?(/author/i) }
|
21
21
|
result ||= n.display_value_w_date
|
22
22
|
end
|
23
23
|
}
|
data/spec/name_spec.rb
CHANGED
@@ -11,7 +11,7 @@ describe "name/author concepts" do
|
|
11
11
|
</name>" }
|
12
12
|
let(:plain_creator_text) { "<name>
|
13
13
|
<namePart>plain_creator_text</namePart>
|
14
|
-
<role><roleTerm type='text' authority='marcrelator'>
|
14
|
+
<role><roleTerm type='text' authority='marcrelator'>creator</roleTerm></role>
|
15
15
|
</name>" }
|
16
16
|
let(:plain_creator_non_mr) { "<name>
|
17
17
|
<namePart>plain_creator_non_mr</namePart>
|
@@ -23,7 +23,7 @@ describe "name/author concepts" do
|
|
23
23
|
</name>" }
|
24
24
|
let(:plain_author_text) { "<name>
|
25
25
|
<namePart>plain_author_text</namePart>
|
26
|
-
<role><roleTerm type='text' authority='marcrelator'>
|
26
|
+
<role><roleTerm type='text' authority='marcrelator'>author</roleTerm></role>
|
27
27
|
</name>" }
|
28
28
|
let(:plain_author_non_mr) { "<name>
|
29
29
|
<namePart>plain_author_non_mr</namePart>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mods
|
@@ -149,12 +149,12 @@ extra_rdoc_files:
|
|
149
149
|
- README.md
|
150
150
|
files:
|
151
151
|
- ".coveralls.yml"
|
152
|
+
- ".github/workflows/ruby.yml"
|
152
153
|
- ".gitignore"
|
153
154
|
- ".hound.yml"
|
154
155
|
- ".rspec"
|
155
156
|
- ".rubocop.yml"
|
156
157
|
- ".rubocop_todo.yml"
|
157
|
-
- ".travis.yml"
|
158
158
|
- ".yardopts"
|
159
159
|
- Gemfile
|
160
160
|
- LICENSE
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
- !ruby/object:Gem::Version
|
213
213
|
version: '0'
|
214
214
|
requirements: []
|
215
|
-
rubygems_version: 3.1.
|
215
|
+
rubygems_version: 3.1.4
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: Stanford specific wrangling of MODS metadata
|
data/.travis.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
script: rake
|
3
|
-
rvm:
|
4
|
-
- 2.7.0
|
5
|
-
- jruby-9.2.11.0
|
6
|
-
notifications: false
|
7
|
-
env:
|
8
|
-
global:
|
9
|
-
- CC_TEST_REPORTER_ID=102848d93bffaa165e4a28cf9998693634256355cd5821349afdea9792dbedaa
|
10
|
-
|
11
|
-
before_script:
|
12
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
13
|
-
- chmod +x ./cc-test-reporter
|
14
|
-
- ./cc-test-reporter before-build
|
15
|
-
|
16
|
-
after_script:
|
17
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|