active-fedora 8.0.0 → 8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +65 -0
- data/lib/active_fedora/relation/finder_methods.rb +5 -2
- data/lib/active_fedora/version.rb +1 -1
- data/spec/integration/solr_service_spec.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 871db23f4245cc098c16e0c574421725780ed9a5
|
4
|
+
data.tar.gz: f36930059f1df74329c347afddfe0ba6dc99bf06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88fcb0f9e49bd039bb2d24bd3187a072e4344c1e63a6c205f75a3539dc2ce2e6bf5317025e2f96abe6fa15b57dc20ecce4a40989beec3fd53b46aed7d12637c1
|
7
|
+
data.tar.gz: 81faaa5d12bf5e92118c503eb3d934db8351f33ae26b00ecc4647e90803fd68a1dc9c8f50a2f9a81ef69408af3a20641087e4422c613a158044febe7dc92db7e
|
data/History.txt
CHANGED
@@ -1,3 +1,68 @@
|
|
1
|
+
8.0.1
|
2
|
+
|
3
|
+
2015-03-11: Backport solr escape patch [Chris Colvard]
|
4
|
+
|
5
|
+
8.0.0
|
6
|
+
|
7
|
+
2015-01-07: Can assign single ActiveTriples::Resource to single-valued attribute
|
8
|
+
(fixes #653) [David Chandek-Stark]
|
9
|
+
|
10
|
+
2014-12-04: point to FCRepo 3.x stable branch [Benjamin Armintor]
|
11
|
+
|
12
|
+
2013-02-28: github issue 48 tests and YARD [Benjamin Armintor]
|
13
|
+
|
14
|
+
2014-12-02: Removed pending deprecations omitted in 8.0.0.rc1 Bumped version to
|
15
|
+
8.0.0.rc2 [David Chandek-Stark]
|
16
|
+
|
17
|
+
2014-12-02: Bumped version to 8.0.0.rc1 [David Chandek-Stark]
|
18
|
+
|
19
|
+
2014-11-28: Removed pending deprecations for version 8.0.0. [David
|
20
|
+
Chandek-Stark]
|
21
|
+
|
22
|
+
2014-11-19: add RDF::Vocabulary subclasses for Fcrepo and ProjectHydra [Benjamin
|
23
|
+
Armintor]
|
24
|
+
|
25
|
+
2014-11-24: rename ActiveFedora::Rdf to ActiveFedora::RDF [Benjamin Armintor]
|
26
|
+
|
27
|
+
2014-11-21: Adding optional yml paramters as comments so people know they exist
|
28
|
+
[Carolyn Cole]
|
29
|
+
|
30
|
+
2014-11-18: Makes sure all values are handled as arrays [Hector Correa]
|
31
|
+
|
32
|
+
2014-11-17: Bumped version to 8.0.0.pre1 [David Chandek-Stark]
|
33
|
+
|
34
|
+
2014-10-02: Remove ObjectResource from RdfDatastream [Tom Johnson]
|
35
|
+
|
36
|
+
2014-09-22: Factors out behavior from ActiveFedora::Rdf::ObjectResource to mixin
|
37
|
+
ActiveFedora::Rdf::Persistence. [David Chandek-Stark]
|
38
|
+
|
39
|
+
v7.1.2
|
40
|
+
|
41
|
+
2014-11-05: Revert "clarified a comment" [Adam Wead]
|
42
|
+
|
43
|
+
2014-11-04: clarified a comment [Brian Maddy]
|
44
|
+
|
45
|
+
2014-10-21: Correction to comment example [Joe Atzberger]
|
46
|
+
|
47
|
+
2014-10-07: Bug #479: Typo in XSD filename value stuck in config generator
|
48
|
+
templates [Joe Atzberger]
|
49
|
+
|
50
|
+
v7.1.1
|
51
|
+
|
52
|
+
2014-09-16: RdfDatastream#deserialize should always return an RDF::Graph. Fixes
|
53
|
+
#471 [Justin Coyne]
|
54
|
+
|
55
|
+
2014-08-15: Set default mimeType for NtriplesRDFDatastream to
|
56
|
+
'application/n-triples' per W3C recommendation.
|
57
|
+
http://www.w3.org/TR/n-triples/#n-triples-mediatype Fixes #464 [David
|
58
|
+
Chandek-Stark]
|
59
|
+
|
60
|
+
2014-08-04: RDFDatastream#content= patched to accept IO, matching
|
61
|
+
Rubydora::Datastream API Fixes #461 [David Chandek-Stark]
|
62
|
+
|
63
|
+
2014-07-30: Only set ds content in #create_datastream for managed and inline
|
64
|
+
[David Chandek-Stark]
|
65
|
+
|
1
66
|
v7.1.0
|
2
67
|
|
3
68
|
2014-07-17: Update Om and Rubydora depencencies [Justin Coyne]
|
@@ -233,10 +233,10 @@ module ActiveFedora
|
|
233
233
|
if value.empty?
|
234
234
|
"-#{key}:['' TO *]"
|
235
235
|
elsif value.is_a? Array
|
236
|
-
value.map { |val| "#{key}:#{
|
236
|
+
value.map { |val| "#{key}:#{solr_escape(val)}" }
|
237
237
|
else
|
238
238
|
key = SOLR_DOCUMENT_ID if (key === :id || key === :pid)
|
239
|
-
"#{key}:#{
|
239
|
+
"#{key}:#{solr_escape(value)}"
|
240
240
|
end
|
241
241
|
end
|
242
242
|
end
|
@@ -248,5 +248,8 @@ module ActiveFedora
|
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
251
|
+
def solr_escape terms
|
252
|
+
RSolr.solr_escape(terms).gsub(/\s+/,"\\ ")
|
253
|
+
end
|
251
254
|
end
|
252
255
|
end
|
@@ -36,7 +36,7 @@ describe ActiveFedora::SolrService do
|
|
36
36
|
Object.send(:remove_const, :FooObject)
|
37
37
|
end
|
38
38
|
it "should return an array of objects that are of the class stored in active_fedora_model_s" do
|
39
|
-
query = "id\:#{RSolr.
|
39
|
+
query = "id\:#{RSolr.solr_escape(@test_object.pid)} OR id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
40
40
|
solr_result = ActiveFedora::SolrService.query(query)
|
41
41
|
result = ActiveFedora::SolrService.reify_solr_results(solr_result)
|
42
42
|
result.length.should == 2
|
@@ -46,7 +46,7 @@ describe ActiveFedora::SolrService do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'should load objects from solr data if a :load_from_solr option is passed in' do
|
49
|
-
query = "id\:#{RSolr.
|
49
|
+
query = "id\:#{RSolr.solr_escape(@test_object.pid)} OR id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
50
50
|
solr_result = ActiveFedora::SolrService.query(query)
|
51
51
|
result = ActiveFedora::SolrService.reify_solr_results(solr_result,{:load_from_solr=>true})
|
52
52
|
result.length.should == 2
|
@@ -67,7 +67,7 @@ describe ActiveFedora::SolrService do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
it 'should #reify a lightweight object as a new instance' do
|
70
|
-
query = "id\:#{RSolr.
|
70
|
+
query = "id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
71
71
|
solr_result = ActiveFedora::SolrService.query(query)
|
72
72
|
result = ActiveFedora::SolrService.reify_solr_results(solr_result,{:load_from_solr=>true})
|
73
73
|
solr_foo = result.first
|
@@ -79,7 +79,7 @@ describe ActiveFedora::SolrService do
|
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'should #reify! a lightweight object within the same instance' do
|
82
|
-
query = "id\:#{RSolr.
|
82
|
+
query = "id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
83
83
|
solr_result = ActiveFedora::SolrService.query(query)
|
84
84
|
result = ActiveFedora::SolrService.reify_solr_results(solr_result,{:load_from_solr=>true})
|
85
85
|
solr_foo = result.first
|
@@ -90,7 +90,7 @@ describe ActiveFedora::SolrService do
|
|
90
90
|
end
|
91
91
|
|
92
92
|
it 'should raise an exception when attempting to reify a first-class object' do
|
93
|
-
query = "id\:#{RSolr.
|
93
|
+
query = "id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
94
94
|
solr_result = ActiveFedora::SolrService.query(query)
|
95
95
|
result = ActiveFedora::SolrService.reify_solr_results(solr_result,{:load_from_solr=>true})
|
96
96
|
solr_foo = result.first
|
@@ -101,7 +101,7 @@ describe ActiveFedora::SolrService do
|
|
101
101
|
end
|
102
102
|
|
103
103
|
it 'should call load_instance_from_solr if :load_from_solr option passed in' do
|
104
|
-
query = "id\:#{RSolr.
|
104
|
+
query = "id\:#{RSolr.solr_escape(@test_object.pid)} OR id\:#{RSolr.solr_escape(@foo_object.pid)}"
|
105
105
|
solr_result = ActiveFedora::SolrService.query(query)
|
106
106
|
ActiveFedora::Base.should_receive(:load_instance_from_solr).once
|
107
107
|
FooObject.should_receive(:load_instance_from_solr).once
|
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: 8.0.
|
4
|
+
version: 8.0.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: 2015-
|
13
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|