Skip to content

Instantly share code, notes, and snippets.

@fnordfish
Created May 5, 2021 15:49
Show Gist options
  • Save fnordfish/011231c13d41399c6996674937f1d91d to your computer and use it in GitHub Desktop.
Save fnordfish/011231c13d41399c6996674937f1d91d to your computer and use it in GitHub Desktop.
inline bundler version of a rubocop "binstub"
#!/usr/bin/env ruby
# frozen_string_literal: true
require "bundler"
require "bundler/inline"
Bundler.settings.temporary(frozen: false, deployment: false) do
gemfile do
source "https://rubygems.org"
platform "ruby" do
gem "rubocop", "1.13.0"
end
end
end
load Gem.bin_path("rubocop", "rubocop")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment