Repository is archived
No commit activity in last 3 years
No release in over 3 years
Cleaner, Happier, Easier Changelogs in Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 4.11, >= 4.11.1
~> 1.9
~> 2.3, >= 2.3.2
~> 1.0, >= 1.0.3
~> 3.8, >= 3.8.1
~> 0.60
~> 1.30, >= 1.30.1
~> 3.6
~> 1.3

Runtime

 Project Readme

Stenographer

Stenographer is a simplistic way to manage your changes and show them to the users. When using an input like Github that has a unique id shared across branches, it will also manage grouping changes by environment.

Usage

To create a new item:

Stenographer::Change.create(message: 'My Change', change_type: 'new/improved/fixed', visible: true, environments: 'production', tracker_ids: '#12345', source: '{}')

It's advised to store the source so you can parse it again later if needed.

To View:

Open a browser to http://host:port/stenographer or whatever you've set your mount point to.

Automatic Changelogs

  1. First, setup your input type in your config/stenographer.rb. As of right now, Stenographer only supports Stenographer::Inputs::GithubInput which users github webhooks.
  2. Then, setup your GitHub webhook setup to use "just the push event" to point at https://#{YOUR_DOMAIN}/#{STENOGRAPHER_MOUNT_POINT}/changes
  3. Finally, add [changelog My change message] to your commits.

Installation

Add this line to your application's Gemfile:

gem 'stenographer-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stenographer-rails

Add the configuration and migrations:

$ rails g stenographer:install

Configuration

All configuration is available in the config/initializers/stenographer.rb

Developing

Running the App

Set up the database

$ rake app:db:setup

Start the Rails server

$ rails s

View the site http://locahost:3000/stenographer

Testing

Set up the database

$ RAILS_ENV=test rake app:db:setup

Run the tests

$ rake spec

Contributing

  1. Fork the repo and create your branch.
  2. If you've added code that should be tested, add tests.
  3. Ensure the test suite passes using $ rake spec.
  4. Make sure your code lints using $ rubocop.
  5. Issue that pull request!

License

The gem is available as open source under the terms of the MIT License.