Skip to content

Commit

Permalink
RubySyntaxBear: Use DistributionRequirement
Browse files Browse the repository at this point in the history
RubySyntaxBear only depends on the ruby executable.
  • Loading branch information
jayvdb committed Feb 6, 2017
1 parent 3af1b47 commit 3e0d973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bears/ruby/RubySyntaxBear.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.GemRequirement import GemRequirement
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)


@linter(executable='ruby',
Expand All @@ -14,7 +16,7 @@ class RubySyntaxBear:
Checks the code with ``ruby -wc`` on each file separately.
"""
LANGUAGES = {'Ruby'}
REQUIREMENTS = {GemRequirement('ruby', '2.1.5')}
REQUIREMENTS = {DistributionRequirement(apt_get='ruby')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down

0 comments on commit 3e0d973

Please sign in to comment.