fix(bundler): compatibility true

This commit is contained in:
Rhys Arkins 2019-01-21 18:40:57 +01:00
parent 33b3308df6
commit 625fa4744f

View file

@ -1,6 +1,6 @@
const URL = require('url'); const URL = require('url');
const got = require('got'); const got = require('got');
const { satisfies } = require('@snyk/ruby-semver'); // TODO: const { satisfies } = require('@snyk/ruby-semver');
const { maskToken } = require('../../util/mask'); const { maskToken } = require('../../util/mask');
const hostRules = require('../../util/host-rules'); const hostRules = require('../../util/host-rules');
const retriable = require('./retriable'); const retriable = require('./retriable');
@ -40,8 +40,12 @@ const getHeaders = url => {
return token ? { Authorization: token } : {}; return token ? { Authorization: token } : {};
}; };
const isCompatible = ({ ruby }, { rubyVersion }) => const isCompatible = ({ ruby }, { rubyVersion }) => {
!ruby ? true : satisfies(ruby, rubyVersion); logger.trace({ ruby, rubyVersion }, 'TODO');
// These could both be ranges..
// return !ruby ? true : satisfies(ruby, rubyVersion);
return true;
};
const fetch = async ({ dependency, registry, path }) => { const fetch = async ({ dependency, registry, path }) => {
const json = true; const json = true;