4: puts "$0 = #{$0}" puts "__FILE__ = #{__FILE__}" puts __FILE__ == $0
33: if __FILE__ == $0 u = DgsUser.new('bish0p')
34: if __FILE__ == $0 print Protodoc::Preprocessor.new(ARGV.first)
1576: if $0 == __FILE__ begin
1005: if $0 == __FILE__ then begin
46: if __FILE__ == $0
125: if __FILE__ == $0 Test::Unit::UI::Console::TestRunner.start_command_line_test
116: if $0 == __FILE__ $VERBOSE = true
276: if __FILE__ == $0 print "TypeList: #{ImageSize.type.inspect}\n"
113: if $0 == __FILE__ if ARGV.size != 3
317: if $0 == __FILE__ max=ARGV[0].to_i
164: main if $0 == __FILE__
346: if __FILE__ == $0 require 'pdf/writer'
76: if $0 == __FILE__ then if ARGV.length >= 3 then
393: if __FILE__ == $0 UUID.setup
90: if __FILE__ == $0 FXApp.new("DragDrop", "FXRuby") do |theApp|
465: if __FILE__ == $0
1318: if $0 == __FILE__ begin
63: if __FILE__ == $0 $db = Db.new($CONFIG['database']['dbhost'], $CONFIG['database']['dbname'], $CONFIG['database']['user'], $CONFIG['database']['password'])
54: if __FILE__ == $0 print BDBDic.new("test/SKK-JISYO.L.db").search("¤¢¤¤").join("/"), "\n"
55: if File::expand_path($0) == File::expand_path(__FILE__) then dicttool = PrimeBasicdict.new(ARGV[0])
40: if __FILE__ == $0 debugClient = DebugClient.new()
141: if __FILE__ == $0 server = Mongrel::HttpServer.new('0.0.0.0', 3002)
174: if __FILE__ == $0 # $DEBUG = true
244: if $0 == __FILE__ # Tracer.on
42: if __FILE__ == $0 require 'erb/main'
196: if __FILE__ == $0 Lapidary::UI::Console::TestRunner.run(All)
105: # this can be found in examples/fileroll.rb as well if __FILE__ == $0 require 'log4r'
151: if __FILE__ == $0 entry = ARGF.read # gl:G00024
508: if __FILE__ == $0
1: require File.dirname(__FILE__) + '/../scripts'
3: require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
1: require File.dirname(__FILE__) + '/../haml'
5: require File::join( File::dirname(File::dirname( __FILE__ )), 'utils.rb' )
1: ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help'
1: require File.dirname(__FILE__) + '/spec_helper'
1: require File.dirname(__FILE__) + '/helper'
1: require File.dirname(__FILE__) + '/engine' require 'rubygems'
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'
1: require File::join(File::dirname(__FILE__), "util/harness")
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'
1: require File.dirname(__FILE__) + '/../../spec_helper'
4: require File.dirname(__FILE__) + '/../lib/github'
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'
1: require File.dirname(__FILE__) + '/test_helper.rb' require 'oauth/signature/base'
1: require File.dirname(__FILE__) + '/../story_helper'
8: require 'digest/md5' require File.dirname(__FILE__) + '/document' require 'mime/types'
1: require File.dirname(__FILE__) + '/module_attribute_accessors' require File.dirname(__FILE__) + '/core_ext/load_error'
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"
18: require File.dirname(__FILE__) + '/../../../test_helper'
1: require 'pathname' require File.dirname(__FILE__) + '/pathname/clean_within'
1: require File.dirname(__FILE__) + '/test_helper'
1: require File.join(File.dirname(__FILE__), "..", "test_helper")
8: require File.dirname(__FILE__) + "/environment" Dir[File.dirname(__FILE__) + "/gooey/*.rb"].each { |f| require f }
1: require 'cgi' require File.dirname(__FILE__) + '/date_helper' require File.dirname(__FILE__) + '/tag_helper'
1: require 'cgi' require File.dirname(__FILE__) + '/date_helper' require File.dirname(__FILE__) + '/tag_helper'
1: require File.dirname(__FILE__) + '/../../spec_helper'
1: require File.dirname(__FILE__) + '/../../inflector' module ActiveSupport #:nodoc:
1: require 'test/unit' require File.dirname(__FILE__) + '/../lib/gzip'
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|
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'
8: require File.expand_path(File.dirname(__FILE__) + '/selenium/client')
50: require File.dirname(__FILE__) + '/../../example_rails_app/vendor/plugins/rspec/lib/spec/version'
1: require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper' require "#{RAILS_ROOT}/vendor/plugins/backgroundrb/backgroundrb.rb"
1: require File.dirname(__FILE__) + '/story_helper'
1: require File.dirname(__FILE__) + '/spec_helper' require 'compilers'
1: require File.join(File.dirname(__FILE__), 'preamble')
20: require File.dirname(__FILE__) + '/spec_helper'
5: require "rubygems" require File.join(File.dirname(__FILE__), "common") gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')
1: require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
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)
15: # # require File.join(File.dirname(__FILE__), 'boot') # require File.join(RAILS_ROOT, "vendor", "plugins", "engines",
1: require File.dirname(__FILE__) + '/spec_helper'
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/
1: require File.dirname(__FILE__) + '/../test_helper'
1: require File.dirname(__FILE__) + '/../spec_helper'
8: require File.dirname(__FILE__) + "/lib/scriptable.rb"
1: require File.dirname(__FILE__) + '/../../spec_helper' require 'zlib'
7: # Specifies gem version of Rails to use when vendor/rails is not present require File.join(File.dirname(__FILE__), 'boot')
19: require 'test/unit' require "#{File.dirname(__FILE__)}/../lib/deadlock_retry"
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 )
1: require File.join(File.dirname(__FILE__), "..", "test_helper") require 'mocha/mock'
1: require File.join(File.dirname(__FILE__), "..", "test_helper")
1: require File.expand_path(File.dirname(__FILE__) + "/lib/insert_routes.rb") require 'digest/sha1'
1: require File.dirname(__FILE__) + '/../../test_helper' require 'admin/page_controller'
15: __LINE__ __FILE__ BEGIN
199: begin class_eval(method_definition, __FILE__, __LINE__) rescue SyntaxError => err
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__)
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
175: module_eval code, __FILE__, __LINE__ - 9 end
100: end }, __FILE__, __LINE__ end
262: false the sole instance of FalseClass (represents false) __FILE__ the current source file name. __LINE__ the current line number in the source file.
1630: end }, __FILE__, __LINE__ send(method_id, *arguments)
1663: end }, __FILE__, __LINE__ send(method_id, *arguments)
10: value = Ext::Core.const_get(const_name) module_eval(<<-EOC, __FILE__, __LINE__) class #{$1} < Error
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
15: def const( name, val ) eval <<-End, nil, __FILE__, __LINE__ + 1 @@__const_#{name} = val
93: break unless matchdata line = matchdata[0].gsub('__FILE__', "'#{@main_file_path}'") line = line.gsub(/\b(require|load)\b/, 'partial_paths << ')
140: end target_metaclass.class_eval(<<-EOF, __FILE__, __LINE__) def #{sym}(*args, &block)
19: def method_missing(tag, *args, &block) self.class.module_eval <<-"end_eval", __FILE__, __LINE__ def #{tag}(*args)
27: puts __LINE__ puts __FILE__
3404: syms.flatten.each do |sym| class_eval(<<-EOS, __FILE__, __LINE__) def self.#{sym}
4598: end def __FILE__ eval( "__FILE__" )
88: end }, "{Autoloaded: " + __FILE__ + "}", __LINE__
163: def self::__languageProxy_class; @@__languageProxy_class; end }, __FILE__, __LINE__ end
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)
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
20: def __FILE__ eval("__FILE__") end
26: def __DIR__ eval("File.dirname(__FILE__)") end
52: def self.constants_in_contents(str, file = __FILE__) klasses = ObjectSpace.classes.dup
59: def self.operation( name, the_alias=name ) class_eval <<-EOF, __FILE__, __LINE__+1 def test_#{the_alias}
1: dir = File.dirname(__FILE__) Dir[File.expand_path("#{dir}/**/*.rb")].uniq.each do |file|
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
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
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'
1: dir = File.dirname(__FILE__) require 'spec/rails/matchers/assert_select'
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.]+)'/
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
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'
1: $:.unshift(File.dirname(__FILE__) + "/../lib/")
26: class FunkyPathMailer < ActionMailer::Base self.template_root = "#{File.dirname(__FILE__)}/fixtures/path.with.dots"
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))
3: $:.unshift(File.join(File.dirname(__FILE__))) require 'plurk/easy_class_maker'
1: load 'Rakefile' Dir[File.join(File.dirname(__FILE__), '../tasks', '**/*.rake')].each { |rake| load rake }
80: @song_files.each do |sf| i_tunes.add(MacTypes::FileURL.path(File.expand_path(File.dirname(__FILE__) + "/#{sf}")), :to => pl) end
90: # Directory containing the watir.rb file @@dir = File.expand_path(File.dirname(__FILE__))
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]}"
6: # For a full list of features and instructions, see the README. $:.unshift File.expand_path(File.dirname(__FILE__))
1: RADIANT_ROOT = File.join(File.dirname(__FILE__), "..") unless defined? RADIANT_ROOT
108: MIME_TYPES_FILE = "mime_types.yml" MIME_TYPES = YAML.load_file(File.join(File.dirname(__FILE__), MIME_TYPES_FILE))
1: $:.unshift File.dirname(__FILE__) require 'test_helper.rb'
32: LibPath = File.dirname(__FILE__)
60: LibPath = File.dirname(__FILE__)
39: body.gsub!(/<\/body>.*$/mi,'') body << ERB.new(File.open(File.join(File.dirname(__FILE__), '..', 'templates','log.rhtml'), 'r').read).result body << '</body></html>'
104: LibPath = File.dirname(__FILE__)
56: initialize_without_loading(*args) @load_paths = [".", File.expand_path(File.join(File.dirname(__FILE__), "../recipes"))] @loaded_features = []
3: require 'mkmf' $:.unshift File.dirname(__FILE__) require 'type'
20: LibPath = File.dirname(__FILE__)
12: super @template_root << File.join(File.dirname(__FILE__), 'template') end
226: def put_asset(name, to) put(File.read("#{File.dirname(__FILE__)}/assets/#{name}"), to) end
12: rails_base = File.expand_path( File.join(File.dirname(__FILE__), # RAILS_ROOT/vendor/plugins/engines/lib '..', # RAILS_ROOT/vendor/plugins/engines
429: def self.spec_cache(specfile) File::join(File::dirname(__FILE__), "spec_cache", File::basename(specfile, ".xml") + ".rb_marshal")
225: def put_asset(name, to) put(File.read("#{File.dirname(__FILE__)}/assets/#{name}"), to) end
367: dirs = [".", File.join(File.dirname(__FILE__), "recipes", "templates")] dirs.each do |dir|
16: lib = File.expand_path(File.join(File.dirname(__FILE__), 'lib')) $LOAD_PATH.unshift(lib) if File.exist?(lib)
2: $TESTING=true $:.push File.join(File.dirname(__FILE__), '..', 'lib') require 'merb-core'
1: $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../ext") require "xml/libxml_so" unless defined?(XML)
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__))
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)
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"
17: $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
1: dir = File.dirname(__FILE__)
6: $:.unshift File.dirname(__FILE__) + '/../lib' require File.dirname(__FILE__) + '/../init'
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
1: $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
4: $: << File.join(File.dirname(__FILE__), "..", "..", "lib")
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')
1: require 'test/unit' $LOAD_PATH << File.dirname(__FILE__) + '/../lib/' require 'http_authentication'
17: $:.unshift "#{File.dirname(__FILE__)}/../../../lib"
9: context "Rack::Cascade" do docroot = File.expand_path(File.dirname(__FILE__)) app1 = Rack::File.new(docroot)
13: $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
71: if opt[:ca_cert].nil? File.dirname(__FILE__) + '/../lib/WebMoneyCA.crt' else
4: <%= class_name %>.view_root = File.dirname(__FILE__) + '/views'
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)
1: $: << File.dirname(__FILE__) #--