#ack --group --ruby 'defined\?(?!.*defined\?).*?\b([A-Z]\w+\b).*\b\1\b' CFPropertyList-2.3.6/lib/cfpropertylist/rbCFPropertyList.rb 163: when Object.const_defined?('BigDecimal') && object.is_a?(BigDecimal) CFPropertyList-3.0.5/lib/cfpropertylist/rbCFPropertyList.rb 147: when Object.const_defined?('BigDecimal') && object.is_a?(BigDecimal) actioncable-7.0.3/lib/action_cable/connection/base.rb 153: environment = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application actionmailer-7.0.3/lib/action_mailer/delivery_methods.rb 30: location: defined?(Rails.root) ? "#{Rails.root}/tmp/mails" : "#{Dir.tmpdir}/mails" actionmailer-7.0.3/lib/action_mailer/railtie.rb 28: options.preview_path ||= defined?(Rails.root) ? "#{Rails.root}/test/mailers/previews" : nil actionpack-7.0.3/lib/action_controller/log_subscriber.rb 34: message << "\n\n" if defined?(Rails.env) && Rails.env.development? actionpack-7.0.3/lib/action_controller/test_case.rb 47: env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application 590: if ActionController::TestCase.executor_around_each_request && defined?(Rails.application) && Rails.application actionpack-7.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb 4:

Rails.root: <%= defined?(Rails) && Rails.respond_to?(:root) ? Rails.root : "unset" %>

actionpack-7.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb 1:Rails.root: <%= defined?(Rails) && Rails.respond_to?(:root) ? Rails.root : "unset" %> actionpack-7.0.3/lib/action_dispatch/middleware/templates/rescues/invalid_statement.html.erb 13: <% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %> 16: <% if defined?(ActionMailbox) && @exception.message.match?(%r{#{ActionMailbox::InboundEmail.table_name}}) %> actionpack-7.0.3/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb 7:<% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %> 10:<% if defined?(ActionMailbox) && @exception.message.match?(%r{#{ActionMailbox::InboundEmail.table_name}}) %> actionpack-7.0.3/lib/action_dispatch/testing/test_request.rb 16: env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application actionview-7.0.3/lib/action_view/template.rb 168: @short_identifier ||= defined?(Rails.root) ? identifier.delete_prefix("#{Rails.root}/") : identifier activerecord-7.0.3/lib/active_record/connection_adapters/sqlite3_adapter.rb 97: database_file = defined?(Rails.root) ? File.expand_path(config[:database], Rails.root) : config[:database] activerecord-7.0.3/lib/active_record/connection_handling.rb 5: RAILS_ENV = -> { (Rails.env if defined?(Rails.env)) || ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence } activerecord-7.0.3/lib/active_record/core.rb 86: if defined?(ApplicationRecord) && self == ApplicationRecord activerecord-7.0.3/lib/active_record/migration.rb 640: root = defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root activerecord-7.0.3/lib/active_record/railtie.rb 46: if defined?(ENGINE_ROOT) && engine = Rails::Engine.find(ENGINE_ROOT) activerecord-7.0.3/lib/rails/generators/active_record/migration.rb 31: if defined?(Rails.application) && Rails.application activesupport-7.0.3/lib/active_support/deprecation/behaviors.rb 27: if defined?(Rails.logger) && Rails.logger activesupport-7.0.3/lib/active_support/log_subscriber.rb 84: @logger ||= if defined?(Rails) && Rails.respond_to?(:logger) activesupport-7.0.3/lib/active_support/testing/isolation.rb 48: test_result = defined?(Minitest::Result) ? Minitest::Result.from(self) : dup 73: test_result = defined?(Minitest::Result) ? Minitest::Result.from(self) : dup activesupport-7.0.3/lib/active_support/testing/tagged_logging.rb 23: @tagged_logger ||= (defined?(Rails.logger) && Rails.logger) airbrake-13.0.2/lib/airbrake/rack/context_filter.rb 47: if defined?(::Rails) && ::Rails.respond_to?(:version) airbrake-13.0.2/lib/airbrake/rack/route_filter.rb 47: defined?(Sinatra::Request) && request.instance_of?(Sinatra::Request) airbrake-ruby-6.1.1/lib/airbrake-ruby/backtrace.rb 135: defined?(OCIError) && exception.is_a?(OCIError) airbrake-ruby-6.1.1/lib/airbrake-ruby/config.rb 172: (defined?(Bundler) && Bundler.root) || amq-protocol-2.3.2/lib/amq/protocol/table_value_encoder.rb 63: if defined?(BigDecimal) && value.is_a?(BigDecimal) autoprefixer-rails-10.4.7.0/lib/autoprefixer-rails/processor.rb 78: from ||= if defined?(Rails) && Rails.respond_to?(:root) && Rails.root awesome_print-1.9.2/lib/awesome_print/ext/active_support.rb 17: if (defined?(::ActiveSupport::TimeWithZone) && object.is_a?(::ActiveSupport::TimeWithZone)) || object.is_a?(::Date) awesome_print-1.9.2/lib/awesome_print/ext/mongoid.rb 23: elsif (defined?(::BSON) && object.is_a?(::BSON::ObjectId)) || (defined?(::Moped::BSON) && object.is_a?(::Moped::BSON::ObjectId)) awesome_print-1.9.2/lib/awesome_print/ext/nokogiri.rb 18: if (defined?(::Nokogiri::XML::Node) && object.is_a?(::Nokogiri::XML::Node)) || 19: (defined?(::Nokogiri::XML::NodeSet) && object.is_a?(::Nokogiri::XML::NodeSet)) awesome_print-1.9.2/lib/awesome_print/ext/ostruct.rb 15: if (defined?(::OpenStruct)) && (object.is_a?(::OpenStruct)) awesome_print-1.9.2/lib/awesome_print/ext/sequel.rb 18: if defined?(::Sequel::Model) && object.is_a?(::Sequel::Model) 20: elsif defined?(::Sequel::Model) && object.is_a?(Class) && object.ancestors.include?(::Sequel::Model) 22: elsif defined?(::Sequel::Mysql2::Dataset) && object.class.ancestors.include?(::Sequel::Mysql2::Dataset) aws-sdk-v1-1.67.0/lib/aws/core/http/patch.rb 45: defined?(OpenSSL::SSL) ? OpenSSL::SSL::SSLError : IOError, better_errors-2.9.1/lib/better_errors/inspectable_value.rb 38: if defined?(ObjectSpace) && defined?(ObjectSpace.memsize_of) && ObjectSpace.memsize_of(value) binding_of_caller-1.0.0/lib/binding_of_caller.rb 3:if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" bootstrap-sass-3.4.1/lib/bootstrap-sass.rb 14: elsif defined?(::Sass) && ::Sass.respond_to?(:load_paths) brakeman-5.2.3/bundle/ruby/2.7.0/gems/erubis-2.7.0/contrib/erubis 3437: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" brakeman-5.2.3/bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis/main.rb 488: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" brakeman-5.2.3/bundle/ruby/2.7.0/gems/haml-5.2.2/lib/haml/railtie.rb 37: if defined?(::Erubi) && (::ActionView::Template::Handlers::ERB.const_get('Erubi') != ::Erubi) brakeman-5.2.3/bundle/ruby/2.7.0/gems/highline-2.0.3/lib/highline/terminal.rb 145: defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" 150: defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" 155: defined?(RUBY_PLATFORM) && (RUBY_PLATFORM =~ /mswin|mingw|cygwin/) brakeman-5.2.3/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb 7: YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : (defined?(Psych) && YAML == Psych ? "psych" : "syck") brakeman-5.2.3/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/filters/string_splitter.rb 10: if defined?(Ripper) && RUBY_VERSION >= "2.0.0" && Ripper.respond_to?(:lex) brakeman-5.2.3/bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/static_analyzer.rb 33: defined?(Ripper) && Ripper.respond_to?(:lex) brakeman-5.2.3/bundle/ruby/2.7.0/gems/unicode-display_width-1.8.0/lib/unicode/display_width.rb 48:unless defined?(Unicode::DisplayWidth::NO_STRING_EXT) && Unicode::DisplayWidth::NO_STRING_EXT bunny-2.19.0/spec/spec_helper.rb 41: !defined?(RUBY_ENGINE) || (defined?(RUBY_ENGINE) && ("ruby" == RUBY_ENGINE)) 45: defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'rbx') capistrano-3.17.0/lib/capistrano/doctor/environment_doctor.rb 13: Bundler #{defined?(Bundler::VERSION) ? Bundler::VERSION : 'N/A'} capybara-3.37.1/lib/capybara/rspec/matcher_proxies.rb 31: if defined?(::RSpec::Matchers) && base.include?(::RSpec::Matchers) 52: base.include(::Capybara::RSpecMatcherProxies) if defined?(::RSpec::Matchers) && base.include?(::RSpec::Matchers) capybara-3.37.1/lib/capybara/selenium/driver.rb 336: defined?(Selenium::WebDriver::VERSION) && (Selenium::WebDriver::VERSION.to_f >= 4) capybara-3.37.1/lib/capybara/selenium/driver_specializations/firefox_driver.rb 13: (defined?(Selenium::WebDriver::VERSION) && (Selenium::WebDriver::VERSION.to_f >= 4)) || capybara-3.37.1/lib/capybara/selenium/node.rb 460: (defined?(Selenium::WebDriver::VERSION) && (Selenium::WebDriver::VERSION.to_f >= 4)) || capybara-3.37.1/lib/capybara/selenium/patches/action_pauser.rb 23:if defined?(::Selenium::WebDriver::VERSION) && (::Selenium::WebDriver::VERSION.to_f < 4) && capybara-3.37.1/lib/capybara.rb 393: [defined?(Nokogiri::HTML4) ? Nokogiri::HTML4 : Nokogiri::HTML, false] capybara-3.37.1/spec/selenium_spec_chrome_remote.rb 35: defined?(Selenium::WebDriver::VERSION) && (Selenium::WebDriver::VERSION.to_f >= version) capybara-3.37.1/spec/spec_helper.rb 19: ((defined?(::Selenium::WebDriver::VERSION) && (::Selenium::WebDriver::VERSION.to_f >= 4)) || celluloid-0.18.0/lib/celluloid/autostart.rb 7:Celluloid.register_shutdown unless defined?($CELLULOID_TEST) && $CELLULOID_TEST celluloid-0.18.0/lib/celluloid/internals/cpu_counter.rb 31: Java::Java.lang.Runtime.getRuntime.availableProcessors if defined? Java::Java celluloid-0.18.0/spec/support/includer.rb 4: (defined? INCLUDED_MODULE) ? INCLUDED_MODULE : Celluloid celluloid-essentials-0.20.5/lib/celluloid/internals/cpu_counter.rb 33: Java::Java.lang.Runtime.getRuntime.availableProcessors if defined? Java::Java chef-17.10.0/lib/chef/http/http_request.rb 45: engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby" chef-17.10.0/lib/chef/provider/package/rubygems.rb 136: if defined?(Gem::Format) && Gem::Package.respond_to?(:open) chef-17.10.0/lib/chef/resource/breakpoint.rb 96: if defined?(Shell) && Shell.running? chef-17.10.0/spec/support/ruby_installer.rb 38: if defined?(RubyInstaller::Build) && RubyInstaller::Build.methods.include?(:add_dll_directory) 41: elsif defined?(RubyInstaller::Runtime) && RubyInstaller::Runtime.methods.include?(:add_dll_directory) chef-sugar-5.1.12/lib/chef/sugar/architecture.rb 23: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) 139: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-sugar-5.1.12/lib/chef/sugar/docker.rb 23: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) 39: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-sugar-5.1.12/lib/chef/sugar/kitchen.rb 23: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) 39: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-sugar-5.1.12/lib/chef/sugar/platform.rb 125: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-sugar-5.1.12/lib/chef/sugar/platform_family.rb 23: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 15.4.70").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-sugar-5.1.12/lib/chef/sugar/shell.rb 26: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 16.0.257").satisfied_by?(Gem::Version.new(Chef::VERSION)) 135: if !defined?(Chef::VERSION) || Gem::Requirement.new("< 16.0.257").satisfied_by?(Gem::Version.new(Chef::VERSION)) chef-utils-17.10.0/lib/chef-utils/internal.rb 61: return Chef.run_context&.node if defined?(Chef) && Chef.respond_to?(:run_context) && Chef.run_context&.node 87: return Chef.run_context.transport_connection if defined?(Chef) && Chef.respond_to?(:run_context) && Chef&.run_context&.transport_connection childprocess-4.1.0/lib/childprocess.rb 45: elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby" childprocess-4.1.0/spec/spec_helper.rb 17: RUBY = defined?(Gem) ? Gem.ruby : 'ruby' coderay-1.1.3/lib/coderay/scanners/scanner.rb 72: @encoding ||= defined?(Encoding.find) && Encoding.find(name) coercible-1.0.0/lib/coercible.rb 16: @is_rbx ||= defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' colored2-3.1.2/lib/colored2/numbers.rb 1:require 'colored2' unless defined?(Colored2) && Colored2.respond_to?(:decorate) colored2-3.1.2/lib/colored2/object.rb 1:require 'colored2' unless defined?(Colored2) && Colored2.respond_to?(:decorate) colored2-3.1.2/lib/colored2/strings.rb 1:require 'colored2' unless defined?(Colored2) && Colored2.respond_to?(:decorate) commander-fastlane-4.4.6/lib/commander/platform.rb 4: defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'jruby') compass-1.0.3/lib/compass/test_case.rb 18: class TestCase < (defined?(ActiveSupport::TestCase) ? ActiveSupport::TestCase : Test::Unit::TestCase) compass-core-1.0.3/lib/compass/configuration/data.rb 99: paths.map!{|p| defined?(Pathname) && Pathname === p ? p.to_s : p} compass-core-1.0.3/lib/compass/configuration/defaults.rb 109: elsif defined?(Sass::Plugin) && Sass::Plugin.options[:cache_location] concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/thread_safe/util/cheap_lockable.rb 35: engine = defined?(RUBY_ENGINE) && RUBY_ENGINE concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/tuple.rb 27: Tuple = defined?(Rubinius::Tuple) ? Rubinius::Tuple : ::Array concurrent-ruby-1.1.10/lib/concurrent-ruby/concurrent/utility/engine.rb 39: defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' cucumber-core-10.1.1/lib/cucumber/core/platform.rb 9: IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby" cucumber-core-10.1.1/lib/cucumber/core/test/timer.rb 38: elsif (defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby') == 'jruby' cucumber-core-11.0.0/lib/cucumber/core/platform.rb 9: IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby" cucumber-core-11.0.0/lib/cucumber/core/test/timer.rb 38: elsif (defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby') == 'jruby' dalli-3.2.2/lib/dalli.rb 41: (defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger) || 42: (defined?(RAILS_DEFAULT_LOGGER) && RAILS_DEFAULT_LOGGER.respond_to?(:debug) && RAILS_DEFAULT_LOGGER) debug-1.4.0/lib/debug/prelude.rb 16: if !defined?(::DEBUGGER__::SO_VERSION) || ::DEBUGGER__::VERSION != ::DEBUGGER__::SO_VERSION debug-1.4.0/lib/debug/session.rb 2058: if defined?(SESSION) && SESSION.active? 2067: return super unless defined?(SESSION) && SESSION.active? 2142: if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint? 2185: return if !defined?(::DEBUGGER__::SESSION) || !::DEBUGGER__::SESSION.active? debug-1.6.3/lib/debug/prelude.rb 17: if !defined?(::DEBUGGER__::SO_VERSION) || ::DEBUGGER__::VERSION != ::DEBUGGER__::SO_VERSION debug-1.6.3/lib/debug/session.rb 2221: if defined?(SESSION) && SESSION.active? 2245: return super unless defined?(SESSION) && SESSION.active? 2261: return super unless defined?(SESSION) && SESSION.active? 2338: if defined?(SESSION) && SESSION.active? && SESSION.intercept_trap_sigint? 2399: return if !defined?(::DEBUGGER__::SESSION) || !::DEBUGGER__::SESSION.active? debug_inspector-1.1.0/ext/debug_inspector/extconf.rb 10: defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && devise-4.8.1/lib/devise/models/confirmable.rb 51: if defined?(ActiveRecord) && self < ActiveRecord::Base # ActiveRecord devise-4.8.1/lib/devise.rb 301: defined?(ActiveRecord) && ActiveRecord.gem_version >= Gem::Version.new("5.1.x") elastic-transport-8.0.1/lib/elastic/transport/meta_header.rb 127: elsif defined?(Transport::HTTP::Curb) && @transport_class == Transport::HTTP::Curb 129: elsif defined?(Transport::HTTP::Manticore) && @transport_class == Transport::HTTP::Manticore elastic-transport-8.0.1/lib/elastic/transport/transport/base.rb 456: if defined?(Elastic::Transport::Transport::HTTP::Manticore) && self.class == Elastic::Transport::Transport::HTTP::Manticore elastic-transport-8.0.1/lib/elastic/transport/transport/http/faraday.rb 78: ::Faraday.const_defined?(:ServerError) ? ::Faraday::ServerError : nil, elastic-transport-8.0.1/spec/elastic/transport/meta_header_spec.rb 26: let(:adapter_code) { "nh=#{defined?(Net::HTTP::VERSION) ? Net::HTTP::VERSION : Net::HTTP::HTTPVersion}" } elastic-transport-8.0.1/test/unit/transport_manticore_test.rb 266: version = "#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'Ruby'} #{RUBY_VERSION}" elasticsearch-8.3.0/spec/unit/api_key_spec.rb 76: let(:adapter_code) { "nh=#{defined?(Net::HTTP::VERSION) ? Net::HTTP::VERSION : Net::HTTP::HTTPVersion}" } elasticsearch-transport-7.17.1/Rakefile 89:if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9' elasticsearch-transport-7.17.1/lib/elasticsearch/transport/meta_header.rb 127: elsif defined?(Transport::HTTP::Curb) && @transport_class == Transport::HTTP::Curb 129: elsif defined?(Transport::HTTP::Manticore) && @transport_class == Transport::HTTP::Manticore elasticsearch-transport-7.17.1/lib/elasticsearch/transport/transport/base.rb 451: if defined?(Elasticsearch::Transport::Transport::HTTP::Manticore) && self.class == Elasticsearch::Transport::Transport::HTTP::Manticore elasticsearch-transport-7.17.1/lib/elasticsearch/transport/transport/connections/selector.rb 55: connections.to_a.send( defined?(RUBY_VERSION) && RUBY_VERSION > '1.9' ? :sample : :choice) elasticsearch-transport-7.17.1/spec/elasticsearch/transport/meta_header_spec.rb 27: let(:adapter_code) { "nh=#{defined?(Net::HTTP::VERSION) ? Net::HTTP::VERSION : Net::HTTP::HTTPVersion}" } elasticsearch-transport-7.17.1/test/test_helper.rb 38:if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9' 56:if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9' elasticsearch-transport-7.17.1/test/unit/transport_manticore_test.rb 267: version = "#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'Ruby'} #{RUBY_VERSION}" erubi-1.10.0/lib/erubi.rb 25: CGI.extend(defined?(::CGI::Escape) ? ::CGI::Escape : ::CGI::Util) erubis-2.7.0/contrib/erubis 3437: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" erubis-2.7.0/lib/erubis/main.rb 488: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" erubis-2.7.0/test/testutil.rb 21: defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" ethon-0.15.0/lib/ethon/easy/queryable.rb 90: if defined?(MIME) && t = MIME::Types.type_for(filename).first ethon-0.15.0/lib/ethon/loggable.rb 55: defined?(::Rails) && ::Rails.respond_to?(:logger) && ::Rails.logger excon-0.92.3/lib/excon/socket.rb 238: if OpenSSL.const_defined?(:OPENSSL_LIBRARY_VERSION) && OpenSSL::OPENSSL_LIBRARY_VERSION.split(' ')[1] == '1.0.2' executable-hooks-1.6.1/lib/rubygems_plugin.rb 9: ( !defined?(Bundler) || ( defined?(Bundler) && Bundler::SharedHelpers.in_bundle? && !Bundler.settings[:disable_shared_gems]) ) facter-4.2.10/lib/facter/framework/core/fact_loaders/internal_fact_loader.rb 37: type = class_name.const_defined?('TYPE') ? class_name::TYPE : :core faraday-1.4.3/spec/faraday/utils/headers_spec.rb 42: expected_error = defined?(KeyError) ? KeyError : IndexError faraday-em_synchrony-1.0.0/lib/faraday/adapter/em_synchrony.rb 75: if defined?(OpenSSL) && e.is_a?(OpenSSL::SSL::SSLError) faraday-net_http-1.0.1/lib/faraday/adapter/net_http.rb 68: raise Faraday::SSLError, e if defined?(OpenSSL) && e.is_a?(OpenSSL::SSL::SSLError) ffi-1.15.5/lib/ffi/library.rb 98: lib_flags = defined?(@ffi_lib_flags) ? @ffi_lib_flags : FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL ffi-yajl-2.4.0/lib/ffi_yajl/benchmark/encode.rb 7:if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/ ffi-yajl-2.4.0/lib/ffi_yajl/benchmark/parse.rb 5:if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/ foreman-0.87.2/lib/foreman.rb 10: defined?(RUBY_VERSION) and RUBY_VERSION =~ /^1\.8\.\d+/ 14: defined?(RUBY_PLATFORM) and RUBY_PLATFORM =~ /(win|w)32$/ haml-5.2.2/lib/haml/railtie.rb 37: if defined?(::Erubi) && (::ActionView::Template::Handlers::ERB.const_get('Erubi') != ::Erubi) highline-1.7.10/lib/highline/system_extensions.rb 12: JRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' hiredis-0.6.3/lib/hiredis/ruby/connection.rb 9: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "rbx" 26: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" http-form_data-2.3.0/lib/http/form_data/file.rb 54: elsif defined?(Pathname) && path_or_io.is_a?(Pathname) httpclient-2.8.3/test/test_hexdump.rb 12:end if defined?(RUBY_ENGINE) && RUBY_ENGINE != "rbx" && RUBY_VERSION >= "1.9.0" inspec-core-4.56.20/lib/inspec/reporters/cli.rb 225: return text if defined?(RSpec.configuration) && !RSpec.configuration.color inspec-core-4.56.20/lib/inspec/resource.rb 70: test_backend = defined?(Train::Transports::Mock::Connection) && backend.backend.class == Train::Transports::Mock::Connection journey-1.0.4/lib/journey/router/utils.rb 42: Parser = URI.const_defined?(:Parser) ? URI::Parser.new : URI json-1.8.6/Rakefile 195:if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby' json-1.8.6/lib/json/add/bigdecimal.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/complex.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/date.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/date_time.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/exception.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/ostruct.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/range.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/rational.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/regexp.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/struct.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/symbol.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json-1.8.6/lib/json/add/time.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/bigdecimal.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/complex.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/date.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/date_time.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/exception.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/ostruct.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/range.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/rational.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/regexp.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/set.rb 1:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/struct.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/symbol.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED json_pure-2.6.2/lib/json/add/time.rb 2:unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED jwt-2.4.1/lib/jwt/security_utils.rb 46: return [] unless defined?(RbNaCl) && RbNaCl::HMAC.constants(false).include?(algorithm) kgio-2.11.4/test/test_cross_thread_close.rb 19: unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && 26:end if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" knapsack-4.0.0/lib/knapsack/adapters/rspec_adapter.rb 50: if defined?(::Turnip) && Gem::Version.new(::Turnip::VERSION) < Gem::Version.new('2.0.0') kramdown-2.4.0/lib/kramdown/converter.rb 41: if !klass.const_defined?(:AVAILABLE) || klass::AVAILABLE 57: if !klass.const_defined?(:AVAILABLE) || klass::AVAILABLE launchy-2.5.0/lib/launchy/detect/ruby_engine.rb 44: @ruby_engine = defined?( RUBY_ENGINE ) ? RUBY_ENGINE : "ruby" logging-2.3.1/lib/logging/log_event.rb 15: CALLER_INDEX = ((defined?(JRUBY_VERSION) && JRUBY_VERSION > '1.6' && JRUBY_VERSION < '9.0') || 16: (defined?(RUBY_ENGINE) && RUBY_ENGINE[%r/^rbx/i])) ? 1 : 2 logging-2.3.1/lib/logging/utils.rb 108: conf = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG mail-2.7.1/lib/mail/utilities.rb 167: @uri_parser ||= URI.const_defined?(:Parser) ? URI::Parser.new : URI marcel-1.0.2/lib/marcel/mime_type.rb 63: if defined?(Pathname) && pathname_or_io.is_a?(Pathname) method_source-1.0.0/lib/method_source/source_location.rb 15: elsif defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/ 58: elsif defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/ 85: elsif defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/ method_source-1.0.0/spec/method_source_spec.rb 71: unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" method_source-1.0.0/spec/spec_helper.rb 5: defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/ 9: defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/ minitest-5.15.0/lib/minitest.rb 57: if Object.const_defined?(:Warning) && Warning.respond_to?(:[]=) 974: def maglev? platform = defined?(RUBY_ENGINE) && RUBY_ENGINE 998: def rubinius? platform = defined?(RUBY_ENGINE) && RUBY_ENGINE mocha-1.14.0/Rakefile 37: t.test_files = if defined?(RUBY_VERSION) && (RUBY_VERSION >= '1.8.7') 88: if RUBY_VERSION >= '2.2.0' && (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby') && ENV['MOCHA_RUN_INTEGRATION_TESTS'].nil? mocha-1.14.0/lib/mocha/detection/test_unit.rb 6: !(defined?(::MiniTest::Unit::TestCase) && (::Test::Unit::TestCase < ::MiniTest::Unit::TestCase)) && 7: !(defined?(::MiniTest::Spec) && (::Test::Unit::TestCase < ::MiniTest::Spec)) mongo-2.17.1/lib/mongo/socket.rb 408: defined?(UNIXSocket) && sock.is_a?(UNIXSocket) msgpack-1.5.2/ext/msgpack/extconf.rb 15:if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' msgpack-1.5.2/lib/msgpack.rb 3:if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" # This is same with `/java/ =~ RUBY_VERSION` mustermann-1.1.1/lib/mustermann.rb 121: return super unless defined? ::Sinatra::Base and object.is_a? Class and object < ::Sinatra::Base mysql2-0.5.4/lib/mysql2.rb 48:if defined?(ActiveRecord::VERSION::STRING) && ActiveRecord::VERSION::STRING < "3.1" net-ssh-6.1.0/lib/net/ssh/authentication/agent.rb 195: defined?(UNIXSocket) && UNIXSocket net-ssh-6.1.0/lib/net/ssh/service/forward.rb 66: if defined?(UNIXServer) and args.first.class == UNIXServer net-ssh-7.0.1/lib/net/ssh/authentication/agent.rb 211: defined?(UNIXSocket) && UNIXSocket net-ssh-7.0.1/lib/net/ssh/service/forward.rb 65: if defined?(UNIXServer) and args.first.class == UNIXServer newrelic_rpm-8.8.0/lib/new_relic/agent/database/explain_plan_helpers.rb 50: elsif defined?(::ActiveRecord::Result) && results.is_a?(::ActiveRecord::Result) 70: if defined?(::ActiveRecord::Result) && results.is_a?(::ActiveRecord::Result) newrelic_rpm-8.8.0/lib/new_relic/agent/error_collector.rb 204: actual_exception = if defined?(Rails::VERSION::MAJOR) && Rails::VERSION::MAJOR < 5 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/active_record.rb 22: if defined?(::ActiveRecord::VERSION::MAJOR) && ::ActiveRecord::VERSION::MAJOR.to_i >= 3 160: if defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR.to_i == 3 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/active_record_subscriber.rb 35: if defined?(::ActiveRecord) && ::ActiveRecord::VERSION::STRING >= "5.1.0" newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/grape/instrumentation.rb 15: defined?(::Grape::API::Instance) ? ::Grape::API::Instance : ::Grape::API 31: if defined?(::Grape::VERSION) && Gem::Version.new(::Grape::VERSION) >= Gem::Version.new("0.16.0") newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/grape.rb 22: if defined?(Bundler) && Bundler.rubygems.all_specs.map(&:name).include?("newrelic-grape") newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/middleware_proxy.rb 39: defined?(::Sinatra::Base) && target.kind_of?(::Sinatra::Base) newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/net_http.rb 22: defined?(::Airbrake) && defined?(::Airbrake::AIRBRAKE_VERSION) && ::Gem::Version.create(::Airbrake::AIRBRAKE_VERSION) < ::Gem::Version.create('10.0.2') newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/rails3/action_controller.rb 69: defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR.to_i == 3 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/rails_middleware.rb 15: defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR.to_i >= 3 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/rails_notifications/action_controller.rb 11: defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR.to_i >= 4 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/rails_notifications/action_view.rb 11: defined?(::Rails::VERSION::MAJOR) && ::Rails::VERSION::MAJOR.to_i >= 4 newrelic_rpm-8.8.0/lib/new_relic/agent/instrumentation/resque.rb 18: defined?(::Airbrake) && defined?(::Airbrake::AIRBRAKE_VERSION) && ::Gem::Version.create(::Airbrake::AIRBRAKE_VERSION) < ::Gem::Version.create('11.0.3') newrelic_rpm-8.8.0/lib/new_relic/agent/logging.rb 122: class DecoratingLogger < (defined?(::ActiveSupport) && defined?(::ActiveSupport::Logger) ? ::ActiveSupport::Logger : ::Logger) newrelic_rpm-8.8.0/lib/new_relic/agent/new_relic_service.rb 632: zlib_version << "zlib/#{Zlib.zlib_version}" if defined?(::Zlib) && Zlib.respond_to?(:zlib_version) newrelic_rpm-8.8.0/lib/new_relic/agent/parameter_filtering.rb 12: if defined?(Rails) && Gem::Version.new(::Rails::VERSION::STRING) >= Gem::Version.new('5.0.0') newrelic_rpm-8.8.0/lib/new_relic/control/frameworks/rails.rb 35: if defined?(::Rails) && ::Rails.respond_to?(:configuration) newrelic_rpm-8.8.0/lib/new_relic/control/instrumentation.rb 72: return unless defined?(Rails::VERSION) && Gem::Version.new(Rails::VERSION::STRING) <= Gem::Version.new('3.2') newrelic_rpm-8.8.0/lib/new_relic/environment_report.rb 80: if defined? ::Rails and ::Rails.respond_to?(:env) newrelic_rpm-8.8.0/lib/new_relic/language_support.rb 76: defined?(Bundler) && Bundler.rubygems.all_specs.map(&:name).include?(gem_name) newrelic_rpm-8.8.0/lib/new_relic/noticed_error.rb 196: if defined?(Rails::VERSION::MAJOR) && Rails::VERSION::MAJOR < 5 && exception.respond_to?(:original_exception) newrelic_rpm-8.8.0/lib/new_relic/recipes/capistrano_legacy.rb 85:if defined?(Capistrano::Version::MAJOR) && Capistrano::Version::MAJOR < 2 newrelic_rpm-8.8.0/lib/new_relic/recipes.rb 20:if defined?(Capistrano::VERSION) && Capistrano::VERSION.to_s.split('.').first.to_i >= 3 newrelic_rpm-8.8.0/lib/sequel/extensions/newrelic_instrumentation.rb 81: (defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool) nio4r-2.5.8/lib/nio/monitor.rb 11: unless defined?(::OpenSSL) && io.is_a?(::OpenSSL::SSL::SSLSocket) nio4r-2.5.8/lib/nio/selector.rb 49: unless defined?(::OpenSSL) && io.is_a?(::OpenSSL::SSL::SSLSocket) nokogiri-1.13.6-x86_64-linux/lib/nokogiri/version/info.rb 23: defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "mri" 53: defined?(Nokogiri::LIBXML_ICONV_ENABLED) && Nokogiri::LIBXML_ICONV_ENABLED 57: defined?(Nokogiri::LIBXSLT_DATETIME_ENABLED) && Nokogiri::LIBXSLT_DATETIME_ENABLED nokogiri-1.13.6-x86_64-linux/lib/nokogiri.rb 6:if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" nokogiri-1.13.8-x86_64-linux/lib/nokogiri/version/info.rb 23: defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "mri" 53: defined?(Nokogiri::LIBXML_ICONV_ENABLED) && Nokogiri::LIBXML_ICONV_ENABLED 57: defined?(Nokogiri::LIBXSLT_DATETIME_ENABLED) && Nokogiri::LIBXSLT_DATETIME_ENABLED nokogiri-1.13.8-x86_64-linux/lib/nokogiri.rb 6:if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" oauth-0.5.10/lib/oauth/request_proxy/action_controller_request.rb 33: proxies(defined?(::ActionDispatch::AbstractRequest) ? ::ActionDispatch::AbstractRequest : ::ActionDispatch::Request) octokit-4.25.0/lib/octokit/response/base_middleware.rb 8: BaseMiddleware = defined?(Faraday::Response::Middleware) ? Faraday::Response::Middleware : Faraday::Middleware oj-3.13.14/test/activesupport5/abstract_unit.rb 43: Object.const_defined?(:FrozenError) ? FrozenError : RuntimeError os-1.1.4/lib/os.rb 72: if defined?(RUBY_ENGINE) && (RUBY_ENGINE == 'ironruby') os-1.1.4/spec/os_spec.rb 46: if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ironruby' 114: if defined?(RUBY_DESCRIPTION) && RUBY_DESCRIPTION =~ /^(jruby|java)/ paperclip-6.1.0/lib/paperclip/processor_helpers.rb 18: if defined?(Rails.root) && Rails.root poltergeist-1.18.1/lib/capybara/poltergeist/utility.rb 11: defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" powerpack-0.1.3/spec/powerpack/string/ascii_only_spec.rb 5:unless defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' pry-0.13.1/lib/pry/output.rb 115: return unless defined?(Readline) && Readline.respond_to?(:get_screen_size) pry-0.13.1/lib/pry/pry_class.rb 294: if !defined?(Readline) || Pry.config.input != Readline pry-0.13.1/lib/pry/repl.rb 203: defined?(Readline) && input == Readline 207: defined?(Coolline) && input.is_a?(Coolline) pry-0.13.1/lib/pry/wrapped_module.rb 266: !!(defined?(YARD) && YARD::Registry.at(name)) pry-0.14.1/lib/pry/output.rb 115: return unless defined?(Readline) && Readline.respond_to?(:get_screen_size) pry-0.14.1/lib/pry/pry_class.rb 291: if !defined?(Readline) || Pry.config.input != Readline pry-0.14.1/lib/pry/repl.rb 203: defined?(Readline) && input == Readline 207: defined?(Coolline) && input.is_a?(Coolline) pry-0.14.1/lib/pry/wrapped_module.rb 266: !!(defined?(YARD) && YARD::Registry.at(name)) pry-rails-0.3.9/lib/pry-rails/commands/show_model.rb 34: when defined?(ActiveRecord::Base) && model < ActiveRecord::Base 36: when defined?(Mongoid::Document) && model < Mongoid::Document puma-5.6.4/lib/puma/runner.rb 83: if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" rack-2.2.3.1/lib/rack/server.rb 223: argv = defined?(SPEC_ARGV) ? SPEC_ARGV : ARGV rack-cache-1.13.0/lib/rack/cache/storage.rb 47: when defined?(::Dalli) && uri.kind_of?(::Dalli::Client) rack-cors-1.1.1/lib/rack/cors.rb 144: elsif defined?(Rails) && Rails.respond_to?(:logger) && Rails.logger rack-protection-2.2.0/lib/rack/protection/escaped_params.rb 33: :escaper => defined?(EscapeUtils) ? EscapeUtils : self rack-test-2.0.2/lib/rack/test.rb 257: if !defined?(Rack::RELEASE) || Gem::Version.new(Rack::RELEASE) < Gem::Version.new('2.2.2') railties-7.0.3/lib/rails/generators/named_base.rb 139: if defined?(Rails) && Rails.application 197: !defined?(ActiveRecord::Base) || ActiveRecord::Base.pluralize_table_names railties-7.0.3/lib/rails/generators/rails/app/app_generator.rb 558: defined?(::AppBuilder) ? ::AppBuilder : Rails::AppBuilder railties-7.0.3/lib/rails/generators/rails/plugin/plugin_generator.rb 453: defined?(::PluginBuilder) ? ::PluginBuilder : Rails::PluginBuilder railties-7.0.3/lib/rails/ruby_version_check.rb 4: desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})" railties-7.0.3/lib/rails/tasks/engine.rake 20: if !defined?(ENGINE_ROOT) || !ENGINE_ROOT raindrops-0.20.0/lib/raindrops/middleware.rb 97: if tmp.nil? && defined?(Unicorn) && Unicorn.respond_to?(:listener_names) raindrops-0.20.0/test/test_raindrops_gc.rb 37:end if !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" && rake-13.0.6/lib/rake/backtrace.rb 14: Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == "jruby" rbs-2.7.0/lib/rbs/cli.rb 807: stdout.puts " #{defined?(Bundler) ? "bundle exec " : ""}rbs #{Shellwords.join(command)} --force #{Shellwords.escape(path.to_s)}" redis-4.7.0/lib/redis/connection/ruby.rb 102: if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" ref-2.0.0/lib/ref/weak_reference/weak_ref.rb 16: if (defined?(RefError) && e.is_a?(RefError)) || (defined?(::WeakRef::RefError) && e.is_a?(::WeakRef::RefError)) ref-2.0.0/lib/ref.rb 20: if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' request_store-1.5.1/lib/request_store/railtie.rb 10: if ActiveSupport.const_defined?(:Reloader) && ActiveSupport::Reloader.respond_to?(:to_complete) 14: elsif ActionDispatch.const_defined?(:Reloader) && ActionDispatch::Reloader.respond_to?(:to_cleanup) resque-2.2.1/lib/resque/server/helpers.rb 14: (defined?(Resque::Failure::RedisMultiQueue) && Resque::Failure.backend == Resque::Failure::RedisMultiQueue) resque-2.2.1/lib/resque/server.rb 8:if defined?(Encoding) && Encoding.default_external != Encoding::UTF_8 rest-client-2.1.0/lib/restclient/request.rb 842: URI.const_defined?(:Parser) ? URI::Parser.new : URI rspec-core-3.11.0/lib/rspec/core/option_parser.rb 188: if Object.const_defined?(:Warning) && Warning.respond_to?(:[]=) rspec-mocks-3.11.1/lib/rspec/mocks/syntax.rb 187: if defined?(JRUBY_VERSION) && JRUBY_VERSION == '1.7.4' && RUBY_VERSION.to_f > 1.8 rspec-rails-5.1.2/lib/rspec/rails/active_record.rb 10: if defined?(ActiveRecord) && defined?(ActiveRecord::Base) && defined?(::RSpec::Mocks) && (::RSpec::Mocks.respond_to?(:configuration)) rspec-rails-5.1.2/lib/rspec/rails/example/controller_example_group.rb 65: base_class ||= defined?(ApplicationController) ? ApplicationController : ActionController::Base 69: root_controller = defined?(ApplicationController) ? ApplicationController : ActionController::Base rspec-rails-5.1.2/lib/rspec/rails/feature_check.rb 27: defined?(::ActionCable) && ActionCable::VERSION::MAJOR >= 6 rspec-rails-5.1.2/lib/rspec/rails/matchers/action_mailbox.rb 25: if defined?(::ApplicationMailbox) && ::ApplicationMailbox.router.respond_to?(:mailbox_for) rspec-rails-5.1.2/lib/rspec/rails/matchers/relation_match_array.rb 1:if defined?(ActiveRecord::Relation) && defined?(RSpec::Matchers::BuiltIn::OperatorMatcher) # RSpec 4 removed OperatorMatcher rspec-rails-5.1.2/lib/rspec/rails/vendor/capybara.rb 15: if defined?(ActionPack) && ActionPack::VERSION::STRING >= "5.1" rspec-support-3.11.0/lib/rspec/support/object_formatter.rb 161: defined?(DateTime) && DateTime === object 177: defined?(BigDecimal) && BigDecimal === object 224: defined?(Delegator) && Delegator === object rspec-support-3.11.0/lib/rspec/support/ruby_features.rb 40: defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' 48: !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' 52: defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby' rspec_junit_formatter-0.5.1/lib/rspec_junit_formatter/rspec3.rb 152:if defined?(RSpec::Core::Notifications::NullColorizer) && RSpec::Core::Notifications::NullColorizer.is_a?(Class) && !RSpec::Core::Notifications::NullColorizer.respond_to?(:wrap) rubocop-1.31.1/lib/rubocop/lockfile.rb 31: return unless defined?(Bundler) && Bundler.default_lockfile ruby-prof-1.4.3/lib/ruby-prof/printers/call_tree_printer.rb 37: when RubyProf.const_defined?(:ALLOCATIONS) && RubyProf::ALLOCATIONS 40: when RubyProf.const_defined?(:MEMORY) && RubyProf::MEMORY 43: when RubyProf.const_defined?(:GC_RUNS) && RubyProf::GC_RUNS 46: when RubyProf.const_defined?(:GC_TIME) && RubyProf::GC_TIME rubygems-update-3.3.17/bundler/lib/bundler/capistrano.rb 14:if defined?(Capistrano::Version) && Gem::Version.new(Capistrano::Version).release >= Gem::Version.new("3.0") rubygems-update-3.3.17/bundler/lib/bundler/deployment.rb 11: if defined?(Capistrano) && context.is_a?(Capistrano::Configuration) rubygems-update-3.3.17/bundler/lib/bundler/deprecate.rb 12: if defined?(Bundler::Deprecate) && !autoload?(:Deprecate) rubygems-update-3.3.17/bundler/lib/bundler/friendly_errors.rb 48: when *[defined?(Java::JavaLang::OutOfMemoryError) && Java::JavaLang::OutOfMemoryError].compact rubygems-update-3.3.17/bundler/lib/bundler/vendor/fileutils/lib/fileutils.rb 1165: case (defined?(::RbConfig) ? ::RbConfig::CONFIG['host_os'] : ::RUBY_PLATFORM) rubygems-update-3.3.17/bundler/lib/bundler/vendor/tmpdir/lib/tmpdir.rb 16: @systmpdir ||= defined?(Etc.systmpdir) ? Etc.systmpdir : '/tmp' rubygems-update-3.3.17/lib/rubygems/optparse/lib/optparse.rb 1262: (defined?(@version) && @version) || (defined?(::Version) && ::Version) 1269: (defined?(@release) && @release) || (defined?(::Release) && ::Release) || (defined?(::RELEASE) && ::RELEASE) rubygems-update-3.3.17/lib/rubygems/security.rb 439: if defined?(OpenSSL::PKey::EC) && Gem::Version.new(String.new(RUBY_VERSION)) < Gem::Version.new("2.4.0") rubygems-update-3.3.17/lib/rubygems/specification.rb 1697: defined?(::Date) and Date === obj rubygems-update-3.3.17/lib/rubygems.rb 866: unless defined?(RUBY_PATCHLEVEL) && RUBY_PATCHLEVEL != -1 rubygems-update-3.3.17/test/rubygems/test_gem_resolver_vendor_set.rb 75: error = Object.const_defined?(:KeyError) ? KeyError : IndexError rubygems-update-3.3.17/test/rubygems/test_gem_stream_ui.rb 8: mjit_enabled = defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? safe_yaml-1.0.5/lib/safe_yaml/load.rb 7: YAML_ENGINE = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : (defined?(Psych) && YAML == Psych ? "psych" : "syck") safe_yaml-1.0.5/spec/spec_helper.rb 12:ruby_version = defined?(JRUBY_VERSION) ? "JRuby #{JRUBY_VERSION} in #{RUBY_VERSION} mode" : "Ruby #{RUBY_VERSION}" 13:yaml_engine = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : "syck" 14:libyaml_version = yaml_engine == "psych" && Psych.const_defined?("LIBYAML_VERSION", false) ? Psych::LIBYAML_VERSION : "N/A" sass-3.4.25/lib/sass/engine.rb 194: next p unless p.is_a?(String) || (defined?(Pathname) && p.is_a?(Pathname)) sass-3.4.25/lib/sass/railtie.rb 2:if defined?(ActiveSupport) && Sass::Util.has?(:public_method, ActiveSupport, :on_load) && sass-3.4.25/lib/sass/util.rb 28: RUBY_ENGINE = defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "ruby" 1193: URI_ESCAPE = URI.const_defined?("DEFAULT_PARSER") ? URI::DEFAULT_PARSER : URI sass-3.4.25/vendor/listen/lib/listen/adapters/windows.rb 45: defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' sassc-2.4.0/lib/sassc/util.rb 25: RUBY_ENGINE = defined?(::RUBY_ENGINE) ? ::RUBY_ENGINE : "ruby" selenium-webdriver-4.3.0/lib/selenium/webdriver/common/options.rb 113: browser_options = defined?(self.class::KEY) ? {self.class::KEY => options} : options selenium-webdriver-4.3.0/lib/selenium/webdriver/remote/bridge.rb 596: @escaper ||= defined?(URI::Parser) ? URI::DEFAULT_PARSER : URI sentry-raven-3.1.2/lib/raven/configuration.rb 423: if defined? Rails.root # we are in a Rails application sequel-5.57.0/lib/sequel/extensions/date_arithmetic.rb 53: if defined?(ActiveSupport::Duration) && interval.is_a?(ActiveSupport::Duration) sequel-5.57.0/lib/sequel/extensions/named_timezones.rb 95: if defined?(TZInfo::VERSION) && TZInfo::VERSION > '2' 113: if defined?(TZInfo::VERSION) && TZInfo::VERSION > '2' sequel-5.57.0/lib/sequel/extensions/pg_extended_date_support.rb 89: conv = defined?(JRUBY_VERSION) && JRUBY_VERSION == '9.2.0.0' sequel-5.57.0/lib/sequel/extensions/pg_hstore_ops.rb 130: if key.is_a?(Array) || (defined?(Sequel::Postgres::PGArray) && key.is_a?(Sequel::Postgres::PGArray)) || (defined?(Sequel::Postgres::ArrayOp) && key.is_a?(Sequel::Postgres::ArrayOp)) sequel-5.57.0/lib/sequel/extensions/pg_inet.rb 45: if !defined?(SEQUEL_PG_VERSION_INTEGER) || SEQUEL_PG_VERSION_INTEGER >= 11300 sequel-5.57.0/lib/sequel/extensions/pg_interval.rb 73: USE_PARTS_ARRAY = !defined?(ActiveSupport::VERSION::STRING) || ActiveSupport::VERSION::STRING < '5.1' sequel-5.57.0/lib/sequel/extensions/pg_json_ops.rb 303: a.is_a?(Array) || (defined?(PGArray) && a.is_a?(PGArray)) || (defined?(ArrayOp) && a.is_a?(ArrayOp)) sequel-5.57.0/lib/sequel/extensions/server_block.rb 72: if defined?(ShardedThreadedConnectionPool) && pool.is_a?(ShardedThreadedConnectionPool) sequel-5.57.0/lib/sequel/model.rb 73: if !defined?(::SEQUEL_NO_ASSOCIATIONS) && !ENV.has_key?('SEQUEL_NO_ASSOCIATIONS') sequel-5.57.0/lib/sequel/plugins/blacklist_security.rb 61: if (!defined?(::Sequel::Plugins::WhitelistSecurity::ClassMethods) || !is_a?(::Sequel::Plugins::WhitelistSecurity::ClassMethods) || !allowed_columns) && restricted_columns sequel-5.57.0/lib/sequel/plugins/throw_failures.rb 67: if RUBY_VERSION >= '2.2' && (!defined?(JRUBY_VERSION) || JRUBY_VERSION > '9.1') sidekiq-6.5.1/lib/sidekiq/cli.rb 423: defined?(::Rails) && ::Rails.respond_to?(:application) sidekiq-6.5.1/lib/sidekiq/testing.rb 341:if defined?(::Rails) && Rails.respond_to?(:env) && !Rails.env.test? && !$TESTING simple_form-5.1.0/lib/simple_form.rb 175: @@cache_discovery = defined?(Rails.env) && !Rails.env.development? simplecov-0.21.2/lib/simplecov/process.rb 6: if defined?(SimpleCov) && SimpleCov.running simplecov-0.21.2/lib/simplecov.rb 270: !defined?(ParallelTests) || !ENV["TEST_ENV_NUMBER"] || ParallelTests.last_process? sinatra-2.2.0/lib/sinatra/base.rb 1843: ruby_engine = defined?(RUBY_ENGINE) && RUBY_ENGINE sinatra-2.2.0/lib/sinatra/show_exceptions.rb 64: elsif (defined?(Gem) && frame.filename.include?(Gem.dir)) || slim-4.1.0/test/core/helper.rb 65: if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' specinfra-2.83.2/lib/specinfra/configuration.rb 39: if @os.nil? && defined?(RSpec) && RSpec.configuration.respond_to?(:os) 59: if ret.nil? && defined?(RSpec) && RSpec.configuration.respond_to?(key) specinfra-2.83.2/lib/specinfra/helper/configuration.rb 36: next if c == :lxc && defined?(Serverspec::Type::Lxc) && value.is_a?(Serverspec::Type::Lxc) spring-4.0.0/lib/spring/application.rb 121: if defined?(Rails) && Rails.application 372: defined?(ActiveRecord::Base) && ActiveRecord::Base.configurations.any? temple-0.8.2/lib/temple/filters/string_splitter.rb 10: if defined?(Ripper) && RUBY_VERSION >= "2.0.0" && Ripper.respond_to?(:lex) temple-0.8.2/lib/temple/static_analyzer.rb 33: defined?(Ripper) && Ripper.respond_to?(:lex) temple-0.8.2/test/test_static_analyzer.rb 6: Temple::StaticAnalyzer.available?.should.equal(defined?(Ripper) && Ripper.respond_to?(:lex)) test-unit-3.5.3/lib/test/unit/warning.rb 1:if defined?(Warning) and Warning.respond_to?(:[]=) thread_safe-0.3.6/lib/thread_safe/util/atomic_reference.rb 10: defined?(Atomic::InternalReference) ? Atomic::InternalReference : Atomic thread_safe-0.3.6/lib/thread_safe/util/cheap_lockable.rb 24: engine = defined?(RUBY_ENGINE) && RUBY_ENGINE thread_safe-0.3.6/lib/thread_safe/util/volatile_tuple.rb 13: Tuple = defined?(Rubinius::Tuple) ? Rubinius::Tuple : Array thread_safe-0.3.6/lib/thread_safe.rb 31: elsif !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' 36: elsif defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' timecop-0.9.5/lib/timecop/time_stack_item.rb 104: elsif Object.const_defined?(:DateTime) && arg.is_a?(DateTime) 106: elsif Object.const_defined?(:Date) && arg.is_a?(Date) tty-screen-0.8.1/lib/tty/screen.rb 21: case (defined?(::RbConfig) ? ::RbConfig::CONFIG["host_os"] : ::RUBY_PLATFORM) 29: case (defined?(::RbConfig) ? ::RbConfig::CONFIG["ruby_install_name"] : ::RUBY_ENGINE) tzinfo-2.0.4/lib/tzinfo/data_sources/ruby_data_source.rb 141: "tzdb v#{TZInfo::Data::Version::TZDATA}#{TZInfo::Data.const_defined?(:VERSION) ? ", tzinfo-data v#{TZInfo::Data::VERSION}" : ''}" unf-0.1.4/lib/unf/normalizer.rb 2:if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby' unicorn-6.1.0/lib/unicorn/http_server.rb 817: if defined?(Gem) && Gem.respond_to?(:refresh) vcr-6.1.0/lib/vcr/middleware/excon.rb 157: if defined?(::Excon::Utils) && ::Excon::Utils.respond_to?(:request_uri) webmock-3.14.0/minitest/test_helper.rb 13:test_class = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase webmock-3.14.0/minitest/test_webmock.rb 4:test_class = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase webmock-3.14.0/spec/acceptance/net_http/net_http_shared.rb 36: if !defined?(WebMock::Config) || WebMock::Config.instance.net_http_connect_on_start whenever-1.0.0/lib/whenever/capistrano.rb 3:if defined?(Capistrano::VERSION) && Gem::Version.new(Capistrano::VERSION).release >= Gem::Version.new('3.0.0') will_paginate-3.3.1/lib/will_paginate/deprecation.rb 13: defined?(Rails.logger) && Rails.logger will_paginate-3.3.1/lib/will_paginate.rb 23:if defined?(Sinatra) and Sinatra.respond_to? :register will_paginate-3.3.1/spec/finders/activerecord_test_connector.rb 48: dep = defined?(ActiveSupport::Dependencies) ? ActiveSupport::Dependencies : ::Dependencies yard-0.9.28/lib/rubygems_plugin.rb 2:if defined?(Gem::VERSION) && Gem::VERSION >= "2.0." yard-0.9.28/lib/yard/cli/yardoc.rb 226: if defined?(::Encoding) && ::Encoding.respond_to?(:default_external=) 703: if defined?(Encoding) && Encoding.respond_to?(:default_external=) yard-0.9.28/lib/yard/gem_index.rb 10: if defined?(Gem::Specification) && Gem::Specification.respond_to?(:find_all_by_name) 18: if defined?(Gem::Specification) && Gem::Specification.respond_to?(:each) yard-0.9.28/lib/yard/rubygems/backports.rb 4: if defined?(Gem::VERSION) && Gem::VERSION >= '1.8.0' yard-0.9.28/lib/yard/rubygems/specification.rb 29: if defined?(Gem::VERSION) && Gem::VERSION >= '1.7.' yard-0.9.28/lib/yard/templates/helpers/markup/rdoc_markup.rb 14: if defined?(RDoc::VERSION) && RDoc::VERSION >= '4.0.0' &&