gettext_i18n_rails 0.2.7 → 0.2.8

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.7
1
+ 0.2.8
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gettext_i18n_rails}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Grosser"]
@@ -44,7 +44,11 @@ module RubyGettextExtractor
44
44
  end
45
45
 
46
46
  def run(content)
47
- self.parse(content)
47
+ # ruby parser has an ugly bug which causes that several \000's take
48
+ # ages to parse. This avoids this probelm by stripping them away (they probably wont appear in keys anyway)
49
+ # See bug report: http://rubyforge.org/tracker/index.php?func=detail&aid=26898&group_id=439&atid=1778
50
+ safe_content = content.gsub(/\\\d\d\d/, '')
51
+ self.parse(safe_content)
48
52
  return @results
49
53
  end
50
54
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 7
9
- version: 0.2.7
8
+ - 8
9
+ version: 0.2.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Grosser