Sha256: 41cdaf96a4020c58a43bc444067304961b673a179fb68f14dc4b0985b8bde1a1
Contents?: true
Size: 214 Bytes
Versions: 5
Compression:
Stored size: 214 Bytes
Contents
require "sinatra" feed_file = ARGV[0] || "sample.xml" raise "Usage: script/server <path/to/xml/file>" unless File.exist?(feed_file) puts "Hosting '#{feed_file}' on port 4567" get "/" do send_file feed_file end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
feed2gram-1.3.0 | example/server.rb |
feed2gram-1.2.4 | example/server.rb |
feed2gram-1.2.2 | example/server.rb |
feed2gram-1.2.1 | example/server.rb |
feed2gram-1.2.0 | example/server.rb |