Skip to content

Commit

Permalink
Preparing for release, 0.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel P. Shannon committed May 21, 2016
1 parent 47ebe5b commit a4ba2b9
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 5 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### 0.3.2 (Next)
### Next Release
* Your contribution here!

* Compatibility with Mongoid 6 - [@phyllisstein](https://github.com/phyllisstein).
* Your contribution here.
### 0.4.0 (2016/05/21)

* Compatibility with Mongoid 6 prerelease - [@phyllisstein](https://github.com/phyllisstein).

### 0.3.1 (2015/09/25)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Mongoid::Compatibility
[![Dependency Status](https://gemnasium.com/dblock/mongoid-compatibility.svg)](https://gemnasium.com/dblock/mongoid-compatibility)
[![Code Climate](https://codeclimate.com/github/dblock/mongoid-compatibility.svg)](https://codeclimate.com/github/dblock/mongoid-compatibility)

Compatibility helpers for Mongoid 2, 3, 4, 5, and 6.
Compatibility helpers for Mongoid versions 2, 3, 4, and 5, and the **prerelease** version 6.

### Install

Expand Down
43 changes: 43 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Releasing `mongoid-compatibility`
## Guidelines
Generally, `mongoid-compatibility` should be released with enthusiasm but care. Release bug fixes as added, features as desired, and breaking API changes as absolutely necessary.

## This is how we do it.
1. Run the test suite in your local environment first, and ensure that everything's passing.

```bash
bundle install
rake
```

2. Run the test suite on [Travis](https://travis-ci.org) to be certain that your changes work in a variety of environments. Only merge and release when all tests are passing.

3. Bump the version in [`lib/mongoid/compatibility/self.rb`](lib/mongoid/compatibility/self.rb).

* If the release fixes bugs or adds features with negligible impact, increment the third number (e.g., `0.3.2``0.3.3`).
* If the release adds significant new features, increment the second number and zero out the third (e.g., `0.3.2``0.4.0`).
* If the release adds breaking API changes, increment the first number and zero out the second and third (e.g., `0.3.2``1.0.0`).

You've gotta know it---it's semantic!

4. Add a header for the new version to [`CHANGELOG.md`](CHANGELOG.md) and list all the changes your release will include underneath it, crediting contributors as appropriate.

6. Update the [`README`](README.md) to document any new features. Remove any warnings indicating that users are reading the documentation for an unreleased version.

7. Commit your changes...

```bash
git add README.md CHANGELOG.md lib/mongoid/compatibility/self.rb
git commit -m "Preparing for release, 0.4.0."
git push origin master
```

8. ...and do the thing!

```bash
rake release
#=> mongoid-compatibility 0.4.0 built to pkg/mongoid-compatibility-0.4.0.gem
#=> Tagged 0.4.0.
#=> Pushed git commits and tags.
#=> Pushed mongoid-compatibility 0.4.0 to rubygems.org.
```
2 changes: 1 addition & 1 deletion lib/mongoid/compatibility/self.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Mongoid
module Compatibility
VERSION = '0.3.2'
VERSION = '0.4.0'
end
end

0 comments on commit a4ba2b9

Please sign in to comment.