Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gem-ify (Bundler stylez)

  • Loading branch information...
commit d75c9fd83d49ef7ecd139e99c567c764638edd18 1 parent 3a889fa
Mike Fulcher authored
Showing with 29 additions and 0 deletions.
  1. +4 −0 Gemfile
  2. +2 −0  Rakefile
  3. +23 −0 rack-static_fallback.gemspec
View
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in dm-polymorphism.gemspec
+gemspec
View
2  Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
View
23 rack-static_fallback.gemspec
@@ -0,0 +1,23 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = "rack-static_fallback"
+ s.version = '1.0.0'
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Evgeniy Dolzhenko"]
+ s.email = ["dolzenko@gmail.com"]
+ s.homepage = "http://github.com/dolzenko/rack-static_fallback"
+ s.summary = "Bounces or redirects requests to missing static files"
+ s.description = "Bounces or redirects requests to missing static files. Could be useful when you want to run the server with production database locally and have user uploaded content fetched transparently from production site."
+
+ s.rubyforge_project = "rack-static_fallback"
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ # Runtime
+ s.add_runtime_dependency 'rack'
+end
Please sign in to comment.
Something went wrong with that request. Please try again.