Skip to content

Instantly share code, notes, and snippets.

View benjaminfauchald's full-sized avatar

Benjamin benjaminfauchald

  • Connectica PTE
  • Singapore
View GitHub Profile
@benjaminfauchald
benjaminfauchald / gist:39979fd76341e077eb55391e9e424c7d
Created August 17, 2021 04:56
Sollution for Gem that results in a bundler failure due to version mismatch ("Bundler could not find compatible versions for...")
Hi fellow backenders
If you run into an issue with adding a gem that results in a bundler failure due to version mismatch ("Bundler could not find compatible versions for...")
It may well be that you will succeed by using either:
the version branch, or
the default (master|main) branch
in your Gemfile, e.g.
@benjaminfauchald
benjaminfauchald / gist:97a55fe5c70e2c6d4f5ecf0057ae058a
Created April 27, 2021 05:23
Cross platform check with JS shell exec
const exec = require('child_process').exec;
function openURL(url) {
let opener;
switch (process.platform) {
case 'darwin':
opener = 'open';
break;
case 'win32':