Never include GitHub access tokens in your Gemfile again
https://gist.github.com/haihappen/bd5cfc2429dc14287bc5
# Be sure to have GITHUB_TOKEN set to your access token... via `export` or via .rbenv-vars for example.
source 'https://rubygems.org'
git_source(:private_github) { |repo_name| "https://#{ENV.fetch('GITHUB_TOKEN')}:x-oauth-basic@github.com/#{repo_name}.git" }
gem 'my-super-secret-gem', private_github: 'haihappen/my-super-secret-gem'
Written by Mario Uher
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#