tolerance 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -12
- data/lib/tolerance.rb +8 -9
- data/lib/tolerance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc83d2c0d36ecf27127e51c9be5802c404225b8f5c228c2a22730b0340c99076
|
4
|
+
data.tar.gz: aa3f578e04c015859796a3b1a1f06ea0e1bf85e06a769df912063a6bb51ce0df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2810cd97a79a14223a7ed2a7c23d031d1b1f2f6708205a39254ed94171bef5904ed2e1c8b8a18ea1da8e167c5e878caa59b6083c204411dfcc4a5de2a05fd920
|
7
|
+
data.tar.gz: 281fbc588398949d64c8d4b36f474955193a9411d12cb5eb82d489603ca014770690672eeb14717d3f03c18e062557f320a3eb85da86350a8b85326cd4de3f74
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Tolerance
|
2
2
|
|
3
|
-
Regards almost of all typo as tolerance
|
3
|
+
Regards almost of all typo as tolerance:wave::alien:
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -28,25 +28,22 @@ class Foo
|
|
28
28
|
__method__
|
29
29
|
end
|
30
30
|
|
31
|
-
def self.
|
31
|
+
def self.say!
|
32
32
|
__method__
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
36
|
foo = Foo.new
|
37
37
|
|
38
|
-
foo.hello
|
39
|
-
foo.
|
40
|
-
foo.
|
41
|
-
|
42
|
-
Foo.
|
43
|
-
Foo.
|
44
|
-
Foo.hellooo # => :hello
|
38
|
+
foo.hello # => :hello
|
39
|
+
foo.pello # => :hello
|
40
|
+
foo.hel_o # => :hello
|
41
|
+
Foo.say! # => :say!
|
42
|
+
Foo.sey! # => :say!
|
43
|
+
Foo.sayyy # => :say!
|
45
44
|
```
|
46
45
|
|
47
|
-
Regards almost of all typo as tolerance
|
48
|
-
|
49
|
-
*CAUTION: This gem is for development only*
|
46
|
+
Regards almost of all typo as **tolerance**...!! Bye typo, forever..:wave::alien:
|
50
47
|
|
51
48
|
## License
|
52
49
|
|
data/lib/tolerance.rb
CHANGED
@@ -3,17 +3,16 @@
|
|
3
3
|
require_relative 'tolerance/hook_methods'
|
4
4
|
require_relative 'tolerance/version'
|
5
5
|
|
6
|
-
require 'pry'
|
7
|
-
|
8
6
|
module Tolerance # :nodoc:
|
9
|
-
def self.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
def self.enable!
|
8
|
+
::Object.class_eval do
|
9
|
+
def self.inherited(klass)
|
10
|
+
super
|
11
|
+
klass.include HookMethods
|
12
|
+
klass.extend HookMethods
|
13
|
+
end
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
18
|
-
|
17
|
+
enable!
|
19
18
|
end
|
data/lib/tolerance/version.rb
CHANGED