Skip to content

Commit a4ef8fe

Browse files
thomasrileymajormoses
authored andcommitted
Increase rubocop version to 0.51.x & remove Ruby 2.0 testing (#15)
* Increase rubocop version to 0.51+ & remove Ruby 2.0 testing * Rubocop fixes * TODO on the github comment: * Better use of rubocop:disable * remove extra disabled and made easier to read * appease cop about encoding on new check
1 parent d5e0161 commit a4ef8fe

14 files changed

+24
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ mkmf.log
1616
.DS_Store
1717
.idea/*
1818
*.gem
19+
/vendor/

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ cache:
44
install:
55
- bundle install
66
rvm:
7-
- 2.0
87
- 2.1
98
- 2.2
109
- 2.3.0
@@ -27,7 +26,6 @@ deploy:
2726
on:
2827
tags: true
2928
all_branches: true
30-
rvm: 2.0
3129
rvm: 2.1
3230
rvm: 2.2
3331
rvm: 2.3.0

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ This CHANGELOG follows the format listed at [Our CHANGELOG Guidelines ](https://
55
Which is based on [Keep A Changelog](http://keepachangelog.com/)
66

77
## [Unreleased]
8+
### Security
9+
- updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@thomasriley)
10+
11+
### Breaking Changes
12+
- removed < ruby 2.1 support which was pulled as part of security updates (@thomasriley)
13+
14+
### Changed
15+
- Various amendments to comply with Rubocop (@thomasriley)
816

917
## [1.5.0] - 2017-12-06
1018
### Added

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require 'yard'
77
require 'yard/rake/yardoc_task'
88

99
YARD::Rake::YardocTask.new do |t|
10-
OTHER_PATHS = %w().freeze
10+
OTHER_PATHS = %w[].freeze
1111
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
12-
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md)
12+
t.options = %w[--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md]
1313
end
1414

1515
RuboCop::RakeTask.new
@@ -35,4 +35,4 @@ task :check_binstubs do
3535
end
3636
end
3737

38-
task default: [:spec, :make_bin_executable, :yard, :rubocop, :check_binstubs]
38+
task default: %i[spec make_bin_executable yard rubocop check_binstubs]

bin/check-netty-zookeeper-cluster.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
# encoding: UTF-8
32

43
#
54
# netty-check-zookeeper-cluster

bin/check-znode.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#! /usr/bin/env ruby
2-
# encoding: UTF-8
32
#
43
# check-znode
54
#

bin/check-zookeeper-cluster.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
# encoding: UTF-8
32
#
43
# check-zookeeper-cluster
54
#

bin/check-zookeeper-file-descriptors.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
# encoding: UTF-8
32
#
43
# check-zookeeper-file-descriptors.rb
54
#

bin/check-zookeeper-latency.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
# encoding: UTF-8
32
#
43
# check-zookeeper-latency
54
#

bin/check-zookeeper-mode.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env ruby
2-
# encoding: UTF-8
32
#
43
# check-zookeeper-mode
54
#

0 commit comments

Comments
 (0)