Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pushing gemspec since I am not generating it.

  • Loading branch information...
commit 3be25281049a876aee19b26482f71236621323ac 1 parent 3ceb5d6
Dan authored
View
3  .gitignore
@@ -0,0 +1,3 @@
+*.gem
+test/*
+
View
3  README.markdown
@@ -10,7 +10,6 @@
##Project Hierarchy
-/project
/config
boot.rb
routes.rb
@@ -48,7 +47,7 @@ echo_handler.rb
set up the route in config/routes.rb
- map.default :handler => Funnel::Servers::DummyServer
+ map.connect "/echo" => EchoHandler
##Dependencies
- eventmachine http://github.com/eventmachine/eventmachine
View
3  funnel.gemspec
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'funnel'
- s.version = '0.1.0'
+ s.version = '0.1.1'
s.date = '2009-12-30'
s.summary = 'A realtime resource-centric application framework'
s.email = 'dan.simpson@gmail.com'
@@ -28,6 +28,7 @@ spec = Gem::Specification.new do |s|
'lib/funnel/routing/router.rb',
'lib/funnel/server.rb',
'lib/funnel/servers/dummy_server.rb',
+ 'lib/funnel/generators/application.rb',
'templates/application/config/boot.rb',
'templates/application/config/config.rb',
'templates/application/config/routes.rb',
View
9 lib/funnel/generators/application.rb
@@ -2,12 +2,15 @@
module Funnel
module Generators
- module Application
+ class Application
def generate destination, options
- FileUtils.cp_r(File.expand_path('../../../templates/application', __FILE__), destination, options)
+ FileUtils.cp_r(template_dir, destination, options)
+ end
+
+ def template_dir
+ File.expand_path('../../../templates/application', __FILE__)
end
-
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.