Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version 0.6.5, removed .bundle from lib/

  • Loading branch information...
commit e8331546bdbdf35f464353bd865580fd2cf95b5d 1 parent 2ef5ad8
@banister authored
View
274 Rakefile
@@ -1,137 +1,137 @@
-dlext = RbConfig::CONFIG['DLEXT']
-direc = File.dirname(__FILE__)
-
-$:.unshift 'lib'
-
-PROJECT_NAME = "binding_of_caller"
-
-require 'rake/clean'
-require 'rubygems/package_task'
-
-require "#{PROJECT_NAME}/version"
-
-CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
-CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
- "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
- "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake", "**/*.rbc")
-
-def apply_spec_defaults(s)
- s.name = PROJECT_NAME
- s.summary = "Retrieve the binding of a method's caller. Can also retrieve bindings even further up the stack."
- s.version = BindingOfCaller::VERSION
- s.date = Time.now.strftime '%Y-%m-%d'
- s.author = "John Mair (banisterfiend)"
- s.email = 'jrmair@gmail.com'
- s.description = s.summary
- s.require_path = 'lib'
- s.add_development_dependency('bacon')
- s.add_development_dependency('rake')
- s.homepage = "http://github.com/banister/binding_of_caller"
- s.has_rdoc = 'yard'
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- test/*`.split("\n")
-end
-
-desc "Show version"
-task :version do
- puts "BindingOfCaller version: #{BindingOfCaller::VERSION}"
-end
-
-desc "run tests"
-task :default => [:test]
-
-desc "Run tests"
-task :test do
- unless defined?(Rubinius)
- Rake::Task['compile'].execute
- end
-
- $stdout.puts("\033[33m")
- sh "bacon -Itest -rubygems -a -q"
- $stdout.puts("\033[0m")
-
- unless defined?(Rubinius)
- Rake::Task['cleanup'].execute
- end
-end
-
-task :pry do
- puts "loading binding_of_caller into pry"
- sh "pry -r ./lib/binding_of_caller"
-end
-
-desc "generate gemspec"
-task :gemspec => "ruby:gemspec"
-
-namespace :ruby do
- spec = Gem::Specification.new do |s|
- apply_spec_defaults(s)
- s.platform = Gem::Platform::RUBY
- s.extensions = ["ext/#{PROJECT_NAME}/extconf.rb"]
- end
-
- Gem::PackageTask.new(spec) do |pkg|
- pkg.need_zip = false
- pkg.need_tar = false
- end
-
- desc "Generate gemspec file"
- task :gemspec do
- File.open("#{spec.name}.gemspec", "w") do |f|
- f << spec.to_ruby
- end
- end
-end
-
-# namespace :rbx do
-# spec = Gem::Specification.new do |s|
-# apply_spec_defaults(s)
-# s.platform = Gem::Platform::RUBY #.new(["universal", "rubinius"])
-# end
-
-# Gem::PackageTask.new(spec) do |pkg|
-# pkg.need_zip = false
-# pkg.need_tar = false
-# end
-# end
-
-desc "build the binaries"
-task :compile do
- chdir "./ext/#{PROJECT_NAME}/" do
- sh "ruby extconf.rb"
- sh "make clean"
- sh "make"
- sh "cp *.#{dlext} ../../lib/"
- end
-end
-
-desc 'cleanup the extensions'
-task :cleanup do
- sh 'rm -rf lib/binding_of_caller.so'
- chdir "./ext/#{PROJECT_NAME}/" do
- sh 'make clean'
- end
-end
-
-desc "reinstall gem"
-task :reinstall => :gems do
- sh "gem uninstall binding_of_caller" rescue nil
- sh "gem install #{direc}/pkg/#{PROJECT_NAME}-#{BindingOfCaller::VERSION}.gem"
-end
-
-desc "build all platform gems at once"
-task :gems => [:clean, :rmgems, "ruby:gem"]
-
-task :gem => [:gems]
-
-desc "remove all platform gems"
-task :rmgems => ["ruby:clobber_package"]
-
-desc "build and push latest gems"
-task :pushgems => :gems do
- chdir("./pkg") do
- Dir["*.gem"].each do |gemfile|
- sh "gem push #{gemfile}"
- end
- end
-end
+dlext = RbConfig::CONFIG['DLEXT']
+direc = File.dirname(__FILE__)
+
+$:.unshift 'lib'
+
+PROJECT_NAME = "binding_of_caller"
+
+require 'rake/clean'
+require 'rubygems/package_task'
+
+require "#{PROJECT_NAME}/version"
+
+CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
+CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
+ "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
+ "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake", "**/*.rbc")
+
+def apply_spec_defaults(s)
+ s.name = PROJECT_NAME
+ s.summary = "Retrieve the binding of a method's caller. Can also retrieve bindings even further up the stack."
+ s.version = BindingOfCaller::VERSION
+ s.date = Time.now.strftime '%Y-%m-%d'
+ s.author = "John Mair (banisterfiend)"
+ s.email = 'jrmair@gmail.com'
+ s.description = s.summary
+ s.require_path = 'lib'
+ s.add_development_dependency('bacon')
+ s.add_development_dependency('rake')
+ s.homepage = "http://github.com/banister/binding_of_caller"
+ s.has_rdoc = 'yard'
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- test/*`.split("\n")
+end
+
+desc "Show version"
+task :version do
+ puts "BindingOfCaller version: #{BindingOfCaller::VERSION}"
+end
+
+desc "run tests"
+task :default => [:test]
+
+desc "Run tests"
+task :test do
+ unless defined?(Rubinius)
+ Rake::Task['compile'].execute
+ end
+
+ $stdout.puts("\033[33m")
+ sh "bacon -Itest -rubygems -a -q"
+ $stdout.puts("\033[0m")
+
+ unless defined?(Rubinius)
+ Rake::Task['cleanup'].execute
+ end
+end
+
+task :pry do
+ puts "loading binding_of_caller into pry"
+ sh "pry -r ./lib/binding_of_caller"
+end
+
+desc "generate gemspec"
+task :gemspec => "ruby:gemspec"
+
+namespace :ruby do
+ spec = Gem::Specification.new do |s|
+ apply_spec_defaults(s)
+ s.platform = Gem::Platform::RUBY
+ s.extensions = ["ext/#{PROJECT_NAME}/extconf.rb"]
+ end
+
+ Gem::PackageTask.new(spec) do |pkg|
+ pkg.need_zip = false
+ pkg.need_tar = false
+ end
+
+ desc "Generate gemspec file"
+ task :gemspec do
+ File.open("#{spec.name}.gemspec", "w") do |f|
+ f << spec.to_ruby
+ end
+ end
+end
+
+# namespace :rbx do
+# spec = Gem::Specification.new do |s|
+# apply_spec_defaults(s)
+# s.platform = Gem::Platform::RUBY #.new(["universal", "rubinius"])
+# end
+
+# Gem::PackageTask.new(spec) do |pkg|
+# pkg.need_zip = false
+# pkg.need_tar = false
+# end
+# end
+
+desc "build the binaries"
+task :compile do
+ chdir "./ext/#{PROJECT_NAME}/" do
+ sh "ruby extconf.rb"
+ sh "make clean"
+ sh "make"
+ sh "cp *.#{dlext} ../../lib/"
+ end
+end
+
+desc 'cleanup the extensions'
+task :cleanup do
+ sh 'rm -rf lib/binding_of_caller.so'
+ chdir "./ext/#{PROJECT_NAME}/" do
+ sh 'make clean'
+ end
+end
+
+desc "reinstall gem"
+task :reinstall => :gems do
+ sh "gem uninstall binding_of_caller" rescue nil
+ sh "gem install #{direc}/pkg/#{PROJECT_NAME}-#{BindingOfCaller::VERSION}.gem"
+end
+
+desc "build all platform gems at once"
+task :gems => [:clean, :rmgems, "ruby:gem"]
+
+task :gem => [:gems]
+
+desc "remove all platform gems"
+task :rmgems => ["ruby:clobber_package"]
+
+desc "build and push latest gems"
+task :pushgems => :gems do
+ chdir("./pkg") do
+ Dir["*.gem"].each do |gemfile|
+ sh "gem push #{gemfile}"
+ end
+ end
+end
View
8 binding_of_caller.gemspec
@@ -2,18 +2,18 @@
Gem::Specification.new do |s|
s.name = "binding_of_caller"
- s.version = "0.6.4"
+ s.version = "0.6.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["John Mair (banisterfiend)"]
- s.date = "2012-02-29"
+ s.date = "2012-03-01"
s.description = "Retrieve the binding of a method's caller. Can also retrieve bindings even further up the stack."
s.email = "jrmair@gmail.com"
s.extensions = ["ext/binding_of_caller/extconf.rb"]
- s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "Gemfile", "HISTORY", "LICENSE", "README.md", "Rakefile", "binding_of_caller.gemspec", "examples/example.rb", "ext/binding_of_caller/binding_of_caller.c", "ext/binding_of_caller/extconf.rb", "ext/binding_of_caller/ruby_headers/192/debug.h", "ext/binding_of_caller/ruby_headers/192/dln.h", "ext/binding_of_caller/ruby_headers/192/eval_intern.h", "ext/binding_of_caller/ruby_headers/192/gc.h", "ext/binding_of_caller/ruby_headers/192/id.h", "ext/binding_of_caller/ruby_headers/192/iseq.h", "ext/binding_of_caller/ruby_headers/192/method.h", "ext/binding_of_caller/ruby_headers/192/node.h", "ext/binding_of_caller/ruby_headers/192/regenc.h", "ext/binding_of_caller/ruby_headers/192/regint.h", "ext/binding_of_caller/ruby_headers/192/regparse.h", "ext/binding_of_caller/ruby_headers/192/thread_pthread.h", "ext/binding_of_caller/ruby_headers/192/thread_win32.h", "ext/binding_of_caller/ruby_headers/192/timev.h", "ext/binding_of_caller/ruby_headers/192/transcode_data.h", "ext/binding_of_caller/ruby_headers/192/version.h", "ext/binding_of_caller/ruby_headers/192/vm_core.h", "ext/binding_of_caller/ruby_headers/192/vm_exec.h", "ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h", "ext/binding_of_caller/ruby_headers/192/vm_opts.h", "ext/binding_of_caller/ruby_headers/193/addr2line.h", "ext/binding_of_caller/ruby_headers/193/atomic.h", "ext/binding_of_caller/ruby_headers/193/constant.h", "ext/binding_of_caller/ruby_headers/193/debug.h", "ext/binding_of_caller/ruby_headers/193/dln.h", "ext/binding_of_caller/ruby_headers/193/encdb.h", "ext/binding_of_caller/ruby_headers/193/eval_intern.h", "ext/binding_of_caller/ruby_headers/193/gc.h", "ext/binding_of_caller/ruby_headers/193/id.h", "ext/binding_of_caller/ruby_headers/193/internal.h", "ext/binding_of_caller/ruby_headers/193/iseq.h", "ext/binding_of_caller/ruby_headers/193/method.h", "ext/binding_of_caller/ruby_headers/193/node.h", "ext/binding_of_caller/ruby_headers/193/parse.h", "ext/binding_of_caller/ruby_headers/193/regenc.h", "ext/binding_of_caller/ruby_headers/193/regint.h", "ext/binding_of_caller/ruby_headers/193/regparse.h", "ext/binding_of_caller/ruby_headers/193/revision.h", "ext/binding_of_caller/ruby_headers/193/thread_pthread.h", "ext/binding_of_caller/ruby_headers/193/thread_win32.h", "ext/binding_of_caller/ruby_headers/193/timev.h", "ext/binding_of_caller/ruby_headers/193/transcode_data.h", "ext/binding_of_caller/ruby_headers/193/transdb.h", "ext/binding_of_caller/ruby_headers/193/version.h", "ext/binding_of_caller/ruby_headers/193/vm_core.h", "ext/binding_of_caller/ruby_headers/193/vm_exec.h", "ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h", "ext/binding_of_caller/ruby_headers/193/vm_opts.h", "lib/binding_of_caller.rb", "lib/binding_of_caller/version.rb", "lib/tester.rb", "test/test_binding_of_caller.rb"]
+ s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "Gemfile", "HISTORY", "LICENSE", "README.md", "Rakefile", "binding_of_caller.gemspec", "examples/example.rb", "ext/binding_of_caller/binding_of_caller.c", "ext/binding_of_caller/extconf.rb", "ext/binding_of_caller/ruby_headers/192/debug.h", "ext/binding_of_caller/ruby_headers/192/dln.h", "ext/binding_of_caller/ruby_headers/192/eval_intern.h", "ext/binding_of_caller/ruby_headers/192/gc.h", "ext/binding_of_caller/ruby_headers/192/id.h", "ext/binding_of_caller/ruby_headers/192/iseq.h", "ext/binding_of_caller/ruby_headers/192/method.h", "ext/binding_of_caller/ruby_headers/192/node.h", "ext/binding_of_caller/ruby_headers/192/regenc.h", "ext/binding_of_caller/ruby_headers/192/regint.h", "ext/binding_of_caller/ruby_headers/192/regparse.h", "ext/binding_of_caller/ruby_headers/192/thread_pthread.h", "ext/binding_of_caller/ruby_headers/192/thread_win32.h", "ext/binding_of_caller/ruby_headers/192/timev.h", "ext/binding_of_caller/ruby_headers/192/transcode_data.h", "ext/binding_of_caller/ruby_headers/192/version.h", "ext/binding_of_caller/ruby_headers/192/vm_core.h", "ext/binding_of_caller/ruby_headers/192/vm_exec.h", "ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h", "ext/binding_of_caller/ruby_headers/192/vm_opts.h", "ext/binding_of_caller/ruby_headers/193/addr2line.h", "ext/binding_of_caller/ruby_headers/193/atomic.h", "ext/binding_of_caller/ruby_headers/193/constant.h", "ext/binding_of_caller/ruby_headers/193/debug.h", "ext/binding_of_caller/ruby_headers/193/dln.h", "ext/binding_of_caller/ruby_headers/193/encdb.h", "ext/binding_of_caller/ruby_headers/193/eval_intern.h", "ext/binding_of_caller/ruby_headers/193/gc.h", "ext/binding_of_caller/ruby_headers/193/id.h", "ext/binding_of_caller/ruby_headers/193/internal.h", "ext/binding_of_caller/ruby_headers/193/iseq.h", "ext/binding_of_caller/ruby_headers/193/method.h", "ext/binding_of_caller/ruby_headers/193/node.h", "ext/binding_of_caller/ruby_headers/193/parse.h", "ext/binding_of_caller/ruby_headers/193/regenc.h", "ext/binding_of_caller/ruby_headers/193/regint.h", "ext/binding_of_caller/ruby_headers/193/regparse.h", "ext/binding_of_caller/ruby_headers/193/revision.h", "ext/binding_of_caller/ruby_headers/193/thread_pthread.h", "ext/binding_of_caller/ruby_headers/193/thread_win32.h", "ext/binding_of_caller/ruby_headers/193/timev.h", "ext/binding_of_caller/ruby_headers/193/transcode_data.h", "ext/binding_of_caller/ruby_headers/193/transdb.h", "ext/binding_of_caller/ruby_headers/193/version.h", "ext/binding_of_caller/ruby_headers/193/vm_core.h", "ext/binding_of_caller/ruby_headers/193/vm_exec.h", "ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h", "ext/binding_of_caller/ruby_headers/193/vm_opts.h", "lib/binding_of_caller.rb", "lib/binding_of_caller/version.rb", "test/test_binding_of_caller.rb"]
s.homepage = "http://github.com/banister/binding_of_caller"
s.require_paths = ["lib"]
- s.rubygems_version = "1.8.16"
+ s.rubygems_version = "1.8.12"
s.summary = "Retrieve the binding of a method's caller. Can also retrieve bindings even further up the stack."
s.test_files = ["test/test_binding_of_caller.rb"]
View
2  lib/binding_of_caller/version.rb
@@ -1,3 +1,3 @@
module BindingOfCaller
- VERSION = "0.6.4"
+ VERSION = "0.6.5"
end
View
15 lib/tester.rb
@@ -1,15 +0,0 @@
-require './binding_of_caller'
-
-def a
- x = 1
- y = 2
- b()
-end
-
-def b
- proc do
- puts binding.of_caller(2).eval('__method__')
- end.call
-end
-
-a
Please sign in to comment.
Something went wrong with that request. Please try again.