Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
bolshakov committed Mar 3, 2020
1 parent 6ff3370 commit f96c1e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?__
Expand Down
2 changes: 1 addition & 1 deletion lib/voight_kampff/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module VoightKampff
VERSION = '1.1.4'
VERSION = '2.0.0'
end

0 comments on commit f96c1e9

Please sign in to comment.