funnel 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/funnel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'funnel'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.date = '2009-12-30'
5
5
  s.summary = 'A realtime resource-centric application framework'
6
6
  s.email = 'dan.simpson@gmail.com'
@@ -2,12 +2,15 @@ require 'fileutils'
2
2
 
3
3
  module Funnel
4
4
  module Generators
5
- module Application
5
+ class Application
6
6
 
7
7
  def generate destination, options
8
- FileUtils.cp_r(File.expand_path('../../../templates/application', __FILE__), destination, options)
8
+ FileUtils.cp_r(template_dir, destination, options)
9
+ end
10
+
11
+ def template_dir
12
+ File.expand_path('../../../../templates/application', __FILE__)
9
13
  end
10
-
11
14
  end
12
15
  end
13
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funnel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Simpson