letterweight 0.1.3 → 0.1.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/letterweight.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{letterweight}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Phillip Ridlen"]
12
- s.date = %q{2011-02-22}
12
+ s.date = %q{2011-02-25}
13
13
  s.description = %q{Estimates the length of a string in em units. Useful to calculate the apparent length of a string when using a variable-width font.}
14
14
  s.email = %q{phillip@balcomagency.com}
15
15
  s.extra_rdoc_files = [
data/lib/letterweight.rb CHANGED
@@ -18,10 +18,10 @@ module Letterweight
18
18
  when 'f' then return 0.31
19
19
  when 'g' then return 0.67
20
20
  when 'h' then return 0.67
21
- when 'i' then return 0.31
21
+ when 'i' then return 0.26
22
22
  when 'j' then return 0.67
23
23
  when 'k' then return 0.67
24
- when 'l' then return 0.31
24
+ when 'l' then return 0.26
25
25
  when 'm' then return 1.00
26
26
  when 'n' then return 0.67
27
27
  when 'o' then return 0.67
@@ -62,7 +62,7 @@ module Letterweight
62
62
  when 'X' then return 0.80
63
63
  when 'Y' then return 0.80
64
64
  when 'Z' then return 0.80
65
- when ' ' then return 0.38
65
+ when ' ' then return 0.33
66
66
  when ',' then return 0.31
67
67
  when '.' then return 0.31
68
68
  when ';' then return 0.31
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phillip Ridlen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-22 00:00:00 -06:00
18
+ date: 2011-02-25 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency