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
- First, setup your input type in your config/stenographer.rb. As of right now, Stenographer only supports
Stenographer::Inputs::GithubInputwhich users github webhooks. - Then, setup your GitHub webhook setup to use "just the push event" to point at
https://#{YOUR_DOMAIN}/#{STENOGRAPHER_MOUNT_POINT}/changes - Finally, add
[changelog My change message]to your commits.
Installation
Add this line to your application's Gemfile:
gem 'stenographer-rails'And then execute:
$ bundleOr install it yourself as:
$ gem install stenographer-railsAdd the configuration and migrations:
$ rails g stenographer:installConfiguration
All configuration is available in the config/initializers/stenographer.rb
Developing
Running the App
Set up the database
$ rake app:db:setupStart the Rails server
$ rails sView the site http://locahost:3000/stenographer
Testing
Set up the database
$ RAILS_ENV=test rake app:db:setupRun the tests
$ rake specContributing
- Fork the repo and create your branch.
- If you've added code that should be tested, add tests.
- Ensure the test suite passes using
$ rake spec. - Make sure your code lints using
$ rubocop. - Issue that pull request!
License
The gem is available as open source under the terms of the MIT License.