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 +4 -4
- data/.gitignore +2 -0
- data/lib/finalist.rb +9 -1
- data/lib/finalist/version.rb +1 -1
- metadata +1 -2
- data/Gemfile.lock +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fceecd3d7bff048b97cb50bff4efa8b2bdd43cbc4e75ca0194e5c0bdf9c0183
|
4
|
+
data.tar.gz: 30184b0a7831e0c1ffd7d5fd1b8fc21d31c674aa24bf382a69df936eded890d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef26e597ef2c8d76fbef4c74c923767d3026ad3c6a46018df61613e53ca5fce3ab0b099f123c1c6e3fc72fb70f00b5e9eb53e124979e371ba7bea7dac68d59fe
|
7
|
+
data.tar.gz: e17e42d84adc7823faf1e4073e0490bbd5a067818d742bcc6d87fb05b861c3950cf9bf08ca590f740242d285cc2a5e7fd05ccbca0378885bb844ed6c376cb361
|
data/.gitignore
CHANGED
data/lib/finalist.rb
CHANGED
@@ -31,7 +31,15 @@ module Finalist
|
|
31
31
|
|
32
32
|
base.extend(Finalist)
|
33
33
|
|
34
|
-
|
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|
|
data/lib/finalist/version.rb
CHANGED
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.
|
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
|
data/Gemfile.lock
DELETED
@@ -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
|