This file contains 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/ruby | |
=begin | |
## USAGE: | |
# Ruby: | |
ruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies | |
# JRuby: | |
jruby gem-fetch-dependencies.rb fetch <gem_name> --dependencies |
This file contains 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 | |
require 'open-uri' | |
require 'JSON' | |
require 'digest/sha2' | |
require 'pry' | |
require 'bigdecimal' | |
require 'bitcoin' # Because I need to cheat every now and then | |
# Usage: | |
# gem install pry json ffi ruby-bitcoin |
This file contains 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
#!/bin/bash | |
TARGET=$1 | |
mkdir -p $TARGET | |
files=$( | |
dpkg -L ruby | grep '/usr/bin/' | |
dpkg -L ruby1.9.1 | grep '/usr/bin/' | |
echo '/usr/lib/ruby' | |
) |