countries_and_languages 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- countries_and_languages (0.1.5)
4
+ countries_and_languages (0.1.6)
5
5
  i18n_data
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module CountriesAndLanguages
2
- VERSION = Version = '0.1.5'
2
+ VERSION = Version = '0.1.6'
3
3
  end
@@ -56,9 +56,18 @@ module CountriesAndLanguages
56
56
  ['ß', 's'],
57
57
  ]
58
58
 
59
+ RUBY_18 = RUBY_VERSION < "1.9"
60
+
59
61
  def convert_umlaut_to_base(input)
60
62
  input = input.dup
61
- CONVERSIONS.each { |from, to| input.tr!(from, to) }
63
+ if RUBY_18
64
+ old = $KCODE
65
+ $KCODE='u'
66
+ CONVERSIONS.each { |from, to| input.gsub!(/[#{from}]/, to) }
67
+ $KCODE = old
68
+ else
69
+ CONVERSIONS.each { |from, to| input.tr!(from, to) }
70
+ end
62
71
  input
63
72
  end
64
73
  end
metadata CHANGED
@@ -1,38 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: countries_and_languages
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 6
10
+ version: 0.1.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Michael Grosser
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-06-22 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2012-06-22 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: i18n_data
16
- requirement: !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
23
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
30
+ version: "0"
22
31
  type: :runtime
32
+ requirement: *id001
23
33
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
34
  description:
31
35
  email: michael@grosser.it
32
36
  executables: []
37
+
33
38
  extensions: []
39
+
34
40
  extra_rdoc_files: []
35
- files:
41
+
42
+ files:
36
43
  - .travis.yml
37
44
  - Gemfile
38
45
  - Gemfile.lock
@@ -45,34 +52,37 @@ files:
45
52
  - spec/countries_and_languages_spec.rb
46
53
  - spec/spec_helper.rb
47
54
  homepage: http://github.com/grosser/countries_and_languages
48
- licenses:
55
+ licenses:
49
56
  - MIT
50
57
  post_install_message:
51
58
  rdoc_options: []
52
- require_paths:
59
+
60
+ require_paths:
53
61
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
55
63
  none: false
56
- requirements:
57
- - - ! '>='
58
- - !ruby/object:Gem::Version
59
- version: '0'
60
- segments:
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ hash: 3
68
+ segments:
61
69
  - 0
62
- hash: 4563603787577617020
63
- required_rubygems_version: !ruby/object:Gem::Requirement
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
72
  none: false
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- segments:
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
70
78
  - 0
71
- hash: 4563603787577617020
79
+ version: "0"
72
80
  requirements: []
81
+
73
82
  rubyforge_project:
74
83
  rubygems_version: 1.8.24
75
84
  signing_key:
76
85
  specification_version: 3
77
86
  summary: Countries and languages in I18n.locale for select_tag or output in 85 languages
78
87
  test_files: []
88
+