pakyow-slim 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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/pakyow-slim.rb +2 -10
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29d38825b565c52dd0735eab6956ebbf73a33946
4
- data.tar.gz: eea716b321f0e726508fef322f5a3e4b00b88c9c
3
+ metadata.gz: 5c34b1d9956983cd57d21d21df5beb4c826dbd38
4
+ data.tar.gz: bd5b2b024242ad243b306e727be04cfdc072c121
5
5
  SHA512:
6
- metadata.gz: 0db88ca32afe2648f63231a0e8119271b8c3536e499816f56583638b33970d8bc687df6a2ef4f777c948f66cda0c85ad06b480e424e584596cf0d8725ad9ad15
7
- data.tar.gz: 5f758440c2d6e10a5ef6ef40bc2296459c26f05dcdd1a73a32ea40fb992bae4dcc9b2c6e6ecf99891bf9230fe9efe2e8bbfaa425966e33ae0ae05ddd8ea94df1
6
+ metadata.gz: b239467189046d4b65483ae486676229a7ffbcaf0f997021ed2b5d9e991777bade13ba3cd65c6a5e0a21923f4c95ac169319241900f0400dbec8100d9ffb4cfc
7
+ data.tar.gz: f5085f3584a5e9efb1fc3bc0d8fe41a36c489d25192460be8e92cae63d1d49f52da29bd4482f69b8080651cfae6e0a46a22ff0699a530034da033d2e0e1f0a1f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/pakyow-slim.rb CHANGED
@@ -16,14 +16,6 @@ module SetSlimOptions
16
16
  end
17
17
 
18
18
  Pakyow::App.processor :slim do |content|
19
- begin
20
- temp = Tempfile.new('foo')
21
- temp.write(content)
22
- temp.rewind
23
- processed_content = Slim::Template.new(temp.path).render
24
- ensure
25
- temp.close
26
- temp.unlink
27
- end
28
- processed_content
19
+ processed_content =
20
+ Slim::Template.new { @data = content }.render
29
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pakyow-slim
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
  - Dan McGuire