active-fedora 12.0.3 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -7
  3. data/.rubocop_todo.yml +10 -100
  4. data/.travis.yml +21 -0
  5. data/CODE_OF_CONDUCT.md +36 -0
  6. data/CONTRIBUTING.md +23 -21
  7. data/Gemfile +1 -2
  8. data/History.txt +29 -29
  9. data/LICENSE +16 -14
  10. data/README.md +40 -29
  11. data/SUPPORT.md +5 -0
  12. data/active-fedora.gemspec +7 -7
  13. data/lib/active_fedora.rb +1 -1
  14. data/lib/active_fedora/aggregation/list_source.rb +3 -2
  15. data/lib/active_fedora/associations/builder/collection_association.rb +1 -0
  16. data/lib/active_fedora/associations/collection_association.rb +3 -0
  17. data/lib/active_fedora/associations/collection_proxy.rb +2 -0
  18. data/lib/active_fedora/associations/directly_contains_one_association.rb +1 -0
  19. data/lib/active_fedora/associations/indirectly_contains_association.rb +2 -0
  20. data/lib/active_fedora/associations/singular_association.rb +1 -0
  21. data/lib/active_fedora/attribute_methods.rb +1 -1
  22. data/lib/active_fedora/attribute_methods/read.rb +1 -1
  23. data/lib/active_fedora/attribute_methods/write.rb +1 -1
  24. data/lib/active_fedora/attributes.rb +1 -1
  25. data/lib/active_fedora/attributes/property_builder.rb +1 -0
  26. data/lib/active_fedora/callbacks.rb +7 -2
  27. data/lib/active_fedora/fedora.rb +8 -0
  28. data/lib/active_fedora/file.rb +7 -5
  29. data/lib/active_fedora/indexing/descendant_fetcher.rb +1 -1
  30. data/lib/active_fedora/indexing/field_mapper.rb +2 -0
  31. data/lib/active_fedora/indexing/suffix.rb +3 -1
  32. data/lib/active_fedora/inheritable_accessors.rb +1 -0
  33. data/lib/active_fedora/loadable_from_json.rb +1 -0
  34. data/lib/active_fedora/nested_attributes.rb +1 -0
  35. data/lib/active_fedora/persistence.rb +14 -1
  36. data/lib/active_fedora/persistence/null_identifier_service.rb +11 -0
  37. data/lib/active_fedora/reflection.rb +1 -1
  38. data/lib/active_fedora/relation.rb +14 -0
  39. data/lib/active_fedora/relation/delegation.rb +2 -1
  40. data/lib/active_fedora/relation/finder_methods.rb +1 -0
  41. data/lib/active_fedora/relation/merger.rb +1 -0
  42. data/lib/active_fedora/validations.rb +7 -0
  43. data/lib/active_fedora/version.rb +1 -1
  44. data/lib/active_fedora/with_metadata.rb +1 -0
  45. data/lib/active_fedora/with_metadata/metadata_node.rb +2 -1
  46. data/lib/generators/active_fedora/config/solr/templates/solr/config/schema.xml +64 -51
  47. data/lib/generators/active_fedora/config/solr/templates/solr/config/solrconfig.xml +4 -1
  48. data/lib/generators/active_fedora/model/templates/datastream.rb.erb +1 -1
  49. data/spec/integration/file_spec.rb +1 -1
  50. data/spec/integration/relation_spec.rb +43 -0
  51. data/spec/spec_helper.rb +11 -9
  52. data/spec/support/an_active_model.rb +4 -0
  53. data/spec/unit/callback_spec.rb +8 -1
  54. data/spec/unit/file_spec.rb +0 -17
  55. data/spec/unit/validations_spec.rb +18 -0
  56. metadata +28 -25
  57. data/.circleci/config.yml +0 -47
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74801c6b7c20e589016a06beb4bfb08b5cae15c8d2c9da1d3b90ba31da494b93
4
- data.tar.gz: 3ba72febc4344898aedc515c07eea090bffe96748a5bab209745f0306e8cf5f9
3
+ metadata.gz: 363d470665c889210749fbfda14d9af3ef74fccdcf317ae0c57be7d5faba7391
4
+ data.tar.gz: 7898ead9d053ebb747d4d6c3897b9d230f69051dc8b000d4a234bd024034ac4b
5
5
  SHA512:
6
- metadata.gz: 703f5492c6bf6b23c2c343d0a24039b15b2b7f02976d1603c8a49a12afc00eec10079da508e668e8dfca84bc63065e09f43b95441723326ef233d20d32489c8d
7
- data.tar.gz: a0f39c00a6ef9a78c9f81fd96c364244e970a64ae8da4c706cb3052c26acfd3bf2f782bb2d0421cb1702f54176c38311081c03cc33530e0eb92411c9b3ce95e2
6
+ metadata.gz: e93ea3410149be925080cf7779aa7e6188ea4389d23325f1c726f91dcb7802ddc1d5d158372e8c688c8c750350b1e0208c8b29748f7961219991b1213664eda8
7
+ data.tar.gz: db58fd4a0d54261ac57befb1f8bcab0906b7fa83ab15ddce064b129e028cee8807ee247795461c195d6a02f9a82c4741e078e633b550e6aff1c91d82a28b38cf
@@ -98,7 +98,7 @@ Metrics/ClassLength:
98
98
  Metrics/MethodLength:
99
99
  Enabled: false
100
100
 
101
- Style/MethodName:
101
+ Naming/MethodName:
102
102
  Exclude:
103
103
  - 'lib/active_fedora/with_metadata.rb'
104
104
 
@@ -106,7 +106,7 @@ Style/AndOr:
106
106
  Exclude:
107
107
  - 'lib/active_fedora/associations/has_many_association.rb'
108
108
 
109
- Style/AccessorMethodName:
109
+ Naming/AccessorMethodName:
110
110
  Exclude:
111
111
  - 'lib/active_fedora/with_metadata/metadata_node.rb'
112
112
  - 'lib/active_fedora/fedora_attributes.rb'
@@ -114,7 +114,7 @@ Style/AccessorMethodName:
114
114
  - 'lib/active_fedora/associations/has_many_association.rb'
115
115
  - 'lib/active_fedora/associations/association.rb'
116
116
 
117
- Style/PredicateName:
117
+ Naming/PredicateName:
118
118
  Exclude:
119
119
  - 'lib/active_fedora/attribute_methods.rb'
120
120
  - 'lib/active_fedora/relation/finder_methods.rb'
@@ -156,11 +156,11 @@ Style/BlockDelimiters:
156
156
  Exclude:
157
157
  - 'spec/**/*'
158
158
 
159
- Style/BlockEndNewline:
159
+ Layout/BlockEndNewline:
160
160
  Exclude:
161
161
  - 'spec/**/*'
162
162
 
163
- Style/MultilineBlockLayout:
163
+ Layout/MultilineBlockLayout:
164
164
  Exclude:
165
165
  - 'spec/**/*'
166
166
 
@@ -172,7 +172,7 @@ Style/Lambda:
172
172
  Exclude:
173
173
  - 'spec/**/*'
174
174
 
175
- Style/IndentationConsistency:
175
+ Layout/IndentationConsistency:
176
176
  EnforcedStyle: rails
177
177
 
178
178
  Style/CollectionMethods:
@@ -215,7 +215,7 @@ Style/ClassVars:
215
215
  Style/SignalException:
216
216
  Enabled: false
217
217
 
218
- Style/FileName:
218
+ Naming/FileName:
219
219
  Exclude:
220
220
  - 'lib/active-fedora.rb'
221
221
 
@@ -1,110 +1,20 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-02-28 19:30:31 -0600 using RuboCop version 0.47.1.
3
+ # on 2018-05-16 14:10:19 -0500 using RuboCop version 0.56.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 211
10
- # Configuration parameters: CountComments, ExcludedMethods.
11
- Metrics/BlockLength:
12
- Max: 577
13
-
14
- # Offense count: 65
15
- RSpec/BeforeAfterAll:
16
- Enabled: false
17
-
18
- # Offense count: 114
19
- # Configuration parameters: Max.
20
- RSpec/ExampleLength:
21
- Enabled: false
22
-
23
- # Offense count: 15
24
- RSpec/LetSetup:
25
- Exclude:
26
- - 'spec/integration/collection_association_spec.rb'
27
- - 'spec/integration/delete_all_spec.rb'
28
- - 'spec/integration/has_many_associations_spec.rb'
29
- - 'spec/integration/nested_attribute_spec.rb'
30
- - 'spec/integration/persistence_spec.rb'
31
- - 'spec/unit/has_and_belongs_to_many_association_spec.rb'
32
-
33
9
  # Offense count: 1
34
- RSpec/MessageChain:
35
- Exclude:
36
- - 'spec/unit/file_spec.rb'
37
-
38
- # Offense count: 241
39
- RSpec/MultipleExpectations:
40
- Max: 8
41
-
42
- # Offense count: 181
43
- # Configuration parameters: Max.
44
- RSpec/NestedGroups:
45
- Enabled: false
46
-
47
- # Offense count: 24
48
- RSpec/ScatteredSetup:
49
- Exclude:
50
- - 'spec/integration/base_spec.rb'
51
- - 'spec/integration/direct_container_spec.rb'
52
- - 'spec/integration/has_and_belongs_to_many_associations_spec.rb'
53
- - 'spec/integration/indexing_spec.rb'
54
- - 'spec/integration/indirect_container_spec.rb'
55
- - 'spec/integration/json_serialization_spec.rb'
56
- - 'spec/unit/attached_files_spec.rb'
57
- - 'spec/unit/base_spec.rb'
58
- - 'spec/unit/loadable_from_json_spec.rb'
59
- - 'spec/unit/rdf/indexing_service_spec.rb'
60
-
61
- # Offense count: 94
62
- RSpec/SubjectStub:
63
- Exclude:
64
- - 'spec/integration/associations_spec.rb'
65
- - 'spec/integration/autosave_association_spec.rb'
66
- - 'spec/integration/versionable_spec.rb'
67
- - 'spec/unit/attached_files_spec.rb'
68
- - 'spec/unit/base_extra_spec.rb'
69
- - 'spec/unit/file_configurator_spec.rb'
70
- - 'spec/unit/file_spec.rb'
71
- - 'spec/unit/has_and_belongs_to_many_association_spec.rb'
72
- - 'spec/unit/persistence_spec.rb'
73
- - 'spec/unit/solr_config_options_spec.rb'
74
- - 'spec/unit/validations_spec.rb'
75
-
76
- # Offense count: 20
77
- # Configuration parameters: IgnoreSymbolicNames.
78
- RSpec/VerifiedDoubles:
79
- Exclude:
80
- - 'spec/unit/association_hash_spec.rb'
81
- - 'spec/unit/files_hash_spec.rb'
82
- - 'spec/unit/query_spec.rb'
83
- - 'spec/unit/schema_indexing_strategy_spec.rb'
84
- - 'spec/unit/solr_config_options_spec.rb'
85
- - 'spec/unit/solr_service_spec.rb'
86
-
87
- # Offense count: 3
88
- Rails/FilePath:
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: PreferredDelimiters.
12
+ Style/PercentLiteralDelimiters:
89
13
  Exclude:
90
- - 'lib/active_fedora/file_configurator.rb'
91
- - 'spec/unit/file_configurator_spec.rb'
14
+ - 'Rakefile'
92
15
 
93
- # Offense count: 2
94
- Security/MarshalLoad:
95
- Exclude:
96
- - 'spec/integration/marshal_spec.rb'
97
-
98
- # Offense count: 20
99
- # Configuration parameters: MinBodyLength.
100
- Style/GuardClause:
101
- Enabled: false
102
-
103
- # Offense count: 20
104
- # Configuration parameters: EnforcedStyle, SupportedStyles.
105
- # SupportedStyles: snake_case, normalcase, non_integer
106
- Style/VariableNumber:
107
- Exclude:
108
- - 'spec/integration/associations_spec.rb'
109
- - 'spec/unit/ordered_spec.rb'
110
- - 'spec/unit/orders/ordered_list_spec.rb'
16
+ # Offense count: 1
17
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
18
+ # URISchemes: http, https
19
+ Metrics/LineLength:
20
+ Max: 82
@@ -0,0 +1,21 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+ rvm: 2.4
5
+ matrix:
6
+ include:
7
+ - rvm: 2.3
8
+ env: RAILS_VERSION=4.2.10
9
+ BUNDLER_VERSION=1.17.3
10
+ - env: RAILS_VERSION=5.0.7
11
+ - env: RAILS_VERSION=5.1.6
12
+ - rvm: 2.5
13
+ - env: RAILS_VERSION=5.2.1
14
+ - rvm: 2.6
15
+ global_env:
16
+ - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
17
+ before_install:
18
+ - gem update --system
19
+ - if [ ! -z $BUNDLER_VERSION ]; then gem install bundler -v $BUNDLER_VERSION; else gem install bundler; fi
20
+ before_script:
21
+ - jdk_switcher use oraclejdk8
@@ -0,0 +1,36 @@
1
+ The Samvera community is dedicated to providing a welcoming and
2
+ positive experience for all its members, whether they are at a formal
3
+ gathering, in a social setting, or taking part in activities online.
4
+ The Samvera community welcomes participation from people all over the
5
+ world and these members bring with them a wide variety of
6
+ professional, personal and social backgrounds; whatever these may be,
7
+ we treat colleagues with dignity and respect.
8
+
9
+ Community members communicate primarily in English, though for many of
10
+ them this is not their native language. We therefore strive to express
11
+ ourselves simply and clearly remembering that unnecessary use of
12
+ jargon and slang will be a barrier to understanding for many of our
13
+ colleagues. We are sensitive to the fact that the international
14
+ nature of the community means that we span many different social norms
15
+ around language and behaviour and we strive to conduct ourselves,
16
+ online and in person, in ways that are unlikely to cause offence.
17
+
18
+ Samvera conversations are often information-rich and intended to
19
+ generate discussion and debate. We discuss ideas from a standpoint of
20
+ mutual respect and reasoned argument.
21
+
22
+ Community members work together to promote a respectful and safe
23
+ community. In the event that someone’s conduct is causing offence or
24
+ distress, Samvera has a detailed
25
+ [Anti-Harassment Policy and Protocol](https://wiki.duraspace.org/display/samvera/Anti-Harassment+Policy)
26
+ which can be applied to address the problem. The first step in dealing
27
+ with any serious misconduct is to contact a local meeting organizer,
28
+ the
29
+ [Samvera community helpers](https://wiki.duraspace.org/display/samvera/Samvera+Community+Helpers)
30
+ ([email](mailto:helpers@samvera.org)), a community member you
31
+ trust, or the
32
+ [Samvera Steering Group](https://wiki.duraspace.org/display/samvera/Samvera+Steering+Group+membership)
33
+ immediately; at Samvera events, these people can be identified by
34
+ distinctive name badges. The
35
+ [Policy and Protocol](https://wiki.duraspace.org/display/samvera/Anti-Harassment+Policy)
36
+ should be consulted for fuller details.
@@ -1,21 +1,24 @@
1
1
  # How to Contribute
2
2
 
3
- We want your help to make Project Hydra great.
4
- There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
3
+ We want your help to make the Samvera community great. There are a few guidelines
4
+ that we need contributors to follow so that we can have a chance of
5
+ keeping on top of things.
5
6
 
6
7
  ## Code of Conduct
7
8
 
8
- The Hydra community is dedicated to providing a welcoming and positive experience for all its
9
- members, whether they are at a formal gathering, in a social setting, or taking part in activities
10
- online. Please see our [Code of Conduct](https://wiki.duraspace.org/display/hydra/Code+of+Conduct)
11
- for more information.
9
+ The Samvera Community is dedicated to providing a welcoming and positive
10
+ experience for all its members, whether they are at a formal gathering, in
11
+ a social setting, or taking part in activities online. Please see our
12
+ [Code of Conduct](CODE_OF_CONDUCT.md) for more information.
12
13
 
13
- ## Hydra Project Intellectual Property Licensing and Ownership
14
+ ## Samvera Community Intellectual Property Licensing and Ownership
14
15
 
15
- All code contributors must have an Individual Contributor License Agreement (iCLA) on file with the Hydra Project Steering Group.
16
- If the contributor works for an institution, the institution must have a Corporate Contributor License Agreement (cCLA) on file.
16
+ All code contributors must have an Individual Contributor License Agreement
17
+ (iCLA) on file with the Samvera Steering Group. If the contributor works for
18
+ an institution, the institution must have a Corporate Contributor License
19
+ Agreement (cCLA) on file.
17
20
 
18
- https://wiki.duraspace.org/display/hydra/Hydra+Project+Intellectual+Property+Licensing+and+Ownership
21
+ https://wiki.duraspace.org/display/samvera/Samvera+Community+Intellectual+Property+Licensing+and+Ownership
19
22
 
20
23
  You should also add yourself to the `CONTRIBUTORS.md` file in the root of the project.
21
24
 
@@ -31,7 +34,7 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
31
34
  ### Reporting Issues
32
35
 
33
36
  * Make sure you have a [GitHub account](https://github.com/signup/free)
34
- * Submit a [Github issue](./issues) by:
37
+ * Submit a [Github issue](https://github.com/samvera/active_fedora/issues) by:
35
38
  * Clearly describing the issue
36
39
  * Provide a descriptive summary
37
40
  * Explain the expected behavior
@@ -48,7 +51,7 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
48
51
  * Please avoid working directly on the `master` branch.
49
52
  * You may find the [hub suite of commands](https://github.com/defunkt/hub) helpful
50
53
  * Make sure you have added sufficient tests and documentation for your changes.
51
- * Test functionality with RSpec; est features / UI with Capybara.
54
+ * Test functionality with RSpec; Test features / UI with Capybara.
52
55
  * Run _all_ the tests to assure nothing else was accidentally broken.
53
56
 
54
57
  ### Documenting Code
@@ -60,15 +63,11 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
60
63
  * If you don't know exactly what a bit of code does, it is extra likely that it needs to be documented. Take a stab at it and ask for feedback in your pull request. You can use the 'blame' button on GitHub to identify the original developer of the code and @mention them in your comment.
61
64
  * This work greatly increases the usability of the code base and supports the on-ramping of new committers.
62
65
  * We will all be understanding of one another's time constraints in this area.
63
- * YARD examples:
64
- * [Hydra::Works::RemoveGenericFile](https://github.com/projecthydra-labs/hydra-works/blob/master/lib/hydra/works/services/generic_work/remove_generic_file.rb)
65
- * [ActiveTriples::LocalName::Minter](https://github.com/ActiveTriples/active_triples-local_name/blob/master/lib/active_triples/local_name/minter.rb)
66
66
  * [Getting started with YARD](http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md)
67
67
 
68
68
  ### Committing changes
69
69
 
70
70
  * Make commits of logical units.
71
- * Your commit should include a high level description of your work in HISTORY.textile
72
71
  * Check for unnecessary whitespace with `git diff --check` before committing.
73
72
  * Make sure your commit messages are [well formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
74
73
  * If you created an issue, you can close it by including "Closes #issue" in your commit message. See [Github's blog post for more details](https://github.com/blog/1386-closing-issues-via-commit-messages)
@@ -103,6 +102,10 @@ You should also add yourself to the `CONTRIBUTORS.md` file in the root of the pr
103
102
  long to fit in 72 characters
104
103
  ```
105
104
 
105
+ * Make sure you have added the necessary tests for your changes.
106
+ * Run _all_ the tests to assure nothing else was accidentally broken.
107
+ * When you are ready to submit a pull request
108
+
106
109
  ### Submitting Changes
107
110
 
108
111
  * Read the article ["Using Pull Requests"](https://help.github.com/articles/using-pull-requests) on GitHub.
@@ -125,9 +128,7 @@ We adopted [Github's Pull Request Review](https://help.github.com/articles/about
125
128
  Common checks that may occur in our repositories:
126
129
 
127
130
  1. Travis CI - where our automated tests are running
128
- 2. Hound CI - where we check for style violations
129
- 3. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
130
- 4. CodeClimate - is our code remaining healthy (at least according to static code analysis)
131
+ 2. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
131
132
 
132
133
  If one or more of the required checks failed (or are incomplete), the code should not be merged (and the UI will not allow it). If all of the checks have passed, then anyone on the project (including the pull request submitter) may merge the code.
133
134
 
@@ -144,16 +145,17 @@ First, the person contributing the code is putting themselves out there. Be mind
144
145
  This is your chance for a mentoring moment of another developer. Take time to give an honest and thorough review of what has changed. Things to consider:
145
146
 
146
147
  * Does the commit message explain what is going on?
147
- * Does the code changes have tests? _Not all changes need new tests, some changes are refactors_
148
+ * Does the code changes have tests? _Not all changes need new tests, some changes are refactorings_
148
149
  * Do new or changed methods, modules, and classes have documentation?
149
150
  * Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
150
151
  * Does the description of the new/changed specs match your understanding of what the spec is doing?
152
+ * Did the Travis tests complete successfully?
151
153
 
152
154
  If you are uncertain, bring other contributors into the conversation by assigning them as a reviewer.
153
155
 
154
156
  # Additional Resources
155
157
 
156
158
  * [General GitHub documentation](http://help.github.com/)
157
- * [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
159
+ * [GitHub pull request documentation](https://help.github.com/articles/about-pull-requests/)
158
160
  * [Pro Git](http://git-scm.com/book) is both a free and excellent book about Git.
159
161
  * [A Git Config for Contributing](http://ndlib.github.io/practices/my-typical-per-project-git-config/)
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec path: File.expand_path('..', __FILE__)
6
6
 
7
- gem 'byebug' unless ENV['CI']
7
+ gem 'byebug' unless ENV['TRAVIS']
8
8
  gem 'pry-byebug' unless ENV['CI']
9
9
 
10
10
  gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
@@ -12,7 +12,6 @@ gem 'activemodel', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
12
12
  group :test do
13
13
  gem 'simplecov', require: false
14
14
  gem 'coveralls', require: false
15
- gem 'rspec_junit_formatter'
16
15
  end
17
16
 
18
17
  gem 'jruby-openssl', platform: :jruby
@@ -238,30 +238,30 @@ v9.8.0
238
238
 
239
239
  v9.7.1
240
240
  2016-01-22 : The jcr/mix versionable predicate is no longer used [Adam Wead]
241
-
241
+
242
242
  2016-01-22 : Add detail to SolrQueryBuilder.construct_query_for_pids deprecation warning [David Chandek-Stark]
243
-
243
+
244
244
  2016-01-21 : Updating to the latest Rubocop [Michael J. Giarlo]
245
-
245
+
246
246
  2015-12-04 : Adds :PID property to ActiveFedora::RDF::Fcrepo::Model vocab [David Chandek-Stark]
247
247
 
248
248
  v9.7.0
249
249
  2015-11-25 : Allowing access to the gone? method from outside the object [Carolyn Cole]
250
-
250
+
251
251
  2015-11-24 : Use rdf-vocab gem for DC vocab [Justin Coyne]
252
-
252
+
253
253
  2015-11-24 : Silence deprecation warning in test [Justin Coyne]
254
-
254
+
255
255
  2015-11-24 : Test deprecation using mocks [Justin Coyne]
256
-
256
+
257
257
  2015-11-24 : Give an error when the user queries for a non-existant reflection [Justin Coyne]
258
-
258
+
259
259
  2015-11-20 : Re-add get_config_path method (removed in 9.6.0) with deprecation warning. [Jim Coble]
260
-
260
+
261
261
  2015-11-11 : Don't try to parse empty dates [Adam Wead]
262
-
262
+
263
263
  2015-11-10 : Adds explicit require of 'rdf/vocab'. [David Chandek-Stark]
264
-
264
+
265
265
  2015-11-09 : ids_reader should not return duplicates. [Trey Terrell]
266
266
 
267
267
  v9.6.2
@@ -282,7 +282,7 @@ v9.6.0 (yanked due to error parsing nil dates)
282
282
 
283
283
  2015-10-27: Create failing test for issue with datastreams resetting to old
284
284
  version after save related to
285
- https://github.com/projecthydra/active_fedora/issues/913 [Kathryn Cassidy]
285
+ https://github.com/samvera/active_fedora/issues/913 [Kathryn Cassidy]
286
286
 
287
287
  2015-10-26: Save timezone information for DateTime values. Load from Solr as
288
288
  DateTime rather than String when index type is :date. [Olli Lyytinen]
@@ -984,7 +984,7 @@ v9.0.0
984
984
 
985
985
  2014-10-30: Rely on autosave associations when setting nested attributes This
986
986
  brings us closer to parity with ActiveRecord and fixes a problem present in
987
- https://github.com/projecthydra/hydra-head/pull/211 [Justin Coyne]
987
+ https://github.com/samvera/hydra-head/pull/211 [Justin Coyne]
988
988
 
989
989
  2014-10-30: Use attached_files rather than the deprecated datastreams method
990
990
  [Justin Coyne]
@@ -1082,11 +1082,11 @@ v9.0.0
1082
1082
  [Justin Coyne]
1083
1083
 
1084
1084
  2014-10-27: Reload the lastModified after an implicit save via
1085
- HasManyAssociation#concat Fixes an error like this: RuntimeError:
1086
- ERR STATUS: 409 Could not remove triple containing predicate
1087
- http://fedora.info/definitions/v4/repository#lastModified to node
1085
+ HasManyAssociation#concat Fixes an error like this: RuntimeError:
1086
+ ERR STATUS: 409 Could not remove triple containing predicate
1087
+ http://fedora.info/definitions/v4/repository#lastModified to node
1088
1088
  /test/1a/de/75/90/1ade7590-02aa-4e63-8c60-e5c34e11c170... when
1089
- updating
1089
+ updating
1090
1090
  http://localhost:8983/fedora/rest/test/1a/de/75/90/1ade7590-02aa-4e63-8c60-e5c34e11c170.
1091
1091
  [Justin Coyne]
1092
1092
 
@@ -2131,7 +2131,7 @@ Improved loading from solr
2131
2131
  RDF datastreams
2132
2132
  Replaced solr-ruby with rsolr. Note: remove any calls to .hits
2133
2133
  load_instance is now deprecated, replaced with find
2134
- Find and load_instance_from_solr always instantiate the model defined in the object.
2134
+ Find and load_instance_from_solr always instantiate the model defined in the object.
2135
2135
  Run a stub :environment task in the fixture loading rake tasks (which is overridden by rails)
2136
2136
  Find raises ObjectNotFoundError when the object isn't found
2137
2137
  Removed dependency on solrizer-fedora
@@ -2217,7 +2217,7 @@ HYDRA-722 updating AF::Base#label= and then saving doesn't persist the change
2217
2217
  JettyWrapper to 1.2.0
2218
2218
  Upgrade to rspec2
2219
2219
  add_file_datastream should take a prefix option.
2220
- Added assert_content_model method
2220
+ Added assert_content_model method
2221
2221
  Updates for ruby 1.9 compatibility
2222
2222
 
2223
2223
  3.1.4
@@ -2268,7 +2268,7 @@ added belongs_to and has_many model relationships
2268
2268
  added nested_attributes_for
2269
2269
  Added dependency on rails > 3.0.0
2270
2270
 
2271
- 2.3.7
2271
+ 2.3.7
2272
2272
 
2273
2273
  HYDRA-650 -- Fixed relationship inheritance (Rick Johnson)
2274
2274
 
@@ -2277,7 +2277,7 @@ HYDRA-650 -- Fixed relationship inheritance (Rick Johnson)
2277
2277
  YANKED
2278
2278
  Removed Bundler.require, which was causing odd dependency order resolving.
2279
2279
 
2280
- 2.3.5
2280
+ 2.3.5
2281
2281
 
2282
2282
  YANKED
2283
2283
  branched so that trunk now require rails 3.
@@ -2292,7 +2292,7 @@ Fixed HYDRA-590
2292
2292
 
2293
2293
  HYDRUS-151: Base.update_datastream_attributes now relies on update_indexed_attributes instead of update_attributes. This makes it easier to support non-javascript forms (and makes update_datastream_attributes worth using).
2294
2294
 
2295
- 2.0.4
2295
+ 2.0.4
2296
2296
 
2297
2297
  collection_members_append now returns self.
2298
2298
 
@@ -2352,13 +2352,13 @@ Misc bug fixes
2352
2352
 
2353
2353
  1.2.1
2354
2354
 
2355
- TERMPORARY: removed solrizer from gem dependency list (cyclic reference breaks bundler)
2355
+ TERMPORARY: removed solrizer from gem dependency list (cyclic reference breaks bundler)
2356
2356
 
2357
2357
  1.2
2358
2358
 
2359
2359
  Now support using OM::XML::Terminologies in NokogiriDatastreams
2360
2360
 
2361
- resolved #504 -- Allow SSL certificate client authentication for connections to Fedora
2361
+ resolved #504 -- Allow SSL certificate client authentication for connections to Fedora
2362
2362
 
2363
2363
  Added Experimental methods for has_datastream, named_datastream, and remove_relationship (contributed by Rick Johnson at Notre Dame)
2364
2364
 
@@ -2379,7 +2379,7 @@ MetadataDatastream.update_indexed_attributes was no longer marking the object di
2379
2379
 
2380
2380
  solrizer fix to ensure that Nokogiri Datastreams are included in Base.to_solr
2381
2381
 
2382
- 1.1.7
2382
+ 1.1.7
2383
2383
 
2384
2384
  Nokogiri Datastream support using Nokogiri and OM::XML. Includes indexing of xml contents into solr based on accessors declared using OM::XML:Accessor module.
2385
2385
  You now have the option of calling has_metadata without passing in a block
@@ -2391,9 +2391,9 @@ Bug #959: Base.delete fails to delete objects from Solr even when ENABLE_SOLR_UP
2391
2391
 
2392
2392
  1.1.5
2393
2393
 
2394
- Feature: Base.save triggers Solrizer if you've required the gem in your app
2394
+ Feature: Base.save triggers Solrizer if you've required the gem in your app
2395
2395
 
2396
- 1.1.2
2396
+ 1.1.2
2397
2397
 
2398
2398
  Bug: Model.find_by_solr fails when you pass it an argument of :all
2399
2399
  Testing: Updated RSpec tests to run against localhost:8983 with Fedora 3.3 (instead of localhost:8080 with Fedora 3.2). This means you can use a copy of hydra-jetty from http://github.com/hydraproject/hydra-jetty
@@ -2413,7 +2413,7 @@ Feature #822: Export & Ingest Fedora Objects
2413
2413
 
2414
2414
  Bundled ruby-fedora into active-fedora, removing external gem dependency
2415
2415
 
2416
- Field names now map to solr field names using solr_mappings.yml. You can put your own into RAILS_ROOT/config/solr_mappings.yml or rely on the default within the gem.
2416
+ Field names now map to solr field names using solr_mappings.yml. You can put your own into RAILS_ROOT/config/solr_mappings.yml or rely on the default within the gem.
2417
2417
 
2418
2418
  * Bug #552: Model relationship should be asserted using hasModel instead of conformsTo
2419
2419
  * Bug #614: Datastream should have mime_type accessors
@@ -2455,7 +2455,7 @@ Minor update.
2455
2455
 
2456
2456
  * 1 major enhancement:
2457
2457
  * ruby-fedora is now compatible with Fedora 3.2.1
2458
-
2458
+
2459
2459
  Changelog:
2460
2460
  * ToDo #272: Datastream.new should accept a :prefix option for auto-incrementing DSIDs
2461
2461
  * ToDo #275: Update RubyFedora to work with Fedora 3.2 REST API