binding_of_callers 0.2.1 → 0.2.2

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: 7a245eaf3ad3b8fdd173ae4d9975bdec60af8c3dbe8df004e84dbe823df2f464
4
- data.tar.gz: 6e5459f17a011eccc97ef9bd610981efe3f032f54e355e7261459a07e1514983
3
+ metadata.gz: a6590a18ce85e8b2bd69972061c5a2c6f23b93344c686ca068200baf82a2fd66
4
+ data.tar.gz: ff0006a64f76f70a4c40852ebe3850346f60812480b1770591401cb16bbc37f7
5
5
  SHA512:
6
- metadata.gz: d06bc70579c81a8d27cec3ad21ccf7f352be94b6f66438eb1ca111e84b059a85d7a0c46937d875ef990035398f5ee0bdcbee3a189632fabfb58fc2305fd4ca3e
7
- data.tar.gz: 02b01433c49964c183391234109b2fc3dff8d021856001f70f646d997c6257a1237e54cced9f7416e2b1e0447996fefa59fa3701bfcfa6c803e768eb95b6bdf1
6
+ metadata.gz: 4049585d6346140bc97623da6adff7bfb8b6c37725788b7abd578cd6244a5e5d56a53de9b7a269aefdebfd2f3bbaec77b3294a3efcbbb33f4c30121b0bc2109c
7
+ data.tar.gz: fa6bc3f4b2bdc389a73d122542b2ebe5b9541039cbea24bd89e0e2526a8b488b258f08e85968ec669ff3afe92d7c01e8fa17bb59f8575f7a9caa624148c2f2a5
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  *.swp
11
11
  *.gem
12
+ .tool-versions
@@ -1,3 +1,3 @@
1
1
  module BindingOfCallers
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -16,6 +16,12 @@ class Binding
16
16
  end
17
17
  end
18
18
 
19
+ def partial_callers(limit)
20
+ _callers = callers
21
+ limit = _callers.size + limit if limit < 0
22
+ _callers[1, limit].map!{ |c| BindingOfCallers::Revealed.new(c) }
23
+ end
24
+
19
25
  private
20
26
 
21
27
  def enhance(fc, &enhance)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binding_of_callers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ken
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-12 00:00:00.000000000 Z
11
+ date: 2022-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler