metherd-missing 0.0.1 → 0.0.2

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.md CHANGED
@@ -1,6 +1,6 @@
1
- # Metherd::Missing
1
+ # metherd-missing
2
2
 
3
- Getting tired of having to go in and modify code each time you make a type?
3
+ Getting tired of having to go in and modify code each time you make a typo?
4
4
  metherd-missing to the rescue!
5
5
 
6
6
  ## Installation
@@ -3,11 +3,11 @@ require "metherd-missing/levenshtein_distance"
3
3
  require "metherd-missing/trie_node"
4
4
 
5
5
  module Kernel
6
- def method_missing method
6
+ def method_missing(method, *args, &block)
7
7
  possible_method_names = self.methods.map(&:to_s)
8
8
  results = MetherdMissing::LevenshteinDistance.new(possible_method_names).search(method, 1)
9
9
  if results.any?
10
- self.send(results.keys.first.to_s)
10
+ self.send(results.keys.first.to_s, *args, &block)
11
11
  else
12
12
  super
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module MetherdMissing
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metherd-missing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: