haml-magic-translations 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{haml-magic-translations}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kriss Kowalik"]
@@ -81,6 +81,7 @@ module Haml::MagicTranslations
81
81
  unless action && action != '!' || action == '!' && value[0] == '=' || value.empty?
82
82
  value, interpolation_arguments = prepare_i18n_interpolation(value)
83
83
  value = "\#{_('#{value.gsub(/'/, "\\\\'")}') % #{interpolation_arguments}\}\n"
84
+ @precompiled << value
84
85
  end
85
86
  end
86
87
  [tag_name, attributes, attributes_hashes, object_ref, nuke_outer_whitespace,
@@ -100,6 +101,7 @@ module Haml::MagicTranslations
100
101
  value, interpolation_arguments = prepare_i18n_interpolation(text,
101
102
  :escape_html => options[:escape_html])
102
103
  value = "_('#{value.gsub(/'/, "\\\\'")}') % #{interpolation_arguments}\n"
104
+ @precompiled << value
103
105
  push_script(value, :escape_html => false)
104
106
  else
105
107
  if contains_interpolation?(text)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kriss Kowalik