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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25a588cad50a78180a488286806d6b5c8d0f2864426d4b496046fdbe6af8a102
4
- data.tar.gz: dc2c3f0ca27db62f5ea170ee471c4a1342f955b7f3e0f7fdfdaef2492c984031
3
+ metadata.gz: 0254f3b28703e0ce22f22a5835efdc9ac7f8d7756eb018c9700174d2dab1bf00
4
+ data.tar.gz: e87d62228e3eca329d9315c15f329a1d163be3ff7aee49702ddc604b4fe85e52
5
5
  SHA512:
6
- metadata.gz: 5dc8dfc7d1b014e12f0fde271d9822da537d3a3e230bba5569e3cce5af7cc89841bd798a6e03ca6b3d8063d2113621892079a0bdc1f31a2d8cc80fcf5dcaa522
7
- data.tar.gz: 89d5fc7e71b1138db085625d671b164234832b5942ad5c16e9ead8c20abc2b13caf1fa0ccab64e082e3ddc76af312db4fa778c8c26a52edcad6c91f9359ba45c
6
+ metadata.gz: 91989097e5c3d8420c2fc4cb8071a262879325cbe59d16f6bbb35cb86b0f2be42ab1d27b515c0497a4deea863d0f0f60b6e8dce446ce2c4bb777f7699e87d8e1
7
+ data.tar.gz: 13a9eb1a35130ba007dc12517cdac063e623faeef11d7533d57c6762fe25664ad224711d3902d10fe1c081c089c91314fd8c661720b15c6bcc02e3c873caba6e
@@ -25,6 +25,11 @@ jobs:
25
25
  - "2.6"
26
26
  - "2.7"
27
27
  - "3.0"
28
+ - "3.1"
29
+ - "3.2"
30
+ exclude:
31
+ # 2.2 segfaults on recent Ubuntu: https://github.com/ruby/setup-ruby/issues/496
32
+ - { ruby: "2.2" }
28
33
 
29
34
  steps:
30
35
 
@@ -31,5 +31,5 @@ TXT
31
31
 
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_dependency "debug_inspector", ">= 0.0.1"
34
+ spec.add_dependency "debug_inspector", ">= 1.2.0"
35
35
  end
@@ -18,7 +18,7 @@ module BindingOfCaller
18
18
  def callers
19
19
  ary = []
20
20
 
21
- RubyVM::DebugInspector.open do |dc|
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]
@@ -1,3 +1,3 @@
1
1
  module BindingOfCaller
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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: 2020-12-28 00:00:00.000000000 Z
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: 0.0.1
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: 0.0.1
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.4
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