diff --git a/.ci/generate_bear_requirements.py b/.ci/generate_bear_requirements.py index a4b6493acf..6f6ef166e8 100755 --- a/.ci/generate_bear_requirements.py +++ b/.ci/generate_bear_requirements.py @@ -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 diff --git a/bears/yaml/RAMLLintBear.py b/bears/yaml/RAMLLintBear.py index 0901476031..c985dd238f 100644 --- a/bears/yaml/RAMLLintBear.py +++ b/bears/yaml/RAMLLintBear.py @@ -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 = {'coala-devel@googlegroups.com'} LICENSE = 'AGPL-3.0' diff --git a/package.json b/package.json index d3e56a6463..6cc0489579 100644 --- a/package.json +++ b/package.json @@ -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",