utf8_enforcer_workaround 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  Utf8EnforcerWorkaround
2
2
  ======================
3
3
 
4
- Make utf8 enforcer tag to be applied only for non-standards-complying browsers.
4
+ Make utf8 enforcer tag to be applied only for non-standards-complying
5
+ browsers.
5
6
 
6
7
 
7
8
  Requirements
@@ -31,6 +32,14 @@ Add this line of code in your ApplicationController:
31
32
 
32
33
  utf8_enforcer_workaround
33
34
 
35
+ Alternatively you can write your own logic in your
36
+ ApplicationController to decide whether or not to include the utf8
37
+ enforcer tag. Here is an example showing the default logic:
38
+
39
+ before_filter do
40
+ @utf8_enforcer_tag_enabled = browser.ie?
41
+ end
42
+
34
43
 
35
44
  Contributing
36
45
  ------------
@@ -1,3 +1,3 @@
1
1
  module Utf8EnforcerWorkaround
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utf8_enforcer_workaround
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: 3002947666520516683
201
+ hash: -1432119400214180827
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements:
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  segments:
209
209
  - 0
210
- hash: 3002947666520516683
210
+ hash: -1432119400214180827
211
211
  requirements: []
212
212
  rubyforge_project: utf8_enforcer_workaround
213
213
  rubygems_version: 1.8.24