valkyrie 1.7.1 → 2.0.0.RC1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +6 -86
  3. data/.gitignore +0 -1
  4. data/.rubocop.yml +0 -5
  5. data/CHANGELOG.md +1 -160
  6. data/README.md +62 -84
  7. data/Rakefile +2 -8
  8. data/lib/valkyrie.rb +4 -39
  9. data/lib/valkyrie/id.rb +0 -8
  10. data/lib/valkyrie/persistence/fedora.rb +3 -7
  11. data/lib/valkyrie/persistence/fedora/list_node.rb +11 -28
  12. data/lib/valkyrie/persistence/fedora/metadata_adapter.rb +1 -8
  13. data/lib/valkyrie/persistence/fedora/permissive_schema.rb +0 -16
  14. data/lib/valkyrie/persistence/fedora/query_service.rb +6 -8
  15. data/lib/valkyrie/persistence/memory/metadata_adapter.rb +0 -5
  16. data/lib/valkyrie/persistence/memory/persister.rb +1 -1
  17. data/lib/valkyrie/persistence/memory/query_service.rb +6 -11
  18. data/lib/valkyrie/persistence/postgres.rb +1 -14
  19. data/lib/valkyrie/persistence/postgres/metadata_adapter.rb +0 -5
  20. data/lib/valkyrie/persistence/postgres/orm_converter.rb +1 -1
  21. data/lib/valkyrie/persistence/postgres/persister.rb +1 -9
  22. data/lib/valkyrie/persistence/postgres/query_service.rb +4 -6
  23. data/lib/valkyrie/persistence/solr.rb +0 -7
  24. data/lib/valkyrie/persistence/solr/metadata_adapter.rb +0 -5
  25. data/lib/valkyrie/persistence/solr/model_converter.rb +2 -11
  26. data/lib/valkyrie/persistence/solr/orm_converter.rb +2 -2
  27. data/lib/valkyrie/persistence/solr/queries/find_inverse_references_query.rb +4 -4
  28. data/lib/valkyrie/persistence/solr/queries/find_members_query.rb +4 -11
  29. data/lib/valkyrie/persistence/solr/query_service.rb +4 -7
  30. data/lib/valkyrie/resource.rb +21 -62
  31. data/lib/valkyrie/specs/shared_specs.rb +0 -5
  32. data/lib/valkyrie/specs/shared_specs/change_set_persister.rb +9 -9
  33. data/lib/valkyrie/specs/shared_specs/persister.rb +1 -3
  34. data/lib/valkyrie/specs/shared_specs/queries.rb +17 -45
  35. data/lib/valkyrie/specs/shared_specs/resource.rb +6 -11
  36. data/lib/valkyrie/specs/shared_specs/solr_indexer.rb +3 -3
  37. data/lib/valkyrie/specs/shared_specs/storage_adapter.rb +4 -17
  38. data/lib/valkyrie/storage/disk.rb +1 -2
  39. data/lib/valkyrie/storage/fedora.rb +16 -29
  40. data/lib/valkyrie/storage/memory.rb +1 -2
  41. data/lib/valkyrie/types.rb +6 -24
  42. data/lib/valkyrie/version.rb +1 -1
  43. data/solr/config/schema.xml +1 -0
  44. data/tasks/dev.rake +0 -3
  45. data/tasks/docker.rake +2 -2
  46. data/valkyrie.gemspec +6 -7
  47. metadata +49 -62
  48. data/.tool-versions +0 -1
  49. data/Appraisals +0 -8
  50. data/CODE_OF_CONDUCT.md +0 -36
  51. data/CONTRIBUTING.md +0 -161
  52. data/SUPPORT.md +0 -5
  53. data/gemfiles/activerecord_5_1.gemfile +0 -7
  54. data/gemfiles/activerecord_5_2.gemfile +0 -7
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 2.5.1
data/Appraisals DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
- appraise "activerecord-5-2" do
3
- gem "activerecord", "~> 5.2.0"
4
- end
5
-
6
- appraise "activerecord-5-1" do
7
- gem "activerecord", "~> 5.1.0"
8
- end
data/CODE_OF_CONDUCT.md DELETED
@@ -1,36 +0,0 @@
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.
data/CONTRIBUTING.md DELETED
@@ -1,161 +0,0 @@
1
- # How to Contribute
2
-
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.
6
-
7
- ## Code of Conduct
8
-
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.
13
-
14
- ## Samvera Community Intellectual Property Licensing and Ownership
15
-
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.
20
-
21
- https://wiki.duraspace.org/display/samvera/Samvera+Community+Intellectual+Property+Licensing+and+Ownership
22
-
23
- You should also add yourself to the `CONTRIBUTORS.md` file in the root of the project.
24
-
25
- ## Contribution Tasks
26
-
27
- * Reporting Issues
28
- * Making Changes
29
- * Documenting Code
30
- * Committing Changes
31
- * Submitting Changes
32
- * Reviewing and Merging Changes
33
-
34
- ### Reporting Issues
35
-
36
- * Make sure you have a [GitHub account](https://github.com/signup/free)
37
- * Submit a [Github issue](https://github.com/samvera-labs/valkyrie/issues/) by:
38
- * Clearly describing the issue
39
- * Provide a descriptive summary
40
- * Explain the expected behavior
41
- * Explain the actual behavior
42
- * Provide steps to reproduce the actual behavior
43
-
44
- ### Making Changes
45
-
46
- * Fork the repository on GitHub
47
- * Create a topic branch from where you want to base your work.
48
- * This is usually the master branch.
49
- * To quickly create a topic branch based on master; `git branch fix/master/my_contribution master`
50
- * Then checkout the new branch with `git checkout fix/master/my_contribution`.
51
- * Please avoid working directly on the `master` branch.
52
- * You may find the [hub suite of commands](https://github.com/defunkt/hub) helpful
53
- * Make sure you have added sufficient tests and documentation for your changes.
54
- * Test functionality with RSpec; Test features / UI with Capybara.
55
- * Run _all_ the tests to assure nothing else was accidentally broken.
56
-
57
- ### Documenting Code
58
-
59
- * All new public methods, modules, and classes should include inline documentation in [YARD](http://yardoc.org/).
60
- * Documentation should seek to answer the question "why does this code exist?"
61
- * Document private / protected methods as desired.
62
- * If you are working in a file with no prior documentation, do try to document as you gain understanding of the code.
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.
64
- * This work greatly increases the usability of the code base and supports the on-ramping of new committers.
65
- * We will all be understanding of one another's time constraints in this area.
66
- * [Getting started with YARD](http://www.rubydoc.info/gems/yard/file/docs/GettingStarted.md)
67
-
68
- ### Committing Changes
69
-
70
- * Make commits of logical units.
71
- * Check for unnecessary whitespace with `git diff --check` before committing.
72
- * Make sure your commit messages are [well formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
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)
74
-
75
- ```
76
- Present tense short summary (50 characters or less)
77
-
78
- More detailed description, if necessary. It should be wrapped to 72
79
- characters. Try to be as descriptive as you can, even if you think that
80
- the commit content is obvious, it may not be obvious to others. You
81
- should add such description also if it's already present in bug tracker,
82
- it should not be necessary to visit a webpage to check the history.
83
-
84
- Include Closes #<issue-number> when relavent.
85
-
86
- Description can have multiple paragraphs and you can use code examples
87
- inside, just indent it with 4 spaces:
88
-
89
- class PostsController
90
- def index
91
- respond_to do |wants|
92
- wants.html { render 'index' }
93
- end
94
- end
95
- end
96
-
97
- You can also add bullet points:
98
-
99
- - you can use dashes or asterisks
100
-
101
- - also, try to indent next line of a point for readability, if it's too
102
- long to fit in 72 characters
103
- ```
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
- * Then you are ready to submit a pull request
108
-
109
- ### Submitting Changes
110
-
111
- * Read the article ["Using Pull Requests"](https://help.github.com/articles/using-pull-requests) on GitHub.
112
- * Make sure your branch is up to date with its parent branch (i.e. master)
113
- * `git checkout master`
114
- * `git pull --rebase`
115
- * `git checkout <your-branch>`
116
- * `git rebase master`
117
- * It is a good idea to run your tests again.
118
- * If you've made more than one commit take a moment to consider whether squashing commits together would help improve their logical grouping.
119
- * [Detailed Walkthrough of One Pull Request per Commit](http://ndlib.github.io/practices/one-commit-per-pull-request/)
120
- * `git rebase --interactive master` ([See Github help](https://help.github.com/articles/interactive-rebase))
121
- * Squashing your branch's changes into one commit is "good form" and helps the person merging your request to see everything that is going on.
122
- * Push your changes to a topic branch in your fork of the repository.
123
- * Submit a pull request from your fork to the project.
124
-
125
- ### Reviewing and Merging Changes
126
-
127
- We adopted [Github's Pull Request Review](https://help.github.com/articles/about-pull-request-reviews/) for our repositories.
128
- Common checks that may occur in our repositories:
129
-
130
- 1. Travis CI - where our automated tests are running
131
- 2. Approval Required - Github enforces at least one person approve a pull request. Also, all reviewers that have chimed in must approve.
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.
134
-
135
- *Example: Carolyn submits a pull request, Justin reviews the pull request and approves. However, Justin is still waiting on other checks (Travis CI is usually the culprit), so he does not merge the pull request. Eventually, all of the checks pass. At this point, Carolyn or anyone else may merge the pull request.*
136
-
137
- #### Things to Consider When Reviewing
138
-
139
- First, the person contributing the code is putting themselves out there. Be mindful of what you say in a review.
140
-
141
- * Ask clarifying questions
142
- * State your understanding and expectations
143
- * Provide example code or alternate solutions, and explain why
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:
146
-
147
- * Does the commit message explain what is going on?
148
- * Does the code changes have tests? _Not all changes need new tests, some changes are refactorings_
149
- * Do new or changed methods, modules, and classes have documentation?
150
- * Does the commit contain more than it should? Are two separate concerns being addressed in one commit?
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?
153
-
154
- If you are uncertain, bring other contributors into the conversation by assigning them as a reviewer.
155
-
156
- # Additional Resources
157
-
158
- * [General GitHub documentation](http://help.github.com/)
159
- * [GitHub pull request documentation](https://help.github.com/articles/about-pull-requests/)
160
- * [Pro Git](http://git-scm.com/book) is both a free and excellent book about Git.
161
- * [A Git Config for Contributing](http://ndlib.github.io/practices/my-typical-per-project-git-config/)
data/SUPPORT.md DELETED
@@ -1,5 +0,0 @@
1
- If you would like to report an issue, first search [the list of issues](https://github.com/samvera-labs/valkyrie/issues/) to see if someone else has already reported it, and then feel free to [create a new issue](https://github.com/samvera-labs/valkyrie/issues/new).
2
-
3
- If you have questions or need help, please email [the Samvera community tech list](https://groups.google.com/forum/#!forum/samvera-tech) or stop by the #dev channel in [the Samvera community Slack team](https://wiki.duraspace.org/pages/viewpage.action?pageId=87460391#Getintouch!-Slack).
4
-
5
- You can learn more about the various Samvera communication channels on the [Get in touch!](https://wiki.duraspace.org/pages/viewpage.action?pageId=87460391) wiki page.
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.1.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activerecord", "~> 5.2.0"
6
-
7
- gemspec path: "../"