blundersaur 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -1,60 +1,71 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blundersaur}
8
- s.version = "0.0.0"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeremy Stephens"]
12
- s.date = %q{2010-02-03}
12
+ s.date = %q{2011-05-20}
13
13
  s.description = %q{A library of Ruby methods to simulate data entry mistakes}
14
- s.email = %q{viking415@gmail.com}
14
+ s.email = %q{viking@pillageandplunder.net}
15
15
  s.extra_rdoc_files = [
16
- "LICENSE",
17
- "README.rdoc"
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "lib/blundersaur.rb",
26
- "lib/blundersaur/extensions.rb",
27
- "lib/blundersaur/extensions/string.rb",
28
- "lib/blundersaur/keyboards.rb",
29
- "lib/blundersaur/keyboards/qwerty.rb",
30
- "test.watchr",
31
- "test/blundersaur/extensions/test_string.rb",
32
- "test/blundersaur/keyboards/test_qwerty.rb",
33
- "test/blundersaur/test_extensions.rb",
34
- "test/helper.rb",
35
- "test/test_blundersaur.rb"
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "blundersaur.gemspec",
28
+ "lib/blundersaur.rb",
29
+ "lib/blundersaur/extensions.rb",
30
+ "lib/blundersaur/extensions/string.rb",
31
+ "lib/blundersaur/keyboards.rb",
32
+ "lib/blundersaur/keyboards/qwerty.rb",
33
+ "test.watchr",
34
+ "test/blundersaur/extensions/test_string.rb",
35
+ "test/blundersaur/keyboards/test_qwerty.rb",
36
+ "test/blundersaur/test_extensions.rb",
37
+ "test/helper.rb",
38
+ "test/test_blundersaur.rb"
36
39
  ]
37
- s.homepage = %q{http://github.com/viking/blundersaur}
38
- s.rdoc_options = ["--charset=UTF-8"]
40
+ s.homepage = %q{https://github.com/viking/blundersaur}
41
+ s.licenses = ["MIT"]
39
42
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.3.5}
43
+ s.rubygems_version = %q{1.7.2}
41
44
  s.summary = %q{A library of Ruby methods to simulate data entry mistakes}
42
45
  s.test_files = [
46
+ "test/blundersaur/extensions/test_string.rb",
47
+ "test/blundersaur/keyboards/test_qwerty.rb",
43
48
  "test/blundersaur/test_extensions.rb",
44
- "test/blundersaur/extensions/test_string.rb",
45
- "test/blundersaur/keyboards/test_qwerty.rb",
46
- "test/helper.rb",
47
- "test/test_blundersaur.rb"
49
+ "test/helper.rb",
50
+ "test/test_blundersaur.rb"
48
51
  ]
49
52
 
50
53
  if s.respond_to? :specification_version then
51
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
52
54
  s.specification_version = 3
53
55
 
54
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
56
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
57
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
59
+ s.add_development_dependency(%q<rcov>, [">= 0"])
55
60
  else
61
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
63
+ s.add_dependency(%q<rcov>, [">= 0"])
56
64
  end
57
65
  else
66
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
+ s.add_dependency(%q<rcov>, [">= 0"])
58
69
  end
59
70
  end
60
71
 
@@ -2,6 +2,7 @@ module Blundersaur
2
2
  module Keyboards
3
3
  module Qwerty
4
4
  ROWS = [
5
+ nil, "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", nil,
5
6
  nil, "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", nil,
6
7
  nil, "a", "s", "d", "f", "g", "h", "j", "k", "l", nil,
7
8
  nil, "z", "x", "c", "v", "b", "n", "m", nil
@@ -20,6 +20,12 @@ module Blundersaur
20
20
  end
21
21
  end
22
22
 
23
+ def test_fat_finger_numbers
24
+ result = "12345".fat_finger
25
+ assert_not_equal result, "12345"
26
+ assert_match /^[2]?1[2]?[13]?2[13]?[24]?3[24]?[35]?4[35]?[46]?5[46]?$/, result
27
+ end
28
+
23
29
  def test_stutter
24
30
  result = "hello".stutter
25
31
  assert_not_equal result, "hello"
@@ -5,6 +5,16 @@ module Blundersaur
5
5
  class TestQwerty < Test::Unit::TestCase
6
6
  def test_keys_near
7
7
  expected = {
8
+ "1" => ["2"],
9
+ "2" => ["1", "3"],
10
+ "3" => ["2", "4"],
11
+ "4" => ["3", "5"],
12
+ "5" => ["4", "6"],
13
+ "6" => ["5", "7"],
14
+ "7" => ["6", "8"],
15
+ "8" => ["7", "9"],
16
+ "9" => ["8", "0"],
17
+ "0" => ["9"],
8
18
  "q" => ["w"],
9
19
  "w" => ["q", "e"],
10
20
  "e" => ["w", "r"],
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blundersaur
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 1
9
- version: 0.0.1
4
+ prerelease:
5
+ version: 0.0.2
10
6
  platform: ruby
11
7
  authors:
12
8
  - Jeremy Stephens
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-02-16 00:00:00 -06:00
18
- default_executable:
13
+ date: 2011-05-20 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: bundler
@@ -24,10 +19,6 @@ dependencies:
24
19
  requirements:
25
20
  - - ~>
26
21
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 0
31
22
  version: 1.0.0
32
23
  type: :development
33
24
  prerelease: false
@@ -39,10 +30,6 @@ dependencies:
39
30
  requirements:
40
31
  - - ~>
41
32
  - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 5
45
- - 2
46
33
  version: 1.5.2
47
34
  type: :development
48
35
  prerelease: false
@@ -54,8 +41,6 @@ dependencies:
54
41
  requirements:
55
42
  - - ">="
56
43
  - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
44
  version: "0"
60
45
  type: :development
61
46
  prerelease: false
@@ -89,7 +74,6 @@ files:
89
74
  - test/blundersaur/test_extensions.rb
90
75
  - test/helper.rb
91
76
  - test/test_blundersaur.rb
92
- has_rdoc: true
93
77
  homepage: https://github.com/viking/blundersaur
94
78
  licenses:
95
79
  - MIT
@@ -103,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
87
  requirements:
104
88
  - - ">="
105
89
  - !ruby/object:Gem::Version
106
- hash: 326574642416581493
90
+ hash: 3568736291770007440
107
91
  segments:
108
92
  - 0
109
93
  version: "0"
@@ -112,13 +96,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
96
  requirements:
113
97
  - - ">="
114
98
  - !ruby/object:Gem::Version
115
- segments:
116
- - 0
117
99
  version: "0"
118
100
  requirements: []
119
101
 
120
102
  rubyforge_project:
121
- rubygems_version: 1.3.7
103
+ rubygems_version: 1.7.2
122
104
  signing_key:
123
105
  specification_version: 3
124
106
  summary: A library of Ruby methods to simulate data entry mistakes