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 CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -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.1"
8
+ s.version = "0.2.2"
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,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.blank?
152
+ value = value[1..-2] unless value.to_s == ''
155
153
  args = "[#{args.join(', ')}]"
156
154
  [value, args]
157
155
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kriss Kowalik