fuzzy 9000.0.1 → 9000.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fuzzy (0.0.1)
4
+ fuzzy (9000.0.1)
5
5
  fuzzy-string-match
6
6
 
7
7
  GEM
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
@@ -1,7 +1,7 @@
1
1
  require "fuzzy/version"
2
2
  require 'fuzzystringmatch'
3
3
 
4
- module FuzzyBear
4
+ module Fuzzy
5
5
  def method_missing sym, *args, &block
6
6
  chosen_method = fuzzy_match sym
7
7
  puts "You requested #{sym}, our survey says: #{chosen_method}"
@@ -1,3 +1,3 @@
1
1
  module Fuzzy
2
- VERSION = "9000.0.1"
2
+ VERSION = "9000.0.2"
3
3
  end
@@ -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 FuzzyBear
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 FuzzyBear
31
+ include Fuzzy
32
32
 
33
33
  def dog
34
34
  "cat"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: fuzzy
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 9000.0.1
5
+ version: 9000.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Burns