binding_of_caller 0.2.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.
- data/HISTORY +0 -0
 - data/README.md +56 -0
 - data/Rakefile +99 -0
 - data/ext/binding_of_caller/binding_of_caller.c +124 -0
 - data/ext/binding_of_caller/compat.h +57 -0
 - data/ext/binding_of_caller/extconf.rb +14 -0
 - data/ext/binding_of_caller/ruby_headers/192/debug.h +36 -0
 - data/ext/binding_of_caller/ruby_headers/192/dln.h +41 -0
 - data/ext/binding_of_caller/ruby_headers/192/eval_intern.h +232 -0
 - data/ext/binding_of_caller/ruby_headers/192/gc.h +77 -0
 - data/ext/binding_of_caller/ruby_headers/192/id.h +173 -0
 - data/ext/binding_of_caller/ruby_headers/192/iseq.h +104 -0
 - data/ext/binding_of_caller/ruby_headers/192/method.h +103 -0
 - data/ext/binding_of_caller/ruby_headers/192/node.h +483 -0
 - data/ext/binding_of_caller/ruby_headers/192/regenc.h +211 -0
 - data/ext/binding_of_caller/ruby_headers/192/regint.h +841 -0
 - data/ext/binding_of_caller/ruby_headers/192/regparse.h +354 -0
 - data/ext/binding_of_caller/ruby_headers/192/thread_pthread.h +27 -0
 - data/ext/binding_of_caller/ruby_headers/192/thread_win32.h +33 -0
 - data/ext/binding_of_caller/ruby_headers/192/timev.h +21 -0
 - data/ext/binding_of_caller/ruby_headers/192/transcode_data.h +109 -0
 - data/ext/binding_of_caller/ruby_headers/192/version.h +63 -0
 - data/ext/binding_of_caller/ruby_headers/192/vm_core.h +703 -0
 - data/ext/binding_of_caller/ruby_headers/192/vm_exec.h +184 -0
 - data/ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h +208 -0
 - data/ext/binding_of_caller/ruby_headers/192/vm_opts.h +51 -0
 - data/ext/binding_of_caller/ruby_headers/193/addr2line.h +21 -0
 - data/ext/binding_of_caller/ruby_headers/193/atomic.h +56 -0
 - data/ext/binding_of_caller/ruby_headers/193/constant.h +34 -0
 - data/ext/binding_of_caller/ruby_headers/193/debug.h +41 -0
 - data/ext/binding_of_caller/ruby_headers/193/dln.h +50 -0
 - data/ext/binding_of_caller/ruby_headers/193/encdb.h +167 -0
 - data/ext/binding_of_caller/ruby_headers/193/eval_intern.h +234 -0
 - data/ext/binding_of_caller/ruby_headers/193/gc.h +98 -0
 - data/ext/binding_of_caller/ruby_headers/193/id.h +175 -0
 - data/ext/binding_of_caller/ruby_headers/193/internal.h +227 -0
 - data/ext/binding_of_caller/ruby_headers/193/iseq.h +125 -0
 - data/ext/binding_of_caller/ruby_headers/193/method.h +105 -0
 - data/ext/binding_of_caller/ruby_headers/193/node.h +503 -0
 - data/ext/binding_of_caller/ruby_headers/193/parse.h +186 -0
 - data/ext/binding_of_caller/ruby_headers/193/regenc.h +219 -0
 - data/ext/binding_of_caller/ruby_headers/193/regint.h +851 -0
 - data/ext/binding_of_caller/ruby_headers/193/regparse.h +362 -0
 - data/ext/binding_of_caller/ruby_headers/193/revision.h +1 -0
 - data/ext/binding_of_caller/ruby_headers/193/thread_pthread.h +51 -0
 - data/ext/binding_of_caller/ruby_headers/193/thread_win32.h +40 -0
 - data/ext/binding_of_caller/ruby_headers/193/timev.h +21 -0
 - data/ext/binding_of_caller/ruby_headers/193/transcode_data.h +117 -0
 - data/ext/binding_of_caller/ruby_headers/193/transdb.h +189 -0
 - data/ext/binding_of_caller/ruby_headers/193/version.h +52 -0
 - data/ext/binding_of_caller/ruby_headers/193/vm_core.h +755 -0
 - data/ext/binding_of_caller/ruby_headers/193/vm_exec.h +184 -0
 - data/ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h +220 -0
 - data/ext/binding_of_caller/ruby_headers/193/vm_opts.h +51 -0
 - data/lib/binding_of_caller.rb +22 -0
 - data/lib/binding_of_caller/version.rb +3 -0
 - data/test/test.rb +12 -0
 - metadata +120 -0
 
| 
         @@ -0,0 +1,22 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # binding_of_caller.rb
         
     | 
| 
      
 2 
     | 
    
         
            +
            # (C) John Mair (banisterfiend); MIT license
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            direc = File.dirname(__FILE__)
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            require "#{direc}/binding_of_caller/version"
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            begin
         
     | 
| 
      
 9 
     | 
    
         
            +
              if RUBY_VERSION =~ /1.9/
         
     | 
| 
      
 10 
     | 
    
         
            +
                require "#{direc}/1.9/binding_of_caller"
         
     | 
| 
      
 11 
     | 
    
         
            +
              else
         
     | 
| 
      
 12 
     | 
    
         
            +
                require "#{direc}/1.8/binding_of_caller"
         
     | 
| 
      
 13 
     | 
    
         
            +
              end
         
     | 
| 
      
 14 
     | 
    
         
            +
            rescue LoadError => e
         
     | 
| 
      
 15 
     | 
    
         
            +
              require "rbconfig"
         
     | 
| 
      
 16 
     | 
    
         
            +
              dlext = Config::CONFIG['DLEXT']
         
     | 
| 
      
 17 
     | 
    
         
            +
              require "#{direc}/binding_of_caller.#{dlext}"
         
     | 
| 
      
 18 
     | 
    
         
            +
            end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            module BindingOfCaller
         
     | 
| 
      
 21 
     | 
    
         
            +
            end  
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
    
        data/test/test.rb
    ADDED
    
    | 
         @@ -0,0 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            direc = File.dirname(__FILE__)
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'rubygems'
         
     | 
| 
      
 4 
     | 
    
         
            +
            require "#{direc}/../lib/binding_of_caller"
         
     | 
| 
      
 5 
     | 
    
         
            +
            require 'bacon'
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            puts "Testing binding_of_caller version #{BindingOfCaller::VERSION}..." 
         
     | 
| 
      
 8 
     | 
    
         
            +
            puts "Ruby version: #{RUBY_VERSION}"
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            describe BindingOfCaller do
         
     | 
| 
      
 11 
     | 
    
         
            +
            end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,120 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification 
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: binding_of_caller
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version 
         
     | 
| 
      
 4 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 5 
     | 
    
         
            +
              version: 0.2.0
         
     | 
| 
      
 6 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 7 
     | 
    
         
            +
            authors: 
         
     | 
| 
      
 8 
     | 
    
         
            +
            - John Mair (banisterfiend)
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            date: 2011-10-17 00:00:00 Z
         
     | 
| 
      
 14 
     | 
    
         
            +
            dependencies: 
         
     | 
| 
      
 15 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency 
         
     | 
| 
      
 16 
     | 
    
         
            +
              name: bacon
         
     | 
| 
      
 17 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 18 
     | 
    
         
            +
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
      
 19 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 20 
     | 
    
         
            +
                requirements: 
         
     | 
| 
      
 21 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 22 
     | 
    
         
            +
                  - !ruby/object:Gem::Version 
         
     | 
| 
      
 23 
     | 
    
         
            +
                    version: 1.1.0
         
     | 
| 
      
 24 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 25 
     | 
    
         
            +
              version_requirements: *id001
         
     | 
| 
      
 26 
     | 
    
         
            +
            description: FIX ME
         
     | 
| 
      
 27 
     | 
    
         
            +
            email: jrmair@gmail.com
         
     | 
| 
      
 28 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            extensions: 
         
     | 
| 
      
 31 
     | 
    
         
            +
            - ext/binding_of_caller/extconf.rb
         
     | 
| 
      
 32 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            files: 
         
     | 
| 
      
 35 
     | 
    
         
            +
            - ext/binding_of_caller/extconf.rb
         
     | 
| 
      
 36 
     | 
    
         
            +
            - ext/binding_of_caller/compat.h
         
     | 
| 
      
 37 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/debug.h
         
     | 
| 
      
 38 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/dln.h
         
     | 
| 
      
 39 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/eval_intern.h
         
     | 
| 
      
 40 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/gc.h
         
     | 
| 
      
 41 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/id.h
         
     | 
| 
      
 42 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/iseq.h
         
     | 
| 
      
 43 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/method.h
         
     | 
| 
      
 44 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/node.h
         
     | 
| 
      
 45 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/regenc.h
         
     | 
| 
      
 46 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/regint.h
         
     | 
| 
      
 47 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/regparse.h
         
     | 
| 
      
 48 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/thread_pthread.h
         
     | 
| 
      
 49 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/thread_win32.h
         
     | 
| 
      
 50 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/timev.h
         
     | 
| 
      
 51 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/transcode_data.h
         
     | 
| 
      
 52 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/version.h
         
     | 
| 
      
 53 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/vm_core.h
         
     | 
| 
      
 54 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/vm_exec.h
         
     | 
| 
      
 55 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/vm_insnhelper.h
         
     | 
| 
      
 56 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/192/vm_opts.h
         
     | 
| 
      
 57 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/addr2line.h
         
     | 
| 
      
 58 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/atomic.h
         
     | 
| 
      
 59 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/constant.h
         
     | 
| 
      
 60 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/debug.h
         
     | 
| 
      
 61 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/dln.h
         
     | 
| 
      
 62 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/encdb.h
         
     | 
| 
      
 63 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/eval_intern.h
         
     | 
| 
      
 64 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/gc.h
         
     | 
| 
      
 65 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/id.h
         
     | 
| 
      
 66 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/internal.h
         
     | 
| 
      
 67 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/iseq.h
         
     | 
| 
      
 68 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/method.h
         
     | 
| 
      
 69 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/node.h
         
     | 
| 
      
 70 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/parse.h
         
     | 
| 
      
 71 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/regenc.h
         
     | 
| 
      
 72 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/regint.h
         
     | 
| 
      
 73 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/regparse.h
         
     | 
| 
      
 74 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/revision.h
         
     | 
| 
      
 75 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/thread_pthread.h
         
     | 
| 
      
 76 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/thread_win32.h
         
     | 
| 
      
 77 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/timev.h
         
     | 
| 
      
 78 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/transcode_data.h
         
     | 
| 
      
 79 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/transdb.h
         
     | 
| 
      
 80 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/version.h
         
     | 
| 
      
 81 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/vm_core.h
         
     | 
| 
      
 82 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/vm_exec.h
         
     | 
| 
      
 83 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/vm_insnhelper.h
         
     | 
| 
      
 84 
     | 
    
         
            +
            - ext/binding_of_caller/ruby_headers/193/vm_opts.h
         
     | 
| 
      
 85 
     | 
    
         
            +
            - ext/binding_of_caller/binding_of_caller.c
         
     | 
| 
      
 86 
     | 
    
         
            +
            - lib/binding_of_caller/version.rb
         
     | 
| 
      
 87 
     | 
    
         
            +
            - lib/binding_of_caller.rb
         
     | 
| 
      
 88 
     | 
    
         
            +
            - test/test.rb
         
     | 
| 
      
 89 
     | 
    
         
            +
            - HISTORY
         
     | 
| 
      
 90 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 91 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 92 
     | 
    
         
            +
            homepage: http://banisterfiend.wordpress.com
         
     | 
| 
      
 93 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 96 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
            require_paths: 
         
     | 
| 
      
 99 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 100 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 101 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 102 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 103 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 104 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 105 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 106 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 107 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 108 
     | 
    
         
            +
              requirements: 
         
     | 
| 
      
 109 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 110 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 111 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
      
 112 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 115 
     | 
    
         
            +
            rubygems_version: 1.8.11
         
     | 
| 
      
 116 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 117 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 118 
     | 
    
         
            +
            summary: FIX ME
         
     | 
| 
      
 119 
     | 
    
         
            +
            test_files: []
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     |