mack-localization 0.8.2 → 0.8.3
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.
- data/lib/mack-localization.rb +54 -53
- metadata +3 -3
data/lib/mack-localization.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'gems')
|
2
2
|
|
3
3
|
require 'mack-caching'
|
4
|
+
require 'active_support'
|
4
5
|
def undef_const(klass, k)
|
5
6
|
klass.remove_const(k) if klass.const_defined?(k)
|
6
7
|
end
|
@@ -9,59 +10,59 @@ end
|
|
9
10
|
# the context of ActiveSupport. So, if activesupport is in use
|
10
11
|
# then requiring unicodechars gem will result in a bunch of
|
11
12
|
# const redefined warning messages.
|
12
|
-
if Object.const_defined?("ActiveSupport")
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
end
|
13
|
+
# if Object.const_defined?("ActiveSupport")
|
14
|
+
# module ActiveSupport::Multibyte # :nodoc:
|
15
|
+
# class << self; public :remove_const; end
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# mod = ActiveSupport::Multibyte
|
19
|
+
# undef_const(mod, 'DEFAULT_NORMALIZATION_FORM')
|
20
|
+
# undef_const(mod, 'NORMALIZATIONS_FORMS')
|
21
|
+
# undef_const(mod, 'UNICODE_VERSION')
|
22
|
+
#
|
23
|
+
# module ActiveSupport::Multibyte # :nodoc:
|
24
|
+
# class << self; private :remove_const; end
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# module ActiveSupport::Multibyte::Handlers # :nodoc:
|
28
|
+
# class UTF8Handler # :nodoc:
|
29
|
+
# class << self
|
30
|
+
# public :remove_const
|
31
|
+
# end
|
32
|
+
# end
|
33
|
+
# end
|
34
|
+
#
|
35
|
+
# mod = ActiveSupport::Multibyte::Handlers::UTF8Handler
|
36
|
+
# undef_const(mod, "HANGUL_SBASE")
|
37
|
+
# undef_const(mod, "HANGUL_LBASE")
|
38
|
+
# undef_const(mod, "HANGUL_VBASE")
|
39
|
+
# undef_const(mod, "HANGUL_TBASE")
|
40
|
+
# undef_const(mod, "HANGUL_LCOUNT")
|
41
|
+
# undef_const(mod, "HANGUL_VCOUNT")
|
42
|
+
# undef_const(mod, "HANGUL_TCOUNT")
|
43
|
+
# undef_const(mod, "HANGUL_NCOUNT")
|
44
|
+
# undef_const(mod, "HANGUL_SCOUNT")
|
45
|
+
# undef_const(mod, "HANGUL_SLAST")
|
46
|
+
# undef_const(mod, "HANGUL_JAMO_FIRST")
|
47
|
+
# undef_const(mod, "HANGUL_JAMO_LAST")
|
48
|
+
# undef_const(mod, "UNICODE_WHITESPACE")
|
49
|
+
# undef_const(mod, "UNICODE_LEADERS_AND_TRAILERS")
|
50
|
+
# undef_const(mod, "UTF8_PAT")
|
51
|
+
# undef_const(mod, "UNICODE_TRAILERS_PAT")
|
52
|
+
# undef_const(mod, "UNICODE_LEADERS_PAT")
|
53
|
+
#
|
54
|
+
# module ActiveSupport::Multibyte::Handlers # :nodoc:
|
55
|
+
# class UTF8Handler # :nodoc:
|
56
|
+
# class << self
|
57
|
+
#
|
58
|
+
# remove_const('UCD') if const_defined?('UCD')
|
59
|
+
#
|
60
|
+
# private :remove_const
|
61
|
+
# end
|
62
|
+
# end
|
63
|
+
# end
|
64
|
+
#
|
65
|
+
# end
|
65
66
|
|
66
67
|
require 'unicodechars'
|
67
68
|
require 'yaml'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mack-localization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darsono Sutedja
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-18 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 0.8.
|
23
|
+
version: 0.8.3
|
24
24
|
version:
|
25
25
|
description: Localization support for Mack Framework
|
26
26
|
email: Darsono.Sutedja@gmail.com
|