BrowserWarrior

Are you a warrior? Do you dare to reject your ie 6/7/8 user?

Yes, at now we should say YES.

BrowserWarrior make the action super easy.

Make your Ruby on Rails 5 Application rejecting ie6/7/8 with only one line code. ( Notice: only support Rails 5 now, we will do more work to support 4 & 3 )

# in your Gemfile
gem 'browser_warrior'

And then:

$ bundle

No need more code!!

Then all of ie 6/7/8 user will be rejected to a page that suggests upgrading their browsers.

Upgrading browser screenshot screenshot

More configuration

QA: Can I add more unsupported browsers?

Very easy. Execute:

$ rails g browser_warrior:install

It will generate browser_warrior.rb in config/initializers/.

Edit it.

There is a browser object that you can easily custom your requirement.

See more: https://github.com/fnando/browser#usage

QA: Can I custom the suggested browser page?

Sure. Execute:

# We are doing more work on it
$ rails g browser_warrior:views

It will generate view and css files for you. Then edit them.

Easy, is it?

TODO

  • [x] Release 0.1.0, one line code to support rejecting old browser page
  • [ ] I18n support
  • [ ] Extend support rails 4 and rails 3.
  • [ ] Design a mechanism to support more than one themes.

Contributing

windy

License

The gem is available as open source under the terms of the MIT License.