Skip to content

Commit

Permalink
RAMLLintBear: Reject ramllint 1.2.4
Browse files Browse the repository at this point in the history
ramllint 1.2.4 is broken.

Fixes #1470
  • Loading branch information
jayvdb committed Mar 2, 2017
1 parent fd305e0 commit a549fba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/generate_bear_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def write_npm_requirements(requirements):
req_version = requirement.version
package_name = requirement.package
if req_version:
if req_version.startswith(">="):
if req_version[0] in ('<', '>', '~', '='):
npm_dependencies[package_name] = req_version
else:
npm_dependencies[package_name] = "~" + req_version
Expand Down
2 changes: 1 addition & 1 deletion bears/yaml/RAMLLintBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RAMLLintBear:
"""

LANGUAGES = {'RAML'}
REQUIREMENTS = {NpmRequirement('ramllint', '1.2.2')}
REQUIREMENTS = {NpmRequirement('ramllint', '>1.2.2 <1.2.4')}
AUTHORS = {'The coala developers'}
AUTHORS_EMAILS = {'[email protected]'}
LICENSE = 'AGPL-3.0'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"happiness": "~7.1.2",
"jshint": "~2",
"postcss-cli": "~2",
"ramllint": "~1.2.2",
"ramllint": ">1.2.2 <1.2.4",
"remark-cli": "~2",
"remark-lint": "~5",
"stylelint": "~7",
Expand Down

0 comments on commit a549fba

Please sign in to comment.