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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0bc55ccfc16a123c4ad579a6a6f4ab5545cdc039e0394368db8fca3c3a71cfa
4
- data.tar.gz: dd209dbe667f79e47cedc7e9101e535788d2ec8e4fb4217f2373fa940ad58c3d
3
+ metadata.gz: dc83d2c0d36ecf27127e51c9be5802c404225b8f5c228c2a22730b0340c99076
4
+ data.tar.gz: aa3f578e04c015859796a3b1a1f06ea0e1bf85e06a769df912063a6bb51ce0df
5
5
  SHA512:
6
- metadata.gz: def4445931cbc3fb3f1ee0d131e83045079587a90d70793cc787232e7628c7c6b81467f48ad96b71da4740dde951a393c12b43c30319aee6e1ef136225d7eeef
7
- data.tar.gz: 24d6c64d841fb348e62e44b61c94218608dd6a1e58dc2282d20802527ccd04892f2f049f0ed940937d6040491ba2d34ebe55047436c8b37faeb4e42009638e81
6
+ metadata.gz: 2810cd97a79a14223a7ed2a7c23d031d1b1f2f6708205a39254ed94171bef5904ed2e1c8b8a18ea1da8e167c5e878caa59b6083c204411dfcc4a5de2a05fd920
7
+ data.tar.gz: 281fbc588398949d64c8d4b36f474955193a9411d12cb5eb82d489603ca014770690672eeb14717d3f03c18e062557f320a3eb85da86350a8b85326cd4de3f74
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tolerance (0.1.0)
4
+ tolerance (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.hello
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 # => :hello
39
- foo.helle # => :hello
40
- foo.hellooo # => :hello
41
-
42
- Foo.hello # => :hello
43
- Foo.helle # => :hello
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...!! Goodbye typo, forever..!!
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
 
@@ -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.tracer
10
- @tracer ||= TracePoint.new(:end) do |t|
11
- next if t.self.singleton_class? || t.self.ancestors.size == 1
12
-
13
- t.self.include HookMethods
14
- t.self.extend HookMethods
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
- tracer.enable
17
+ enable!
19
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tolerance
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tolerance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiyuki Hirano