active-fedora 11.0.0.rc7 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +2 -7
  4. data/.rubocop_todo.yml +40 -9
  5. data/active-fedora.gemspec +2 -2
  6. data/lib/active_fedora/associations/collection_association.rb +1 -1
  7. data/lib/active_fedora/associations/contained_finder.rb +2 -2
  8. data/lib/active_fedora/change_set.rb +6 -2
  9. data/lib/active_fedora/core.rb +18 -7
  10. data/lib/active_fedora/fedora_attributes.rb +1 -1
  11. data/lib/active_fedora/indexing_service.rb +0 -4
  12. data/lib/active_fedora/orders/ordered_list.rb +2 -2
  13. data/lib/active_fedora/relation/delegation.rb +4 -0
  14. data/lib/active_fedora/solr_hit.rb +0 -4
  15. data/lib/active_fedora/solr_query_builder.rb +16 -12
  16. data/lib/active_fedora/version.rb +1 -1
  17. data/spec/config_helper.rb +1 -1
  18. data/spec/integration/autosave_association_spec.rb +1 -1
  19. data/spec/integration/base_spec.rb +1 -1
  20. data/spec/integration/file_spec.rb +1 -1
  21. data/spec/integration/indexing_spec.rb +1 -1
  22. data/spec/integration/query_result_builder_spec.rb +1 -1
  23. data/spec/integration/relation_delegation_spec.rb +1 -3
  24. data/spec/integration/versionable_spec.rb +4 -4
  25. data/spec/spec_helper.rb +52 -3
  26. data/spec/unit/active_fedora_spec.rb +1 -1
  27. data/spec/unit/association_hash_spec.rb +8 -22
  28. data/spec/unit/attached_files_spec.rb +6 -6
  29. data/spec/unit/base_cma_spec.rb +1 -1
  30. data/spec/unit/base_extra_spec.rb +2 -18
  31. data/spec/unit/base_spec.rb +1 -1
  32. data/spec/unit/callback_spec.rb +2 -2
  33. data/spec/unit/checksum_spec.rb +2 -2
  34. data/spec/unit/code_configurator_spec.rb +1 -1
  35. data/spec/unit/core_spec.rb +36 -0
  36. data/spec/unit/default_model_mapper_spec.rb +3 -3
  37. data/spec/unit/file_configurator_spec.rb +4 -4
  38. data/spec/unit/file_path_builder_spec.rb +1 -1
  39. data/spec/unit/file_spec.rb +1 -1
  40. data/spec/unit/files_hash_spec.rb +2 -2
  41. data/spec/unit/finder_methods_spec.rb +3 -3
  42. data/spec/unit/has_and_belongs_to_many_association_spec.rb +0 -2
  43. data/spec/unit/has_many_association_spec.rb +2 -2
  44. data/spec/unit/indexing_spec.rb +2 -2
  45. data/spec/unit/logger_spec.rb +1 -1
  46. data/spec/unit/orders/reflection_spec.rb +1 -1
  47. data/spec/unit/property_spec.rb +2 -2
  48. data/spec/unit/query_spec.rb +1 -1
  49. data/spec/unit/reflection_spec.rb +3 -3
  50. data/spec/unit/solr_config_options_spec.rb +1 -1
  51. data/spec/unit/solr_service_spec.rb +4 -10
  52. data/spec/unit/with_metadata/default_metadata_class_factory_spec.rb +1 -1
  53. data/spec/unit/with_metadata/metadata_node_spec.rb +1 -1
  54. metadata +10 -17
  55. data/spec/fixtures/damsObjectModel.xml +0 -38
  56. data/spec/fixtures/dublin_core_rdf_descMetadata.nt +0 -13
  57. data/spec/fixtures/mixed_rdf_descMetadata.nt +0 -7
  58. data/spec/fixtures/mods_articles/mods_article1.xml +0 -98
  59. data/spec/fixtures/solr_rdf_descMetadata.nt +0 -7
  60. data/spec/samples/oral_history_sample.xml +0 -38
  61. data/spec/samples/oral_history_xml.xml +0 -35
@@ -1,7 +0,0 @@
1
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/created> "2009-10-10"^^<http://www.w3.org/2001/XMLSchema#date> .
2
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/title> "fake-title" .
3
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/publisher> "publisher1" .
4
- <http://localhost:8983/fedora/rest/test/test:1> <http://xmlns.com/foaf/0.1/based_near> "coverage1" .
5
- <http://localhost:8983/fedora/rest/test/test:1> <http://xmlns.com/foaf/0.1/based_near> "coverage2" .
6
- <http://localhost:8983/fedora/rest/test/test:1> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://example.org/> .
7
-
@@ -1,38 +0,0 @@
1
- <xml>
2
- <fields>
3
- <system_create_date>2008-07-02T05:09:42.015Z</system_create_date>
4
- <system_modified_date>2008-09-29T21:21:52.892Z</system_modified_date>
5
- <active_fedora_model_field>OralHistory</active_fedora_model_field>
6
- <id>changeme:14527</id>
7
- <subject_heading>subject heading</subject_heading>
8
- <type>type</type>
9
- <rights>rights</rights>
10
- <publisher>publisher</publisher>
11
- <creation_date>creation date</creation_date>
12
- <identifier>jwa:sample_id</identifier>
13
- <format>format</format>
14
- <extent>extent</extent>
15
- <language>language</language>
16
- <description>description</description>
17
- <title>title</title>
18
- <medium>medium</medium>
19
- <spatial_coverage>spatial coverage</spatial_coverage>
20
- <alt_title>alt_title</alt_title>
21
- <temporal_coverage>temporal coverage</temporal_coverage>
22
- <subject>subject</subject>
23
- <creator>creator</creator>
24
- <abstract>abstract</abstract>
25
- <other_contributors>Sally Ride</other_contributors>
26
- <transcript_editor>Transcript Editor</transcript_editor>
27
- <restrictions>None</restrictions>
28
- <bio>Biographic info</bio>
29
- <series>My Series</series>
30
- <notes>My Note</notes>
31
- <location>location</location>
32
- <hard_copy_availability>Yes</hard_copy_availability>
33
- <narrator>Narrator</narrator>
34
- <hard_copy_location>Archives</hard_copy_location>
35
- <interviewer>Interviewer</interviewer>
36
- </fields>
37
- <content/>
38
- </xml>
@@ -1,35 +0,0 @@
1
- <doc>
2
- <field name="system_create_date">2008-07-02T05:09:42.015Z</field>
3
- <field name="system_modified_date">2008-09-29T21:21:52.892Z</field>
4
- <field name="active_fedora_model_field">OralHistory</field>
5
- <field name="id">changeme:13919</field>
6
- <field name="subject_heading_field">subject heading</field>
7
- <field name="type_field">type</field>
8
- <field name="rights_text">rights</field>
9
- <field name="publisher_field">publisher</field>
10
- <field name="creation_date">creation date</field>
11
- <field name="identifier_field">jwa:sample_id</field>
12
- <field name="format_field">format</field>
13
- <field name="extent_field">extent</field>
14
- <field name="language_field">language</field>
15
- <field name="description_field">description</field>
16
- <field name="title_field">title</field>
17
- <field name="medium_field">medium</field>
18
- <field name="spatial_coverage_field">spatial coverage</field>
19
- <field name="alt_title_field">alt_title</field>
20
- <field name="temporal_coverage_field">temporal coverage</field>
21
- <field name="subject_field">subject</field>
22
- <field name="creator_field">creator</field>
23
- <field name="abstract_text">abstract</field>
24
- <field name="other_contributors_field">Sally Ride</field>
25
- <field name="transcript_editor_text">Transcript Editor</field>
26
- <field name="restrictions_text">None</field>
27
- <field name="bio_field">Biographic info</field>
28
- <field name="series_field">My Series</field>
29
- <field name="notes_text">My Note</field>
30
- <field name="location_field">location</field>
31
- <field name="hard_copy_availability_text">Yes</field>
32
- <field name="narrator_field">Narrator</field>
33
- <field name="hard_copy_location_text">Archives</field>
34
- <field name="interviewer_integer">Interviewer</field>
35
- </doc>