binding_of_caller 1.0.0 → 2.0.0

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: 24310cbd523ee653e0818a7aea48abb6f0cbda6fc9bbc0529dca4ce789990c0e
4
+ data.tar.gz: 9a77d1be0d6895d853a861452143e01e7f9039691c27752c860a20fd41dba7c0
5
5
  SHA512:
6
- metadata.gz: 5dc8dfc7d1b014e12f0fde271d9822da537d3a3e230bba5569e3cce5af7cc89841bd798a6e03ca6b3d8063d2113621892079a0bdc1f31a2d8cc80fcf5dcaa522
7
- data.tar.gz: 89d5fc7e71b1138db085625d671b164234832b5942ad5c16e9ead8c20abc2b13caf1fa0ccab64e082e3ddc76af312db4fa778c8c26a52edcad6c91f9359ba45c
6
+ metadata.gz: e8c69c7236d5411546dcb1d5b41913175f857a188e5a63869e3f1d84da9db8bb8f3a7b6edd95f9f5c705c17f07da861d4adaacc60dde5e396aa274bf74907846
7
+ data.tar.gz: 581870525d6dc2c6031ead8feeb616c96995541c7c9bcf9dbc21b4f3bf99502f54edcb6f349b11451fbd497c3b840b75702b8f87092ef100fa851dd6284c63af
@@ -17,14 +17,13 @@ jobs:
17
17
  fail-fast: false
18
18
  matrix:
19
19
  ruby:
20
- - "2.1"
21
- - "2.2"
22
- - "2.3"
23
- - "2.4"
24
- - "2.5"
25
- - "2.6"
26
20
  - "2.7"
27
21
  - "3.0"
22
+ - "3.1"
23
+ - "3.2"
24
+ - "3.3"
25
+ - "3.4"
26
+ - "4.0"
28
27
 
29
28
  steps:
30
29
 
@@ -50,8 +49,9 @@ jobs:
50
49
  - ubuntu-latest
51
50
  - windows-latest
52
51
  ruby:
53
- - "2"
54
- - "3.0"
52
+ - "2" # Latest 2.x.x
53
+ - "3" # Latest 3.x.x
54
+ - "4" # Latest 4.x.x
55
55
  - "jruby"
56
56
  - "truffleruby"
57
57
  exclude:
data/README.md CHANGED
@@ -53,7 +53,8 @@ This project is a spinoff from the [Pry REPL project.](http://pry.github.com)
53
53
  Features and limitations
54
54
  -------------------------
55
55
 
56
- * Works in MRI (>= 2.0.0) and RBX (Rubinius)
56
+ * Works in MRI (>= 2.7.0) and RBX (Rubinius)
57
+ * For MRI < 2.7, use version "~> 1.0.0" of the gem
57
58
  * For MRI 1.9.x, use version "~> 0.8" of the gem, which included support for MRI before 2.0.
58
59
  * Does not work in 1.8.7, but there is a well known (continuation-based) hack to get a `Binding#of_caller` there.
59
60
  * There is experimental support for jruby 1.7.x, but it only works in interpreted
@@ -17,7 +17,7 @@ Recommended for use only in debugging situations. Do not use this in production
17
17
  TXT
18
18
  spec.homepage = "https://github.com/banister/binding_of_caller"
19
19
  spec.license = "MIT"
20
- spec.required_ruby_version = Gem::Requirement.new(">= 2.0.0")
20
+ spec.required_ruby_version = ">= 2.7.0"
21
21
 
22
22
  spec.metadata = {
23
23
  "changelog_uri" => "https://github.com/banister/binding_of_caller/releases",
@@ -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 = "2.0.0"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require "binding_of_caller/version"
2
2
 
3
3
  if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby"
4
- if RUBY_VERSION =~ /^[23]/
4
+ if RUBY_VERSION =~ /^[234]/
5
5
  require 'binding_of_caller/mri'
6
6
  else
7
7
  puts "This version of binding_of_caller doesn't support this version of Ruby"
metadata CHANGED
@@ -1,14 +1,13 @@
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: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair (banisterfiend)
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-12-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: debug_inspector
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.0.1
18
+ version: 1.2.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: 0.0.1
25
+ version: 1.2.0
27
26
  description: |
28
27
  Provides the Binding#of_caller method.
29
28
 
@@ -42,7 +41,6 @@ files:
42
41
  - ".gitignore"
43
42
  - ".yardopts"
44
43
  - Gemfile
45
- - HISTORY
46
44
  - LICENSE
47
45
  - README.md
48
46
  - Rakefile
@@ -57,7 +55,6 @@ licenses:
57
55
  - MIT
58
56
  metadata:
59
57
  changelog_uri: https://github.com/banister/binding_of_caller/releases
60
- post_install_message:
61
58
  rdoc_options: []
62
59
  require_paths:
63
60
  - lib
@@ -65,15 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
62
  requirements:
66
63
  - - ">="
67
64
  - !ruby/object:Gem::Version
68
- version: 2.0.0
65
+ version: 2.7.0
69
66
  required_rubygems_version: !ruby/object:Gem::Requirement
70
67
  requirements:
71
68
  - - ">="
72
69
  - !ruby/object:Gem::Version
73
70
  version: '0'
74
71
  requirements: []
75
- rubygems_version: 3.1.4
76
- signing_key:
72
+ rubygems_version: 4.0.3
77
73
  specification_version: 4
78
74
  summary: Retrieve the binding of a method's caller, or further up the stack.
79
75
  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