From f96c1e9c408841261652b6b8801cd0983dc12c16 Mon Sep 17 00:00:00 2001 From: Tema Bolshakov Date: Tue, 3 Mar 2020 12:31:59 +0300 Subject: [PATCH] Bump version --- README.md | 17 +++++++++++++++++ lib/voight_kampff/version.rb | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 798b691..04c4518 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,23 @@ In general the `#bot?` command tends to include all of these and I'm sure it's u Also, the gem no longer extends `ActionDispatch::Request` instead it extends `Rack::Request` which `ActionDispatch::Request` inherits from. This allows the same functionality for Rails while opening the gem up to other rack-based projects. +Upgrading to version 2.0 +------------------------ + +If you use Rails and `ActionDispatch::Request#bot?` and `ActionDispatch::Request#human?` methods, change your gemfile: + +```diff +-gem 'voight_kampff' ++gem 'voight_kampff', require: 'voight_kampff/rails' +``` + +If you use Rack, change your gemfile: + +```diff +-gem 'voight_kampff' ++gem 'voight_kampff', require: 'voight_kampff/rack' +``` + FAQ --- __Q:__ __What's with the name?__ diff --git a/lib/voight_kampff/version.rb b/lib/voight_kampff/version.rb index 430a748..14c25dd 100644 --- a/lib/voight_kampff/version.rb +++ b/lib/voight_kampff/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module VoightKampff - VERSION = '1.1.4' + VERSION = '2.0.0' end