hydra-pcdm 1.0.1 → 1.1.0

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: 75e35c5a58d206fa1b16cf2409c36cc30eee52804cb0cf013b3d1b3f09b4e83c
4
- data.tar.gz: 303e20c156922151d3aa11129dcbb8ecdffd3270db928fdf06014a20e4af8648
3
+ metadata.gz: 0d6cf2ebed3f1e7622b790b110f6bb3f3ae8502510e262002f75f1f49946ad61
4
+ data.tar.gz: '00745687d301f636eb79898c9aecb69e97a5dcd96eeb544cbed0aeaa193f14b0'
5
5
  SHA512:
6
- metadata.gz: 77a7c82045f215454c3de6ee24e4d9111dd524f643db89c4eae46bcb79b9ced5e9ba77be146708ea1ccbd14073a59e1a296b2ea195c02a533fab399630eae4da
7
- data.tar.gz: 0ea2662ecad8f50852220d20a883c2af9e8f2f0383564138ee006fce82555c70215915a8a1633d5ed486e76ff15350d99e040bf77dcdb39cb15e461f2bde860b
6
+ metadata.gz: b4f960faed3b527b4a80f17430e8566aeb7a3e0ca95ff29ef3fa5b2a3a0f282d960104480f021993594d5f600e7923585ea52d39f74d4d3dc2b05567ec8d0b09
7
+ data.tar.gz: 5dbeea93fba9e520e43a9cd1aa374ecf5071773b600144dcb06a652d18aed694b69c1ec0d52d6879d202b8edf3c544b213e2b36c2773524a77f1fef48696133c
@@ -0,0 +1,62 @@
1
+ version: 2.1
2
+ orbs:
3
+ samvera: samvera/circleci-orb@0
4
+ jobs:
5
+ bundle_lint_test:
6
+ parameters:
7
+ ruby_version:
8
+ type: string
9
+ rails_version:
10
+ type: string
11
+ project:
12
+ type: string
13
+ default: hydra-pcdm
14
+ bundler_version:
15
+ type: string
16
+ default: 1.17.3
17
+ executor:
18
+ name: 'samvera/ruby_fcrepo_solr'
19
+ ruby_version: << parameters.ruby_version >>
20
+ environment:
21
+ RAILS_VERSION: << parameters.rails_version >>
22
+ steps:
23
+ - samvera/cached_checkout
24
+
25
+ - samvera/bundle_for_gem:
26
+ ruby_version: << parameters.ruby_version >>
27
+ bundler_version: << parameters.bundler_version >>
28
+ project: << parameters.project >>
29
+
30
+ - samvera/install_solr_active_fedora_core
31
+
32
+ - samvera/rubocop
33
+
34
+ - samvera/parallel_rspec
35
+
36
+ workflows:
37
+ ci:
38
+ jobs:
39
+ - bundle_lint_test:
40
+ name: ruby2-6_rails5-2
41
+ ruby_version: 2.6.3
42
+ rails_version: 5.2.3
43
+ - bundle_lint_test:
44
+ name: ruby2-6_rails5-1
45
+ ruby_version: 2.6.3
46
+ rails_version: 5.1.7
47
+ - bundle_lint_test:
48
+ name: ruby2-5_rails5-2
49
+ ruby_version: 2.5.5
50
+ rails_version: 5.2.3
51
+ - bundle_lint_test:
52
+ name: ruby2-6_rails5-1
53
+ ruby_version: 2.6.3
54
+ rails_version: 5.1.7
55
+ - bundle_lint_test:
56
+ name: ruby2-4_rails5-2
57
+ ruby_version: 2.4.6
58
+ rails_version: 5.2.3
59
+ - bundle_lint_test:
60
+ name: ruby2-6_rails5-1
61
+ ruby_version: 2.6.3
62
+ rails_version: 5.1.7
data/Gemfile CHANGED
@@ -4,7 +4,18 @@ group :development, :test do
4
4
  gem 'bixby', '~> 1.0'
5
5
  gem 'pry' unless ENV['CI']
6
6
  gem 'pry-byebug' unless ENV['CI']
7
+ gem 'rspec_junit_formatter'
7
8
  end
8
9
 
9
10
  # Specify your gem's dependencies in hydra-pcdm.gemspec
10
11
  gemspec
12
+
13
+ # rubocop:disable Bundler/DuplicatedGem
14
+ if ENV['RAILS_VERSION']
15
+ if ENV['RAILS_VERSION'] == 'edge'
16
+ gem 'rails', github: 'rails/rails'
17
+ else
18
+ gem 'rails', ENV['RAILS_VERSION']
19
+ end
20
+ end
21
+ # rubocop:enable Bundler/DuplicatedGem
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Code:
4
4
  [![Version](https://badge.fury.io/rb/hydra-pcdm.png)](http://badge.fury.io/rb/hydra-pcdm)
5
- [![Build Status](https://travis-ci.org/samvera/hydra-pcdm.svg?branch=master)](https://travis-ci.org/samvera/hydra-pcdm)
5
+ [![Build Status](https://circleci.com/gh/samvera/hydra-pcdm.svg?style=svg)](https://circleci.com/gh/samvera/hydra-pcdm)
6
6
  [![Coverage Status](https://coveralls.io/repos/samvera/hydra-pcdm/badge.svg?branch=master)](https://coveralls.io/r/samvera/hydra-pcdm?branch=master)
7
7
  [![Code Climate](https://codeclimate.com/github/projecthydra/hydra-pcdm/badges/gpa.svg)](https://codeclimate.com/github/projecthydra/hydra-pcdm)
8
8
 
data/Rakefile CHANGED
@@ -29,4 +29,16 @@ task ci: :rubocop do
29
29
  Rake::Task['spec_with_app_load'].invoke
30
30
  end
31
31
 
32
+ desc 'Start up test server'
33
+ task :test_server do
34
+ ENV["RAILS_ENV"] = "test"
35
+ with_test_server do
36
+ puts "Solr: http://localhost:#{ENV['SOLR_TEST_PORT']}/solr"
37
+ puts "Fedora: http://localhost:#{ENV['FCREPO_TEST_PORT']}/rest"
38
+ loop do
39
+ sleep(1)
40
+ end
41
+ end
42
+ end
43
+
32
44
  task default: :ci
@@ -0,0 +1,7 @@
1
+ ---
2
+ port: 8986
3
+ verbose: true
4
+ managed: true
5
+ enable_jms: false
6
+ fcrepo_home_dir: tmp/fcrepo4-test-data
7
+ version: 4.7.4
@@ -0,0 +1,2 @@
1
+ ---
2
+ port: 8985
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
21
 
22
- spec.add_dependency 'active-fedora', '>= 10', '< 13'
22
+ spec.add_dependency 'active-fedora', '>= 10', '< 14'
23
23
  spec.add_dependency 'mime-types', '>= 1'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.6'
@@ -77,12 +77,6 @@ module Hydra::PCDM
77
77
  ActiveFedora::Base.where(Config.indexing_member_ids_key => id)
78
78
  end
79
79
 
80
- ##
81
- # @return [Enumerable<String>] an ordered list of member ids
82
- def ordered_member_ids
83
- ordered_member_proxies.map(&:target_id)
84
- end
85
-
86
80
  ##
87
81
  # Gives the subset of #members that are PCDM objects
88
82
  #
@@ -125,12 +119,6 @@ module Hydra::PCDM
125
119
  in_collections.map(&:id)
126
120
  end
127
121
 
128
- ##
129
- # @return [Enumerable<String>]
130
- def member_of_collection_ids
131
- member_of_collections.map(&:id)
132
- end
133
-
134
122
  ##
135
123
  # @param [ActiveFedora::Base] potential_ancestor the resource to check for
136
124
  # ancestorship
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module PCDM
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
7
7
  Coveralls::SimpleCov::Formatter]
8
8
  )
9
9
 
10
+ SimpleCov.minimum_coverage 100
10
11
  SimpleCov.start { add_filter '/spec' }
11
12
 
12
13
  require 'bundler/setup'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-pcdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - E. Lynette Rayle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-06 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active-fedora
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '13'
22
+ version: '14'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '13'
32
+ version: '14'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: mime-types
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -135,12 +135,12 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".circleci/config.yml"
138
139
  - ".coveralls.yml"
139
140
  - ".gitignore"
140
141
  - ".rspec"
141
142
  - ".rubocop.yml"
142
143
  - ".rubocop_todo.yml"
143
- - ".travis.yml"
144
144
  - CODE_OF_CONDUCT.md
145
145
  - CONTRIBUTING.md
146
146
  - Gemfile
@@ -148,7 +148,9 @@ files:
148
148
  - README.md
149
149
  - Rakefile
150
150
  - SUPPORT.md
151
+ - config/fcrepo_wrapper_test.yml
151
152
  - config/jetty.yml
153
+ - config/solr_wrapper_test.yml
152
154
  - hydra-pcdm.gemspec
153
155
  - lib/hydra/pcdm.rb
154
156
  - lib/hydra/pcdm/ancestor_checker.rb
@@ -172,22 +174,6 @@ files:
172
174
  - lib/hydra/pcdm/validators/pcdm_validator.rb
173
175
  - lib/hydra/pcdm/version.rb
174
176
  - lib/hydra/pcdm/vocab/pcdm_terms.rb
175
- - solr/config/_rest_managed.json
176
- - solr/config/admin-extra.html
177
- - solr/config/elevate.xml
178
- - solr/config/mapping-ISOLatin1Accent.txt
179
- - solr/config/protwords.txt
180
- - solr/config/schema.xml
181
- - solr/config/scripts.conf
182
- - solr/config/solrconfig.xml
183
- - solr/config/spellings.txt
184
- - solr/config/stopwords.txt
185
- - solr/config/stopwords_en.txt
186
- - solr/config/synonyms.txt
187
- - solr/config/xslt/example.xsl
188
- - solr/config/xslt/example_atom.xsl
189
- - solr/config/xslt/example_rss.xsl
190
- - solr/config/xslt/luke.xsl
191
177
  - spec/hydra/pcdm/ancestor_checker_spec.rb
192
178
  - spec/hydra/pcdm/collection_indexer_spec.rb
193
179
  - spec/hydra/pcdm/config_spec.rb
@@ -218,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
204
  - !ruby/object:Gem::Version
219
205
  version: '0'
220
206
  requirements: []
221
- rubygems_version: 3.0.3
207
+ rubygems_version: 3.0.4
222
208
  signing_key:
223
209
  specification_version: 4
224
210
  summary: Portland Common Data Model (PCDM)
@@ -1,17 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- bundler_args: --without debug
5
- env:
6
- global:
7
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
8
- jdk:
9
- - oraclejdk8
10
- rvm:
11
- - 2.2.7
12
- - 2.3.4
13
- - 2.4.1
14
- - jruby-9.1.8.0
15
- matrix:
16
- allow_failures:
17
- - rvm: jruby-9.1.8.0
@@ -1,3 +0,0 @@
1
- {
2
- "initArgs":{},
3
- "managedList":[]}
@@ -1,31 +0,0 @@
1
- <!--
2
- Licensed to the Apache Software Foundation (ASF) under one or more
3
- contributor license agreements. See the NOTICE file distributed with
4
- this work for additional information regarding copyright ownership.
5
- The ASF licenses this file to You under the Apache License, Version 2.0
6
- (the "License"); you may not use this file except in compliance with
7
- the License. You may obtain a copy of the License at
8
-
9
- http://www.apache.org/licenses/LICENSE-2.0
10
-
11
- Unless required by applicable law or agreed to in writing, software
12
- distributed under the License is distributed on an "AS IS" BASIS,
13
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- See the License for the specific language governing permissions and
15
- limitations under the License.
16
- -->
17
-
18
- <!-- The content of this page will be statically included into the top
19
- of the admin page. Uncomment this as an example to see there the content
20
- will show up.
21
-
22
- <hr>
23
- <i>This line will appear before the first table</i>
24
- <tr>
25
- <td colspan="2">
26
- This row will be appended to the end of the first table
27
- </td>
28
- </tr>
29
- <hr>
30
-
31
- -->
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
- <!-- If this file is found in the config directory, it will only be
20
- loaded once at startup. If it is found in Solr's data
21
- directory, it will be re-loaded every commit.
22
- -->
23
-
24
- <elevate>
25
- <query text="foo bar">
26
- <doc id="1" />
27
- <doc id="2" />
28
- <doc id="3" />
29
- </query>
30
-
31
- <query text="ipod">
32
- <doc id="MA147LL/A" /> <!-- put the actual ipod at the top -->
33
- <doc id="IW-02" exclude="true" /> <!-- exclude this cable -->
34
- </query>
35
-
36
- </elevate>
@@ -1,246 +0,0 @@
1
- # The ASF licenses this file to You under the Apache License, Version 2.0
2
- # (the "License"); you may not use this file except in compliance with
3
- # the License. You may obtain a copy of the License at
4
- #
5
- # http://www.apache.org/licenses/LICENSE-2.0
6
- #
7
- # Unless required by applicable law or agreed to in writing, software
8
- # distributed under the License is distributed on an "AS IS" BASIS,
9
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- # See the License for the specific language governing permissions and
11
- # limitations under the License.
12
-
13
- # Syntax:
14
- # "source" => "target"
15
- # "source".length() > 0 (source cannot be empty.)
16
- # "target".length() >= 0 (target can be empty.)
17
-
18
- # example:
19
- # "??" => "A"
20
- # "\u00C0" => "A"
21
- # "\u00C0" => "\u0041"
22
- # "??" => "ss"
23
- # "\t" => " "
24
- # "\n" => ""
25
-
26
- # ?? => A
27
- "\u00C0" => "A"
28
-
29
- # ?? => A
30
- "\u00C1" => "A"
31
-
32
- # ?? => A
33
- "\u00C2" => "A"
34
-
35
- # ?? => A
36
- "\u00C3" => "A"
37
-
38
- # ?? => A
39
- "\u00C4" => "A"
40
-
41
- # ?? => A
42
- "\u00C5" => "A"
43
-
44
- # ?? => AE
45
- "\u00C6" => "AE"
46
-
47
- # ?? => C
48
- "\u00C7" => "C"
49
-
50
- # ?? => E
51
- "\u00C8" => "E"
52
-
53
- # ?? => E
54
- "\u00C9" => "E"
55
-
56
- # ?? => E
57
- "\u00CA" => "E"
58
-
59
- # ?? => E
60
- "\u00CB" => "E"
61
-
62
- # ?? => I
63
- "\u00CC" => "I"
64
-
65
- # ?? => I
66
- "\u00CD" => "I"
67
-
68
- # ?? => I
69
- "\u00CE" => "I"
70
-
71
- # ?? => I
72
- "\u00CF" => "I"
73
-
74
- # ?? => IJ
75
- "\u0132" => "IJ"
76
-
77
- # ?? => D
78
- "\u00D0" => "D"
79
-
80
- # ?? => N
81
- "\u00D1" => "N"
82
-
83
- # ?? => O
84
- "\u00D2" => "O"
85
-
86
- # ?? => O
87
- "\u00D3" => "O"
88
-
89
- # ?? => O
90
- "\u00D4" => "O"
91
-
92
- # ?? => O
93
- "\u00D5" => "O"
94
-
95
- # ?? => O
96
- "\u00D6" => "O"
97
-
98
- # ?? => O
99
- "\u00D8" => "O"
100
-
101
- # ?? => OE
102
- "\u0152" => "OE"
103
-
104
- # ??
105
- "\u00DE" => "TH"
106
-
107
- # ?? => U
108
- "\u00D9" => "U"
109
-
110
- # ?? => U
111
- "\u00DA" => "U"
112
-
113
- # ?? => U
114
- "\u00DB" => "U"
115
-
116
- # ?? => U
117
- "\u00DC" => "U"
118
-
119
- # ?? => Y
120
- "\u00DD" => "Y"
121
-
122
- # ?? => Y
123
- "\u0178" => "Y"
124
-
125
- # ?? => a
126
- "\u00E0" => "a"
127
-
128
- # ?? => a
129
- "\u00E1" => "a"
130
-
131
- # ?? => a
132
- "\u00E2" => "a"
133
-
134
- # ?? => a
135
- "\u00E3" => "a"
136
-
137
- # ?? => a
138
- "\u00E4" => "a"
139
-
140
- # ?? => a
141
- "\u00E5" => "a"
142
-
143
- # ?? => ae
144
- "\u00E6" => "ae"
145
-
146
- # ?? => c
147
- "\u00E7" => "c"
148
-
149
- # ?? => e
150
- "\u00E8" => "e"
151
-
152
- # ?? => e
153
- "\u00E9" => "e"
154
-
155
- # ?? => e
156
- "\u00EA" => "e"
157
-
158
- # ?? => e
159
- "\u00EB" => "e"
160
-
161
- # ?? => i
162
- "\u00EC" => "i"
163
-
164
- # ?? => i
165
- "\u00ED" => "i"
166
-
167
- # ?? => i
168
- "\u00EE" => "i"
169
-
170
- # ?? => i
171
- "\u00EF" => "i"
172
-
173
- # ?? => ij
174
- "\u0133" => "ij"
175
-
176
- # ?? => d
177
- "\u00F0" => "d"
178
-
179
- # ?? => n
180
- "\u00F1" => "n"
181
-
182
- # ?? => o
183
- "\u00F2" => "o"
184
-
185
- # ?? => o
186
- "\u00F3" => "o"
187
-
188
- # ?? => o
189
- "\u00F4" => "o"
190
-
191
- # ?? => o
192
- "\u00F5" => "o"
193
-
194
- # ?? => o
195
- "\u00F6" => "o"
196
-
197
- # ?? => o
198
- "\u00F8" => "o"
199
-
200
- # ?? => oe
201
- "\u0153" => "oe"
202
-
203
- # ?? => ss
204
- "\u00DF" => "ss"
205
-
206
- # ?? => th
207
- "\u00FE" => "th"
208
-
209
- # ?? => u
210
- "\u00F9" => "u"
211
-
212
- # ?? => u
213
- "\u00FA" => "u"
214
-
215
- # ?? => u
216
- "\u00FB" => "u"
217
-
218
- # ?? => u
219
- "\u00FC" => "u"
220
-
221
- # ?? => y
222
- "\u00FD" => "y"
223
-
224
- # ?? => y
225
- "\u00FF" => "y"
226
-
227
- # ??? => ff
228
- "\uFB00" => "ff"
229
-
230
- # ??? => fi
231
- "\uFB01" => "fi"
232
-
233
- # ??? => fl
234
- "\uFB02" => "fl"
235
-
236
- # ??? => ffi
237
- "\uFB03" => "ffi"
238
-
239
- # ??? => ffl
240
- "\uFB04" => "ffl"
241
-
242
- # ??? => ft
243
- "\uFB05" => "ft"
244
-
245
- # ??? => st
246
- "\uFB06" => "st"