active-fedora 10.2.0 → 10.2.1

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
  SHA1:
3
- metadata.gz: edd51836aa6c45e18a108d020753474a74b39a8a
4
- data.tar.gz: 467181b690984218af00de00f2d0644e6d059601
3
+ metadata.gz: b0865a25cb33a8637e784833e483cafe3a140abe
4
+ data.tar.gz: 4f6be2a95c6c218e7fdc9f16b2900d25fe70e0fc
5
5
  SHA512:
6
- metadata.gz: 9b8c013c28881485042b14d79d37ec2123fcc8e2647ede3fe9c99875afc3d02dbc1e797405c1b355f271c480e3303f6790df3f8f494cafc068aa25d19a59f46b
7
- data.tar.gz: 8e8ea6f566fcc5f4067be91e28f5d4e594a711a623dae5364445cc52f3fdc017063e8f568f2d53a62e740f2856633fabf52b50a09df1ca3b7f8439d44d844b8c
6
+ metadata.gz: 454d2287261b2ed2a079ac1cd00fda8a3819d14144e098bd7ca040d28ea0be75406b1776387caee11905d5baf8f3e44b37ec55adcfa8762e95f0686ff4f75155
7
+ data.tar.gz: 1ad38bebb3535219889f3fad29f375ccbbfe29ad746408d0500c12d8d89d0ac6b73bf98eaff5c150419271bf2f6b49bc14959faa2a5958d14c15e7898043cff0
@@ -0,0 +1,6 @@
1
+ # Place any default configuration for solr_wrapper here
2
+ # version: 6.1.0
3
+ port: 8985
4
+ collection:
5
+ dir: lib/generators/active_fedora/config/solr/templates/solr/config/
6
+ name: hydra-test
data/README.md CHANGED
@@ -75,11 +75,9 @@ rake active_fedora:ci
75
75
  If you want to run the tests manually, follow these instructions:
76
76
 
77
77
  ```bash
78
- solr_wrapper -d solr/config/ --collection_name hydra-test
78
+ solr_wrapper
79
79
  ```
80
80
 
81
- You can switch `hydra-test` to `hydra-dev` if you want to create a collection for development.
82
-
83
81
  To start FCRepo, open another shell and run:
84
82
 
85
83
  ```bash
@@ -21,7 +21,7 @@ def with_server(environment)
21
21
  unless Dir.exist?(solr_config_path)
22
22
  $stderr.puts "Solr configuration not found at #{solr_config_path}. Using ActiveFedora defaults"
23
23
  # Otherwise use the configs delivered with ActiveFedora.
24
- solr_config_path = File.join(File.expand_path("../..", File.dirname(__FILE__)), "solr", "config")
24
+ solr_config_path = File.join(File.expand_path("../..", File.dirname(__FILE__)), 'lib', 'generators', 'active_fedora', 'config', 'solr', 'templates', 'solr', 'config')
25
25
  end
26
26
  solr.with_collection(name: "hydra-#{environment}", dir: solr_config_path) do
27
27
  FcrepoWrapper.wrap(load_config(:fcrepo, environment, fcrepo_defaults)) do |fcrepo|
@@ -1,3 +1,3 @@
1
1
  module ActiveFedora
2
- VERSION = "10.2.0".freeze
2
+ VERSION = "10.2.1".freeze
3
3
  end
@@ -187,6 +187,17 @@
187
187
  </lst>
188
188
  </requestHandler>
189
189
 
190
+ <searchComponent name="termsComponent" class="solr.TermsComponent" />
191
+
192
+ <requestHandler name="/terms" class="solr.SearchHandler">
193
+ <lst name="defaults">
194
+ <bool name="terms">true</bool>
195
+ </lst>
196
+ <arr name="components">
197
+ <str>termsComponent</str>
198
+ </arr>
199
+ </requestHandler>
200
+
190
201
  <!-- Spell Check
191
202
 
192
203
  The spell check component can return a list of alternative spelling
@@ -1,5 +1,5 @@
1
1
  #config/solr_wrapper_test.yml
2
- # version: 6.0.0
2
+ # version: 6.1.0
3
3
  port: 8985
4
4
  instance_dir: tmp/solr-test
5
5
  collection:
@@ -9,17 +9,14 @@ describe ActiveFedora::Config::SolrGenerator do
9
9
  '.solr_wrapper'
10
10
  ]}
11
11
 
12
- before do
13
- generator.solr_wrapper_config
14
- end
15
-
16
- after do
17
- files_to_test.each { |file| File.delete(file) if File.exist?(file) }
18
- end
19
-
20
12
  it "creates config files" do
21
- files_to_test.each do |file|
22
- expect(File).to exist(file), "Expected #{file} to exist"
13
+ Dir.mktmpdir do |dir|
14
+ Dir.chdir(dir) do
15
+ generator.solr_wrapper_config
16
+ files_to_test.each do |file|
17
+ expect(File).to exist(file), "Expected #{file} to exist"
18
+ end
19
+ end
23
20
  end
24
21
  end
25
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.2.0
4
+ version: 10.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-10 00:00:00.000000000 Z
13
+ date: 2016-08-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr
@@ -353,6 +353,7 @@ files:
353
353
  - ".mailmap"
354
354
  - ".rspec"
355
355
  - ".rubocop.yml"
356
+ - ".solr_wrapper"
356
357
  - ".travis.yml"
357
358
  - CONTRIBUTING.md
358
359
  - CONTRIBUTORS.md
@@ -580,22 +581,6 @@ files:
580
581
  - script/console
581
582
  - script/destroy
582
583
  - script/generate
583
- - solr/config/_rest_managed.json
584
- - solr/config/admin-extra.html
585
- - solr/config/elevate.xml
586
- - solr/config/mapping-ISOLatin1Accent.txt
587
- - solr/config/protwords.txt
588
- - solr/config/schema.xml
589
- - solr/config/scripts.conf
590
- - solr/config/solrconfig.xml
591
- - solr/config/spellings.txt
592
- - solr/config/stopwords.txt
593
- - solr/config/stopwords_en.txt
594
- - solr/config/synonyms.txt
595
- - solr/config/xslt/example.xsl
596
- - solr/config/xslt/example_atom.xsl
597
- - solr/config/xslt/example_rss.xsl
598
- - solr/config/xslt/luke.xsl
599
584
  - spec/config_helper.rb
600
585
  - spec/fixtures/damsObjectModel.xml
601
586
  - spec/fixtures/dino.jpg
@@ -768,4 +753,3 @@ signing_key:
768
753
  specification_version: 4
769
754
  summary: A convenience libary for manipulating documents in the Fedora Repository.
770
755
  test_files: []
771
- has_rdoc:
@@ -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"