0.0
No commit activity in last 3 years
No release in over 3 years
Rack middleware for forcing clients to upgrade
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
>= 0
~> 0.6.3
~> 11.0
~> 3.4
~> 0.39

Runtime

>= 1.5
 Project Readme

Client Version

Gem Version Build Status Code Climate Coverage Status Join the chat at https://gitter.im/hyperoslo/client-version

When you're building an API, it's really helpful to be able to force your clients to upgrade to the latest version. This is Rack middleware that simply adds a Client-Version header to every response with the value of the CLIENT_VERSION environment variable. Your clients can use it to determine whether they should force the user to upgrade to the latest version.

Installation

You know the drill:

# Gemfile
gem 'client_version'
$ bundle install

Configuration

Set the CLIENT_VERSION environment variable to whatever the latest version of your client is.

If you're using Rails, you're all set; we've hooked into your middleware stack for you. Otherwise just add ClientVersion to your middleware stack.

Hyper loves you

Hyper made this. We're a bunch of folks who love building things. You should tweet us if you can't get it to work. In fact, you should tweet us anyway. If you're using Client Version, we probably want to hire you.