Browse files

Initial commit

  • Loading branch information...
0 parents commit 27e941e2c6d17a62b64f1df19cbafe483d7be586 @wycats committed Aug 16, 2010
Showing with 50 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 Gemfile
  3. +2 −0 Rakefile
  4. +24 −0 asdf.gemspec
  5. +4 −0 bin/asdf
  6. +11 −0 lib/asdf.rb
  7. +3 −0 lib/asdf/version.rb
2 .gitignore
@@ -0,0 +1,2 @@
+pkg/*
+*.gem
4 Gemfile
@@ -0,0 +1,4 @@
+source :gemcutter
+
+# Specify your gem's dependencies in asdf.gemspec
+gemspec
2 Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
24 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 bin/asdf
@@ -0,0 +1,4 @@
+#!/usr/bin/env ruby
+
+require "asdf"
+Asdf::Server.new.start
11 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 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.