Skip to content

Instantly share code, notes, and snippets.

@raggi

raggi/jssl.sh Secret

Created February 4, 2013 20:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raggi/52cc8733e39b14f3489e to your computer and use it in GitHub Desktop.
Save raggi/52cc8733e39b14f3489e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
gemhost="http://production.cf.rubygems.org/gems/"
gembounce="bouncy-castle-java-1.5.0146.1.gem"
gemssl="jruby-openssl-0.8.2.gem"
for g in $gembounce $gemssl; do
jruby -ropen-uri -e "open('$gemhost$g') { |i| open('$g', 'wb') { |o| o << i.read } }"
jgem install --local ./$g
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment