-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
747 additions
and
786 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
--backtrace | ||
--colour | ||
--drb | ||
--format documentation | ||
--color | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Next Release | ||
|
||
* Enhancements | ||
* Bug Fixes | ||
* Deprecations | ||
* Incompatible Changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Releasing | ||
|
||
These steps can be added to the Pull Request description's task list to remind the reviewer of how to release the | ||
gem. | ||
|
||
``` | ||
# Release | ||
Complete these steps on DESTINATION | ||
## [CHANGELOG.md](CHANGELOG.md) | ||
### Terminology | ||
* "Enhancements" are widdening the API, such as by adding new classes or methods. | ||
* "Bug Fixes" are fixes to the implementation that do not affect the public API. If the public API is affected then | ||
the change should be listed as both a "Bug Fix" and either an "Enhancement" or "Incompatible Change" depending on how | ||
the bug was fixed. | ||
* "Deprecations" are changes to the implementation that cause deprecation warnings to be issued for APIs which will be | ||
removed in a future major release. "Deprecations" are usually accompanied by an Enhancement that creates a new API | ||
that is meant to be used in favor of the deprecated API. | ||
* "Incompatbile Changes" are the removal of classes or methods or new required arguments or setup that shrink the API. | ||
It is best practice to make a "Deprecation" for the API prior to its removal. | ||
### Task List | ||
- [ ] Generate the list of changes since the last release: `git log v<LAST_MAJOR>.<LAST_MINOR>.<LAST_PATCH>..HEAD` | ||
- [ ] For each commit in the release, find the corresponding PR by search for the commit on Github. | ||
- [ ] For each PR, determine whether it is an Enhancement, Bug Fix, Deprecation, and/or Incompatible Change. A PR can | ||
be in more than one category, in which case it should be listed in each category it belongs, but with a category | ||
specific description of the change. | ||
- [ ] Add an item to each category's list in the following format: `[#<PR>](https://github.com/rapid7/metasploit-model/pull/<PR>) <consumer summary> - [@<github_user>](https://github.com/<github_user>)` | ||
`consumer_summary` should be a summary of the Enhancement, Bug Fix, Deprecation, or Incompatible Change from a | ||
downstream consumer's of the library's perspective. `github_user` should be Github handle of the author of the | ||
PR. | ||
- [ ] If you added any Deprecations or Incompatible Changes, then adding upgrading information to | ||
[UPGRADING.md](UPGRADING.md) | ||
## `VERSION` | ||
The entries in the [CHANGELOG.md](CHANGELOG.md) can be used to help determine how the `VERSION` should be bumped. | ||
### Bug fixes | ||
If the [CHANGELOG.md](CHANGELOG.md) contains only Bug Fixes for the Next Release, then increment | ||
[`PATCH`](lib/metasploit/model/version.rb). | ||
### Compatible API changes | ||
If the [CHANGELOG.md](CHANGELOG.md) contains any Enhancements or Deprecations, then increment | ||
[`MINOR`](lib/metasploit/model/version.rb) and reset [`PATCH`](lib/metasploit/model/version.rb) to `0`. | ||
### Incompatible API changes | ||
If the [CHANGELOG.md](CHANGELOG.md) contains any Incompatible Change, then increment | ||
[`MAJOR`](lib/metasploit/model/version.rb) and reset [`MINOR`](lib/metasploit/model/version.rb and | ||
[`PATCH`](lib/metasploit/model/version.rb) to `0`. | ||
## Setup [CHANGELOG.md](CHANGELOG.md) for next release | ||
- [ ] Change `Next Release` section name at the top of [CHANGELOG.md](CHANGELOG.md) to match the current `VERSION`. | ||
- [ ] Add a new `Next Release` section above the `VERSION`'s section you just renamed: | ||
<pre> | ||
# Next Release | ||
* Enhancements | ||
* Bug Fixes | ||
* Deprecations | ||
* Incompatible Changes | ||
</pre> | ||
## Release to rubygems.org | ||
## jruby | ||
- [ ] `rvm use jruby@metasploit-model` | ||
- [ ] `rm Gemfile.lock` | ||
- [ ] `bundle install` | ||
- [ ] `rake release` | ||
## ruby-2.1 | ||
- [ ] `rvm use ruby-2.1@metasploit-model` | ||
- [ ] `rm Gemfile.lock` | ||
- [ ] `bundle install` | ||
- [ ] `rake release` | ||
``` | ||
|
||
### Downstream dependencies | ||
|
||
There are currently no known downstream dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
No Deprecations or Incompatible Changes have been introduced at this time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
require 'spec_helper' | ||
|
||
describe Metasploit::Model::Search::Group::Base do | ||
it { should ensure_length_of(:children).is_at_least(1) } | ||
RSpec.describe Metasploit::Model::Search::Group::Base, type: :model do | ||
it { is_expected.to ensure_length_of(:children).is_at_least(1) } | ||
end |
6 changes: 2 additions & 4 deletions
6
spec/app/models/metasploit/model/search/group/intersection_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
require 'spec_helper' | ||
|
||
describe Metasploit::Model::Search::Group::Intersection do | ||
it { should be_a Metasploit::Model::Search::Group::Base } | ||
RSpec.describe Metasploit::Model::Search::Group::Intersection, type: :model do | ||
it { is_expected.to be_a Metasploit::Model::Search::Group::Base } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
require 'spec_helper' | ||
|
||
describe Metasploit::Model::Search::Group::Union do | ||
it { should be_a Metasploit::Model::Search::Group::Base } | ||
RSpec.describe Metasploit::Model::Search::Group::Union, type: :model do | ||
it { is_expected.to be_a Metasploit::Model::Search::Group::Base } | ||
end |
Oops, something went wrong.