Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created April 19, 2016 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/036089b4571b7d7ac52b56b10237a6c6 to your computer and use it in GitHub Desktop.
Save anonymous/036089b4571b7d7ac52b56b10237a6c6 to your computer and use it in GitHub Desktop.
# Pastebin hka8AhGd
require 'bundler'
module Bundler
class Definition
def specs
@specs ||=
begin
specs = resolve.materialize(
Bundler.settings[:cache_all_platforms] ? dependencies : requested_dependencies,
[]
)
unless specs["bundler"].any?
local = Bundler.settings[:frozen] ? rubygems_index : index
bundler = local.search(Gem::Dependency.new("bundler", VERSION)).last
specs["bundler"] = bundler if bundler
end
specs
end
end
end
end
Bundler.setup(:default)
require 'rack'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment