dollar_zero

Merlin/Main/Languages/Ruby/Experimental/Globals/__FILE__/test.rb
     4: puts "$0 = #{$0}"
        puts "__FILE__ = #{__FILE__}"
        puts __FILE__ == $0
        
github.com/ironruby/ironruby.git - Unknown - Ruby
go/dgs.rb
    33: if __FILE__ == $0
          u = DgsUser.new('bish0p')
github.com/dayne/tools.git - Unknown - Ruby
lib/protodoc.rb - 85 identical
    34: if __FILE__ == $0
          print Protodoc::Preprocessor.new(ARGV.first)
github.com/sstephenson/prototype.git - Unknown - Ruby
tools/hpricot/setup.rb - many identical
  1576: if $0 == __FILE__
          begin
github.com/JackDanger/jquery.git - MIT - Ruby - More from jquery.git »
ruby/install.rb - 134 identical
  1005: if $0 == __FILE__ then
          begin
android.git.kernel.org/platform/external/clearsilver.git - Unknown - Ruby
mootools-builder.rb
    46: if __FILE__ == $0
        
github.com/subtleGradient/mootools-builder.git - Unknown - Ruby
ruby-1.8.6/lib/test/unit/ui/console/testrunner.rb - 96 identical
   125: if __FILE__ == $0
          Test::Unit::UI::Console::TestRunner.start_command_line_test
ftp.sunfreeware.com/pub/freeware/SOURCES/ruby-1.8.6.tar.gz - Unknown - Ruby - More from ruby-1.8.6.tar.gz »
vendor/plugins/coderay-0.7.6.227/lib/coderay/helpers/file_type.rb - 15 identical
   116: if $0 == __FILE__
          $VERBOSE = true
github.com/yugui/redmine4ruby-lang.git - LGPL - Ruby - More from redmine4ruby-lang.git »
lib/ruby/site_ruby/1.8/image_size.rb - 6 identical
   276: if __FILE__ == $0
                print "TypeList: #{ImageSize.type.inspect}\n"
ftp.freebsd.org/.../i386/packages-6-stable/graphics/jpeg2pdf-0.12.tbz - Unknown - Ruby
lib/marshmallow.rb - 3 identical
   113: if $0 == __FILE__
          if ARGV.size != 3
github.com/rails/continuous_builder.git - Unknown - Ruby - More from continuous_builder.git »
WebKitTools/iExploder/htdocs/iexploder.rb - 3 identical
   317: if $0 == __FILE__
            max=ARGV[0].to_i
android.git.kernel.org/platform/external/webkit.git - BSD - Ruby
share/examples/ruby18/libart2/testlibart2.rb - 29 identical
   164: main if $0 == __FILE__
ftp.freebsd.org/.../packages-6-stable/graphics/ruby18-libart2-0.16.0.tbz - Unknown - Ruby
pdf-writer-1.1.2/lib/pdf/writer/graphics/imageinfo.rb - 20 identical
   346: if __FILE__ == $0
          require 'pdf/writer'
rubyforge.org/frs/download.php/5719/pdf-writer-1.1.2.tar.gz - MIT - Ruby - More from pdf-writer-1.1.2.tar.gz »
redmine/vendor/plugins/rfpdf/lib/rfpdf/makefont.rb - 6 identical
    76: if $0 == __FILE__ then
            if ARGV.length >= 3 then
openrico.org/svn/openrico/trunk - Unknown - Ruby - More from trunk »
vendor/plugins/uuid-1.0.4/lib/uuid.rb - 11 identical
   393: if __FILE__ == $0
          UUID.setup
github.com/insoshi/insoshi.git - MIT - Ruby - More from insoshi.git »
FXRuby-1.6.11/examples/dragdrop.rb - 5 identical
    90: if __FILE__ == $0
          FXApp.new("DragDrop", "FXRuby") do |theApp|
gentoo.osuosl.org/distfiles/FXRuby-1.6.11.tar.gz - LGPL - Ruby - More from FXRuby-1.6.11.tar.gz »
bioruby-1.0.0/lib/bio/io/ddbjxml.rb - 7 identical
   465: if __FILE__ == $0
        
gentoo.osuosl.org/distfiles/bioruby-1.0.0.tar.gz - LGPL - Ruby - More from bioruby-1.0.0.tar.gz »
canny-0.1.0/setup.rb - 253 identical
  1318: if $0 == __FILE__
          begin
gentoo.osuosl.org/distfiles/canny-0.1.0.tar.gz - LGPL - Ruby
contrib/auto-naming/update-named-status.rb - 1 identical
    63: if __FILE__ == $0
                $db = Db.new($CONFIG['database']['dbhost'], $CONFIG['database']['dbname'], $CONFIG['database']['user'], $CONFIG['database']['password'])
github.com/neoeinstein/tor.git - MIT - Ruby
lib/ruby/site_ruby/1.8/skkserv/bdbdic.rb - 5 identical
    54: if __FILE__ == $0
          print BDBDic.new("test/SKK-JISYO.L.db").search("¤¢¤¤").join("/"), "\n"
ftp.freebsd.org/.../i386/packages-4-stable/All/ja-rskkserv-2.95.4.tgz - Unknown - Ruby - More from ja-rskkserv-2.95.4.tgz »
lib/ruby/site_ruby/1.8/prime/makedict/basicdict.rb - 43 identical
    55: if File::expand_path($0) == File::expand_path(__FILE__) then
          dicttool = PrimeBasicdict.new(ARGV[0])
ftp.freebsd.org/.../i386/packages-4-stable/All/ja-prime-1.0.0.1_1.tgz - Unknown - Ruby
lib/python2.4/site-packages/eric3/DebugClients/Ruby/DebugClient.rb - 23 identical
    40: if __FILE__ == $0
            debugClient = DebugClient.new()
ftp.freebsd.org/.../ports/i386/packages-4-stable/All/eric-3.9.1.tgz - GPL - Ruby - More from eric-3.9.1.tgz »
trunk/lib/yadis_handler/lib/yadis_handler.rb - 1 identical
   141: if __FILE__ == $0
          server = Mongrel::HttpServer.new('0.0.0.0', 3002)
svn.apache.org/repos/asf/incubator/heraldry/idp/pip/ - Apache - Ruby - More from »
ruby-14/ruby/lib/tempfile.rb - 1 identical
   174: if __FILE__ == $0
        #  $DEBUG = true
www.opensource.apple.com/darwinsource/tarballs/other/ruby-14.tar.gz - Unknown - Ruby - More from ruby-14.tar.gz »
ruby-1.8.1/lib/irb/slex.rb - 44 identical
   244: if $0 == __FILE__
          #    Tracer.on
www.bullfreeware.com/download/sources/aix43/ruby-1.8.1.tar.gz - Unknown - Ruby - More from ruby-1.8.1.tar.gz »
erb-1.4.3/lib/erb/erb.rb - 3 identical
    42: if __FILE__ == $0
          require 'erb/main'
codegen.software-acumen.com/cgia/downloads/erb-1.4.3.zip - Unknown - Ruby
~hipster/lib/ruby/symbolic
   196:   if __FILE__ == $0
            Lapidary::UI::Console::TestRunner.run(All)
www.xs4all.nl/~hipster/lib/ruby/symbolic - Unknown - Ruby
Fred/v0r100/redist/log4r/outputter/rollingfileoutputter.rb - 5 identical
   105: # this can be found in examples/fileroll.rb as well
        if __FILE__ == $0
          require 'log4r'
www.fisica.uniud.it/~glast/FRED/files/FredLinux-v0r100.zip - Unknown - Ruby
lib/bio/db/kegg/glycan.rb - 2 identical
   151: if __FILE__ == $0
          entry = ARGF.read     # gl:G00024
github.com/delagoya/bioruby.git - Unknown - Ruby - More from bioruby.git »
bioruby-0.5.1/lib/bio/db/fasta.rb - 2 identical
   508: if __FILE__ == $0
        
bioruby.org/archive/bioruby-0.5.1.tar.gz - LGPL - Ruby - More from bioruby-0.5.1.tar.gz »

req_dir

vendor/rails/railties/lib/rails_generator/scripts/destroy.rb - 464 identical
     1: require File.dirname(__FILE__) + '/../scripts'
        
github.com/payalgupta/todo-list.git - Unknown - Ruby - More from todo-list.git »
reevoo/public/dispatch.rb - many identical
     3: require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
        
github.com/jaredtse/example.git - Unknown - Ruby - More from example.git »
radiant/vendor/radiant/vendor/plugins/haml/lib/haml/html.rb - 71 identical
     1: require File.dirname(__FILE__) + '/../haml'
        
github.com/farra/consite.git - MIT - Ruby - More from consite.git »
Test-Unit-Mock-0.03/misc/readmecode.rb - 1 identical
     5: require File::join( File::dirname(File::dirname( __FILE__ )), 'utils.rb' )
        
gentoo.osuosl.org/distfiles/Test-Unit-Mock-0.03.tar.bz2 - Unknown - Ruby
ruby.hints/.../unit/data/testfiles/projects/railsproj/test/test_helper.rb - many identical
     1: ENV["RAILS_ENV"] = "test"
        require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
        require 'test_help'
hg.netbeans.org/main - Unknown - Ruby - More from main »
specs/session_spec.rb
     1: require File.dirname(__FILE__) + '/spec_helper'
        
github.com/austinrfnd/zvent-gem.git - Unknown - Ruby - More from zvent-gem.git »
vendor/gems/grit/test/test_reality.rb - 7 identical
     1: require File.dirname(__FILE__) + '/helper'
        
github.com/lifo/hackfest.git - MIT - Ruby - More from hackfest.git »
research-0.3.0.3/vendor/plugins/haml/lib/haml/template.rb - 15 identical
     1: require File.dirname(__FILE__) + '/engine'
        require 'rubygems'
unix.freshmeat.net/.../research/68154/url_bz2/research-0.3.0.3.tar.bz2 - Unknown - Ruby - More from research-0.3.0.3.tar.bz2 »
spec/lib/answer_groups_spec.rb
     1: require File.dirname(__FILE__) + '/../../lib/questions'
        require File.dirname(__FILE__) + '/../../lib/answers'
        require File.dirname(__FILE__) + '/../../lib/answer_groups'
        require File.dirname(__FILE__) + '/answers_spec_data'
        
github.com/robertbrook/lordsqna.git - Unknown - Ruby - More from lordsqna.git »
cft-0.2.1/test/tc_monitor.rb - 1 identical
     1: require File::join(File::dirname(__FILE__), "util/harness")
        
freshmeat.net/redir/cft/68212/url_tgz/cft-latest.tgz - GPL - Ruby - More from cft-latest.tgz »
lib/delayed_job.rb - 7 identical
     3: require File.dirname(__FILE__) + '/delayed/message_sending'
        require File.dirname(__FILE__) + '/delayed/performable_method'
        require File.dirname(__FILE__) + '/delayed/job'
        require File.dirname(__FILE__) + '/delayed/worker'
        
github.com/tobi/delayed_job.git - Unknown - Ruby - More from delayed_job.git »
spec/lib/radiant/legacy_routes_spec.rb - 7 identical
     1: require File.dirname(__FILE__) + '/../../spec_helper'
        
github.com/radiant/radiant.git - MIT - Ruby - More from radiant.git »
spec/spec_helper.rb - 1 identical
     4: require File.dirname(__FILE__) + '/../lib/github'
        
github.com/defunkt/github-gem.git - MIT - Ruby - More from github-gem.git »
lib/ucsc.rb
    26: # Database connection
        require File.dirname(__FILE__) + '/ucsc/db_connection.rb'
        include Ucsc::Hg18
    32: require File.dirname(__FILE__) + '/ucsc/hg18/activerecord.rb'
        require File.dirname(__FILE__) + '/ucsc/hg18/slice.rb'
github.com/jandot/ruby-ucsc-api.git - Unknown - Ruby - More from ruby-ucsc-api.git »
test/test_signature_base.rb - 14 identical
     1: require File.dirname(__FILE__) + '/test_helper.rb'
        require 'oauth/signature/base'
github.com/pelle/oauth.git - MIT - Ruby - More from oauth.git »
vendor/plugins/rspec/spec/spec/story/runner/story_mediator_spec.rb - 361 identical
     1: require File.dirname(__FILE__) + '/../story_helper'
        
github.com/astashov/solutions.git - Unknown - Ruby - More from solutions.git »
hila/trunk/hila-ruby/lib/couchrest/core/model.rb
     8: require 'digest/md5'
        require File.dirname(__FILE__) + '/document'
        require 'mime/types'
unicore.svn.sourceforge.net/svnroot/unicore - BSD - Ruby - More from unicore »
activesupport-1.2.3/lib/active_support/dependencies.rb - 6 identical
     1: require File.dirname(__FILE__) + '/module_attribute_accessors'
        require File.dirname(__FILE__) + '/core_ext/load_error'
        
rubyforge.org/frs/download.php/6915/activesupport-1.2.3.tgz - Unknown - Ruby - More from activesupport-1.2.3.tgz »
actionpack-1.12.2/test/template/text_helper_test.rb - 133 identical
     1: require File.dirname(__FILE__) + '/../abstract_unit'
        require "#{File.dirname(__FILE__)}/../testing_sandbox"
        
    28:   require File.dirname(__FILE__) + '/../../activesupport/lib/active_support/core_ext/kernel'
          require "#{File.dirname(__FILE__)}/../lib/action_view/helpers/text_helper"
rubyforge.org/frs/download.php/11255/actionpack-1.12.2.tgz - Unknown - Ruby - More from actionpack-1.12.2.tgz »
test/unit/lib/redmine/plugin_test.rb - 7 identical
    18: require File.dirname(__FILE__) + '/../../../test_helper'
        
github.com/edavis10/redmine.git - GPL - Ruby - More from redmine.git »
activesupport-1.4.1/lib/active_support/core_ext/pathname.rb - 305 identical
     1: require 'pathname'
        require File.dirname(__FILE__) + '/pathname/clean_within'
        
rubyforge.org/frs/download.php/17222/activesupport-1.4.1.zip - Unknown - Ruby - More from activesupport-1.4.1.zip »
test/normalize_test.rb - 77 identical
     1: require File.dirname(__FILE__) + '/test_helper'
        
github.com/rails/open_id_authentication.git - Unknown - Ruby - More from open_id_authentication.git »
vendor/gems/mocha-0.9.3/test/unit/change_state_side_effect_test.rb - 109 identical
     1: require File.join(File.dirname(__FILE__), "..", "test_helper")
        
github.com/halorgium/mephisto.git - Unknown - Ruby - More from mephisto.git »
scrooge.rb
     8: require File.dirname(__FILE__) + "/environment"
        Dir[File.dirname(__FILE__) + "/gooey/*.rb"].each { |f| require f }
        
github.com/jonleighton/nobody_knows_scrooge.git - Unknown - Ruby - More from nobody_knows_scrooge.git »
rails/vendor/actionpack/lib/action_view/helpers/form_helper.rb - 8 identical
     1: require 'cgi'
        require File.dirname(__FILE__) + '/date_helper'
        require File.dirname(__FILE__) + '/tag_helper'
        
rubyforge.org/frs/download.php/2667/rails-0.9.4.1.tgz - Unknown - Ruby - More from rails-0.9.4.1.tgz »
rails/vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb - 101 identical
     1: require 'cgi'
        require File.dirname(__FILE__) + '/date_helper'
        require File.dirname(__FILE__) + '/tag_helper'
        
rubyforge.org/frs/download.php/17236/rails-1.2.2.tgz - Unknown - Ruby - More from rails-1.2.2.tgz »
include/.../rspec-1.1.11/spec/spec/example/shared_example_group_spec.rb - 79 identical
     1: require File.dirname(__FILE__) + '/../../spec_helper'
        
github.com/10gen/10gen-appserver.git - MIT - Ruby - More from 10gen-appserver.git »
rails/.../lib/action_controller/support/core_ext/string/inflections.rb - 20 identical
     1: require File.dirname(__FILE__) + '/../../inflector'
        module ActiveSupport #:nodoc:
rubyforge.org/frs/download.php/2668/rails-0.9.4.1.zip - Unknown - Ruby - More from rails-0.9.4.1.zip »
test/gzip_test.rb
     1: require 'test/unit'
        require File.dirname(__FILE__) + '/../lib/gzip'
        
github.com/tobi/cacheable.git - Unknown - Ruby - More from cacheable.git »
earth-0.2/lib/earth_plugin_interface/plugin_manager.rb - 3 identical
    19: require File.join(File.dirname(__FILE__), 'earth_plugin')
        
    41:   @trusted_certificates = []
          trusted_certificate_directory = File.join(File.dirname(__FILE__), "..", "..", "config", "certificates")
          Dir.entries(trusted_certificate_directory).each do |filename|
freshmeat.net/redir/project_earth/68627/url_tgz/earth-0.1.tar.gz - GPL - Ruby - More from earth-0.1.tar.gz »
init.rb
     1: require File.dirname(__FILE__) + '/rails-plugin/models/mailing_blacklist.rb'
        require File.dirname(__FILE__) + '/rails-plugin/models/mailing_domain.rb'
        require File.dirname(__FILE__) + '/rails-plugin/extensions/action_mailer.rb'
github.com/kovyrin/bounces-handler.git - GPL - Ruby - More from bounces-handler.git »
clients/ruby/lib/selenium.rb - 3 identical
     8: require File.expand_path(File.dirname(__FILE__) + '/selenium/client')
        
github.com/ph7/selenium-remote-control.git - Unknown - Ruby - More from selenium-remote-control.git »
website/lib/rspec_extras.rb
    50:   require File.dirname(__FILE__) + '/../../example_rails_app/vendor/plugins/rspec/lib/spec/version'
        
github.com/dchelimsky/rspec-dev.git - MIT - Ruby - More from rspec-dev.git »
radio (quelltexte)/.../generators/worker/templates/unit_test.rb - 24 identical
     1: require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
        require "#{RAILS_ROOT}/vendor/plugins/backgroundrb/backgroundrb.rb"
entwickler-magazin.de/.../source_file/69/rehfeld_ra45cc8ffde1a01.zip - MIT - Ruby - More from rehfeld_ra45cc8ffde1a01.zip »
vendor/plugins/rspec/spec/spec/story/story_spec.rb - 179 identical
     1: require File.dirname(__FILE__) + '/story_helper'
        
github.com/lawcommons/altlaw-websearch.git - AGPL - Ruby - More from altlaw-websearch.git »
spec/compilers_spec.rb
     1: require File.dirname(__FILE__) + '/spec_helper'
        require 'compilers'
github.com/be9/brake.git - Unknown - Ruby - More from brake.git »
ruby/test/test_treewalkers.rb - 4 identical
     1: require File.join(File.dirname(__FILE__), 'preamble')
        
html5lib.googlecode.com/hg - MIT - Ruby - More from hg »
trunk/lib/rb/spec/base_protocol_spec.rb - 1 identical
    20: require File.dirname(__FILE__) + '/spec_helper'
        
svn.apache.org/repos/asf/incubator/thrift/ - Apache - Ruby - More from »
spec/integration/merb/tasks/merb.thor/app_script.rb - 187 identical
     5: require "rubygems"
        require File.join(File.dirname(__FILE__), "common")
        
        gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')
        
github.com/brynary/webrat.git - Unknown - Ruby - More from webrat.git »
spec/lib/util/class_factory_spec.rb
     1: require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
        
github.com/oleganza/strokedb-core.git - Unknown - Ruby - More from strokedb-core.git »
trunk/lib/buildr/java/bdd.rb - 1 identical
   199:   runner.requires ||= []
          runner.requires.unshift File.join(File.dirname(__FILE__), 'test_result')
          runner.gems ||= {}
   377:   def runner_content(binding)
            runner_erb = File.join(File.dirname(__FILE__), 'jtestr_runner.rb.erb')
            Filter::Mapper.new(:erb, binding).transform(File.read(runner_erb), runner_erb)
svn.apache.org/repos/asf/incubator/buildr/ - Apache - Ruby - More from »
trunk/.../vendor/plugins/engines/lib/engines/deprecated_config_support.rb - 17 identical
    15: #
        #   require File.join(File.dirname(__FILE__), 'boot')
        #   require File.join(RAILS_ROOT, "vendor", "plugins", "engines",
svn.apache.org/repos/asf/lucene/solr/ - Apache - Ruby
spec/lib/strokedb/sync/chain_sync_spec.rb
     1: require File.dirname(__FILE__) + '/spec_helper'
        
github.com/yrashk/strokedb.git - Unknown - Ruby - More from strokedb.git »
episode-116/.../lib/selenium_on_rails/acceptance_test_runner.rb - 10 identical
     1: require File.dirname(__FILE__) + '/paths'
        require File.dirname(__FILE__) + '/../selenium_on_rails_config'
        require 'net/http'
    19: SERVER_COMMAND =      c_b :server_command do
          server_path = File.expand_path(File.dirname(__FILE__) + '/../../../../../script/server')
          if RUBY_PLATFORM =~ /mswin/
github.com/ryanb/railscasts-episodes.git - Apache - Ruby - More from railscasts-episodes.git »
test/unit/expense_test.rb - 3 identical
     1: require File.dirname(__FILE__) + '/../test_helper'
        
github.com/clarkware/expenses-example.git - Unknown - Ruby - More from expenses-example.git »
spec/lib/textilizer_spec.rb
     1: require File.dirname(__FILE__) + '/../spec_helper'
        
github.com/ryanb/railscasts.git - MIT - Ruby
svn/trunk/dev/task/readme2index
     8: require File.dirname(__FILE__) + "/lib/scriptable.rb"
        
facets.rubyforge.org/svn/trunk/dev/task/readme2index - Unknown - Ruby
spec/frozen/library/zlib/crc32_spec.rb - 7 identical
     1: require File.dirname(__FILE__) + '/../../spec_helper'
        require 'zlib'
github.com/evanphx/rubinius.git - MIT - Ruby - More from rubinius.git »
radiant/lib/generators/instance/templates/instance_environment.rb
     7: # Specifies gem version of Rails to use when vendor/rails is not present
        require File.join(File.dirname(__FILE__), 'boot')
        
github.com/seancribbs/radiant-old.git - MIT - Ruby - More from radiant-old.git »
test/deadlock_retry_test.rb - 2 identical
    19: require 'test/unit'
        require "#{File.dirname(__FILE__)}/../lib/deadlock_retry"
        
github.com/rails/deadlock_retry.git - Unknown - Ruby
spec/lib/democracy_in_action/api_spec.rb - 1 identical
     1: require File.dirname(__FILE__) + '/../../spec_helper'
        
    23:   my_http.stub!(:===).and_return(true)
                            my_http.stub!( :body ).and_return(File.read(File.dirname(__FILE__) + '/../../fixtures/supporter_by_limit_1.xml'))
          Net::HTTP.stub!(:new).and_return( my_http )
github.com/sethwalker/democracy_in_action.git - MIT - Ruby
vendor/plugins/mocha-0.4.0/test/mocha/mock_test.rb - 20 identical
     1: require File.join(File.dirname(__FILE__), "..", "test_helper")
        require 'mocha/mock'
github.com/nofxx/webistrano.git - Unknown - Ruby
vendor/plugins/mocha-0.4.0/test/mocha/central_test.rb - 41 identical
     1: require File.join(File.dirname(__FILE__), "..", "test_helper")
        
github.com/mattmatt/webistrano.git - Unknown - Ruby
generators/authenticated/authenticated_generator.rb - 169 identical
     1: require File.expand_path(File.dirname(__FILE__) + "/lib/insert_routes.rb")
        require 'digest/sha1'
github.com/technoweenie/restful-authentication.git - MIT - Ruby
radiant-0.5.1/test/functional/admin/page_controller_test.rb - 7 identical
     1: require File.dirname(__FILE__) + '/../../test_helper'
        require 'admin/page_controller'
rubyforge.org/frs/download.php/12287/radiant-0.5.1.zip - MIT - Ruby

other

roguescanner-2.5.0.12614/.../include/lib/xsd/codegen/gensupport.rb - 286 identical
    15: __LINE__
        __FILE__
        BEGIN
freshmeat.net/.../64660/url_tgz/roguescanner-2.5.0.12614.tar.gz - GPL - Ruby - More from roguescanner-2.5.0.12614.tar.gz »
activerecord/lib/active_record/attribute_methods.rb - 28 identical
   199:   begin
            class_eval(method_definition, __FILE__, __LINE__)
          rescue SyntaxError => err
github.com/NZKoz/koz-rails.git - Unknown - Ruby - More from koz-rails.git »
lib/ruby/1.9/minitest/unit.rb - 14 identical
    18:     File.expand_path __FILE__
          elsif  __FILE__ =~ /^[^\.]/ then # assume both relative
            require 'pathname'
            pwd = Pathname.new Dir.pwd
            pn = Pathname.new File.expand_path(__FILE__)
github.com/vvs/jruby.git - LGPL - Ruby - More from jruby.git »
vendor/rails/actionpack/test/controller/send_file_test.rb - 297 identical
     3: module TestFileUtils
          def file_name() File.basename(__FILE__) end
          def file_path() File.expand_path(__FILE__) end
          def file_data() File.open(file_path, 'rb') { |f| f.read } end
github.com/magnolia/magnolia.git - Unknown - Ruby - More from magnolia.git »
tags/REL_0_9_4_7/lib/rubygems/specification.rb
   175:     module_eval code, __FILE__, __LINE__ - 9
          end
github.com/railsfactory/rubygems.git - Unknown - Ruby - More from rubygems.git »
lib/rubygems/user_interaction.rb - 47 identical
   100:       end
            }, __FILE__, __LINE__
          end
github.com/lstoll/rubygems.git - Unknown - Ruby - More from rubygems.git »
pdf-writer-demo-1.1.3/qr-language.rb - 11 identical
   262: false   the sole instance of FalseClass (represents false)
        __FILE__        the current source file name.
        __LINE__        the current line number in the source file.
rubyforge.org/frs/download.php/5992/pdf-writer-demo-1.1.3.tar.gz - MIT - Ruby
vendor/rails/activerecord/lib/active_record/base.rb - 91 identical
  1630:     end
          }, __FILE__, __LINE__
          send(method_id, *arguments)
  1663:     end
          }, __FILE__, __LINE__
          send(method_id, *arguments)
github.com/intridea/talk-midend.git - Unknown - Ruby - More from talk-midend.git »
subversion-1.4.0/subversion/bindings/swig/ruby/svn/error.rb - 36 identical
    10:   value = Ext::Core.const_get(const_name)
          module_eval(<<-EOC, __FILE__, __LINE__)
            class #{$1} < Error
www.minix3.org/software/subversion-1.4.0.tar.bz2 - BSD - Ruby - More from subversion-1.4.0.tar.bz2 »
alexandria-0.6.1/lib/alexandria/macui/main.rb - 3 identical
    43:   rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
          rbfiles -= [ File.basename(__FILE__) ]
          rbfiles.each do |path|
    50: if $0 == __FILE__ then
            rb_main_init
gentoo.osuosl.org/distfiles/alexandria-0.6.1.tar.gz - GPL - Ruby
amstd-2.0.0/lib/amstd/const.rb - 15 identical
    15:   def const( name, val )
            eval <<-End, nil, __FILE__, __LINE__ + 1
                @@__const_#{name} = val
gentoo.osuosl.org/distfiles/amstd-2.0.0.tar.gz - Unknown - Ruby
lib/ruby-processing/exporters/base_exporter.rb - 1 identical
    93:   break unless matchdata
          line = matchdata[0].gsub('__FILE__', "'#{@main_file_path}'")
          line = line.gsub(/\b(require|load)\b/, 'partial_paths << ')
github.com/jashkenas/ruby-processing.git - MIT - Ruby - More from ruby-processing.git »
lib/spec/mocks/proxy.rb - 3 identical
   140:   end
          target_metaclass.class_eval(<<-EOF, __FILE__, __LINE__)
            def #{sym}(*args, &block)
github.com/dchelimsky/rspec.git - MIT - Ruby - More from rspec.git »
glue/lib/glue/builder/xml.rb - 3 identical
    19:   def method_missing(tag, *args, &block)
            self.class.module_eval <<-"end_eval", __FILE__, __LINE__
              def #{tag}(*args)
rubyforge.org/frs/download.php/15530/glue-0.41.0.tgz - Unknown - Ruby - More from glue-0.41.0.tgz »
source-highlight-2.7/tests/test.rb - 2 identical
    27: puts __LINE__
        puts __FILE__
        
freshmeat.net/.../16263/url_tgz/source-highlight-2.5.tar.gz - GPL - Ruby
facets-1.8.49/lib/fieryfacets.rb - 3 identical
  3404:   syms.flatten.each do |sym|
            class_eval(<<-EOS, __FILE__, __LINE__)
              def self.#{sym}
  4598:   end
          def __FILE__
            eval( "__FILE__" )
rubyforge.org/frs/download.php/17563/facets-1.8.49.tgz - GPL - Ruby - More from facets-1.8.49.tgz »
rwdeliza/extras/linguistics.rb - 2 identical
    88:                                 end
                                }, "{Autoloaded: " + __FILE__ + "}", __LINE__
        
   163:                   def self::__languageProxy_class; @@__languageProxy_class; end
                  }, __FILE__, __LINE__
          end
rubyforge.org/frs/download.php/4363/rwdeliza-0.01.zip - Unknown - Ruby - More from rwdeliza-0.01.zip »
activerecord-0.8.4/lib/active_record/associations.rb - 1 identical
   376:   def collection_reader_method(collection_name, collection_finder)
            module_eval <<-"end_eval", __FILE__, __LINE__
              def #{collection_name}(force_reload = false)
   392:   def has_collection_method(collection_name)
            module_eval <<-"end_eval", __FILE__, __LINE__
              def has_#{collection_name}?(force_reload = false)
rubyforge.org/frs/download.php/760/activerecord-0.8.4.zip - Unknown - Ruby - More from activerecord-0.8.4.zip »
trunk/lib/docter/common.rb - 1 identical
   252:   (Enumerable.instance_methods + ARRAY_METHODS - ['entries']).each do |method|
            class_eval "def #{method}(*args, &block) ; entries.send(:#{method}, *args, &block) ; end", __FILE__, __LINE__
          end
svn.apache.org/repos/asf/incubator/buildr/docter/ - Apache - Ruby
lib/core/facets/binding/caller.rb - 7 identical
    20:   def __FILE__
            eval("__FILE__")
          end
    26:   def __DIR__
            eval("File.dirname(__FILE__)")
          end
github.com/dasch/facets.git - GPL - Ruby
lib/thor/util.rb - 11 identical
    52:   def self.constants_in_contents(str, file = __FILE__)
            klasses = ObjectSpace.classes.dup
github.com/wycats/thor.git - MIT - Ruby
net-sftp-1.1.0/test/protocol/01/tc_impl.rb - 9 identical
    59:   def self.operation( name, the_alias=name )
            class_eval <<-EOF, __FILE__, __LINE__+1
              def test_#{the_alias}
rubyforge.org/frs/download.php/7931/net-sftp-1.1.0.zip - Unknown - Ruby - More from net-sftp-1.1.0.zip »

dirname

stories/all.rb - many identical
     1: dir = File.dirname(__FILE__)
        Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
github.com/robertbrook/petitions.git - Unknown - Ruby - More from petitions.git »
build.rb - 4 identical
    21:   def initialize(path = File.dirname(__FILE__))
            @path = path
    61:   def build_number
            ref =  File.read(File.dirname(__FILE__) + '/.git/HEAD').chomp.match(/ref: (.*)/)[1]
            return File.read(File.dirname(__FILE__) + "/.git/#{ref}").chomp
          end
github.com/mootools/mootools-core.git - Unknown - Ruby
build.rb
    23:   def initialize(opts={})
            @path             = opts[:path] || File.dirname(__FILE__)
            @build_path       = opts[:build_path] || @path + '/mootools-more.js'
    71:   ref =  File.read(File.dirname(__FILE__) + '/.git/HEAD').chomp.match(/ref: (.*)/)[1]
          return File.read(File.dirname(__FILE__) + "/.git/#{ref}").chomp
github.com/mootools/mootools-more.git - Unknown - Ruby
examples/camping/tepee.rb - 21 identical
     1: #!/usr/bin/ruby
        $:.unshift File.dirname(__FILE__) + "/../../lib"
        %w(rubygems redcloth camping acts_as_versioned).each { |lib| require lib }
   138: if __FILE__ == $0
          require 'mongrel/camping'
github.com/mongrel/mongrel.git - Unknown - Ruby - More from mongrel.git »
test_app/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb - 246 identical
     1: dir = File.dirname(__FILE__)
        require 'spec/rails/matchers/assert_select'
github.com/kovyrin/smart-slaves.git - Unknown - Ruby - More from smart-slaves.git »
Ajax on Rails Example Applications/Photo Gallery/config/boot.rb - many identical
     3: unless defined?(RAILS_ROOT)
          root_path = File.join(File.dirname(__FILE__), '..')
        
    20:   environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join
          environment_without_comments =~ /[^#]RAILS_GEM_VERSION = '([\d.]+)'/
examples.oreilly.com/.../Ajax_on_Rails_Example_Applications.zip - Unknown - Ruby - More from Ajax_on_Rails_Example_Applications.zip »
blueprint/trunk/lib/blueprint/blueprint.rb - 18 identical
     3:   # path to the root Blueprint directory
          ROOT_PATH =             File.join(File.expand_path(File.dirname(__FILE__)), "../../")
          # path to where the Blueprint CSS files are stored
blueprintcss.googlecode.com/svn - GPL - Ruby - More from svn »
activerecord/lib/active_record.rb
    24: activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
        $:.unshift(activesupport_path) if File.directory?(activesupport_path)
    77: I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'
github.com/rails/rails.git - MIT - Ruby - More from rails.git »
actionmailer-1.2.4/test/mail_service_test.rb - 47 identical
     1: $:.unshift(File.dirname(__FILE__) + "/../lib/")
        
    26: class FunkyPathMailer < ActionMailer::Base
          self.template_root = "#{File.dirname(__FILE__)}/fixtures/path.with.dots"
        
rubyforge.org/frs/download.php/12252/actionmailer-1.2.4.tgz - Unknown - Ruby - More from actionmailer-1.2.4.tgz »
lib/exception_notifier_helper.rb - 83 identical
    39:     render(options.merge(:file => path, :use_full_path => false))
          elsif File.exist?(path = "#{File.dirname(__FILE__)}/../#{VIEW_PATH}/_#{partial}.rhtml")
            render(options.merge(:file => path, :use_full_path => false))
github.com/rails/exception_notification.git - MIT - Ruby - More from exception_notification.git »
lib/plurk.rb - 1 identical
     3: $:.unshift(File.join(File.dirname(__FILE__)))
        require 'plurk/easy_class_maker'
github.com/xdite/plurk.git - Unknown - Ruby - More from plurk.git »
vendor/plugins/annotate_models/lib/annotate_models/tasks.rb - 13 identical
     1: load 'Rakefile'
        Dir[File.join(File.dirname(__FILE__), '../tasks', '**/*.rake')].each { |rake| load rake }
github.com/spot-us/spot-us.git - MIT - Ruby - More from spot-us.git »
lib/muxtape.rb
    80: @song_files.each do |sf|
          i_tunes.add(MacTypes::FileURL.path(File.expand_path(File.dirname(__FILE__) + "/#{sf}")),  :to => pl)
        end
github.com/benschwarz/muxtape-rb.git - Unknown - Ruby
watir/lib/watir.rb
    90:   # Directory containing the watir.rb file
          @@dir = File.expand_path(File.dirname(__FILE__))
        
github.com/Pistos/watir-mirror.git - BSD - Ruby - More from watir-mirror.git »
lib/jekyll.rb
     1: $:.unshift File.dirname(__FILE__)     # For use/testing when no gem is installed
        
    80:   def self.version
            yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml])))
            "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}"
github.com/mojombo/jekyll.git - MIT - Ruby - More from jekyll.git »
vendor/markaby/lib/markaby.rb - 37 identical
     6: # For a full list of features and instructions, see the README.
        $:.unshift File.expand_path(File.dirname(__FILE__))
        
github.com/radiant/radiant-wiki.git - Unknown - Ruby - More from radiant-wiki.git »
radiant-0.5.1/lib/radiant.rb - 2 identical
     1: RADIANT_ROOT = File.join(File.dirname(__FILE__), "..") unless defined? RADIANT_ROOT
        
rubyforge.org/frs/download.php/12286/radiant-0.5.1.tgz - MIT - Ruby - More from radiant-0.5.1.tgz »
amarok-1.4.5/.../src/mediadevice/daap/mongrel/lib/mongrel/handlers.rb - 13 identical
   108:     MIME_TYPES_FILE = "mime_types.yml"
            MIME_TYPES = YAML.load_file(File.join(File.dirname(__FILE__), MIME_TYPES_FILE))
        
gentoo.osuosl.org/distfiles/amarok-1.4.5.tar.bz2 - GPL - Ruby
ruby/test/test_all.rb - 77 identical
     1: $:.unshift File.dirname(__FILE__)
        require 'test_helper.rb'
github.com/dbalmain/ferret.git - Unknown - Ruby - More from ferret.git »
nitro-0.18.1/lib/nitro.rb - 1 identical
    32:         LibPath = File.dirname(__FILE__)
        
rubyforge.org/frs/download.php/4637/nitro-0.18.1.zip - Unknown - Ruby - More from nitro-0.18.1.zip »
glue-0.16.0/lib/glue.rb - 1 identical
    60:         LibPath = File.dirname(__FILE__)
        
rubyforge.org/frs/download.php/4085/glue-0.16.0.tgz - Unknown - Ruby - More from glue-0.16.0.tgz »
vendor/plugins/browser-logger/lib/browser_logger.rb
    39:   body.gsub!(/<\/body>.*$/mi,'')
          body << ERB.new(File.open(File.join(File.dirname(__FILE__), '..', 'templates','log.rhtml'), 'r').read).result
          body << '</body></html>'
github.com/alx/feevy.git - Unknown - Ruby
og-0.10.0/lib/og.rb - 3 identical
   104:         LibPath = File.dirname(__FILE__)
        
rubyforge.org/frs/download.php/3084/og-0.10.0.tgz - BSD - Ruby - More from og-0.10.0.tgz »
lib/capistrano/configuration/loading.rb - 22 identical
    56:   initialize_without_loading(*args)
          @load_paths = [".", File.expand_path(File.join(File.dirname(__FILE__), "../recipes"))]
          @loaded_features = []
github.com/jamis/capistrano.git - MIT - Ruby - More from capistrano.git »
ruby-1.8.4/ext/dl/mkcallback.rb - 68 identical
     3: require 'mkmf'
        $:.unshift File.dirname(__FILE__)
        require 'type'
ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.4.tar.gz - Unknown - Ruby - More from ruby-1.8.4.tar.gz »
gen/lib/gen.rb - 1 identical
    20:   LibPath = File.dirname(__FILE__)
        
rubyforge.org/frs/download.php/15533/gen-0.41.0.tgz - Unknown - Ruby
nitro/lib/part/admin/controller.rb - 1 identical
    12:     super
            @template_root << File.join(File.dirname(__FILE__),  'template')
          end
rubyforge.org/frs/download.php/15524/nitro-0.41.0.tgz - Unknown - Ruby
lib/capistrano/ext/monitor.rb - 2 identical
   226:   def put_asset(name, to)
            put(File.read("#{File.dirname(__FILE__)}/assets/#{name}"), to)
          end
github.com/jamis/capistrano-ext.git - Unknown - Ruby
RailsSolutions/.../railslist2/vendor/plugins/engines/lib/engines.rb - 24 identical
    12:   rails_base = File.expand_path(
            File.join(File.dirname(__FILE__), # RAILS_ROOT/vendor/plugins/engines/lib
            '..', # RAILS_ROOT/vendor/plugins/engines
www.friendsofed.com/downloads/1590597524/RailsSolutions.zip - MIT - Ruby - More from RailsSolutions.zip »
trunk/qpid/ruby/lib/qpid/spec010.rb
   429:   def self.spec_cache(specfile)
              File::join(File::dirname(__FILE__), "spec_cache",
                         File::basename(specfile, ".xml") + ".rb_marshal")
svn.apache.org/repos/asf/incubator/qpid/ - Apache - Ruby
capistrano-ext-1.0.1/lib/capistrano/ext/monitor.rb - 1 identical
   225:   def put_asset(name, to)
            put(File.read("#{File.dirname(__FILE__)}/assets/#{name}"), to)
          end
rubyforge.org/frs/download.php/9044/capistrano-ext-1.0.1.tgz - Unknown - Ruby - More from capistrano-ext-1.0.1.tgz »
capistrano-1.4.0/lib/capistrano/actor.rb - 1 identical
   367:   dirs = [".",
            File.join(File.dirname(__FILE__), "recipes", "templates")]
          dirs.each do |dir|
rubyforge.org/frs/download.php/17103/capistrano-1.4.0.zip - Unknown - Ruby - More from capistrano-1.4.0.zip »
trunk/docs/xsl/docbook-xsl-ns-1.74.0/epub/bin/dbtoepub - 15 identical
    16: lib = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
        $LOAD_PATH.unshift(lib) if File.exist?(lib)
origo.googlecode.com/svn - Unknown - Ruby - More from svn »
spec/spec_helper.rb
     2: $TESTING=true
        $:.push File.join(File.dirname(__FILE__), '..', 'lib')
        require 'merb-core'
github.com/rubymaverick/merb-oauth.git - Unknown - Ruby - More from merb-oauth.git »
libxml-ruby-0.3.8.4/tests/libxml_test.rb - 8 identical
     1: $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../ext")
        require "xml/libxml_so" unless defined?(XML)
rubyforge.org/frs/download.php/15237/libxml-ruby-0.3.8.4.tar.gz - MIT - Ruby
libxml-ruby-0.3.8/tests/runner.rb - 10 identical
     3: # Allsuite for Eclipse and GEM.
        $LOAD_PATH.unshift File.dirname(__FILE__)
        require "libxml_test"
     7: ALL_TESTS = true
        TESTS = File.expand_path(File.dirname(__FILE__))
        
rubyforge.org/frs/download.php/10119/libxml-ruby-0.3.8.zip - MIT - Ruby - More from libxml-ruby-0.3.8.zip »
lib/buildr/ide/idea.rb - 2 identical
   172:   # Loading the whole fairly constant crap
          template_xml = REXML::Document.new(File.open(File.dirname(__FILE__)+"/idea.ipr.template"))
          include_xml = REXML::Document.new(partial.string)
github.com/buildr/buildr.git - Apache - Ruby
libxml-ruby-0.3.8.2/tests/merge_bug.rb - 8 identical
    43: count.times do
          merge_list << XML::Parser.string(File.read(File.join(File.dirname(__FILE__), 'model', 'merge_bug_data.xml'))).parse
        end
    50: #File.open(File.join(File.dirname(__FILE__), 'model', '/generated_form.xml'), "w") do |f|
        #  puts "Trying to write to file"
rubyforge.org/frs/download.php/14931/libxml-ruby-0.3.8.2.zip - MIT - Ruby
net-ssh-1.0.4/test/transport/compress/tc_none_decompress.rb - 17 identical
    17: $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
        
rubyforge.org/frs/download.php/7855/net-ssh-1.0.4.zip - Unknown - Ruby - More from net-ssh-1.0.4.zip »
vendor/plugins/rspec-rails/lib/spec/rails/example.rb - 12 identical
     1: dir = File.dirname(__FILE__)
        
github.com/zachinglis/holler.git - MIT - Ruby - More from holler.git »
test/nested_set_test.rb - 29 identical
     6: $:.unshift File.dirname(__FILE__) + '/../lib'
        require File.dirname(__FILE__) + '/../init'
        
github.com/rails/acts_as_nested_set.git - Unknown - Ruby
rdoc_generator/rdoc_template/merb/merb.rb - 270 identical
     4: STYLE = File.read(File.join(File.dirname(__FILE__), 'merb_doc_styles.css'))
        FONTS = ""
   346: API_GREASE_JS = File.read(File.join(File.dirname(__FILE__), 'api_grease.js'))
        
        PROTOTYPE_JS = File.read(File.join(File.dirname(__FILE__), 'prototype.js'))
        end
github.com/ezmobius/merbivore.git - Unknown - Ruby
lws/lib/json.rb - 2 identical
     1: $:.unshift(File.dirname(__FILE__)) unless
          $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
        
github.com/assaf/labnotes.git - Unknown - Ruby - More from labnotes.git »
test/cgi/test - 71 identical
     4: $: << File.join(File.dirname(__FILE__), "..", "..", "lib")
        
github.com/chneukirchen/rack-mirror.git - MIT - Ruby
plugin/lib/opensocial_container.rb - 1 identical
     1: $:.unshift(File.join(File.dirname(__FILE__), 'open_social_container'))
        require File.join(File.dirname(__FILE__), 'open_social_container', 'route_mapper')
        require File.join(File.dirname(__FILE__), 'open_social_container', 'configurator')
        
github.com/elcgit/opensocial.git - Unknown - Ruby
test/digest_test.rb - 17 identical
     1: require 'test/unit'
        $LOAD_PATH << File.dirname(__FILE__) + '/../lib/'
        require 'http_authentication'
github.com/rails/http_authentication.git - Unknown - Ruby
net-ssh-1.0.10/test/service/process/tc_driver.rb - 18 identical
    17: $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
        
rubyforge.org/frs/download.php/13034/net-ssh-1.0.10.tar.bz2 - Unknown - Ruby
test/spec_rack_cascade.rb - 66 identical
     9: context "Rack::Cascade" do
          docroot = File.expand_path(File.dirname(__FILE__))
          app1 = Rack::File.new(docroot)
github.com/chneukirchen/rack.git - MIT - Ruby
lib/webmoney.rb
    13: $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
        
    71:   if opt[:ca_cert].nil?
             File.dirname(__FILE__) + '/../lib/WebMoneyCA.crt'
          else
github.com/eagleas/webmoney.git - Unknown - Ruby
lib/generators/sidebar/templates/init.rb - 22 identical
     4: <%= class_name %>.view_root = File.dirname(__FILE__) + '/views'
github.com/pdcawley/typo.git - Unknown - Ruby
lib/cucumber/platform.rb - 16 identical
     6: module Cucumber
          LANGUAGE_FILE = File.expand_path(File.dirname(__FILE__) + '/languages.yml')
          LANGUAGES     = YAML.load_file(LANGUAGE_FILE)
          BINARY        = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
          JRUBY         = defined?(JRUBY_VERSION)
github.com/aslakhellesoy/cucumber.git - MIT - Ruby
ferret-0.9.4/lib/rferret.rb - 1 identical
     1: $: << File.dirname(__FILE__)
        #--
rubyforge.org/frs/download.php/11372/ferret-0.9.4.zip - MIT - Ruby