From fb4f6f28eccd843d82ab6d2744fefdc4f78db0ad Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 23 Jun 2020 14:39:42 +0300 Subject: [PATCH] ipfsbin.rb: initial commit Resolves: #3 --- ruby/ipfsbin.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ruby/ipfsbin.rb diff --git a/ruby/ipfsbin.rb b/ruby/ipfsbin.rb new file mode 100644 index 0000000..4632e79 --- /dev/null +++ b/ruby/ipfsbin.rb @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +# Prompt for the whatever +print "Enter the IPFS hash/addr: " +# Get the input without \n +ipfsthing = gets.chomp +ipfsgateway = "https://ipfs.io/ipfs/" + +# Output the address +puts ipfsgateway + ipfsthing