fuzzy 0.0.1
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/.gitignore +1 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +2 -0
- data/fuzzy.gemspec +17 -0
- data/lib/fuzzy/version.rb +3 -0
- data/lib/fuzzy.rb +5 -0
- metadata +61 -0
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.swp
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
Tired of bugs because of typos?
|
2
|
+
|
3
|
+
Let fuzzy come to the rescue
|
4
|
+
|
5
|
+
METHOD MISSING?
|
6
|
+
---------------
|
7
|
+
|
8
|
+
NOPE!
|
9
|
+
=====
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
class Account
|
13
|
+
def pay! other_account, amount
|
14
|
+
other_account.balance += amount
|
15
|
+
balance -= amount
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
jeff = Account.find 1
|
20
|
+
a = Account.find 123
|
21
|
+
a.balance
|
22
|
+
#=> 10.0
|
23
|
+
|
24
|
+
a.paid? jeff, 10
|
25
|
+
#=> 0.0
|
26
|
+
```
|
27
|
+
|
28
|
+
What could possibly go wrong?
|
29
|
+
=============================
|
30
|
+
|
31
|
+
Nothing! No more pesky exceptions, no more whiny ruby interpreter incapable
|
32
|
+
of making sensible guesses about what you actually meant.
|
33
|
+
|
34
|
+
|
35
|
+
Come on Ruby! Use some common sense.
|
36
|
+
|
data/Rakefile
ADDED
data/fuzzy.gemspec
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/fuzzy/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Mark Burns"]
|
6
|
+
gem.email = ["markthedeveloper@gmail.com"]
|
7
|
+
gem.description = %q{Force ruby to use common sense instead of being so pedantic}
|
8
|
+
gem.summary = %q{Fuzzy matching no method missing at last!!!!}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
|
+
gem.files = `git ls-files`.split("\n")
|
13
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
14
|
+
gem.name = "fuzzy"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Fuzzy::VERSION
|
17
|
+
end
|
data/lib/fuzzy.rb
ADDED
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fuzzy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mark Burns
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-11-23 00:00:00 Z
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Force ruby to use common sense instead of being so pedantic
|
17
|
+
email:
|
18
|
+
- markthedeveloper@gmail.com
|
19
|
+
executables: []
|
20
|
+
|
21
|
+
extensions: []
|
22
|
+
|
23
|
+
extra_rdoc_files: []
|
24
|
+
|
25
|
+
files:
|
26
|
+
- .gitignore
|
27
|
+
- Gemfile
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- fuzzy.gemspec
|
31
|
+
- lib/fuzzy.rb
|
32
|
+
- lib/fuzzy/version.rb
|
33
|
+
homepage: ""
|
34
|
+
licenses: []
|
35
|
+
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
|
39
|
+
require_paths:
|
40
|
+
- lib
|
41
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: "0"
|
47
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: "0"
|
53
|
+
requirements: []
|
54
|
+
|
55
|
+
rubyforge_project:
|
56
|
+
rubygems_version: 1.8.11
|
57
|
+
signing_key:
|
58
|
+
specification_version: 3
|
59
|
+
summary: Fuzzy matching no method missing at last!!!!
|
60
|
+
test_files: []
|
61
|
+
|