mirror of
https://github.com/samsonjs/wordexp.git
synced 2026-03-25 08:45:54 +00:00
Update rubocop to 1.34.1
This commit is contained in:
parent
19aecc6ee7
commit
f1b95a291f
3 changed files with 15 additions and 13 deletions
4
Gemfile
4
Gemfile
|
|
@ -6,8 +6,8 @@ gem 'minitest-ci', '~> 3.4'
|
|||
gem 'minitest-reporters', '~> 1.3'
|
||||
gem 'rake', '~> 13.0'
|
||||
gem 'rake-compiler', '~> 1.2'
|
||||
gem 'rubocop', '1.24.1'
|
||||
gem 'rubocop', '1.34.1'
|
||||
gem 'rubocop-minitest', '0.21.0'
|
||||
gem 'rubocop-packaging', '0.5.1'
|
||||
gem 'rubocop-performance', '1.14.2'
|
||||
gem 'rubocop-performance', '1.14.3'
|
||||
gem 'rubocop-rake', '0.6.0'
|
||||
|
|
|
|||
16
Gemfile.lock
16
Gemfile.lock
|
|
@ -9,6 +9,7 @@ GEM
|
|||
ansi (1.5.0)
|
||||
ast (2.4.2)
|
||||
builder (3.2.4)
|
||||
json (2.6.2)
|
||||
minitest (5.16.2)
|
||||
minitest-ci (3.4.0)
|
||||
minitest (>= 5.0.6)
|
||||
|
|
@ -26,13 +27,14 @@ GEM
|
|||
rake
|
||||
regexp_parser (2.5.0)
|
||||
rexml (3.2.5)
|
||||
rubocop (1.24.1)
|
||||
rubocop (1.34.1)
|
||||
json (~> 2.3)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.0.0.0)
|
||||
parser (>= 3.1.2.1)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.8, < 3.0)
|
||||
rexml
|
||||
rubocop-ast (>= 1.15.1, < 2.0)
|
||||
rexml (>= 3.2.5, < 4.0)
|
||||
rubocop-ast (>= 1.20.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 3.0)
|
||||
rubocop-ast (1.21.0)
|
||||
|
|
@ -41,7 +43,7 @@ GEM
|
|||
rubocop (>= 0.90, < 2.0)
|
||||
rubocop-packaging (0.5.1)
|
||||
rubocop (>= 0.89, < 2.0)
|
||||
rubocop-performance (1.14.2)
|
||||
rubocop-performance (1.14.3)
|
||||
rubocop (>= 1.7.0, < 2.0)
|
||||
rubocop-ast (>= 0.4.0)
|
||||
rubocop-rake (0.6.0)
|
||||
|
|
@ -59,10 +61,10 @@ DEPENDENCIES
|
|||
minitest-reporters (~> 1.3)
|
||||
rake (~> 13.0)
|
||||
rake-compiler (~> 1.2)
|
||||
rubocop (= 1.24.1)
|
||||
rubocop (= 1.34.1)
|
||||
rubocop-minitest (= 0.21.0)
|
||||
rubocop-packaging (= 0.5.1)
|
||||
rubocop-performance (= 1.14.2)
|
||||
rubocop-performance (= 1.14.3)
|
||||
rubocop-rake (= 0.6.0)
|
||||
wordexp!
|
||||
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@ class WordexpTest < Minitest::Test
|
|||
end
|
||||
|
||||
def test_environment_variable_expansion
|
||||
assert_equal [ENV['HOME']], ::Wordexp.expand('$HOME')
|
||||
assert_equal [Dir.home], ::Wordexp.expand('$HOME')
|
||||
end
|
||||
|
||||
def test_tilde_expansion
|
||||
assert_equal ["#{ENV['HOME']}/bin"], ::Wordexp.expand('~/bin')
|
||||
assert_equal [File.join(Dir.home, 'bin')], ::Wordexp.expand('~/bin')
|
||||
end
|
||||
|
||||
def test_command_substitution_backticks
|
||||
assert_equal ["#{ENV['HOME']}/bin"], ::Wordexp.expand('`echo ~/bin`')
|
||||
assert_equal [File.join(Dir.home, 'bin')], ::Wordexp.expand('`echo ~/bin`')
|
||||
end
|
||||
|
||||
def test_command_substitution_dollar_parentheses
|
||||
assert_equal ["#{ENV['HOME']}/bin"], ::Wordexp.expand('$(echo ~/bin)')
|
||||
assert_equal [File.join(Dir.home, 'bin')], ::Wordexp.expand('$(echo ~/bin)')
|
||||
end
|
||||
|
||||
def test_error_badchar
|
||||
|
|
|
|||
Loading…
Reference in a new issue