Permalink
Browse files

Added rails/init.rb so gem will work as a plugin.

  • Loading branch information...
1 parent 168eed2 commit 6163e159ca7771e0d2573e28af0a53f41ec7d076 @mholling committed Jun 10, 2009
Showing with 5 additions and 2 deletions.
  1. +1 −0 Rakefile
  2. +1 −0 rails/init.rb
  3. +3 −2 subdomain_routes.gemspec
View
@@ -1,5 +1,6 @@
require 'rubygems'
require 'rake'
+require 'yaml'
begin
require 'jeweler'
View
@@ -0,0 +1 @@
+require 'subdomain_routes'
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Matthew Hollingworth"]
- s.date = %q{2009-06-02}
- s.description = %q{SubdomainRoutes add subdomain conditions to the Rails routing system. Routes may be restricted to one or many specified subdomains. An URL will be recognised only if the host subdomain matches the subdomain specified in the route. Route generation is also enhanced, so that the subdomain of a generated URL (or path) will be changed if the requested route has a different subdomain to that of the current request. Dynamic subdomain routes can also be defined.}
+ s.date = %q{2009-06-10}
+ s.description = %q{SubdomainRoutes add subdomain conditions to the Rails routing system. Routes may be restricted to one or many specified subdomains. An URL will be recognised only if the host subdomain matches the subdomain specified in the route. Route generation is also enhanced, so that the subdomain of a generated URL (or path) will be changed if the requested route has a different subdomain to that of the current request. Model-based subdomain routes can also be defined.}
s.email = %q{mdholling@gmail.com}
s.extra_rdoc_files = [
"LICENSE",
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
"lib/subdomain_routes/split_host.rb",
"lib/subdomain_routes/url_writer.rb",
"lib/subdomain_routes/validations.rb",
+ "rails/init.rb",
"spec/extraction_spec.rb",
"spec/recognition_spec.rb",
"spec/resources_spec.rb",

0 comments on commit 6163e15

Please sign in to comment.