Skip to content

Commit 700a4dc

Browse files
committed
Fix rubocop offense
1 parent 11dba75 commit 700a4dc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rubycritic.gemspec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ require 'rubycritic/version'
77
Gem::Specification.new do |spec|
88
spec.name = 'rubycritic'
99
spec.version = RubyCritic::VERSION
10-
if RUBY_PLATFORM == 'java'
11-
spec.platform = Gem::Platform::JAVA
12-
else
13-
spec.platform = Gem::Platform::RUBY
14-
end
10+
spec.platform = RUBY_PLATFORM == 'java' ? Gem::Platform::JAVA : Gem::Platform::RUBY
1511
spec.authors = ['Guilherme Simoes']
1612
spec.email = ['[email protected]']
1713
spec.description = 'RubyCritic is a tool that wraps around various static analysis gems ' \
@@ -50,8 +46,8 @@ Gem::Specification.new do |spec|
5046
spec.add_development_dependency 'aruba', '~> 2.3.0'
5147
spec.add_development_dependency 'bundler', '>= 2.0.0'
5248
if RUBY_PLATFORM == 'java'
53-
spec.add_development_dependency 'pry-debugger-jruby'
5449
spec.add_development_dependency 'jar-dependencies', '~> 0.4.1'
50+
spec.add_development_dependency 'pry-debugger-jruby'
5551
else
5652
spec.add_development_dependency 'byebug', '~> 11.0', '>= 10.0'
5753
end

0 commit comments

Comments
 (0)