clutterbuck-erb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/clutterbuck/erb.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0a2d0116765eab4d5b2df750ed66472a5500386
4
- data.tar.gz: d60b680de7ba2cc63bb7649919b6c847e8f0c9b8
3
+ metadata.gz: 85a950cf769e007f5a197e0d540040692b4960e8
4
+ data.tar.gz: 6b06bab530cd5f3018197c88b910e1db64675d4e
5
5
  SHA512:
6
- metadata.gz: e701c643284c247cc8ce82237ed663ccd6de2a2d4d141e85ffd36f6b76cb960e5758253fbc8f07cfa98ef62f96fc50b90667433060cdf75b8815dcc65579fad6
7
- data.tar.gz: e398d7ced4c8ceb861c9e4ddc573234a434cd523c1789184876017bdde9d2829fd0a1cbe30dd59f0c046dd796246957e8183981abe976ba502d066ae9a674626
6
+ metadata.gz: 6bc20dc284d3aae6e25eaa5dc5733e18b0539306e27c19e0a34c73566a53062bf152626b98219c00ff9a5c084df26ffd12136114042c4591f9ac0c6ecf496b3f
7
+ data.tar.gz: 1ecf667f8b60c700707e5ba1e562c6f2c5c24308fbc901eb110b89282dbe4ac77f898ded5f385c5e793e09a72cf56097f2a8b1f7a78af9fe5705de50e1c96697
@@ -145,6 +145,8 @@ module Clutterbuck::ERB
145
145
  end
146
146
 
147
147
  def erbterpreter(view)
148
- ERB.new(view_content(view), 0, "%-")
148
+ file = view_content(view)
149
+
150
+ ERB.new(file, 0, "%-").tap { |erb| erb.filename = file }
149
151
  end
150
152
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutterbuck-erb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-11 00:00:00.000000000 Z
11
+ date: 2015-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack