binding_of_caller 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +5 -0
- data/binding_of_caller.gemspec +1 -1
- data/lib/binding_of_caller/mri.rb +2 -2
- data/lib/binding_of_caller/version.rb +1 -1
- metadata +8 -9
- data/HISTORY +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0254f3b28703e0ce22f22a5835efdc9ac7f8d7756eb018c9700174d2dab1bf00
|
4
|
+
data.tar.gz: e87d62228e3eca329d9315c15f329a1d163be3ff7aee49702ddc604b4fe85e52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91989097e5c3d8420c2fc4cb8071a262879325cbe59d16f6bbb35cb86b0f2be42ab1d27b515c0497a4deea863d0f0f60b6e8dce446ce2c4bb777f7699e87d8e1
|
7
|
+
data.tar.gz: 13a9eb1a35130ba007dc12517cdac063e623faeef11d7533d57c6762fe25664ad224711d3902d10fe1c081c089c91314fd8c661720b15c6bcc02e3c873caba6e
|
data/.github/workflows/test.yml
CHANGED
data/binding_of_caller.gemspec
CHANGED
@@ -18,7 +18,7 @@ module BindingOfCaller
|
|
18
18
|
def callers
|
19
19
|
ary = []
|
20
20
|
|
21
|
-
|
21
|
+
DebugInspector.open do |dc|
|
22
22
|
locs = dc.backtrace_locations
|
23
23
|
|
24
24
|
locs.size.times do |i|
|
@@ -43,7 +43,7 @@ module BindingOfCaller
|
|
43
43
|
# @return [Symbol]
|
44
44
|
def frame_type
|
45
45
|
return nil if !@iseq
|
46
|
-
|
46
|
+
|
47
47
|
# apparently the 9th element of the iseq array holds the frame type
|
48
48
|
# ...not sure how reliable this is.
|
49
49
|
@frame_type ||= @iseq.to_a[9]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binding_of_caller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mair (banisterfiend)
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debug_inspector
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.2.0
|
27
27
|
description: |
|
28
28
|
Provides the Binding#of_caller method.
|
29
29
|
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- ".gitignore"
|
43
43
|
- ".yardopts"
|
44
44
|
- Gemfile
|
45
|
-
- HISTORY
|
46
45
|
- LICENSE
|
47
46
|
- README.md
|
48
47
|
- Rakefile
|
@@ -57,7 +56,7 @@ licenses:
|
|
57
56
|
- MIT
|
58
57
|
metadata:
|
59
58
|
changelog_uri: https://github.com/banister/binding_of_caller/releases
|
60
|
-
post_install_message:
|
59
|
+
post_install_message:
|
61
60
|
rdoc_options: []
|
62
61
|
require_paths:
|
63
62
|
- lib
|
@@ -72,8 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
71
|
- !ruby/object:Gem::Version
|
73
72
|
version: '0'
|
74
73
|
requirements: []
|
75
|
-
rubygems_version: 3.1
|
76
|
-
signing_key:
|
74
|
+
rubygems_version: 3.0.3.1
|
75
|
+
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: Retrieve the binding of a method's caller, or further up the stack.
|
79
78
|
test_files: []
|
data/HISTORY
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
## 0.7.3.pre1 / 2014-08-20
|
2
|
-
|
3
|
-
This release includes compatibility fixes for different ruby versions
|
4
|
-
and some minor enhancements.
|
5
|
-
|
6
|
-
* C Extensions are only compiled on MRI 1.9.x.
|
7
|
-
|
8
|
-
For MRI >= 2 the native API is used, so this should speedup
|
9
|
-
installation.
|
10
|
-
|
11
|
-
For JRuby this will avoid crashes on gem installation.
|
12
|
-
|
13
|
-
This was alredy being checked for Rubinius.
|
14
|
-
|
15
|
-
*Amadeus Folego*
|
16
|
-
|
17
|
-
* Added experimental JRuby support for 1.7.x series.
|
18
|
-
|
19
|
-
Only the main API is implemented and `Binding#eval` is
|
20
|
-
monkey-patched as it is private on JRuby.
|
21
|
-
|
22
|
-
This requires the compiler to be run on interpreted mode,
|
23
|
-
otherwise an exception will be thrown when `of_caller` is called.
|
24
|
-
|
25
|
-
*Charles Nutter*
|
26
|
-
|
27
|
-
* Remove executability from non-executable files.
|
28
|
-
|
29
|
-
*David Celis*
|
30
|
-
|
31
|
-
* Test and notice MRI 2.1 as a working Ruby implementation.
|
32
|
-
|
33
|
-
*Lennart Fridén*
|
34
|
-
|
35
|
-
## 0.7.2 / 2013-06-07
|