Skip to content

Commit

Permalink
Add Ruby 2.5 Support/Require Ruby 2.2+ (#12)
Browse files Browse the repository at this point in the history
* Add Ruby 2.5 Support

* Remove gemnasium badge

* Define required_ruby_version
  • Loading branch information
toshimaru committed Nov 3, 2018
1 parent 525afca commit 9c7ad11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: ruby
cache: bundler
rvm:
- 2.2.5
- 2.3.1
- 2.4.0
- 2.3.7
- 2.4.5
- 2.5.3
before_install: gem update bundler
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Build Status](https://travis-ci.org/toshimaru/rack-simple_user_agent.svg)](https://travis-ci.org/toshimaru/rack-simple_user_agent)
[![Coverage Status](https://coveralls.io/repos/github/toshimaru/rack-simple_user_agent/badge.svg)](https://coveralls.io/github/toshimaru/rack-simple_user_agent)
[![Code Climate](https://codeclimate.com/github/toshimaru/rack-simple_user_agent/badges/gpa.svg)](https://codeclimate.com/github/toshimaru/rack-simple_user_agent)
[![Dependency Status](https://gemnasium.com/badges/github.com/toshimaru/rack-simple_user_agent.svg)](https://gemnasium.com/github.com/toshimaru/rack-simple_user_agent)

Rack::SimpleUserAgent is Rack::Request extension which detects user-agent from user-agent string. No complicated logic for the detection, it simply(stupidly) checks if user-agent includes particular string or not.

Expand Down
2 changes: 2 additions & 0 deletions rack-simple_user_agent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.2.2"

spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rake", "~> 11.0"
Expand Down

0 comments on commit 9c7ad11

Please sign in to comment.