lastobelus-merb_global 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rake/rdoctask'
4
4
 
5
5
  PLUGIN = "merb_global"
6
6
  NAME = "merb_global"
7
- GEM_VERSION = "0.0.13"
7
+ GEM_VERSION = "0.0.14"
8
8
  AUTHORS = ["Alex Coles", "Maciej Piechotka"]
9
9
  EMAIL = "merb_global@googlegroups.com"
10
10
  HOMEPAGE = "http://trac.ikonoklastik.com/merb_global/"
@@ -23,8 +23,12 @@ module Haml
23
23
  module Localize
24
24
  include ::Haml::Filters::Base
25
25
  extend Merb::Global
26
+ def compile(precompiler, text)
27
+ super(precompiler, _(text.strip).gsub('%{', '#{'))
28
+ end
29
+
26
30
  def render(text)
27
- _(text.strip)
31
+ text
28
32
  end
29
33
  end
30
34
  end
@@ -47,15 +47,6 @@ module Haml
47
47
  resolve_lazy_requires
48
48
  filter = self
49
49
  precompiler.instance_eval do
50
- if contains_interpolation?(text)
51
- return if options[:suppress_eval]
52
-
53
- push_script(<<RUBY, false)
54
- find_and_preserve(#{filter.inspect}.render_with_options(#{unescape_interpolation(text)}, _hamlout.options))
55
- RUBY
56
- return
57
- end
58
-
59
50
  push_plain(text.strip)
60
51
  end
61
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lastobelus-merb_global
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Coles