letterweight 0.1.2 → 0.1.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/README.rdoc +1 -1
- data/VERSION +1 -1
- data/letterweight.gemspec +1 -1
- data/lib/letterweight.rb +3 -3
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/letterweight.gemspec
CHANGED
data/lib/letterweight.rb
CHANGED
@@ -7,9 +7,9 @@ module Letterweight
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.width(letter)
|
10
|
-
return self::length(
|
10
|
+
return self::length(letter) if letter.length > 1
|
11
11
|
case letter
|
12
|
-
when ''
|
12
|
+
when '' then return 0.00
|
13
13
|
when 'a' then return 0.67
|
14
14
|
when 'b' then return 0.67
|
15
15
|
when 'c' then return 0.67
|
@@ -22,7 +22,7 @@ module Letterweight
|
|
22
22
|
when 'j' then return 0.67
|
23
23
|
when 'k' then return 0.67
|
24
24
|
when 'l' then return 0.31
|
25
|
-
when 'm' then return
|
25
|
+
when 'm' then return 1.00
|
26
26
|
when 'n' then return 0.67
|
27
27
|
when 'o' then return 0.67
|
28
28
|
when 'p' then return 0.67
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letterweight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Phillip Ridlen
|