Code Monkey home page Code Monkey logo

release_notes's Introduction

ReleaseNotes

Build Status

An easy way to incorporate and manage release notes.

Installation

Add this line to your application's Gemfile:

gem 'release_notes'

And then execute:

$ bundle

Or install it yourself as:

$ gem install release_notes

Getting Started

If you're looking to use ReleaseNotes with Rails you will need to run the install generator:

$ rails generate release_notes:install

The generator will install a ReleaseNotes initializer containing various configuration options. When you are done, you are ready to add a ReleaseNote model to using the following generator:

$ rails generate release_notes ReleaseNote

This will generate a model named ReleaseNote in your Rails project and will add a route in your config/routes.rb file at /release_notes. You can choose to use a different model name, but after doing so you must update config.release_note_model in the release_notes initializer with the name of the model you generated.

Be sure to migrate your database.

$ rake db:migrate

Usage

Generate a new release note template

To create a new release note run the following:

$ release_notes new

A new release note markdown file will be generated and saved to the release_notes folder. Open the file in your favorite editor and fill out the relevant sections to your heart's content.

Generate a new release note from the console

To add release notes bullets through the console try the following:

$ release_notes new -m

This will also generate a release note markdown file, but all the bullets entered in the console will appear in the relevant sections in the markdown file.

Update ReleaseNote model with new release notes

After finalizing your release note markdown file be sure to update your ReleaseNote model by running:

$ release_notes update

If you ever want to update a previous release note and/or want to rebuild your ReleaseNotes model and README you can run the following:

$ release_notes update -r

Getting Help

To get additional help on release_notes commands or to see all available options just run:

$ release_notes --help [command]

Rake Tasks

You can also run the release_notes new, release_notes update, and release_notes update -r commands using the following rake tasks from within the project:

release_notes new

$ rake release_notes:new

release_notes update

$ rake release_notes:update

release_notes update -r

$ rake release_notes:rebuild

Show the latest ReleaseNote version

To access a link to the latest release note just include the following snippet into your view:

<%= release_note_indicator %>

View release notes in your application

To view all of your release notes just visit http://yourapp/release_notes (or whatever route is mounted in your routes.rb file) in your application. To view a specific version just visit http://yourapp/release_notes/:version where :version is the release notes version that you are looking to view using underscores instead of periods (i.e. 0_1_0).

Contributing

  1. Fork it ( http://github.com/eanlain/release_notes/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

release_notes's People

Stargazers

Jesse Waites avatar Esteban avatar Ruben Espinosa avatar Mateo Vidal avatar

Watchers

Brandon Robins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.