Commit Graph

22 Commits

Author SHA1 Message Date
Pedro Paiva 6c9ec5e20b Fix warning: Use `result.unpack1("i")` instead of `result.unpack("i").first`. (convention:Style/UnpackFirst) 2020-05-02 20:11:19 +12:00
Pedro Paiva 5c69a73333 Setting 'Enabled: false' for the new cops of Rubocop 2020-05-02 20:11:19 +12:00
Pedro Paiva cd63e175c3 Fix warning: Metrics/LineLength has the wrong namespace - should be Layout 2020-05-02 20:11:19 +12:00
Pedro Paiva 4718c30909 Update rubocop version to 2.4
Version 2.3 is no longer supported
2020-05-02 20:11:19 +12:00
Pedro Paiva 1afcba0ab6 Fix warning: The `Lint/HandleExceptions` cop has been renamed to `Lint/SuppressedException`. 2020-05-02 20:11:19 +12:00
Pedro Paiva 02ad565973 Fix warning: The `Layout/AlignHash` cop has been renamed to `Layout/HashAlignment` 2020-05-02 20:11:19 +12:00
Thomas Dziedzic bd82cda7fd Fix Warning: unrecognized cop Performance/RegexpMatch found in .rubocop.yml 2020-01-10 17:43:49 +13:00
Thomas Dziedzic aa676208a9 disable Layout/AlignHash 2020-01-10 17:43:49 +13:00
Samuel Williams 653c9661a0
Bump minimum supported Ruby to 2.3. 2019-07-07 20:05:52 +12:00
Samuel Williams 8e63c752df Simplify rubocop usage. 2019-01-09 17:35:27 +13:00
Samuel Williams ec5bf1bd20 Fix rubocop. 2019-01-09 10:35:33 +13:00
Tony Arcieri 9abaf47f91 Update to RuboCop 0.52.1 2017-12-27 08:11:22 -08:00
Tony Arcieri cd3f1c54d1 Update RuboCop to 0.51 2017-11-18 10:09:02 -08:00
Tony Arcieri 2a6390d572 NIO::Monitor#add_interest
Adds a new interest type to the existing set for a given monitor
2016-12-28 17:31:47 -08:00
Tony Arcieri 87a3471db4 Disambiguate wakeup vs timeout (fixes #63, #66)
This changes the semantics of NIO::Selector#select so wakeup events can always
be distinguished from timeouts:

- select will now *only* return nil on timeout
- wakeup will now return an empty array (or 0 if a block is given)

This should hopefully avoid breakages in existing code while making it easy to
disambiguate the timeout case versus a wakeup.
2016-12-28 10:53:56 -08:00
Tony Arcieri 0fb763306a Add "frozen_string_literal" comments to all files 2016-12-28 09:21:35 -08:00
Tony Arcieri d9b3233bcb Address lingering RuboCop TODOs 2016-12-28 00:55:38 -08:00
Tony Arcieri 353aa7cdc9 Simplify NIO::ByteBuffer#initialize API
This removes the limit and offset arguments from the constructor, so as to
better match the Java NIO API.
2016-12-25 15:15:36 -08:00
Tony Arcieri 3d69243e15 NIO::Buffer#initialize cleanups
Ensure exceptions thrown during #initialize are consistent among the various
implementations.
2016-12-25 12:48:18 -08:00
Olle Jonsson fbfba2669d Rubocop: target 2.2, add cop names on failures 2016-11-10 17:07:19 +01:00
Tony Arcieri a5850830ed Nit fixups for PR #73 2015-12-22 12:10:58 -08:00
Tony Arcieri 56396dcc78 Add Rubocop 2015-04-24 03:10:09 -07:00