air18n 0.4.13 → 0.4.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.
@@ -48,7 +48,7 @@ module Air18n
48
48
  end
49
49
 
50
50
  def reload_translations(locales)
51
- if defined?(STATSD)
51
+ if defined?(STATSD)
52
52
  STATSD.increment("Air18n.backend.reload_translations")
53
53
  end
54
54
  # We don't want to load translations of unused phrases, so we exclude
@@ -152,7 +152,7 @@ module Air18n
152
152
  end
153
153
 
154
154
  def self.is_rich?(text)
155
- text.include?('<p>')
155
+ text.include?('<p')
156
156
  end
157
157
 
158
158
  def is_rich_text?
@@ -1,3 +1,3 @@
1
1
  module Air18n
2
- VERSION = "0.4.13"
2
+ VERSION = "0.4.14"
3
3
  end
@@ -88,6 +88,10 @@ describe Air18n::PhraseTranslation do
88
88
  it 'should not detect non-variables' do
89
89
  Air18n::PhraseTranslation.detect_variables('I am 45% sorry .for that.').
90
90
  should be_empty
91
+ Air18n::PhraseTranslation.detect_variables('a 6-12% service fee').
92
+ should be_empty
93
+ Air18n::PhraseTranslation.detect_variables('servicegebyr på 6-12%. Det servicegeby').
94
+ should be_empty
91
95
  end
92
96
 
93
97
  it 'should detect lantern variables' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: air18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.4.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2013-06-19 00:00:00.000000000 Z
16
+ date: 2013-06-24 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: i18n
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  requirements: []
223
223
  rubyforge_project:
224
- rubygems_version: 1.8.23
224
+ rubygems_version: 1.8.24
225
225
  signing_key:
226
226
  specification_version: 3
227
227
  summary: Dynamic I18n backend