Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Version bump to 0.5.4

  • Loading branch information...
commit b27fcc1743c585020f17d991ca5ba9ac006297e7 1 parent 0508904
@mbleigh mbleigh authored
Showing with 32 additions and 3 deletions.
  1. +28 −0 Rakefile
  2. +3 −2 VERSION.yml
  3. +1 −1  lib/subdomain_fu/routing_extensions.rb
View
28 Rakefile
@@ -22,7 +22,35 @@ begin
gemspec.description = "SubdomainFu is a Rails plugin to provide all of the basic functionality necessary to handle multiple subdomain applications (such as Basecamp-esque subdomain accounts and more)."
gemspec.authors = ["Michael Bleigh"]
end
+ Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
+
+# These are new tasks
+begin
+ require 'rake/contrib/sshpublisher'
+ namespace :rubyforge do
+
+ desc "Release gem and RDoc documentation to RubyForge"
+ task :release => ["rubyforge:release:gem", "rubyforge:release:docs"]
+
+ namespace :release do
+ desc "Publish RDoc to RubyForge."
+ task :docs => [:rdoc] do
+ config = YAML.load(
+ File.read(File.expand_path('~/.rubyforge/user-config.yml'))
+ )
+
+ host = "#{config['username']}@rubyforge.org"
+ remote_dir = "/var/www/gforge-projects/the-perfect-gem/"
+ local_dir = 'rdoc'
+
+ Rake::SshDirPublisher.new(host, remote_dir, local_dir).upload
+ end
+ end
+ end
+rescue LoadError
+ puts "Rake SshDirPublisher is unavailable or your rubyforge environment is not configured."
+end
View
5 VERSION.yml
@@ -1,4 +1,5 @@
---
-:minor: 5
-:patch: 3
:major: 0
+:build:
+:minor: 5
+:patch: 4
View
2  lib/subdomain_fu/routing_extensions.rb
@@ -24,7 +24,7 @@ def self.included(base)
def extract_request_environment_with_subdomain(request)
env = extract_request_environment_without_subdomain(request)
- env.merge(:host => request.host, :domain => request.domain, :subdomain => SubdomainFu.subdomain_from(request.host))
+ env.merge(:host => request.host, :domain => request.domain, :subdomain => SubdomainFu.current_subdomain(request))
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.