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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1edb227541109c47923e060caf25a50ffeeaf2d362eb4a9276cc9bc89cfe9f51
4
- data.tar.gz: 7b28b171dd95a6a0c8d2206bede0310cd3c6cd04f3a6280c84b27ce7aa8d4566
3
+ metadata.gz: 0f3ee98d51451363706aeeeec977b5836e1d9b4c0ed4959672382fafc996a283
4
+ data.tar.gz: 466e49dceede8b1c04c959f9b69b839ec31f62a3d34af686f45ef1e255943b56
5
5
  SHA512:
6
- metadata.gz: 124ece600b2e52bfea0dbfd125ecc2f2b6dfaad5774009fd76a21a14e06cff916287497c76929616b45e7bf461b7ba72ee700a49e362d4e22bdfb5f28af54e0b
7
- data.tar.gz: 1b8d1a934be80ad1f113e0e82eaa7e3084256dd5ef7cfee0c0d1d74b3d4f9b809592aa1fc34972e003d0ecbca18a411aa6c64edf40e2ae4aaddc091ffc6cbc8e
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
@@ -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
- (r.value.include?('Creator') || r.value.include?('Author'))
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
  }
@@ -1,6 +1,6 @@
1
1
  module Stanford
2
2
  module Mods
3
3
  # this is the Ruby Gem version
4
- VERSION = '2.6.2'.freeze
4
+ VERSION = '2.6.3'.freeze
5
5
  end
6
6
  end
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'>Creator</roleTerm></role>
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'>Author</roleTerm></role>
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.2
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: 2020-07-26 00:00:00.000000000 Z
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.2
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