cdmdexer 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +2 -0
- data/.github/workflows/ruby.yml +39 -0
- data/.gitignore +2 -0
- data/README.md +8 -3
- data/cdmdexer.gemspec +2 -1
- data/lib/cdmdexer/formatters.rb +1 -1
- data/lib/cdmdexer/version.rb +2 -2
- metadata +23 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09844cd37ea7523a05b092aeaaa92383b7871a75ae1892d598aeb16a6ef050b5'
|
4
|
+
data.tar.gz: 11384ed2379d8ea5115f1d5d04346261a0309f96342d910f0942b1f4c224123e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5213725ac3cf7459e21ccd537c15549beb4b52ff13f64f99af3e96b172b64ab49367777b0685dc9d86ffb86dd0ac91fb3b1ebb7e1ebf77f417b4f4f1c10a467
|
7
|
+
data.tar.gz: e544f8e2fbc0528a31550c2946ce2ba2504996ec8894971393acafee40dadf5f3d32f1b5b202ca715fa4bd19e553ddfde7722fab4ad7266dd26502c714894442
|
data/.env.example
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on: [push]
|
11
|
+
|
12
|
+
jobs:
|
13
|
+
test:
|
14
|
+
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby-version: ['2.6']
|
19
|
+
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- name: Set up Ruby
|
23
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
24
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
25
|
+
# uses: ruby/setup-ruby@v1
|
26
|
+
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby-version }}
|
29
|
+
- name: Pin bundler
|
30
|
+
run: gem install bundler:1.17.3
|
31
|
+
- name: Lock bundler
|
32
|
+
run: bundle _1.17.3_ lock
|
33
|
+
- name: Run bundler
|
34
|
+
run: bundle install
|
35
|
+
- name: Run tests
|
36
|
+
env:
|
37
|
+
GEONAMES_USER: ${{ secrets.GEONAMES_USER }}
|
38
|
+
GEONAMES_TOKEN: ${{ secrets.GEONAMES_TOKEN }}
|
39
|
+
run: bundle exec rake test
|
data/README.md
CHANGED
@@ -30,9 +30,14 @@ require 'cdmdexer/rake_task'
|
|
30
30
|
|
31
31
|
In order to make use of the GeoNames service, you must purchase a [GeoNames Premium Webservices Account](http://www.geonames.org/commercial-webservices.html). If you do not have a `geonam` field in your CONTENTdm schema, you may ignore this instruction. Add your credentials to your shell environment once you have secured a GeoNames user:
|
32
32
|
|
33
|
+
|
33
34
|
```
|
34
|
-
|
35
|
-
|
35
|
+
cp .env.example .env
|
36
|
+
nano .env
|
37
|
+
|
38
|
+
# Add these vars to the .env file
|
39
|
+
GEONAMES_USER=foo
|
40
|
+
GEONAMES_TOKEN=bar
|
36
41
|
```
|
37
42
|
|
38
43
|
## Usage
|
@@ -178,4 +183,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/UMNLib
|
|
178
183
|
## TODO
|
179
184
|
|
180
185
|
* Make StripFormatter the default formatter so it doesn't need to be declared for every field
|
181
|
-
* Re-brand project: CONTENTdm Indexer. CDMDEXER doesn't necessarily require Blacklight. Moreover only handles indexing.
|
186
|
+
* Re-brand project: CONTENTdm Indexer. CDMDEXER doesn't necessarily require Blacklight. Moreover only handles indexing.
|
data/cdmdexer.gemspec
CHANGED
@@ -27,8 +27,9 @@ Gem::Specification.new do |spec|
|
|
27
27
|
# another external dependency for XML procssing, we rely on activesupport's
|
28
28
|
# Has.to_jsonl feature for testing and to allow this gem to function
|
29
29
|
# independently from a rails app
|
30
|
-
spec.add_dependency 'rails', '
|
30
|
+
spec.add_dependency 'rails', '~> 6.0.0'
|
31
31
|
|
32
|
+
spec.add_development_dependency 'dotenv-rails', '~> 2.7.6'
|
32
33
|
spec.add_development_dependency 'bundler', '~> 1.12'
|
33
34
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
34
35
|
spec.add_development_dependency 'rake', '~> 12.0'
|
data/lib/cdmdexer/formatters.rb
CHANGED
data/lib/cdmdexer/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module CDMDEXER
|
2
|
-
VERSION = "0.21.
|
3
|
-
end
|
2
|
+
VERSION = "0.21.1"
|
3
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdmdexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chadfennell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contentdm_api
|
@@ -84,16 +84,30 @@ dependencies:
|
|
84
84
|
name: rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 6.0.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 6.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: dotenv-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.7.6
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: 2.7.6
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: bundler
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,6 +171,8 @@ executables: []
|
|
157
171
|
extensions: []
|
158
172
|
extra_rdoc_files: []
|
159
173
|
files:
|
174
|
+
- ".env.example"
|
175
|
+
- ".github/workflows/ruby.yml"
|
160
176
|
- ".gitignore"
|
161
177
|
- ".rubocop.yml"
|
162
178
|
- ".travis.yml"
|
@@ -217,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
233
|
- !ruby/object:Gem::Version
|
218
234
|
version: '0'
|
219
235
|
requirements: []
|
220
|
-
rubygems_version: 3.0.
|
236
|
+
rubygems_version: 3.0.3
|
221
237
|
signing_key:
|
222
238
|
specification_version: 4
|
223
239
|
summary: Load CONTENTdm data into a Solr Index. CDMDEXER expects to run inside a Rails
|