active-fedora 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,14 @@ describe ActiveFedora::Base do
19
19
  it "should accept a prefix argument, default to using DS as prefix" do
20
20
  @test_object.generate_dsid("FOO").should == "FOO1"
21
21
  end
22
+
23
+ it "if delete a datastream it should still use next index for a prefix" do
24
+ dsids = Hash["DS2"=>1]
25
+ @test_object.expects(:datastreams).returns(dsids)
26
+ generated_id = @test_object.generate_dsid
27
+ generated_id.should_not be_nil
28
+ generated_id.should == "DS3"
29
+ end
22
30
  end
23
31
  describe '.add_datastream' do
24
32
  it "should not call Datastream.save" do
@@ -116,4 +124,4 @@ describe ActiveFedora::Base do
116
124
  @test_object.instance_variable_get(:@datastreams).should == result
117
125
  end
118
126
  end
119
- end
127
+ end
@@ -12,6 +12,11 @@ describe ActiveFedora::ContentModel do
12
12
 
13
13
  class GenericContent < ActiveFedora::Base
14
14
  end
15
+
16
+ module Sample
17
+ class NamespacedModel < ActiveFedora::Base
18
+ end
19
+ end
15
20
  end
16
21
 
17
22
  before(:each) do
@@ -82,6 +87,12 @@ describe ActiveFedora::ContentModel do
82
87
  mock_object.expects(:relationships).returns( :self=>{:has_model=>["info:fedora/fedora-system:ServiceDefinition-3.0", "info:fedora/afmodel:SampleModel", "info:fedora/afmodel:NonDefinedModel"]} )
83
88
  ActiveFedora::ContentModel.known_models_for(mock_object).should == [SampleModel]
84
89
  end
90
+ it "should support namespaced models" do
91
+ pending "This is harder than it looks."
92
+ mock_object = mock("ActiveFedora Object")
93
+ mock_object.expects(:relationships).returns( :self=>{:has_model=>["info:fedora/afmodel:Sample_NamespacedModel"]} )
94
+ ActiveFedora::ContentModel.known_models_for(mock_object).should == [Sample::NamespacedModel]
95
+ end
85
96
  it "should default to using ActiveFedora::Base as the model" do
86
97
  mock_object = mock("ActiveFedora Object")
87
98
  mock_object.expects(:relationships).returns( :self=>{:has_model=>["info:fedora/afmodel:NonDefinedModel"]} )
@@ -73,6 +73,12 @@ describe ActiveFedora::RelsExtDatastream do
73
73
  ActiveFedora::RelsExtDatastream.from_xml(new_ds,el)
74
74
  new_ds.relationships.should == @test_obj.relationships
75
75
  end
76
+ it "should handle un-mapped predicates gracefully" do
77
+ @test_obj.relationships.should == {:self=>{:is_member_of=>["info:fedora/demo:10"], :is_part_of=>["info:fedora/demo:11"], :has_model=>["info:fedora/afmodel:ActiveFedora_Base"]}}
78
+ @test_obj.add_relationship("foo", "foo:bar")
79
+ @test_obj.save
80
+ @test_obj.relationships.should == {:self=>{:is_part_of=>["info:fedora/demo:11"], "foo"=>["info:fedora/foo:bar"], :has_model=>["info:fedora/afmodel:ActiveFedora_Base"], :is_member_of=>["info:fedora/demo:10"]}}
81
+ end
76
82
  end
77
83
 
78
84
 
@@ -72,36 +72,58 @@ describe ActiveFedora::SemanticNode do
72
72
  rescue
73
73
  end
74
74
  end
75
-
76
- it 'should provide predicate mappings for entire Fedora Relationship Ontology' do
77
- desired_mappings = Hash[:is_member_of => "isMemberOf",
78
- :has_member => "hasMember",
79
- :is_part_of => "isPartOf",
80
- :has_part => "hasPart",
81
- :is_member_of_collection => "isMemberOfCollection",
82
- :has_collection_member => "hasCollectionMember",
83
- :is_constituent_of => "isConstituentOf",
84
- :has_constituent => "hasConstituent",
85
- :is_subset_of => "isSubsetOf",
86
- :has_subset => "hasSubset",
87
- :is_derivation_of => "isDerivationOf",
88
- :has_derivation => "hasDerivation",
89
- :is_dependent_of => "isDependentOf",
90
- :has_dependent => "hasDependent",
91
- :is_description_of => "isDescriptionOf",
92
- :has_description => "hasDescription",
93
- :is_metadata_for => "isMetadataFor",
94
- :has_metadata => "hasMetadata",
95
- :is_annotation_of => "isAnnotationOf",
96
- :has_annotation => "hasAnnotation",
97
- :has_equivalent => "hasEquivalent",
98
- :conforms_to => "conformsTo"]
99
- desired_mappings.each_pair do |k,v|
100
- SpecNode::PREDICATE_MAPPINGS.should have_key(k)
101
- SpecNode::PREDICATE_MAPPINGS[k].should == v
75
+
76
+ it 'should provide .default_predicate_namespace' do
77
+ SpecNode.should respond_to(:default_predicate_namespace)
78
+ SpecNode.default_predicate_namespace.should == 'info:fedora/fedora-system:def/relations-external#'
79
+ end
80
+
81
+ it 'should provide .predicate_mappings' do
82
+ SpecNode.should respond_to(:predicate_mappings)
83
+ end
84
+
85
+ describe "#predicate_mappings" do
86
+
87
+ it 'should return a hash' do
88
+ SpecNode.predicate_mappings.should be_kind_of Hash
89
+ end
90
+
91
+ it "should provide mappings to the fedora ontology via the info:fedora/fedora-system:def/relations-external default namespace mapping" do
92
+ SpecNode.predicate_mappings.keys.include?(SpecNode.default_predicate_namespace).should be_true
93
+ SpecNode.predicate_mappings[SpecNode.default_predicate_namespace].should be_kind_of Hash
94
+ end
95
+
96
+ it 'should provide predicate mappings for entire Fedora Relationship Ontology' do
97
+ desired_mappings = Hash[:is_member_of => "isMemberOf",
98
+ :has_member => "hasMember",
99
+ :is_part_of => "isPartOf",
100
+ :has_part => "hasPart",
101
+ :is_member_of_collection => "isMemberOfCollection",
102
+ :has_collection_member => "hasCollectionMember",
103
+ :is_constituent_of => "isConstituentOf",
104
+ :has_constituent => "hasConstituent",
105
+ :is_subset_of => "isSubsetOf",
106
+ :has_subset => "hasSubset",
107
+ :is_derivation_of => "isDerivationOf",
108
+ :has_derivation => "hasDerivation",
109
+ :is_dependent_of => "isDependentOf",
110
+ :has_dependent => "hasDependent",
111
+ :is_description_of => "isDescriptionOf",
112
+ :has_description => "hasDescription",
113
+ :is_metadata_for => "isMetadataFor",
114
+ :has_metadata => "hasMetadata",
115
+ :is_annotation_of => "isAnnotationOf",
116
+ :has_annotation => "hasAnnotation",
117
+ :has_equivalent => "hasEquivalent",
118
+ :conforms_to => "conformsTo",
119
+ :has_model => "hasModel"]
120
+ desired_mappings.each_pair do |k,v|
121
+ SpecNode.predicate_mappings[SpecNode.default_predicate_namespace].should have_key(k)
122
+ SpecNode.predicate_mappings[SpecNode.default_predicate_namespace][k].should == v
123
+ end
102
124
  end
103
125
  end
104
-
126
+
105
127
  it 'should provide .internal_uri' do
106
128
  @node.should respond_to(:internal_uri)
107
129
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 2.1.0
10
+ version: 2.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt
@@ -16,12 +16,12 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-04-08 00:00:00 -05:00
19
+ date: 2011-05-02 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- type: :runtime
24
23
  prerelease: false
24
+ type: :runtime
25
25
  name: active-fedora
26
26
  version_requirements: &id001 !ruby/object:Gem::Requirement
27
27
  none: false
@@ -34,8 +34,8 @@ dependencies:
34
34
  version: "0"
35
35
  requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- type: :development
38
37
  prerelease: false
38
+ type: :development
39
39
  name: jeweler
40
40
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
@@ -48,8 +48,8 @@ dependencies:
48
48
  version: "0"
49
49
  requirement: *id002
50
50
  - !ruby/object:Gem::Dependency
51
- type: :development
52
51
  prerelease: false
52
+ type: :development
53
53
  name: rspec
54
54
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
@@ -64,8 +64,8 @@ dependencies:
64
64
  version: 2.0.0
65
65
  requirement: *id003
66
66
  - !ruby/object:Gem::Dependency
67
- type: :development
68
67
  prerelease: false
68
+ type: :development
69
69
  name: mocha
70
70
  version_requirements: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
@@ -80,8 +80,8 @@ dependencies:
80
80
  version: 0.9.8
81
81
  requirement: *id004
82
82
  - !ruby/object:Gem::Dependency
83
- type: :development
84
83
  prerelease: false
84
+ type: :development
85
85
  name: ruby-debug
86
86
  version_requirements: &id005 !ruby/object:Gem::Requirement
87
87
  none: false
@@ -94,8 +94,8 @@ dependencies:
94
94
  version: "0"
95
95
  requirement: *id005
96
96
  - !ruby/object:Gem::Dependency
97
- type: :development
98
97
  prerelease: false
98
+ type: :development
99
99
  name: jeweler
100
100
  version_requirements: &id006 !ruby/object:Gem::Requirement
101
101
  none: false
@@ -108,8 +108,8 @@ dependencies:
108
108
  version: "0"
109
109
  requirement: *id006
110
110
  - !ruby/object:Gem::Dependency
111
- type: :development
112
111
  prerelease: false
112
+ type: :development
113
113
  name: rspec
114
114
  version_requirements: &id007 !ruby/object:Gem::Requirement
115
115
  none: false
@@ -124,8 +124,8 @@ dependencies:
124
124
  version: 2.0.0
125
125
  requirement: *id007
126
126
  - !ruby/object:Gem::Dependency
127
- type: :development
128
127
  prerelease: false
128
+ type: :development
129
129
  name: mocha
130
130
  version_requirements: &id008 !ruby/object:Gem::Requirement
131
131
  none: false
@@ -140,8 +140,8 @@ dependencies:
140
140
  version: 0.9.8
141
141
  requirement: *id008
142
142
  - !ruby/object:Gem::Dependency
143
- type: :development
144
143
  prerelease: false
144
+ type: :development
145
145
  name: ruby-debug
146
146
  version_requirements: &id009 !ruby/object:Gem::Requirement
147
147
  none: false
@@ -154,8 +154,8 @@ dependencies:
154
154
  version: "0"
155
155
  requirement: *id009
156
156
  - !ruby/object:Gem::Dependency
157
- type: :development
158
157
  prerelease: false
158
+ type: :development
159
159
  name: jeweler
160
160
  version_requirements: &id010 !ruby/object:Gem::Requirement
161
161
  none: false
@@ -168,8 +168,8 @@ dependencies:
168
168
  version: "0"
169
169
  requirement: *id010
170
170
  - !ruby/object:Gem::Dependency
171
- type: :development
172
171
  prerelease: false
172
+ type: :development
173
173
  name: rspec
174
174
  version_requirements: &id011 !ruby/object:Gem::Requirement
175
175
  none: false
@@ -184,8 +184,8 @@ dependencies:
184
184
  version: 2.0.0
185
185
  requirement: *id011
186
186
  - !ruby/object:Gem::Dependency
187
- type: :development
188
187
  prerelease: false
188
+ type: :development
189
189
  name: mocha
190
190
  version_requirements: &id012 !ruby/object:Gem::Requirement
191
191
  none: false
@@ -200,8 +200,8 @@ dependencies:
200
200
  version: 0.9.8
201
201
  requirement: *id012
202
202
  - !ruby/object:Gem::Dependency
203
- type: :development
204
203
  prerelease: false
204
+ type: :development
205
205
  name: ruby-debug
206
206
  version_requirements: &id013 !ruby/object:Gem::Requirement
207
207
  none: false
@@ -214,8 +214,8 @@ dependencies:
214
214
  version: "0"
215
215
  requirement: *id013
216
216
  - !ruby/object:Gem::Dependency
217
- type: :development
218
217
  prerelease: false
218
+ type: :development
219
219
  name: jeweler
220
220
  version_requirements: &id014 !ruby/object:Gem::Requirement
221
221
  none: false
@@ -228,8 +228,8 @@ dependencies:
228
228
  version: "0"
229
229
  requirement: *id014
230
230
  - !ruby/object:Gem::Dependency
231
- type: :development
232
231
  prerelease: false
232
+ type: :development
233
233
  name: rspec
234
234
  version_requirements: &id015 !ruby/object:Gem::Requirement
235
235
  none: false
@@ -244,8 +244,8 @@ dependencies:
244
244
  version: 2.0.0
245
245
  requirement: *id015
246
246
  - !ruby/object:Gem::Dependency
247
- type: :development
248
247
  prerelease: false
248
+ type: :development
249
249
  name: mocha
250
250
  version_requirements: &id016 !ruby/object:Gem::Requirement
251
251
  none: false
@@ -260,8 +260,8 @@ dependencies:
260
260
  version: 0.9.8
261
261
  requirement: *id016
262
262
  - !ruby/object:Gem::Dependency
263
- type: :development
264
263
  prerelease: false
264
+ type: :development
265
265
  name: ruby-debug
266
266
  version_requirements: &id017 !ruby/object:Gem::Requirement
267
267
  none: false
@@ -274,8 +274,8 @@ dependencies:
274
274
  version: "0"
275
275
  requirement: *id017
276
276
  - !ruby/object:Gem::Dependency
277
- type: :development
278
277
  prerelease: false
278
+ type: :development
279
279
  name: jeweler
280
280
  version_requirements: &id018 !ruby/object:Gem::Requirement
281
281
  none: false
@@ -288,8 +288,8 @@ dependencies:
288
288
  version: "0"
289
289
  requirement: *id018
290
290
  - !ruby/object:Gem::Dependency
291
- type: :development
292
291
  prerelease: false
292
+ type: :development
293
293
  name: rspec
294
294
  version_requirements: &id019 !ruby/object:Gem::Requirement
295
295
  none: false
@@ -304,8 +304,8 @@ dependencies:
304
304
  version: 2.0.0
305
305
  requirement: *id019
306
306
  - !ruby/object:Gem::Dependency
307
- type: :development
308
307
  prerelease: false
308
+ type: :development
309
309
  name: mocha
310
310
  version_requirements: &id020 !ruby/object:Gem::Requirement
311
311
  none: false
@@ -320,8 +320,8 @@ dependencies:
320
320
  version: 0.9.8
321
321
  requirement: *id020
322
322
  - !ruby/object:Gem::Dependency
323
- type: :development
324
323
  prerelease: false
324
+ type: :development
325
325
  name: ruby-debug
326
326
  version_requirements: &id021 !ruby/object:Gem::Requirement
327
327
  none: false
@@ -334,8 +334,8 @@ dependencies:
334
334
  version: "0"
335
335
  requirement: *id021
336
336
  - !ruby/object:Gem::Dependency
337
- type: :development
338
337
  prerelease: false
338
+ type: :development
339
339
  name: jeweler
340
340
  version_requirements: &id022 !ruby/object:Gem::Requirement
341
341
  none: false
@@ -348,8 +348,8 @@ dependencies:
348
348
  version: "0"
349
349
  requirement: *id022
350
350
  - !ruby/object:Gem::Dependency
351
- type: :development
352
351
  prerelease: false
352
+ type: :development
353
353
  name: rspec
354
354
  version_requirements: &id023 !ruby/object:Gem::Requirement
355
355
  none: false
@@ -364,8 +364,8 @@ dependencies:
364
364
  version: 2.0.0
365
365
  requirement: *id023
366
366
  - !ruby/object:Gem::Dependency
367
- type: :development
368
367
  prerelease: false
368
+ type: :development
369
369
  name: mocha
370
370
  version_requirements: &id024 !ruby/object:Gem::Requirement
371
371
  none: false
@@ -380,8 +380,8 @@ dependencies:
380
380
  version: 0.9.8
381
381
  requirement: *id024
382
382
  - !ruby/object:Gem::Dependency
383
- type: :development
384
383
  prerelease: false
384
+ type: :development
385
385
  name: ruby-debug
386
386
  version_requirements: &id025 !ruby/object:Gem::Requirement
387
387
  none: false
@@ -394,8 +394,8 @@ dependencies:
394
394
  version: "0"
395
395
  requirement: *id025
396
396
  - !ruby/object:Gem::Dependency
397
- type: :development
398
397
  prerelease: false
398
+ type: :development
399
399
  name: jeweler
400
400
  version_requirements: &id026 !ruby/object:Gem::Requirement
401
401
  none: false
@@ -408,8 +408,8 @@ dependencies:
408
408
  version: "0"
409
409
  requirement: *id026
410
410
  - !ruby/object:Gem::Dependency
411
- type: :development
412
411
  prerelease: false
412
+ type: :development
413
413
  name: rspec
414
414
  version_requirements: &id027 !ruby/object:Gem::Requirement
415
415
  none: false
@@ -424,8 +424,8 @@ dependencies:
424
424
  version: 2.0.0
425
425
  requirement: *id027
426
426
  - !ruby/object:Gem::Dependency
427
- type: :development
428
427
  prerelease: false
428
+ type: :development
429
429
  name: mocha
430
430
  version_requirements: &id028 !ruby/object:Gem::Requirement
431
431
  none: false
@@ -440,8 +440,8 @@ dependencies:
440
440
  version: 0.9.8
441
441
  requirement: *id028
442
442
  - !ruby/object:Gem::Dependency
443
- type: :development
444
443
  prerelease: false
444
+ type: :development
445
445
  name: ruby-debug
446
446
  version_requirements: &id029 !ruby/object:Gem::Requirement
447
447
  none: false
@@ -454,8 +454,8 @@ dependencies:
454
454
  version: "0"
455
455
  requirement: *id029
456
456
  - !ruby/object:Gem::Dependency
457
- type: :development
458
457
  prerelease: false
458
+ type: :development
459
459
  name: jeweler
460
460
  version_requirements: &id030 !ruby/object:Gem::Requirement
461
461
  none: false
@@ -468,8 +468,8 @@ dependencies:
468
468
  version: "0"
469
469
  requirement: *id030
470
470
  - !ruby/object:Gem::Dependency
471
- type: :development
472
471
  prerelease: false
472
+ type: :development
473
473
  name: rspec
474
474
  version_requirements: &id031 !ruby/object:Gem::Requirement
475
475
  none: false
@@ -484,8 +484,8 @@ dependencies:
484
484
  version: 2.0.0
485
485
  requirement: *id031
486
486
  - !ruby/object:Gem::Dependency
487
- type: :development
488
487
  prerelease: false
488
+ type: :development
489
489
  name: mocha
490
490
  version_requirements: &id032 !ruby/object:Gem::Requirement
491
491
  none: false
@@ -500,8 +500,8 @@ dependencies:
500
500
  version: 0.9.8
501
501
  requirement: *id032
502
502
  - !ruby/object:Gem::Dependency
503
- type: :development
504
503
  prerelease: false
504
+ type: :development
505
505
  name: ruby-debug
506
506
  version_requirements: &id033 !ruby/object:Gem::Requirement
507
507
  none: false
@@ -514,8 +514,8 @@ dependencies:
514
514
  version: "0"
515
515
  requirement: *id033
516
516
  - !ruby/object:Gem::Dependency
517
- type: :development
518
517
  prerelease: false
518
+ type: :development
519
519
  name: jeweler
520
520
  version_requirements: &id034 !ruby/object:Gem::Requirement
521
521
  none: false
@@ -528,8 +528,8 @@ dependencies:
528
528
  version: "0"
529
529
  requirement: *id034
530
530
  - !ruby/object:Gem::Dependency
531
- type: :development
532
531
  prerelease: false
532
+ type: :development
533
533
  name: rspec
534
534
  version_requirements: &id035 !ruby/object:Gem::Requirement
535
535
  none: false
@@ -544,8 +544,8 @@ dependencies:
544
544
  version: 2.0.0
545
545
  requirement: *id035
546
546
  - !ruby/object:Gem::Dependency
547
- type: :development
548
547
  prerelease: false
548
+ type: :development
549
549
  name: mocha
550
550
  version_requirements: &id036 !ruby/object:Gem::Requirement
551
551
  none: false
@@ -560,8 +560,8 @@ dependencies:
560
560
  version: 0.9.8
561
561
  requirement: *id036
562
562
  - !ruby/object:Gem::Dependency
563
- type: :development
564
563
  prerelease: false
564
+ type: :development
565
565
  name: ruby-debug
566
566
  version_requirements: &id037 !ruby/object:Gem::Requirement
567
567
  none: false
@@ -574,10 +574,310 @@ dependencies:
574
574
  version: "0"
575
575
  requirement: *id037
576
576
  - !ruby/object:Gem::Dependency
577
- type: :runtime
578
577
  prerelease: false
579
- name: solr-ruby
578
+ type: :development
579
+ name: jeweler
580
580
  version_requirements: &id038 !ruby/object:Gem::Requirement
581
+ none: false
582
+ requirements:
583
+ - - ">="
584
+ - !ruby/object:Gem::Version
585
+ hash: 3
586
+ segments:
587
+ - 0
588
+ version: "0"
589
+ requirement: *id038
590
+ - !ruby/object:Gem::Dependency
591
+ prerelease: false
592
+ type: :development
593
+ name: rspec
594
+ version_requirements: &id039 !ruby/object:Gem::Requirement
595
+ none: false
596
+ requirements:
597
+ - - <
598
+ - !ruby/object:Gem::Version
599
+ hash: 15
600
+ segments:
601
+ - 2
602
+ - 0
603
+ - 0
604
+ version: 2.0.0
605
+ requirement: *id039
606
+ - !ruby/object:Gem::Dependency
607
+ prerelease: false
608
+ type: :development
609
+ name: mocha
610
+ version_requirements: &id040 !ruby/object:Gem::Requirement
611
+ none: false
612
+ requirements:
613
+ - - ">="
614
+ - !ruby/object:Gem::Version
615
+ hash: 43
616
+ segments:
617
+ - 0
618
+ - 9
619
+ - 8
620
+ version: 0.9.8
621
+ requirement: *id040
622
+ - !ruby/object:Gem::Dependency
623
+ prerelease: false
624
+ type: :development
625
+ name: ruby-debug
626
+ version_requirements: &id041 !ruby/object:Gem::Requirement
627
+ none: false
628
+ requirements:
629
+ - - ">="
630
+ - !ruby/object:Gem::Version
631
+ hash: 3
632
+ segments:
633
+ - 0
634
+ version: "0"
635
+ requirement: *id041
636
+ - !ruby/object:Gem::Dependency
637
+ prerelease: false
638
+ type: :development
639
+ name: jeweler
640
+ version_requirements: &id042 !ruby/object:Gem::Requirement
641
+ none: false
642
+ requirements:
643
+ - - ">="
644
+ - !ruby/object:Gem::Version
645
+ hash: 3
646
+ segments:
647
+ - 0
648
+ version: "0"
649
+ requirement: *id042
650
+ - !ruby/object:Gem::Dependency
651
+ prerelease: false
652
+ type: :development
653
+ name: rspec
654
+ version_requirements: &id043 !ruby/object:Gem::Requirement
655
+ none: false
656
+ requirements:
657
+ - - <
658
+ - !ruby/object:Gem::Version
659
+ hash: 15
660
+ segments:
661
+ - 2
662
+ - 0
663
+ - 0
664
+ version: 2.0.0
665
+ requirement: *id043
666
+ - !ruby/object:Gem::Dependency
667
+ prerelease: false
668
+ type: :development
669
+ name: mocha
670
+ version_requirements: &id044 !ruby/object:Gem::Requirement
671
+ none: false
672
+ requirements:
673
+ - - ">="
674
+ - !ruby/object:Gem::Version
675
+ hash: 43
676
+ segments:
677
+ - 0
678
+ - 9
679
+ - 8
680
+ version: 0.9.8
681
+ requirement: *id044
682
+ - !ruby/object:Gem::Dependency
683
+ prerelease: false
684
+ type: :development
685
+ name: ruby-debug
686
+ version_requirements: &id045 !ruby/object:Gem::Requirement
687
+ none: false
688
+ requirements:
689
+ - - ">="
690
+ - !ruby/object:Gem::Version
691
+ hash: 3
692
+ segments:
693
+ - 0
694
+ version: "0"
695
+ requirement: *id045
696
+ - !ruby/object:Gem::Dependency
697
+ prerelease: false
698
+ type: :development
699
+ name: jeweler
700
+ version_requirements: &id046 !ruby/object:Gem::Requirement
701
+ none: false
702
+ requirements:
703
+ - - ">="
704
+ - !ruby/object:Gem::Version
705
+ hash: 3
706
+ segments:
707
+ - 0
708
+ version: "0"
709
+ requirement: *id046
710
+ - !ruby/object:Gem::Dependency
711
+ prerelease: false
712
+ type: :development
713
+ name: rspec
714
+ version_requirements: &id047 !ruby/object:Gem::Requirement
715
+ none: false
716
+ requirements:
717
+ - - <
718
+ - !ruby/object:Gem::Version
719
+ hash: 15
720
+ segments:
721
+ - 2
722
+ - 0
723
+ - 0
724
+ version: 2.0.0
725
+ requirement: *id047
726
+ - !ruby/object:Gem::Dependency
727
+ prerelease: false
728
+ type: :development
729
+ name: mocha
730
+ version_requirements: &id048 !ruby/object:Gem::Requirement
731
+ none: false
732
+ requirements:
733
+ - - ">="
734
+ - !ruby/object:Gem::Version
735
+ hash: 43
736
+ segments:
737
+ - 0
738
+ - 9
739
+ - 8
740
+ version: 0.9.8
741
+ requirement: *id048
742
+ - !ruby/object:Gem::Dependency
743
+ prerelease: false
744
+ type: :development
745
+ name: ruby-debug
746
+ version_requirements: &id049 !ruby/object:Gem::Requirement
747
+ none: false
748
+ requirements:
749
+ - - ">="
750
+ - !ruby/object:Gem::Version
751
+ hash: 3
752
+ segments:
753
+ - 0
754
+ version: "0"
755
+ requirement: *id049
756
+ - !ruby/object:Gem::Dependency
757
+ prerelease: false
758
+ type: :development
759
+ name: jeweler
760
+ version_requirements: &id050 !ruby/object:Gem::Requirement
761
+ none: false
762
+ requirements:
763
+ - - ">="
764
+ - !ruby/object:Gem::Version
765
+ hash: 3
766
+ segments:
767
+ - 0
768
+ version: "0"
769
+ requirement: *id050
770
+ - !ruby/object:Gem::Dependency
771
+ prerelease: false
772
+ type: :development
773
+ name: rspec
774
+ version_requirements: &id051 !ruby/object:Gem::Requirement
775
+ none: false
776
+ requirements:
777
+ - - <
778
+ - !ruby/object:Gem::Version
779
+ hash: 15
780
+ segments:
781
+ - 2
782
+ - 0
783
+ - 0
784
+ version: 2.0.0
785
+ requirement: *id051
786
+ - !ruby/object:Gem::Dependency
787
+ prerelease: false
788
+ type: :development
789
+ name: mocha
790
+ version_requirements: &id052 !ruby/object:Gem::Requirement
791
+ none: false
792
+ requirements:
793
+ - - ">="
794
+ - !ruby/object:Gem::Version
795
+ hash: 43
796
+ segments:
797
+ - 0
798
+ - 9
799
+ - 8
800
+ version: 0.9.8
801
+ requirement: *id052
802
+ - !ruby/object:Gem::Dependency
803
+ prerelease: false
804
+ type: :development
805
+ name: ruby-debug
806
+ version_requirements: &id053 !ruby/object:Gem::Requirement
807
+ none: false
808
+ requirements:
809
+ - - ">="
810
+ - !ruby/object:Gem::Version
811
+ hash: 3
812
+ segments:
813
+ - 0
814
+ version: "0"
815
+ requirement: *id053
816
+ - !ruby/object:Gem::Dependency
817
+ prerelease: false
818
+ type: :development
819
+ name: jeweler
820
+ version_requirements: &id054 !ruby/object:Gem::Requirement
821
+ none: false
822
+ requirements:
823
+ - - ">="
824
+ - !ruby/object:Gem::Version
825
+ hash: 3
826
+ segments:
827
+ - 0
828
+ version: "0"
829
+ requirement: *id054
830
+ - !ruby/object:Gem::Dependency
831
+ prerelease: false
832
+ type: :development
833
+ name: rspec
834
+ version_requirements: &id055 !ruby/object:Gem::Requirement
835
+ none: false
836
+ requirements:
837
+ - - <
838
+ - !ruby/object:Gem::Version
839
+ hash: 15
840
+ segments:
841
+ - 2
842
+ - 0
843
+ - 0
844
+ version: 2.0.0
845
+ requirement: *id055
846
+ - !ruby/object:Gem::Dependency
847
+ prerelease: false
848
+ type: :development
849
+ name: mocha
850
+ version_requirements: &id056 !ruby/object:Gem::Requirement
851
+ none: false
852
+ requirements:
853
+ - - ">="
854
+ - !ruby/object:Gem::Version
855
+ hash: 43
856
+ segments:
857
+ - 0
858
+ - 9
859
+ - 8
860
+ version: 0.9.8
861
+ requirement: *id056
862
+ - !ruby/object:Gem::Dependency
863
+ prerelease: false
864
+ type: :development
865
+ name: ruby-debug
866
+ version_requirements: &id057 !ruby/object:Gem::Requirement
867
+ none: false
868
+ requirements:
869
+ - - ">="
870
+ - !ruby/object:Gem::Version
871
+ hash: 3
872
+ segments:
873
+ - 0
874
+ version: "0"
875
+ requirement: *id057
876
+ - !ruby/object:Gem::Dependency
877
+ prerelease: false
878
+ type: :runtime
879
+ name: solr-ruby
880
+ version_requirements: &id058 !ruby/object:Gem::Requirement
581
881
  none: false
582
882
  requirements:
583
883
  - - ">="
@@ -588,12 +888,12 @@ dependencies:
588
888
  - 0
589
889
  - 6
590
890
  version: 0.0.6
591
- requirement: *id038
891
+ requirement: *id058
592
892
  - !ruby/object:Gem::Dependency
593
- type: :runtime
594
893
  prerelease: false
894
+ type: :runtime
595
895
  name: xml-simple
596
- version_requirements: &id039 !ruby/object:Gem::Requirement
896
+ version_requirements: &id059 !ruby/object:Gem::Requirement
597
897
  none: false
598
898
  requirements:
599
899
  - - ">="
@@ -604,12 +904,12 @@ dependencies:
604
904
  - 0
605
905
  - 12
606
906
  version: 1.0.12
607
- requirement: *id039
907
+ requirement: *id059
608
908
  - !ruby/object:Gem::Dependency
609
- type: :runtime
610
909
  prerelease: false
910
+ type: :runtime
611
911
  name: mime-types
612
- version_requirements: &id040 !ruby/object:Gem::Requirement
912
+ version_requirements: &id060 !ruby/object:Gem::Requirement
613
913
  none: false
614
914
  requirements:
615
915
  - - ">="
@@ -619,12 +919,12 @@ dependencies:
619
919
  - 1
620
920
  - 16
621
921
  version: "1.16"
622
- requirement: *id040
922
+ requirement: *id060
623
923
  - !ruby/object:Gem::Dependency
624
- type: :runtime
625
924
  prerelease: false
925
+ type: :runtime
626
926
  name: multipart-post
627
- version_requirements: &id041 !ruby/object:Gem::Requirement
927
+ version_requirements: &id061 !ruby/object:Gem::Requirement
628
928
  none: false
629
929
  requirements:
630
930
  - - ">="
@@ -633,12 +933,12 @@ dependencies:
633
933
  segments:
634
934
  - 0
635
935
  version: "0"
636
- requirement: *id041
936
+ requirement: *id061
637
937
  - !ruby/object:Gem::Dependency
638
- type: :runtime
639
938
  prerelease: false
939
+ type: :runtime
640
940
  name: nokogiri
641
- version_requirements: &id042 !ruby/object:Gem::Requirement
941
+ version_requirements: &id062 !ruby/object:Gem::Requirement
642
942
  none: false
643
943
  requirements:
644
944
  - - ">="
@@ -647,12 +947,12 @@ dependencies:
647
947
  segments:
648
948
  - 0
649
949
  version: "0"
650
- requirement: *id042
950
+ requirement: *id062
651
951
  - !ruby/object:Gem::Dependency
652
- type: :runtime
653
952
  prerelease: false
953
+ type: :runtime
654
954
  name: om
655
- version_requirements: &id043 !ruby/object:Gem::Requirement
955
+ version_requirements: &id063 !ruby/object:Gem::Requirement
656
956
  none: false
657
957
  requirements:
658
958
  - - ">="
@@ -662,12 +962,12 @@ dependencies:
662
962
  - 1
663
963
  - 0
664
964
  version: "1.0"
665
- requirement: *id043
965
+ requirement: *id063
666
966
  - !ruby/object:Gem::Dependency
667
- type: :runtime
668
967
  prerelease: false
968
+ type: :runtime
669
969
  name: solrizer
670
- version_requirements: &id044 !ruby/object:Gem::Requirement
970
+ version_requirements: &id064 !ruby/object:Gem::Requirement
671
971
  none: false
672
972
  requirements:
673
973
  - - ">"
@@ -678,12 +978,12 @@ dependencies:
678
978
  - 0
679
979
  - 0
680
980
  version: 1.0.0
681
- requirement: *id044
981
+ requirement: *id064
682
982
  - !ruby/object:Gem::Dependency
683
- type: :runtime
684
983
  prerelease: false
984
+ type: :runtime
685
985
  name: activeresource
686
- version_requirements: &id045 !ruby/object:Gem::Requirement
986
+ version_requirements: &id065 !ruby/object:Gem::Requirement
687
987
  none: false
688
988
  requirements:
689
989
  - - ">="
@@ -692,12 +992,12 @@ dependencies:
692
992
  segments:
693
993
  - 0
694
994
  version: "0"
695
- requirement: *id045
995
+ requirement: *id065
696
996
  - !ruby/object:Gem::Dependency
697
- type: :runtime
698
997
  prerelease: false
998
+ type: :runtime
699
999
  name: mediashelf-loggable
700
- version_requirements: &id046 !ruby/object:Gem::Requirement
1000
+ version_requirements: &id066 !ruby/object:Gem::Requirement
701
1001
  none: false
702
1002
  requirements:
703
1003
  - - ">="
@@ -706,12 +1006,12 @@ dependencies:
706
1006
  segments:
707
1007
  - 0
708
1008
  version: "0"
709
- requirement: *id046
1009
+ requirement: *id066
710
1010
  - !ruby/object:Gem::Dependency
711
- type: :runtime
712
1011
  prerelease: false
1012
+ type: :runtime
713
1013
  name: equivalent-xml
714
- version_requirements: &id047 !ruby/object:Gem::Requirement
1014
+ version_requirements: &id067 !ruby/object:Gem::Requirement
715
1015
  none: false
716
1016
  requirements:
717
1017
  - - ">="
@@ -720,7 +1020,21 @@ dependencies:
720
1020
  segments:
721
1021
  - 0
722
1022
  version: "0"
723
- requirement: *id047
1023
+ requirement: *id067
1024
+ - !ruby/object:Gem::Dependency
1025
+ prerelease: false
1026
+ type: :runtime
1027
+ name: facets
1028
+ version_requirements: &id068 !ruby/object:Gem::Requirement
1029
+ none: false
1030
+ requirements:
1031
+ - - ">="
1032
+ - !ruby/object:Gem::Version
1033
+ hash: 3
1034
+ segments:
1035
+ - 0
1036
+ version: "0"
1037
+ requirement: *id068
724
1038
  description: ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.
725
1039
  email: matt.zumwalt@yourmediashelf.com
726
1040
  executables: []
@@ -896,6 +1210,7 @@ files:
896
1210
  - VERSION
897
1211
  - active-fedora.gemspec
898
1212
  - config/fedora.yml
1213
+ - config/predicate_mappings.yml
899
1214
  - config/solr_mappings.yml
900
1215
  - config/solr_mappings_af_0.1.yml
901
1216
  - config/solr_mappings_bl_2.4.yml
@@ -1030,54 +1345,5 @@ rubygems_version: 1.3.7
1030
1345
  signing_key:
1031
1346
  specification_version: 3
1032
1347
  summary: A convenience libary for manipulating MODS (Metadata Object Description Schema) documents.
1033
- test_files:
1034
- - spec/integration/base_file_management_spec.rb
1035
- - spec/integration/base_find_by_fields_spec.rb
1036
- - spec/integration/base_loader_spec.rb
1037
- - spec/integration/base_spec.rb
1038
- - spec/integration/bug_spec.rb
1039
- - spec/integration/datastream_spec.rb
1040
- - spec/integration/datastreams_crud_spec.rb
1041
- - spec/integration/fedora_object_spec.rb
1042
- - spec/integration/full_featured_model_spec.rb
1043
- - spec/integration/metadata_datastream_helper_spec.rb
1044
- - spec/integration/model_spec.rb
1045
- - spec/integration/mods_article_integration_spec.rb
1046
- - spec/integration/nokogiri_datastream_spec.rb
1047
- - spec/integration/rels_ext_datastream_spec.rb
1048
- - spec/integration/repository_spec.rb
1049
- - spec/integration/rf_fedora_object_spec.rb
1050
- - spec/integration/semantic_node_spec.rb
1051
- - spec/integration/solr_service_spec.rb
1052
- - spec/samples/models/audio_record.rb
1053
- - spec/samples/models/image.rb
1054
- - spec/samples/models/oral_history.rb
1055
- - spec/samples/models/seminar.rb
1056
- - spec/samples/models/seminar_audio_file.rb
1057
- - spec/samples/oral_history_sample_model.rb
1058
- - spec/spec_helper.rb
1059
- - spec/unit/active_fedora_spec.rb
1060
- - spec/unit/base_cma_spec.rb
1061
- - spec/unit/base_datastream_management_spec.rb
1062
- - spec/unit/base_extra_spec.rb
1063
- - spec/unit/base_file_management_spec.rb
1064
- - spec/unit/base_named_datastream_spec.rb
1065
- - spec/unit/base_spec.rb
1066
- - spec/unit/connection_spec.rb
1067
- - spec/unit/content_model_spec.rb
1068
- - spec/unit/datastream_concurrency_spec.rb
1069
- - spec/unit/datastream_spec.rb
1070
- - spec/unit/fedora_object_spec.rb
1071
- - spec/unit/inheritance_spec.rb
1072
- - spec/unit/metadata_datastream_spec.rb
1073
- - spec/unit/model_spec.rb
1074
- - spec/unit/nokogiri_datastream_spec.rb
1075
- - spec/unit/property_spec.rb
1076
- - spec/unit/qualified_dublin_core_datastream_spec.rb
1077
- - spec/unit/relationship_spec.rb
1078
- - spec/unit/rels_ext_datastream_spec.rb
1079
- - spec/unit/repository_spec.rb
1080
- - spec/unit/rf_datastream_spec.rb
1081
- - spec/unit/semantic_node_spec.rb
1082
- - spec/unit/solr_config_options_spec.rb
1083
- - spec/unit/solr_service_spec.rb
1348
+ test_files: []
1349
+