haml-magic-translations 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/haml-magic-translations.gemspec +1 -1
- data/lib/haml/magic_translations.rb +1 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -81,7 +81,6 @@ 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
|
85
84
|
end
|
86
85
|
end
|
87
86
|
[tag_name, attributes, attributes_hashes, object_ref, nuke_outer_whitespace,
|
@@ -101,7 +100,6 @@ module Haml::MagicTranslations
|
|
101
100
|
value, interpolation_arguments = prepare_i18n_interpolation(text,
|
102
101
|
:escape_html => options[:escape_html])
|
103
102
|
value = "_('#{value.gsub(/'/, "\\\\'")}') % #{interpolation_arguments}\n"
|
104
|
-
@precompiled << value
|
105
103
|
push_script(value, :escape_html => false)
|
106
104
|
else
|
107
105
|
if contains_interpolation?(text)
|
@@ -151,7 +149,7 @@ module Haml::MagicTranslations
|
|
151
149
|
end
|
152
150
|
end
|
153
151
|
value = res+rest.gsub(/\\(.)/, '\1').chomp
|
154
|
-
value = value[1..-2] unless value.
|
152
|
+
value = value[1..-2] unless value.to_s == ''
|
155
153
|
args = "[#{args.join(', ')}]"
|
156
154
|
[value, args]
|
157
155
|
end
|