README.md in rack-revision-1.1.0 vs README.md in rack-revision-1.1.1

- old
+ new

@@ -1,11 +1,11 @@ # Rack::Revision -Rack::Revision is a quick drop-in component to enable code revision tracking. +Rack::Revision is a quick drop-in component to enable code revision tracking. It adds `X-Revision` header with the code revision from capistrano's REVISION file. -[![Build Status](https://img.shields.io/travis/sosedoff/rack-revision.svg)](https://travis-ci.org/sosedoff/rack-revision) +[![Build](https://github.com/sosedoff/rack-revision/actions/workflows/test.yml/badge.svg)](https://github.com/sosedoff/rack-revision/actions/workflows/test.yml) [![Gem Version](https://img.shields.io/gem/v/rack-revision.svg)](http://badge.fury.io/rb/rack-revision) ## Installation Add dependency to your Gemfile: @@ -21,11 +21,11 @@ ``` ## Usage Rack::Revision is implemented as a piece of Rack middleware and can be used with -any Rack-based application. If you have a `config.ru` rackup file you can +any Rack-based application. If you have a `config.ru` rackup file you can drop the following snippet (for sinatra app): ```ruby require "rack/revision" @@ -42,15 +42,15 @@ run Sinatra::Application ``` Available options: -- `:header` - Changes revision header name. Default: `X-Revision` +- `:header` - Changes revision header name. Default: `X-Revision` - `:filename` - Changes the revision filename. Default: `REVISION` - `:rack_env` - Changes Rack environment key for revision. Default: `env['rack.app_revision']` -- `:env_var` - Sets revision value from an environment variable. Default: `RACK_REVISION` -- `:default` - Sets revision value if env var or a file with revision does not exist. Default: `UNDEFINED` +- `:env_var` - Sets revision value from an environment variable. Default: `RACK_REVISION` +- `:default` - Sets revision value if env var or a file with revision does not exist. Default: `UNDEFINED` ## Example To see what the header might look like, run a curl command: @@ -84,6 +84,6 @@ ## License The MIT License -Copyright (c) 2012-2020 Dan Sosedoff <dan.sosedoff@gmail.com> \ No newline at end of file +Copyright (c) 2012-2022 Dan Sosedoff <dan.sosedoff@gmail.com>