Project

requestor

0.0
Low commit activity in last 3 years
No release in over a year
Reads a gem (source code) from an HTTP location. Ideal for working on a gem in the development environment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1, >= 0.1.2
 Project Readme

Introducing the Requestor gem

require 'requestor'

code = Requestor.read('http://rorbuilder.info/ruby/') do |x|
  x.require 'helloworld'
end

eval code

HelloWorld.new
#=> hello world

The Requestor gem loads ruby source code from the web instead of from the local file system.

  • advantages: quicker than installing gems locally, the source is tamper-proof, no need to reinstall a gem since the latest gem is automatically downloaded
  • disadvantages: gems won't run without a web server, it's harder to maintain version control

Resources

update: 17-Feb-2011 @ 8:57pm The url can also point to a dynarex file containing links to ruby files. The schema for the dynarex file is 'files/file(name,url)'. The summary node must include ruby_files