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: 01fceb1ae268426dbc40be479314460b27a4640b869ae5d4d644f7e2cdee5f70
4
- data.tar.gz: 4bede18980190bd8c3aa847e96d9075610263f3d9453946f4f375223cffeb958
3
+ metadata.gz: 43851e68328fcbb706622d0ac43f4f76d5d39b31c1075e16da733afd295b8298
4
+ data.tar.gz: 3f9f094111649aac24a2c940eb7b4a08add6277aba99cd2273a79cfdf41b70e7
5
5
  SHA512:
6
- metadata.gz: 4b1692cd24a9f7c6b3223f4896130cb64d1d4e0fbcc397e0615a669ec314280de7f2d15e83144defd656dcc16f8c7071ff1e2ef3cc1c8062d620fdc9b635cb8c
7
- data.tar.gz: 7b68b3d7dd7ec50087a200a46e99cefbfed19e09711ba3bc2cb5c7b6ba7814d406adc7f4b557b4a1201c6e9ea36695649742ecde73037ef545331292f275beaa
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
@@ -1,3 +1,3 @@
1
1
  module GemFootprintAnalyzer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_footprint_analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciek Dubiński