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 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.1"
15
+ gem.version = "0.1.2"
16
16
 
17
17
  gem.add_runtime_dependency "activesupport"
18
18
  gem.add_runtime_dependency "tilt"
@@ -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 ||= [Dir.pwd]
19
+ @template_directories ||= default_template_directories
15
20
  end
16
21
  else
17
22
  self.template_directories = args
@@ -1,3 +1,3 @@
1
1
  module Curtain
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curtain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: