fuzzy 9000.0.1 → 9000.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +6 -4
- data/lib/fuzzy.rb +1 -1
- data/lib/fuzzy/version.rb +1 -1
- data/spec/fuzzy_spec.rb +2 -2
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
Tired of bugs because of typos?
|
2
|
-
|
3
|
-
Let fuzzy come to the rescue
|
4
|
-
|
5
1
|
METHOD MISSING?
|
6
2
|
---------------
|
7
3
|
|
8
4
|
NOPE!
|
9
5
|
=====
|
10
6
|
|
7
|
+
Tired of bugs because of typos?
|
8
|
+
|
9
|
+
Let fuzzy come to the rescue
|
10
|
+
|
11
11
|
```ruby
|
12
12
|
class Account
|
13
|
+
include Fuzzy
|
14
|
+
|
13
15
|
def pay! other_account, amount
|
14
16
|
other_account.balance += amount
|
15
17
|
balance -= amount
|
data/lib/fuzzy.rb
CHANGED
data/lib/fuzzy/version.rb
CHANGED
data/spec/fuzzy_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe "Fuzzy" do
|
|
12
12
|
describe "#fuzzy_match" do
|
13
13
|
it "matches the nearest method name" do
|
14
14
|
class Egg < BlankishSlate #so we don't match things not in the tests
|
15
|
-
include
|
15
|
+
include Fuzzy
|
16
16
|
def cheese
|
17
17
|
end
|
18
18
|
|
@@ -28,7 +28,7 @@ describe "Fuzzy" do
|
|
28
28
|
describe "#method_missing" do
|
29
29
|
it "calls the method you meant to call" do
|
30
30
|
class Horse < BlankishSlate
|
31
|
-
include
|
31
|
+
include Fuzzy
|
32
32
|
|
33
33
|
def dog
|
34
34
|
"cat"
|