-
Notifications
You must be signed in to change notification settings - Fork 44
/
binding_of_caller.gemspec
35 lines (27 loc) · 1.39 KB
/
binding_of_caller.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require_relative 'lib/binding_of_caller/version'
Gem::Specification.new do |spec|
spec.name = "binding_of_caller"
spec.version = BindingOfCaller::VERSION
spec.authors = ["John Mair (banisterfiend)"]
spec.email = ["jrmair@gmail.com"]
spec.summary = %q{Retrieve the binding of a method's caller, or further up the stack.}
spec.description = <<-TXT
Provides the Binding#of_caller method.
Using binding_of_caller we can grab bindings from higher up the call stack and evaluate code in that context.
Allows access to bindings arbitrarily far up the call stack, not limited to just the immediate caller.
Recommended for use only in debugging situations. Do not use this in production apps.
TXT
spec.homepage = "https://github.com/banister/binding_of_caller"
spec.license = "MIT"
spec.required_ruby_version = Gem::Requirement.new(">= 2.0.0")
spec.metadata = {
"changelog_uri" => "https://github.com/banister/binding_of_caller/releases",
}
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|examples|bin)/}) }
end
spec.require_paths = ["lib"]
spec.add_dependency "debug_inspector", ">= 1.2.0"
end