finalist 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: b3bd9a7da2ed1299669acc5b20b76439dc8f565c31fc2bae0915daa7153473eb
4
- data.tar.gz: 316c0f335739c061c4d469a99ef23827ca87d53caa427bb6499585d4391d5dd3
3
+ metadata.gz: 0fceecd3d7bff048b97cb50bff4efa8b2bdd43cbc4e75ca0194e5c0bdf9c0183
4
+ data.tar.gz: 30184b0a7831e0c1ffd7d5fd1b8fc21d31c674aa24bf382a69df936eded890d4
5
5
  SHA512:
6
- metadata.gz: a5240bd27a734c12653d32afe824391d99f64ae06aac4e3254f1248d79287b031ccbd00bab12ae1cba4b60a7005862d855c3d86d9e34dd66f9f9a0837fe44bca
7
- data.tar.gz: 98632cd634b0d6748c8b73591292ef9c63b979f5a1016185f9c5468227493218e89e1ca3130aac0208f873bc9ab6fabf1d5ee50144d627b1d2a005eecb565ff4
6
+ metadata.gz: ef26e597ef2c8d76fbef4c74c923767d3026ad3c6a46018df61613e53ca5fce3ab0b099f123c1c6e3fc72fb70f00b5e9eb53e124979e371ba7bea7dac68d59fe
7
+ data.tar.gz: e17e42d84adc7823faf1e4073e0490bbd5a067818d742bcc6d87fb05b861c3950cf9bf08ca590f740242d285cc2a5e7fd05ccbca0378885bb844ed6c376cb361
data/.gitignore CHANGED
@@ -7,5 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
 
10
+ Gemfile.lock
11
+
10
12
  # rspec failure tracking
11
13
  .rspec_status
@@ -31,7 +31,15 @@ module Finalist
31
31
 
32
32
  base.extend(Finalist)
33
33
 
34
- tp = TracePoint.new(:end) do |ev|
34
+ caller_info = caller_locations(1, 2).last
35
+ event_type =
36
+ if caller_info.label.match?(/block/)
37
+ :b_return
38
+ else
39
+ :end
40
+ end
41
+
42
+ tp = TracePoint.new(event_type) do |ev|
35
43
  if ev.self == base
36
44
  base.ancestors.drop(1).each do |mod|
37
45
  Finalist.finalized_methods[mod]&.each do |fmeth_name|
@@ -1,3 +1,3 @@
1
1
  module Finalist
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: finalist
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
  - joker1007
@@ -77,7 +77,6 @@ files:
77
77
  - ".rspec"
78
78
  - ".travis.yml"
79
79
  - Gemfile
80
- - Gemfile.lock
81
80
  - LICENSE.txt
82
81
  - README.md
83
82
  - Rakefile
@@ -1,37 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- finalist (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- byebug (9.1.0)
10
- diff-lcs (1.3)
11
- rake (10.5.0)
12
- rspec (3.7.0)
13
- rspec-core (~> 3.7.0)
14
- rspec-expectations (~> 3.7.0)
15
- rspec-mocks (~> 3.7.0)
16
- rspec-core (3.7.1)
17
- rspec-support (~> 3.7.0)
18
- rspec-expectations (3.7.0)
19
- diff-lcs (>= 1.2.0, < 2.0)
20
- rspec-support (~> 3.7.0)
21
- rspec-mocks (3.7.0)
22
- diff-lcs (>= 1.2.0, < 2.0)
23
- rspec-support (~> 3.7.0)
24
- rspec-support (3.7.0)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- bundler (~> 1.16)
31
- byebug
32
- finalist!
33
- rake (~> 10.0)
34
- rspec (~> 3.0)
35
-
36
- BUNDLED WITH
37
- 1.16.1