template-inheritance 0.1.3 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,8 +22,8 @@ module TemplateInheritance
22
22
  end
23
23
 
24
24
  class TemplateNotFound < StandardError
25
- def initialize(message = "Template not found")
26
- super(message)
25
+ def initialize(relative_path)
26
+ super("Template #{relative_path} not found in #{Template.paths.inspect}")
27
27
  end
28
28
  end
29
29
 
@@ -103,7 +103,7 @@ module TemplateInheritance
103
103
  template = TemplateInheritance::Template.new(full_path, self) # self is scope
104
104
  self.template = original_template
105
105
  return template.render(context)
106
- rescue Exceptions::TemplateNotFound # FIXME: this doesn't work
106
+ rescue TemplateInheritance::TemplateNotFound.new(path)
107
107
  raise SubtemplateNotFound, "Template #{path} doesn't exist in #{full_path}"
108
108
  end
109
109
 
@@ -5,7 +5,7 @@ require "base64"
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "template-inheritance"
8
- s.version = "0.1.3"
8
+ s.version = "0.2"
9
9
  s.authors = ["Jakub Šťastný aka Botanicus"]
10
10
  s.homepage = "http://github.com/botanicus/template-inheritance"
11
11
  s.summary = ""
metadata CHANGED
@@ -1,19 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: template-inheritance
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
4
+ prerelease:
5
+ version: "0.2"
10
6
  platform: ruby
11
7
  authors:
12
8
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain:
16
- date: 2011-02-17 00:00:00 +00:00
12
+ date: 2011-03-17 00:00:00 +00:00
17
13
  default_executable:
18
14
  dependencies:
19
15
  - !ruby/object:Gem::Dependency
@@ -24,8 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
23
  version: "0"
30
24
  type: :runtime
31
25
  version_requirements: *id001
@@ -37,8 +31,6 @@ dependencies:
37
31
  requirements:
38
32
  - - ">="
39
33
  - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
34
  version: "0"
43
35
  type: :runtime
44
36
  version_requirements: *id002
@@ -113,22 +105,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
105
  requirements:
114
106
  - - ~>
115
107
  - !ruby/object:Gem::Version
116
- segments:
117
- - 1
118
- - 9
119
108
  version: "1.9"
120
109
  required_rubygems_version: !ruby/object:Gem::Requirement
121
110
  none: false
122
111
  requirements:
123
112
  - - ">="
124
113
  - !ruby/object:Gem::Version
125
- segments:
126
- - 0
127
114
  version: "0"
128
115
  requirements: []
129
116
 
130
117
  rubyforge_project: template-inheritance
131
- rubygems_version: 1.3.7
118
+ rubygems_version: 1.5.3
132
119
  signing_key:
133
120
  specification_version: 3
134
121
  summary: ""