tap-gen 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History +6 -0
  2. data/lib/tap/generator/base.rb +1 -1
  3. metadata +2 -2
data/History CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.3.1 / 2009-12-09
2
+
3
+ * updated Base to determine template directory from
4
+ app.env when possible (fixes missing templates for
5
+ installed gems)
6
+
1
7
  == 0.3.0 / 2009-12-05
2
8
 
3
9
  Updates for Tap-0.19.0
@@ -98,7 +98,7 @@ module Tap
98
98
  super
99
99
  @prompt_in = $stdin
100
100
  @prompt_out = $stdout
101
- @template_dir = File.expand_path("templates/#{self.class.to_s.underscore}")
101
+ @template_dir = app.env.path(:templates, self.class.to_s.underscore) {|dir| File.directory?(dir) } || File.expand_path("templates/#{self.class.to_s.underscore}")
102
102
  end
103
103
 
104
104
  def set(mod)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tap-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Chiang
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-05 00:00:00 -07:00
12
+ date: 2009-12-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency