Commit Graph

9 Commits

Author SHA1 Message Date
Eloy Pérez 9a924aa894 Set 2.6 as minimum ruby version for Sinatra 3 (#1699)
* Run tests for Ruby versions >= 2.6

* Remove not needed checks for methods defined

* Set required_ruby_version to >= 2.6

* Update READMEs with new Ruby versions
2022-02-02 15:58:11 -05:00
Olivier Bellone 7092f0e0a7
Add `#select`, `#reject` and `#compact` methods to `Sinatra::IndifferentHash` (#1711) 2021-08-17 10:37:32 -04:00
Kunpei Sakai 825299319e
Merge pull request #1572 from iguchi1124/support-ruby26-merge
Support ruby 2.6 Hash#merge with multiple arguments
2020-01-02 04:44:44 +09:00
Mike Pastore 91ba82ec51 IndifferentHash monkeypatch warning improvements
* Print warning on Rubies that require monkeypatching only
* Print warning to stderr instead of stdout
* Load ActiveSupport during internal testing only
* Add SINATRA_ACTIVESUPPORT_WARNING opt-out environment variable
2018-10-17 08:37:42 -05:00
Mike Pastore 7d8e5be852 Add support for Ruby 2.5's #transform_keys(!) to IndifferentHash 2018-06-22 16:12:07 -05:00
Mike Pastore 453ecd9cab Add support for Ruby 2.4's #transform_values(!) to IndifferentHash 2018-06-22 16:12:07 -05:00
Shota Iguchi 23afce5269 Add Sinatra::IndifferentHash#slice spec 2018-02-23 03:31:06 +09:00
Jun Aruga 94791e5278 Remove a line for "require 'bundler/setup'".
Because it has already been loaded by Bundler.
2017-06-19 11:30:29 +02:00
Mike Pastore 44c3cb89b7 Add full IndifferentHash implementation 2017-03-31 14:52:28 -05:00