gem_footprint_analyzer 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43851e68328fcbb706622d0ac43f4f76d5d39b31c1075e16da733afd295b8298
|
4
|
+
data.tar.gz: 3f9f094111649aac24a2c940eb7b4a08add6277aba99cd2273a79cfdf41b70e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e704e8e3f493d612b161d0347c01335841dba6d7e79f0a59fae4a2e741a98b0266c3d0265cbc10f4a94cdba788d058532bc4ef49943356df6045870c0e16c3
|
7
|
+
data.tar.gz: 2d8cea799faaa804496bbaf6a0b23262028df983cf04b2b9abcd680e3e3576500979fdc44869940389e3b68735ac79dcec5f42be182c713bcb70759f59fd48eb
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module GemFootprintAnalyzer
|
2
2
|
module RequireSpy
|
3
3
|
def self.spy_require(interactor)
|
4
|
-
Kernel.alias_method :regular_require, :require
|
4
|
+
Kernel.send :alias_method, :regular_require, :require
|
5
5
|
|
6
|
-
Kernel.define_method :timed_exec do |&block|
|
6
|
+
Kernel.send :define_method, :timed_exec do |&block|
|
7
7
|
start_time = Time.now.to_f
|
8
8
|
block.call
|
9
9
|
(Time.now.to_f - start_time).round(4)
|
10
10
|
end
|
11
11
|
|
12
|
-
Kernel.define_method :require do |name|
|
12
|
+
Kernel.send :define_method, :require do |name|
|
13
13
|
result = nil
|
14
14
|
|
15
15
|
interactor.ready
|