Skip to content
Snippets Groups Projects
Unverified Commit 5772493e authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #4895 from MikeMcQuaid/vendor-bundle-standalone

Use Bundler to manage vendor directory
parents 1b456665 d7eca0b5
No related branches found
No related tags found
No related merge requests found
Showing
with 53 additions and 8 deletions
......@@ -23,6 +23,15 @@
**/.bundle/cache
**/vendor/bundle
**/vendor/ruby
**/vendor/bundle-standalone/ruby/*/cache
**/vendor/bundle-standalone/ruby/*/gems/*/*
**/vendor/bundle-standalone/ruby/*/specifications
# Unignore vendored gems
!**/vendor/bundle-standalone/ruby/*/gems/*/lib
# Ignore backports gem (we don't need all files)
**/vendor/bundle-standalone/ruby/*/gems/backports-*/lib
# Ignore `bin` contents (again).
/bin
......
require "vendor/plist/plist"
require "plist"
require "cask/artifact/abstract_artifact"
......
# Contains backports from newer versions of Ruby
require_relative "../vendor/backports/string"
require "backports/2.4.0/string/match"
class String
# String.chomp, but if result is empty: returns nil instead.
......
......@@ -5,3 +5,5 @@ HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath
unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s)
$LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.to_s)
end
require "vendor/bundle-standalone/bundler/setup"
require "vendor/macho/macho"
require "macho"
require "os/mac/architecture_list"
module MachOShim
......
require "open3"
require "ostruct"
require "vendor/plist/plist"
require "plist"
require "shellwords"
require "extend/io"
......
---
BUNDLE_PATH: "bundle-standalone"
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_BIN: "false"
source "https://rubygems.org"
gem "backports"
gem "plist"
gem "ruby-macho"
GEM
remote: https://rubygems.org/
specs:
backports (3.8.0)
plist (3.3.0)
ruby-macho (2.0.0)
PLATFORMS
ruby
DEPENDENCIES
backports
plist
ruby-macho
BUNDLED WITH
1.16.4
require 'rbconfig'
# ruby 1.8.7 doesn't define RUBY_ENGINE
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
ruby_version = RbConfig::CONFIG["ruby_version"]
path = File.expand_path('..', __FILE__)
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/backports-3.8.0/lib"
$:.unshift "#{path}/"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.3.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.0.0/lib"
# Taken from https://github.com/marcandre/backports/blob/v3.8.0/lib/backports/2.4.0/string/match.rb
unless String.method_defined? :match?
class String
def match?(*args)
......
......@@ -13,9 +13,9 @@ require 'base64'
require 'cgi'
require 'stringio'
require_relative 'plist/generator'
require_relative 'plist/parser'
require_relative 'plist/version'
require 'plist/generator'
require 'plist/parser'
require 'plist/version'
module Plist
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment