hydra-pcdm 1.3.0 → 1.4.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: 466e8eaf944ee4cf997920ff6e8d11c8c33b84ad28cfac26bb602940cbb7afb7
4
- data.tar.gz: 873c08d90ea0b6feb51a07a210a6419fa885838fb640f5661cc97b6a4d7310e3
3
+ metadata.gz: 0b5db7ed95b08edf3967cf60c27c8a7dbffa1b244d27006743f921274ff2c018
4
+ data.tar.gz: fc78185251d967d4b1adcdfafc97ddd34a1b97ada5672aa2b65e117162a5e54d
5
5
  SHA512:
6
- metadata.gz: bebe9a79d0e51e1eb51184b7e60d0f21d3b2c611fff8af96f48f6e0e41e52763990b1218e5e3ed1767bda6f36122d8d2a0fbc8bf9148d1b80f51046b9f639f75
7
- data.tar.gz: cebb00d75434196599984a8179d9eb732a472a9d5fbd116475c62222e03f4c9a99912fc1b5afca703a4f59cdcd58cd212267e6764809fb92d012e03e0b76dcb8
6
+ metadata.gz: 8f9225d8f2a3352153a87e15c55f1108cc6ad022364b024e119395e176f9842e86e7640235daf29ff0b6ef9f9456976ebbe9f56facfa58e29f317ef7402f4851
7
+ data.tar.gz: daa6167785f8784c5d47f35028cb5eaf31ac66e43d26201557bbe6359fd4ed50552eafb34a5e762bdb4e278c764886068b718b2d2e4c6f096dd4b9f1d0597494
data/.circleci/config.yml CHANGED
@@ -14,10 +14,42 @@ jobs:
14
14
  bundler_version:
15
15
  type: string
16
16
  default: 2.3.10
17
- executor:
18
- name: 'samvera/ruby_fcrepo_solr_redis_postgres'
19
- ruby_version: << parameters.ruby_version >>
17
+ solr_config_path:
18
+ type: string
19
+ default: solr/conf
20
+ ruby_type:
21
+ type: string
22
+ default: 'ruby'
23
+ solr_port:
24
+ type: string
25
+ default: '8985'
26
+ fcrepo_version:
27
+ type: string
28
+ default: "4.7.5"
29
+ solr_version:
30
+ type: string
31
+ default: "9"
32
+ docker:
33
+ - image: cimg/<< parameters.ruby_type >>:<< parameters.ruby_version >>-browsers
34
+ - image: samvera/fcrepo4:<< parameters.fcrepo_version >>
35
+ environment:
36
+ CATALINA_OPTS: "-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
37
+ - image: zookeeper:3.9
38
+ environment:
39
+ ZOO_ADMINSERVER_ENABLED: false
40
+ - image: solr:<< parameters.solr_version >>
41
+ environment:
42
+ VERBOSE: yes
43
+ SECURITY_JSON: '{"authentication":{"blockUnknown": false, "class":"solr.BasicAuthPlugin", "credentials":{"solr":"IV0EHq1OnNrj6gvRCwvFwTrZ1+z1oBbnQdiVC3otuq0= Ndd7LKvVBAaZIF0QAVi1ekCfAJXr1GGfLtRUXhgrF8c="}, "realm":"My Solr users", "forwardCredentials": false}, "authorization":{ "class":"solr.RuleBasedAuthorizationPlugin", "permissions":[{"name":"security-edit", "role":"admin"}], "user-role":{"solr":"admin"}}}'
44
+ command: sh -c "server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181 -cmd put /security.json \"${SECURITY_JSON}\" && solr-fg -cloud -noprompt -p << parameters.solr_port >> -z localhost:2181"
20
45
  environment:
46
+ BUNDLE_PATH: vendor/bundle
47
+ BUNDLE_JOBS: 4
48
+ BUNDLE_RETRY: 3
49
+ RAILS_ENV: test
50
+ RACK_ENV: test
51
+ FCREPO_TEST_PORT: 8080
52
+ SPEC_OPTS: --profile 10 --format RspecJunitFormatter --out /tmp/test-results/rspec.xml --format progress
21
53
  RAILS_VERSION: << parameters.rails_version >>
22
54
  steps:
23
55
  - samvera/cached_checkout
@@ -27,7 +59,13 @@ jobs:
27
59
  bundler_version: << parameters.bundler_version >>
28
60
  project: << parameters.project >>
29
61
 
30
- - samvera/install_solr_core
62
+ - run:
63
+ name: Install solr core
64
+ command: |
65
+ cd << parameters.solr_config_path >>
66
+ zip -1 -r solr_conf.zip ./*
67
+ curl -H "Content-type:application/octet-stream" --data-binary @solr_conf.zip "http://solr:SolrRocks@127.0.0.1:8985/solr/admin/configs?action=UPLOAD&name=solrconfig"
68
+ curl "http://solr:SolrRocks@127.0.0.1:8985/solr/admin/collections?action=CREATE&name=hydra-test&numShards=1&collection.configName=solrconfig"
31
69
 
32
70
  - samvera/rubocop
33
71
 
@@ -36,54 +74,50 @@ jobs:
36
74
  workflows:
37
75
  ci:
38
76
  jobs:
77
+ # Ruby 3.3 releases
39
78
  - bundle_lint_test:
40
- name: ruby3-2_rails7-0
41
- ruby_version: 3.2.0
42
- rails_version: 7.0.4.1
79
+ name: ruby3-3_rails7-2
80
+ ruby_version: 3.3.4
81
+ rails_version: 7.2.0
43
82
  - bundle_lint_test:
44
- name: ruby3-2_rails6-1
45
- ruby_version: 3.2.0
46
- rails_version: 6.1.7.1
83
+ name: ruby3-3_rails7-1
84
+ ruby_version: 3.3.4
85
+ rails_version: 7.1.3.4
47
86
  - bundle_lint_test:
48
- name: ruby3-2_rails6-0
49
- ruby_version: 3.2.0
50
- rails_version: 6.0.6.1
87
+ name: ruby3-3_rails7-0
88
+ ruby_version: 3.3.4
89
+ rails_version: 7.0.8.4
51
90
  - bundle_lint_test:
52
- name: ruby3-1_rails7-0
53
- ruby_version: 3.1.3
54
- rails_version: 7.0.4.1
55
- - bundle_lint_test:
56
- name: ruby3-1_rails6-1
57
- ruby_version: 3.1.3
58
- rails_version: 6.1.7.1
91
+ name: ruby3-3_rails6-1
92
+ ruby_version: 3.3.4
93
+ rails_version: 6.1.7.8
94
+ # Ruby 3.2 releases
59
95
  - bundle_lint_test:
60
- name: ruby3-1_rails6-0
61
- ruby_version: 3.1.3
62
- rails_version: 6.0.6.1
96
+ name: ruby3-2_rails7-1
97
+ ruby_version: 3.2.5
98
+ rails_version: 7.1.3.4
63
99
  - bundle_lint_test:
64
- name: ruby3-0_rails7-0
65
- ruby_version: 3.0.5
66
- rails_version: 7.0.4.1
67
- - bundle_lint_test:
68
- name: ruby3-0_rails6-1
69
- ruby_version: 3.0.5
70
- rails_version: 6.1.7.1
100
+ name: ruby3-2_rails7-0
101
+ ruby_version: 3.2.5
102
+ rails_version: 7.0.8.4
71
103
  - bundle_lint_test:
72
- name: ruby3-0_rails6-0
73
- ruby_version: 3.0.5
74
- rails_version: 6.0.6.1
104
+ name: ruby3-2_rails6-1
105
+ ruby_version: 3.2.5
106
+ rails_version: 6.1.7.8
107
+ # Ruby 3.1 releases
75
108
  - bundle_lint_test:
76
- name: ruby2-7_rails6-1
77
- ruby_version: 2.7.7
78
- rails_version: 6.1.7.1
109
+ name: ruby3-1_rails7-1
110
+ ruby_version: 3.1.6
111
+ rails_version: 7.1.3.4
79
112
  - bundle_lint_test:
80
- name: ruby2-7_rails6-0
81
- ruby_version: 2.7.7
82
- rails_version: 6.0.6.1
113
+ name: ruby3-1_rails7-0
114
+ ruby_version: 3.1.6
115
+ rails_version: 7.0.8.4
83
116
  - bundle_lint_test:
84
- name: ruby2-7_rails5-2
85
- ruby_version: 2.7.7
86
- rails_version: 5.2.8.1
117
+ name: ruby3-1_rails6-1
118
+ ruby_version: 3.1.6
119
+ rails_version: 6.1.7.8
120
+
87
121
 
88
122
  nightly:
89
123
  triggers:
@@ -94,51 +128,46 @@ workflows:
94
128
  only:
95
129
  - main
96
130
  jobs:
131
+ # Ruby 3.3 releases
97
132
  - bundle_lint_test:
98
- name: ruby3-2_rails7-0
99
- ruby_version: 3.2.0
100
- rails_version: 7.0.4.1
133
+ name: ruby3-3_rails7-2
134
+ ruby_version: 3.3.4
135
+ rails_version: 7.2.0
101
136
  - bundle_lint_test:
102
- name: ruby3-2_rails6-1
103
- ruby_version: 3.2.0
104
- rails_version: 6.1.7.1
137
+ name: ruby3-3_rails7-1
138
+ ruby_version: 3.3.4
139
+ rails_version: 7.1.3.4
105
140
  - bundle_lint_test:
106
- name: ruby3-2_rails6-0
107
- ruby_version: 3.2.0
108
- rails_version: 6.0.6.1
141
+ name: ruby3-3_rails7-0
142
+ ruby_version: 3.3.4
143
+ rails_version: 7.0.8.4
109
144
  - bundle_lint_test:
110
- name: ruby3-1_rails7-0
111
- ruby_version: 3.1.3
112
- rails_version: 7.0.4.1
145
+ name: ruby3-3_rails6-1
146
+ ruby_version: 3.3.4
147
+ rails_version: 6.1.7.8
148
+ # Ruby 3.2 releases
113
149
  - bundle_lint_test:
114
- name: ruby3-1_rails6-1
115
- ruby_version: 3.1.3
116
- rails_version: 6.1.7.1
150
+ name: ruby3-2_rails7-1
151
+ ruby_version: 3.2.5
152
+ rails_version: 7.1.3.4
117
153
  - bundle_lint_test:
118
- name: ruby3-1_rails6-0
119
- ruby_version: 3.1.3
120
- rails_version: 6.0.6.1
121
- - bundle_lint_test:
122
- name: ruby3-0_rails7-0
123
- ruby_version: 3.0.5
124
- rails_version: 7.0.4.1
125
- - bundle_lint_test:
126
- name: ruby3-0_rails6-1
127
- ruby_version: 3.0.5
128
- rails_version: 6.1.7.1
154
+ name: ruby3-2_rails7-0
155
+ ruby_version: 3.2.5
156
+ rails_version: 7.0.8.4
129
157
  - bundle_lint_test:
130
- name: ruby3-0_rails6-0
131
- ruby_version: 3.0.5
132
- rails_version: 6.0.6.1
158
+ name: ruby3-2_rails6-1
159
+ ruby_version: 3.2.5
160
+ rails_version: 6.1.7.8
161
+ # Ruby 3.1 releases
133
162
  - bundle_lint_test:
134
- name: ruby2-7_rails6-1
135
- ruby_version: 2.7.7
136
- rails_version: 6.1.7.1
163
+ name: ruby3-1_rails7-1
164
+ ruby_version: 3.1.6
165
+ rails_version: 7.1.3.4
137
166
  - bundle_lint_test:
138
- name: ruby2-7_rails6-0
139
- ruby_version: 2.7.7
140
- rails_version: 6.0.6.1
167
+ name: ruby3-1_rails7-0
168
+ ruby_version: 3.1.6
169
+ rails_version: 7.0.8.4
141
170
  - bundle_lint_test:
142
- name: ruby2-7_rails5-2
143
- ruby_version: 2.7.7
144
- rails_version: 5.2.8.1
171
+ name: ruby3-1_rails6-1
172
+ ruby_version: 3.1.6
173
+ rails_version: 6.1.7.8
data/hydra-pcdm.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'active-fedora', '>= 10', '< 15'
23
+ spec.add_dependency 'active-fedora', '>= 10'
24
24
  spec.add_dependency 'mime-types', '>= 1'
25
25
  spec.add_dependency 'rdf-vocab'
26
26
 
@@ -1,5 +1,5 @@
1
1
  module Hydra
2
2
  module PCDM
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.4.0'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,3 @@
1
+ {
2
+ "initArgs":{},
3
+ "managedList":[]}
@@ -0,0 +1,31 @@
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
+ -->
@@ -0,0 +1,36 @@
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>
@@ -0,0 +1,246 @@
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"
@@ -0,0 +1,21 @@
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
+ #-----------------------------------------------------------------------
14
+ # Use a protected word file to protect against the stemmer reducing two
15
+ # unrelated words to the same base word.
16
+
17
+ # Some non-words that normally won't be encountered,
18
+ # just to test that they won't be stemmed.
19
+ dontstems
20
+ zwhacky
21
+