Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
wycats committed Aug 17, 2010
0 parents commit 27e941e
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
pkg/*
*.gem
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source :gemcutter

# Specify your gem's dependencies in asdf.gemspec
gemspec
2 changes: 2 additions & 0 deletions Rakefile
@@ -0,0 +1,2 @@
require 'bundler'
Bundler::GemHelper.install_tasks
24 changes: 24 additions & 0 deletions asdf.gemspec
@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'asdf/version'

Gem::Specification.new do |s|
s.name = "asdf"
s.version = Asdf::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Yehuda Katz"]
s.email = ["wycats@gmail.com"]
s.homepage = "http://github.com/wycats/asdf"
s.summary = "Make the current directory available on port 9292"
s.description = "Use Rack::Directory to rackup the current directory on port 9292 for availability in a browser"

s.required_rubygems_version = ">= 1.3.6"
s.rubyforge_project = "asdf"

s.add_runtime_dependency "rack", "~> 1.2.1"
s.add_development_dependency "bundler", ">= 1.0.0.rc.5"

s.files = `git ls-files`.split("\n")
s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
s.require_path = 'lib'
end
4 changes: 4 additions & 0 deletions bin/asdf
@@ -0,0 +1,4 @@
#!/usr/bin/env ruby

require "asdf"
Asdf::Server.new.start
11 changes: 11 additions & 0 deletions lib/asdf.rb
@@ -0,0 +1,11 @@
require "rack"
require "asdf/version"

module Asdf
class Server < ::Rack::Server
def app
Rack::Directory.new(Dir.pwd)
end
end
end

3 changes: 3 additions & 0 deletions lib/asdf/version.rb
@@ -0,0 +1,3 @@
module Asdf
VERSION = "0.5.0"
end

0 comments on commit 27e941e

Please sign in to comment.