This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ asdf install ruby 3.2.0 | |
To follow progress, use 'tail -f /var/folders/1b/092w4rr513v_1w3wl2fc69_c0000gn/T/ruby-build.20230105003024.47583.log' or pass --verbose | |
Downloading openssl-3.0.7.tar.gz... | |
-> https://dqw8nmjcqpjn7.cloudfront.net/83049d042a260e696f62406ac5c08bf706fd84383f945cf21bd61e9ed95c396e | |
Installing openssl-3.0.7... | |
Installed openssl-3.0.7 to /Users/colby/.asdf/installs/ruby/3.2.0 | |
Downloading ruby-3.2.0.tar.gz... | |
-> https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.0.tar.gz | |
Installing ruby-3.2.0... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
if ARGV.include?("-h") || ARGV.include?("--help") | |
puts "USAGE: check.rb [HOSTNAME] [TLS_VERSION] [VERIFY]" | |
puts " default: check.rb rubygems.org auto VERIFY_PEER" | |
puts " example: check.rb github.com TLSv1_2 VERIFY_NONE" | |
exit 0 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Bundler ruby gems check inside bundler `bundle exec` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.bin_path(name, exec_name = nil, *requirements) | |
# TODO: fails test_self_bin_path_bin_file_gone_in_latest | |
# Gem::Specification.find_by_name(name, *requirements).bin_file exec_name | |
raise ArgumentError, "you must supply exec_name" unless exec_name | |
requirements = Gem::Requirement.default if | |
requirements.empty? | |
find_spec_for_exe(name, exec_name, requirements).bin_file exec_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_bundle_variables | |
begin | |
ENV["BUNDLE_BIN_PATH"] = Bundler.rubygems.bin_path("bundler", "bundle", VERSION) | |
rescue Gem::GemNotFoundException | |
ENV["BUNDLE_BIN_PATH"] = File.expand_path("../../../exe/bundle", __FILE__) | |
end | |
# Set BUNDLE_GEMFILE | |
ENV["BUNDLE_GEMFILE"] = find_gemfile.to_s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redefine_method(gem_class, :activate_bin_path) do |name, *args| | |
exec_name = args.first | |
return ENV["BUNDLE_BIN_PATH"] if exec_name == "bundle" | |
# Copy of Rubygems activate_bin_path impl | |
requirement = args.last | |
spec = find_spec_for_exe name, exec_name, [requirement] | |
gem_bin = File.join(spec.full_gem_path, spec.bindir, exec_name) | |
gem_from_path_bin = File.join(File.dirname(spec.loaded_from), spec.bindir, exec_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty it self. | |
env: | |
# TERM env customization. | |
# | |
# If this property is not set, alacritty will set it to xterm-256color. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost ~]$ ls -la /tmp/bundler20180519-24861-1y67io7rake-12.3.1/ | |
total 4 | |
drwx------. 3 vagrant vagrant 17 May 19 07:36 . | |
drwxrwxrwt. 9 root root 4096 May 19 07:36 .. | |
drwxr-xr-x. 2 root root 6 May 19 07:36 bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:9 | |
ports: | |
- "5432:5432" | |
cache: | |
image: memcached | |
ports: | |
- "11211:11211" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:9 | |
ports: | |
- "5432:5432" | |
cache: | |
image: memcached | |
ports: | |
- "11211:11211" |
NewerOlder