mack-localization 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mack-localization.rb +54 -53
  2. metadata +3 -3
@@ -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
- module ActiveSupport::Multibyte # :nodoc:
14
- class << self; public :remove_const; end
15
- end
16
-
17
- mod = ActiveSupport::Multibyte
18
- undef_const(mod, 'DEFAULT_NORMALIZATION_FORM')
19
- undef_const(mod, 'NORMALIZATIONS_FORMS')
20
- undef_const(mod, 'UNICODE_VERSION')
21
-
22
- module ActiveSupport::Multibyte # :nodoc:
23
- class << self; private :remove_const; end
24
- end
25
-
26
- module ActiveSupport::Multibyte::Handlers # :nodoc:
27
- class UTF8Handler # :nodoc:
28
- class << self
29
- public :remove_const
30
- end
31
- end
32
- end
33
-
34
- mod = ActiveSupport::Multibyte::Handlers::UTF8Handler
35
- undef_const(mod, "HANGUL_SBASE")
36
- undef_const(mod, "HANGUL_LBASE")
37
- undef_const(mod, "HANGUL_VBASE")
38
- undef_const(mod, "HANGUL_TBASE")
39
- undef_const(mod, "HANGUL_LCOUNT")
40
- undef_const(mod, "HANGUL_VCOUNT")
41
- undef_const(mod, "HANGUL_TCOUNT")
42
- undef_const(mod, "HANGUL_NCOUNT")
43
- undef_const(mod, "HANGUL_SCOUNT")
44
- undef_const(mod, "HANGUL_SLAST")
45
- undef_const(mod, "HANGUL_JAMO_FIRST")
46
- undef_const(mod, "HANGUL_JAMO_LAST")
47
- undef_const(mod, "UNICODE_WHITESPACE")
48
- undef_const(mod, "UNICODE_LEADERS_AND_TRAILERS")
49
- undef_const(mod, "UTF8_PAT")
50
- undef_const(mod, "UNICODE_TRAILERS_PAT")
51
- undef_const(mod, "UNICODE_LEADERS_PAT")
52
-
53
- module ActiveSupport::Multibyte::Handlers # :nodoc:
54
- class UTF8Handler # :nodoc:
55
- class << self
56
-
57
- remove_const('UCD') if const_defined?('UCD')
58
-
59
- private :remove_const
60
- end
61
- end
62
- end
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.2
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: 2008-11-30 00:00:00 -05:00
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.2
23
+ version: 0.8.3
24
24
  version:
25
25
  description: Localization support for Mack Framework
26
26
  email: Darsono.Sutedja@gmail.com