curtain 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/curtain.gemspec +1 -1
- data/lib/curtain/templating.rb +6 -1
- data/lib/curtain/version.rb +1 -1
- metadata +1 -1
data/curtain.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
13
13
|
gem.name = "curtain"
|
14
14
|
gem.require_paths = ["lib"]
|
15
|
-
gem.version = "0.1.
|
15
|
+
gem.version = "0.1.2"
|
16
16
|
|
17
17
|
gem.add_runtime_dependency "activesupport"
|
18
18
|
gem.add_runtime_dependency "tilt"
|
data/lib/curtain/templating.rb
CHANGED
@@ -4,6 +4,11 @@ module Curtain
|
|
4
4
|
|
5
5
|
module Templating
|
6
6
|
module ClassMethods
|
7
|
+
|
8
|
+
def default_template_directories
|
9
|
+
[Dir.pwd]
|
10
|
+
end
|
11
|
+
|
7
12
|
def template_directories(*args)
|
8
13
|
if args.empty?
|
9
14
|
if defined? @template_directories
|
@@ -11,7 +16,7 @@ module Curtain
|
|
11
16
|
elsif superclass.respond_to?(:template_directories)
|
12
17
|
superclass.template_directories
|
13
18
|
else
|
14
|
-
@template_directories ||=
|
19
|
+
@template_directories ||= default_template_directories
|
15
20
|
end
|
16
21
|
else
|
17
22
|
self.template_directories = args
|
data/lib/curtain/version.rb
CHANGED