umlautify 0.0.2 → 0.0.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/umlautify/version.rb +1 -1
- data/lib/umlautify.rb +6 -0
- metadata +3 -3
data/lib/umlautify/version.rb
CHANGED
data/lib/umlautify.rb
CHANGED
@@ -2,6 +2,12 @@ require "umlautify/version"
|
|
2
2
|
|
3
3
|
module Umlautify
|
4
4
|
class << self
|
5
|
+
# Add umlauts to a string!
|
6
|
+
#
|
7
|
+
# Example:
|
8
|
+
# >> Umlautify.do("This string could use umlauts.")
|
9
|
+
# => "Thïs strïng cöüld üsë ümläüts."
|
10
|
+
|
5
11
|
def do(string)
|
6
12
|
umlaut_map = { "A" => "\u00C4", "E" => "\u00CB", "I" => "\u00CF",
|
7
13
|
"O" => "\u00D6", "U" => "\u00FC", "Y" => "\u0178",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: umlautify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
segments:
|
75
75
|
- 0
|
76
|
-
hash: -
|
76
|
+
hash: -982975482925832764
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash: -
|
85
|
+
hash: -982975482925832764
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
88
|
rubygems_version: 1.8.24
|