Each of the ProjectHydra gems in hydra.gemspec make use of the deprecation
gem. Below is our preferred method for
indicating deprecation:
class Foo
def bar
Deprecation.warn(Foo, 'Foo#bar is deprecated. Please use Baz', caller)
…
end
end
By adhearing to the above deprecation semantic we are able to report deprecations when the Hydra gem is updated.
The ./script/query-for-deprecation.rb
is a tool to help report what methods
have had a change in deprecation status.
Our primary location for documentation is the Github wiki associated with this
project. All pages from the Github wiki should be copied to doc/
as part of
a release.
Steps:
-
Get the latest version of the wiki. Note that Github wikis are git repositories, so you can treat them like any other.
# if you haven't yet done so, clone the wiki repo... git clone [email protected]:projecthydra/hydra.wiki.git path/to/hydra.wiki # or, if you have already cloned, then get the latest changes... cd path/to/hydra.wiki git pull
-
Copy the wiki pages to
doc/
directory ofhydra
repository.cp -a path/to/hydra.wiki/* path/to/hydra/doc/
-
Commit the changes.
cd path/to/hydra git add doc/. git commit -m "Updates the wiki docs"
This commit should then be included as part of the pull request for the new release. See "Making Changes" and "Submitting Changes" on the preferred way to submit pull requests.