Skip to content

Commit 479e281

Browse files
authored
Changes requested in documentation review (#7)
1 parent 33ab8b4 commit 479e281

File tree

7 files changed

+37
-15
lines changed

7 files changed

+37
-15
lines changed

.yardopts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
--hide-void-return
33
--markup-provider=redcarpet
44
--markup markdown
5+
- CHANGELOG.md CONTRIBUTING.md MAINTAINERS.md RELEASING.md LICENSE.md

CONTRIBUTING.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ request meets [the project's coding standards](#coding-standards).
5959

6060
## Coding standards
6161

62-
In order to ensure high quality, all pull requests must meet these requirements:
62+
All pull requests must meet these requirements:
6363

6464
### 1 PR = 1 Commit
6565
* All commits for a PR must be squashed into one commit
@@ -76,14 +76,21 @@ In order to ensure high quality, all pull requests must meet these requirements:
7676
### Documentation
7777
* New and updated public methods must have [YARD](https://yardoc.org/)
7878
documentation added to them
79+
* [The YARD Cheatsheet](https://gist.github.com/thelastinuit/5984665e6ab69d3c0a413a03602c45be)
80+
is a good reference
7981
* New and updated public facing features should be documented in the project's
8082
[README.md](README.md)
81-
* All documentation must pass `yardstick` documentation analysis.
83+
* All documentation must pass `yardstick` documentation analysis
8284
* The documentation suite must maintain 100% documentation to pass
8385

8486
### Continuous Integration
8587
* All tests must pass in the project's [Travis CI](https://travis-ci.org/jcouball/ruby_git)
86-
build before the pull request will be merged
88+
build before the pull request will be merged.
89+
* You can simulate what happens in the Travis CI build by running `bundle exec rake` in
90+
the projects root directory.
91+
92+
### Other Design Guidelines
93+
* Use keyword args with defaults instead of an opts hash
8794

8895
## Licensing
8996

MAINTAINERS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Maintainers
2+
3+
When making changes in this repository, one of the maintainers below must review
4+
and approve your pull request.
5+
6+
### Maintainers
7+
8+
* [James Couball](https://github.com/jcouball)

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
[![Maintainability](https://api.codeclimate.com/v1/badges/2d8d52a55d655b6a3def/maintainability)](https://codeclimate.com/github/jcouball/ruby_git/maintainability)
77

88
RubyGit is an object-oriented wrapper for the `git` command line tool for working with Worktrees
9-
and Repositories. It tries to make more sense out of the Git command line.
9+
and Repositories. It tries to make more sense out of the Git command line. See the object model
10+
in [this Lucid chart diagram](https://app.lucidchart.com/invitations/accept/7df13bab-3383-4683-8cb4-e76d539de93d)
11+
(requires sign in).
1012

1113
## Installation
1214

@@ -66,14 +68,11 @@ The full API is documented in [the RubyGit YARD documentation](https://github.co
6668

6769
## Development
6870

69-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec`
70-
to run the tests. You can also run `bin/console` for an interactive prompt that will allow
71-
you to experiment.
71+
After checking out the repo, run `bin/setup` to install dependencies. Then, run
72+
`bundle exec rake` to run tests, static analysis, and build the gem.
7273

73-
To install this gem onto your local machine, run `bundle exec rake install`. To release a
74-
new version, update the version number in `version.rb`, and then run
75-
`bundle exec rake release`, which will create a git tag for the version, push git commits
76-
and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
74+
For experimentation, you can also run `bin/console` for an interactive (IRB) prompt that
75+
automatically requires ruby_git.
7776

7877
## Contributing
7978

RELEASING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ version number, (2) update the CHANGELOG.md, and (3) tag the release.
1717
guidelines
1818
* Add a link in CHANGELOG.md to the release tag which will be created later
1919
in this guide
20+
* `git add` these changes to the index, but do not commit them.
2021
* Create a new tag using [git-extras](https://github.com/tj/git-extras/blob/main/Commands.md#git-release)
2122
`git release` command
2223
* For example: `git release v1.1.0.pre1`
24+
* This will create a commit for the tag and any changes in the index.
2325
* These should be the only changes in the PR
2426
* Get the PR reviewed, approved and merged to main.
2527

lib/ruby_git/git_binary.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def initialize
2626
#
2727
# @return [Pathname]
2828
#
29-
# @raise [RuntimeError] A RuntimeError is raised when the path is not to an
30-
# existing executable file.
29+
# @raise [RuntimeError] A RuntimeError is raised when the path does not refer
30+
# to an existing executable file.
3131
#
3232
def path=(path)
3333
new_path = Pathname.new(path)
@@ -64,7 +64,7 @@ def path
6464
# @return [Pathname] the path to the git binary found in the path
6565
#
6666
# @raise [RuntimeError] if either PATH is not set or an executable file
67-
# basename was not found on the path.
67+
# `basename` was not found on the path.
6868
#
6969
def self.default_path(basename: 'git')
7070
RubyGit::FileHelpers.which(basename) || raise("Could not find '#{basename}' in the PATH.")

ruby_git.gemspec

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ Gem::Specification.new do |spec|
1818
DESCRIPTION
1919
spec.homepage = 'https://github.com/pages/jcouball/ruby_git/'
2020
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
21-
spec.requirements = ['git 2.18.0 or later']
21+
spec.requirements = [
22+
'Git 2.18.0 or later',
23+
'Ruby 2.6 or later',
24+
'Only MRI Ruby and JRuby are officially supported.',
25+
'Mac, Linux, Unix, and Windows platforms are supported'
26+
]
2227

2328
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
2429

0 commit comments

Comments
 (0)