repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/workspace/reference.rb
lib/xcodeproj/workspace/reference.rb
module Xcodeproj class Workspace # Describes a file/group reference of a Workspace. # class Reference # @return [String] the type of reference to the project # # This can be of the following values: # - absolute # - group # - container # - developer (unsupported) ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/workspace/file_reference.rb
lib/xcodeproj/workspace/file_reference.rb
require 'xcodeproj/workspace/reference' module Xcodeproj class Workspace # Describes a file reference of a Workspace. # class FileReference < Reference # @return [String] the path to the project # attr_reader :path # @param [#to_s] path @see path # @param [#to_s] type @see ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/workspace/group_reference.rb
lib/xcodeproj/workspace/group_reference.rb
require 'xcodeproj/workspace/reference' module Xcodeproj class Workspace # Describes a group reference of a Workspace. # class GroupReference < Reference # @return [String] the name of the group # attr_reader :name # @return [String] the location of the group on disk # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object_list.rb
lib/xcodeproj/project/object_list.rb
module Xcodeproj class Project # This class represents an ordered relationship to many objects. # # It works in conjunction with the {AbstractObject} class to ensure that # the project is not serialized with unreachable objects by updating the # with reference count on modifications. # # @...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object_attributes.rb
lib/xcodeproj/project/object_attributes.rb
module Xcodeproj class Project module Object # This class represents an attribute of {AbstractObject} subclasses. # Attributes are created by the {AbstractObject} DSL methods and allow to # mirror the underlying attributes of the xcodeproj document model. # # Attributes provide suppo...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/case_converter.rb
lib/xcodeproj/project/case_converter.rb
module Xcodeproj class Project module Object # Converts between camel case names used in the xcodeproj plist files # and the ruby symbols used to represent them. # module CaseConverter # @return [String] The plist equivalent of the given Ruby name. # # @param [Symb...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object_dictionary.rb
lib/xcodeproj/project/object_dictionary.rb
module Xcodeproj class Project # This class represents relationships to other objects stored in a # Dictionary. # # It works in conjunction with the {AbstractObject} class to ensure that # the project is not serialized with unreachable objects by updating the # with reference count on modifica...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/project_helper.rb
lib/xcodeproj/project/project_helper.rb
module Xcodeproj class Project module ProjectHelper include Object # @!group Targets #-----------------------------------------------------------------------# # Creates a new target and adds it to the project. # # The target is configured for the given platform and its file ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object.rb
lib/xcodeproj/project/object.rb
module Xcodeproj class Project # This is the namespace in which all the classes that wrap the objects in # a Xcode project reside. # # The base class from which all classes inherit is AbstractObject. # # If you need to deal with these classes directly, it's possible to include # this names...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/uuid_generator.rb
lib/xcodeproj/project/uuid_generator.rb
module Xcodeproj class Project class UUIDGenerator require 'digest' def initialize(projects) @projects = Array(projects) @paths_by_object = {} end def generate! generate_all_paths_by_objects(@projects) new_objects_by_project = Hash[@projects.map do |proje...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/build_configuration.rb
lib/xcodeproj/project/object/build_configuration.rb
require 'xcodeproj/project/object/file_system_synchronized_root_group' module Xcodeproj class Project module Object # Encapsulates the information a specific build configuration referenced # by a {XCConfigurationList} which in turn might be referenced by a # {PBXProject} or a {PBXNativeTarget}....
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/file_reference.rb
lib/xcodeproj/project/object/file_reference.rb
require 'xcodeproj/project/object/helpers/groupable_helper' module Xcodeproj class Project module Object # This class represents a reference to a file in the file system. # class PBXFileReference < AbstractObject # @!group Attributes # @return [String] the name of the reference...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/file_system_synchronized_exception_set.rb
lib/xcodeproj/project/object/file_system_synchronized_exception_set.rb
require 'xcodeproj/project/object_attributes' require 'xcodeproj/project/object/helpers/groupable_helper' module Xcodeproj class Project module Object # This class represents a file system synchronized build file exception set. class PBXFileSystemSynchronizedBuildFileExceptionSet < AbstractObject ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/group.rb
lib/xcodeproj/project/object/group.rb
require 'xcodeproj/project/object/helpers/groupable_helper' require 'xcodeproj/project/object/helpers/file_references_factory' require 'xcodeproj/project/object/file_system_synchronized_root_group' module Xcodeproj class Project module Object # This class represents a group. A group can contain other group...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/build_rule.rb
lib/xcodeproj/project/object/build_rule.rb
module Xcodeproj class Project module Object # This class represents a custom build rule of a Target. # class PBXBuildRule < AbstractObject # @!group Attributes # @return [String] the name of the rule. # attribute :name, String # @return [String] a strin...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/swift_package_product_dependency.rb
lib/xcodeproj/project/object/swift_package_product_dependency.rb
module Xcodeproj class Project module Object # This class represents a Swift package product dependency. # class XCSwiftPackageProductDependency < AbstractObject # @!group Attributes # @return [XCRemoteSwiftPackageReference, XCLocalSwiftPackageReference] the Swift package refere...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/native_target.rb
lib/xcodeproj/project/object/native_target.rb
module Xcodeproj class Project module Object class AbstractTarget < AbstractObject # @!group Attributes # @return [String] The name of the Target. # attribute :name, String # @return [String] the name of the build product. # attribute :product_name, ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/container_item_proxy.rb
lib/xcodeproj/project/object/container_item_proxy.rb
module Xcodeproj class Project module Object # Apparently a proxy for another object which might belong another # project contained in the same workspace of the project document. # # This class is referenced by {PBXTargetDependency} for information about # it usage see the specs of t...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/swift_package_remote_reference.rb
lib/xcodeproj/project/object/swift_package_remote_reference.rb
module Xcodeproj class Project module Object # This class represents a remote Swift package reference. # class XCRemoteSwiftPackageReference < AbstractObject # @!group Attributes # @return [String] the repository url this Swift package was installed from. # attri...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/file_system_synchronized_root_group.rb
lib/xcodeproj/project/object/file_system_synchronized_root_group.rb
require 'xcodeproj/project/object/file_system_synchronized_exception_set' module Xcodeproj class Project module Object # This class represents a file system synchronized root group. class PBXFileSystemSynchronizedRootGroup < AbstractObject # @return [String] the directory to which the path is...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/configuration_list.rb
lib/xcodeproj/project/object/configuration_list.rb
module Xcodeproj class Project module Object # The primary purpose of this class is to maintain a collection of # related build configurations of a {PBXProject} or a {PBXNativeTarget}. # class XCConfigurationList < AbstractObject # @!group Attributes # @return [String] whe...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/root_object.rb
lib/xcodeproj/project/object/root_object.rb
module Xcodeproj class Project module Object # This class represents the root object of a project document. # class PBXProject < AbstractObject # @!group Attributes # @return [ObjectList<AbstractTarget>] a list of all the targets in # the project. # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/target_dependency.rb
lib/xcodeproj/project/object/target_dependency.rb
module Xcodeproj class Project module Object # Represents a dependency of a target on another one. # class PBXTargetDependency < AbstractObject # @!group Attributes # @return [PBXNativeTarget] the target that needs to be built to # satisfy the dependency. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/build_phase.rb
lib/xcodeproj/project/object/build_phase.rb
module Xcodeproj class Project module Object # @abstract # # This class is abstract and it doesn't appear in the project document. # class AbstractBuildPhase < AbstractObject # @!group Attributes # @return [ObjectList<PBXBuildFile>] the files processed by this build ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/swift_package_local_reference.rb
lib/xcodeproj/project/object/swift_package_local_reference.rb
module Xcodeproj class Project module Object # This class represents a local Swift package reference. # class XCLocalSwiftPackageReference < AbstractObject # @!group Attributes # @return [String] the repository url this Swift package was installed from. # attribu...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/reference_proxy.rb
lib/xcodeproj/project/object/reference_proxy.rb
module Xcodeproj class Project module Object # Apparently a proxy for a reference object which might belong another # project contained in the same workspace of the project document. # # This class is used for referencing the products of another project. # class PBXReferencePro...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/build_file.rb
lib/xcodeproj/project/object/build_file.rb
module Xcodeproj class Project module Object # Contains the information about the build settings of a file used by an # {AbstractBuildPhase}. # class PBXBuildFile < AbstractObject # @!group Attributes # @return [Hash] the list of build settings for this file. # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/helpers/groupable_helper.rb
lib/xcodeproj/project/object/helpers/groupable_helper.rb
# frozen_string_literal: true module Xcodeproj class Project module Object class GroupableHelper class << self # @param [PBXGroup, PBXFileReference] object # The object to analyze. # # @return [PBXGroup, PBXProject] The parent of the object. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/helpers/build_settings_array_settings_by_object_version.rb
lib/xcodeproj/project/object/helpers/build_settings_array_settings_by_object_version.rb
require 'set' module Xcodeproj class Project module Object class XCBuildConfiguration # yes, they are case-sensitive. # no, Xcode doesn't do this for other PathList settings nor other # settings ending in SEARCH_PATHS. module BuildSettingsArraySettingsByObjectVersion ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project/object/helpers/file_references_factory.rb
lib/xcodeproj/project/object/helpers/file_references_factory.rb
# frozen_string_literal: true require 'xcodeproj/project/object/helpers/groupable_helper' module Xcodeproj class Project module Object class FileReferencesFactory class << self # Creates a new reference with the given path and adds it to the # given group. The reference is confi...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/command_line_arguments.rb
lib/xcodeproj/scheme/command_line_arguments.rb
require 'xcodeproj/scheme/xml_element_wrapper' module Xcodeproj class XCScheme COMMAND_LINE_ARGS_NODE = 'CommandLineArguments'.freeze COMMAND_LINE_ARG_NODE = 'CommandLineArgument'.freeze # This class wraps the CommandLineArguments node of a .xcscheme XML file. This # is just a container of CommandLi...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/macro_expansion.rb
lib/xcodeproj/scheme/macro_expansion.rb
module Xcodeproj class XCScheme # This class wraps the MacroExpansion node of a .xcscheme XML file # class MacroExpansion < XMLElementWrapper # @param [Xcodeproj::Project::Object::AbstractTarget, REXML::Element] target_or_node # Either the Xcode target to reference, # or an...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/send_email_action_content.rb
lib/xcodeproj/scheme/send_email_action_content.rb
module Xcodeproj class XCScheme # This class wraps a 'ActionContent' node of type # 'Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.SendEmailAction' of a .xcscheme XML file # class SendEmailActionContent < XMLElementWrapper # @param [REXML::Element] node # The 'ActionCont...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/archive_action.rb
lib/xcodeproj/scheme/archive_action.rb
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the ArchiveAction node of a .xcscheme XML file # class ArchiveAction < AbstractSchemeAction # @param [REXML::Element] node # The 'ArchiveAction' XML node that this object will wrap. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/execution_action.rb
lib/xcodeproj/scheme/execution_action.rb
module Xcodeproj class XCScheme # This class wraps the ExecutionAction node of a .xcscheme XML file # class ExecutionAction < XMLElementWrapper # @param [REXML::Element] node # The 'ExecutionAction' XML node that this object will wrap. # If nil, will create an empty one ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/xml_element_wrapper.rb
lib/xcodeproj/scheme/xml_element_wrapper.rb
module Xcodeproj class XCScheme # Abstract base class used for other XCScheme classes wrapping an XML element # class XMLElementWrapper # @return [REXML::Element] # The XML node wrapped and manipulated by this XMLElementWrapper object # attr_reader :xml_element # @re...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/analyze_action.rb
lib/xcodeproj/scheme/analyze_action.rb
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the AnalyzeAction node of a .xcscheme XML file # class AnalyzeAction < AbstractSchemeAction # @param [REXML::Element] node # The 'AnalyzeAction' XML node that this object will wrap. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/location_scenario_reference.rb
lib/xcodeproj/scheme/location_scenario_reference.rb
module Xcodeproj class XCScheme # This class wraps the LocationScenarioReference node of a .xcscheme XML file # # A LocationScenarioReference is a reference to a simulated GPS location associated # with a scheme's launch action # class LocationScenarioReference < XMLElementWrapper # @par...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/profile_action.rb
lib/xcodeproj/scheme/profile_action.rb
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the ProfileAction node of a .xcscheme XML file # class ProfileAction < AbstractSchemeAction # @param [REXML::Element] node # The 'ProfileAction' XML node that this object will wrap. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/build_action.rb
lib/xcodeproj/scheme/build_action.rb
require 'xcodeproj/scheme/xml_element_wrapper' module Xcodeproj class XCScheme # This class wraps the BuildAction node of a .xcscheme XML file # # Note: It's not a AbstractSchemeAction like the others because it is # a special case of action (with no build_configuration, etc) # class BuildAct...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/shell_script_action_content.rb
lib/xcodeproj/scheme/shell_script_action_content.rb
module Xcodeproj class XCScheme # This class wraps a 'ActionContent' node of type # 'Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction' of a .xcscheme XML file # class ShellScriptActionContent < XMLElementWrapper # @param [REXML::Element] node # The 'Action...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/abstract_scheme_action.rb
lib/xcodeproj/scheme/abstract_scheme_action.rb
require 'xcodeproj/scheme/xml_element_wrapper' require 'xcodeproj/scheme/environment_variables' require 'xcodeproj/scheme/command_line_arguments' module Xcodeproj class XCScheme # This abstract class aims to be the base class for every XxxAction class # that have a #build_configuration attribute # cl...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/environment_variables.rb
lib/xcodeproj/scheme/environment_variables.rb
require 'xcodeproj/scheme/xml_element_wrapper' module Xcodeproj class XCScheme VARIABLES_NODE = 'EnvironmentVariables' VARIABLE_NODE = 'EnvironmentVariable' # This class wraps the EnvironmentVariables node of a .xcscheme XML file. This # is just a container of EnvironmentVariable objects. It can eit...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/test_action.rb
lib/xcodeproj/scheme/test_action.rb
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the TestAction node of a .xcscheme XML file # class TestAction < AbstractSchemeAction # @param [REXML::Element] node # The 'TestAction' XML node that this object will wrap. # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/buildable_reference.rb
lib/xcodeproj/scheme/buildable_reference.rb
module Xcodeproj class XCScheme # This class wraps the BuildableReference node of a .xcscheme XML file # # A BuildableReference is a reference to a buildable product (which is # typically is synonymous for an Xcode target) # class BuildableReference < XMLElementWrapper # @param [Xcodepro...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/remote_runnable.rb
lib/xcodeproj/scheme/remote_runnable.rb
module Xcodeproj class XCScheme # This class wraps the RemoteRunnable node of a .xcscheme XML file # # A RemoteRunnable is a product that is both buildable # (it contains a BuildableReference) and # runnable remotely (it can be launched and debugged on a remote device, i.e. an Apple Watch) # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/launch_action.rb
lib/xcodeproj/scheme/launch_action.rb
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the LaunchAction node of a .xcscheme XML file # class LaunchAction < AbstractSchemeAction # @param [REXML::Element] node # The 'LaunchAction' XML node that this object will wrap. ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme/buildable_product_runnable.rb
lib/xcodeproj/scheme/buildable_product_runnable.rb
module Xcodeproj class XCScheme # This class wraps the BuildableProductRunnable node of a .xcscheme XML file # # A BuildableProductRunnable is a product that is both buildable # (it contains a BuildableReference) and runnable (it can be launched and debugged) # class BuildableProductRunnable <...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/config/other_linker_flags_parser.rb
lib/xcodeproj/config/other_linker_flags_parser.rb
require 'shellwords' module Xcodeproj class Config # Parses other linker flags values. # module OtherLinkerFlagsParser # @return [Hash{Symbol, Array[String]}] Splits the given # other linker flags value by type. # # @param [String, Array] flags # The other l...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/console.rb
spec/console.rb
Bundler.setup require 'pp' require 'active_record' require 'active_support' require 'faker' Dir[File.expand_path('../helpers/*.rb', __FILE__)].each do |f| require f end require File.expand_path('../support/schema.rb', __FILE__) require File.expand_path('../support/models.rb', __FILE__) Models.make require 'squeel'...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/spec_helper.rb
spec/spec_helper.rb
require 'pry' require 'faker' require 'active_record' require 'active_support' require 'active_support/core_ext/string' module ActiveRecord # Shamelessly swiped from the AR test code class SQLCounter IGNORED_SQL = [/^PRAGMA /, /^SELECT currval/, /^SELECT CAST/, /^SELECT @@IDENTITY/, /^SELECT @@ROWCOUNT/, /^SAV...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/support/models.rb
spec/support/models.rb
class Person < ActiveRecord::Base belongs_to :dept belongs_to :parent, :class_name => 'Person', :foreign_key => :parent_id has_many :children, :class_name => 'Person', :foreign_key => :parent_id has_many :articles has_many :comments if ActiveRecord::VERSION::MAJOR > 3 has_many :articles_with_con...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/support/schema.rb
spec/support/schema.rb
require 'active_record' require 'squeel' require 'pathname' require 'yaml' ENV['SQ_DB'] ||= 'sqlite3' MYSQL_ENV = ENV['SQ_DB'] =~ /mysql/ SQLITE_ENV = ENV['SQ_DB'] == 'sqlite3' PG_ENV = ENV['SQ_DB'] == 'postgresql' Q = MYSQL_ENV ? '`' : '"' #Quotes difference in MySQL module Squeel module Test extend self ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/helpers/squeel_helper.rb
spec/helpers/squeel_helper.rb
module SqueelHelper JoinDependency = if defined?(::ActiveRecord::Associations::JoinDependency) ::ActiveRecord::Associations::JoinDependency else ::ActiveRecord::Associations::ClassMethods::JoinDependency end def dsl(&block) Squeel::DSL.eval(&block) end def dsl_exec(*args, &block) ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/core_ext/symbol_spec.rb
spec/core_ext/symbol_spec.rb
require 'spec_helper' describe Symbol do Squeel::Constants::PREDICATES.each do |method_name| it "creates #{method_name} predicates with no value" do predicate = :attribute.send(method_name) predicate.expr.should eq :attribute predicate.method_name.should eq method_name predicate.value?.s...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/dsl_spec.rb
spec/squeel/dsl_spec.rb
require 'spec_helper' module Squeel describe DSL do it 'evaluates code' do result = DSL.eval { {id => 1} } result.should be_a Hash result.keys.first.should be_a Nodes::Stub end it 'creates function nodes when a method has arguments' do result = DSL.eval { max(id) } result....
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/operation_spec.rb
spec/squeel/nodes/operation_spec.rb
require 'spec_helper' module Squeel module Nodes describe Operation do before do @o = dsl{name + 1} end Squeel::Constants::PREDICATES.each do |method_name| it "creates #{method_name} predicates with no value" do predicate = @o.send(method_name) predicate.exp...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/predicate_operators_spec.rb
spec/squeel/nodes/predicate_operators_spec.rb
require 'spec_helper' module Squeel module Nodes describe PredicateOperators do describe '&' do it 'creates And nodes from hashes' do left = {:name.matches => 'J%'} right = {:name.matches => '%e'} n = left & right n.should be_a And n.children.shou...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/sifter_spec.rb
spec/squeel/nodes/sifter_spec.rb
require 'spec_helper' module Squeel module Nodes describe Sifter do subject { Sifter.new :title_or_body_contains, ['awesome'] } specify { subject.name.should eq :title_or_body_contains } specify { subject.args.should eq ['awesome'] } it { should respond_to :& } it { should respon...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/predicate_spec.rb
spec/squeel/nodes/predicate_spec.rb
require 'spec_helper' module Squeel module Nodes describe Predicate do it 'accepts a value on instantiation' do @p = Predicate.new :name, :eq, 'value' @p.value.should eq 'value' end it 'sets value via accessor' do @p = Predicate.new :name, :eq @p.value = 'value...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/operators_spec.rb
spec/squeel/nodes/operators_spec.rb
require 'spec_helper' module Squeel module Nodes describe Operators do [:+, :-, :*, :/].each do |operator| describe "#{operator}" do it "creates Operations with #{operator} operator from stubs" do left = Stub.new(:stubby_mcstubbenstein) node = left.send(operator, ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/stub_spec.rb
spec/squeel/nodes/stub_spec.rb
require 'spec_helper' module Squeel module Nodes describe Stub do before do @s = Stub.new :attribute end it 'hashes like a symbol' do @s.hash.should eq :attribute.hash end it 'returns its symbol when sent to_sym' do @s.to_sym.should eq :attribute end ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/function_spec.rb
spec/squeel/nodes/function_spec.rb
require 'spec_helper' module Squeel module Nodes describe Function do before do @f = Function.new(:function, [1, 2, 3]) end Squeel::Constants::PREDICATES.each do |method_name| it "creates #{method_name} predicates with no value" do predicate = @f.send(method_name) ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/order_spec.rb
spec/squeel/nodes/order_spec.rb
require 'spec_helper' module Squeel module Nodes describe Order do it 'requires a direction of -1 or 1' do expect { Order.new :attribute, 0 }.to raise_error ArgumentError end it 'defaults to ascending order' do @o = Order.new :attribute @o.should be_ascending end...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/as_spec.rb
spec/squeel/nodes/as_spec.rb
require 'spec_helper' module Squeel module Nodes describe As do subject { As.new 'name', 'alias'} it { should respond_to :& } it { should respond_to :| } it { should respond_to :-@ } specify { (subject & subject).should be_a And } specify { (subject | subject).should be_a O...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/literal_spec.rb
spec/squeel/nodes/literal_spec.rb
require 'spec_helper' module Squeel module Nodes describe Literal do subject { Literal.new 'string'} it { should respond_to :& } it { should respond_to :| } it { should respond_to :-@ } specify { (subject & subject).should be_a And } specify { (subject | subject).should be_a...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/join_spec.rb
spec/squeel/nodes/join_spec.rb
require 'spec_helper' module Squeel module Nodes describe Join do before do @j = Join.new :name end it 'defaults to Squeel::InnerJoin' do @j._type.should eq Squeel::InnerJoin end it 'allows setting join type' do @j.outer @j._type.should eq Squeel::...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/grouping_spec.rb
spec/squeel/nodes/grouping_spec.rb
require 'spec_helper' module Squeel module Nodes describe Grouping do before do @g = Grouping.new('foo') end Squeel::Constants::PREDICATES.each do |method_name| it "creates #{method_name} predicates with no value" do predicate = @g.send(method_name) predicat...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/key_path_spec.rb
spec/squeel/nodes/key_path_spec.rb
require 'spec_helper' module Squeel module Nodes describe KeyPath do before do @k = KeyPath.new([:first, :second]) end it 'appends to its path when endpoint is a Stub' do @k.third.fourth.fifth @k.path.should eq [:first, :second, :third, :fourth, Stub.new(:fifth)] ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/nodes/subquery_join_spec.rb
spec/squeel/nodes/subquery_join_spec.rb
require 'spec_helper' module Squeel module Nodes describe SubqueryJoin do before(:each) do @j = if activerecord_version_at_least('4.1.0') SubqueryJoin.new(OrderItem.all.as('items'), dsl {(items.orderable_id == id) & (items.orderable_type == 'Seat')} ) else ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/core_ext/symbol_spec.rb
spec/squeel/core_ext/symbol_spec.rb
require 'spec_helper' describe Symbol do describe '#asc' do it 'creates an ascending order node' do order = :blah.asc order.should be_a Squeel::Nodes::Order order.expr.should eq :blah order.should be_ascending end end describe '#desc' do it 'creates a descending order node' d...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/visitor_spec.rb
spec/squeel/visitors/visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe Visitor do before do @jd = new_join_dependency(Person, { :children => { :children => { :parent => :parent } } }, []) @c = Squeel::Ada...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/predicate_visitor_spec.rb
spec/squeel/visitors/predicate_visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe PredicateVisitor do before do @jd = new_join_dependency(Person, { :children => { :children => { :parent => :parent } } }, []) @c = Sq...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/select_visitor_spec.rb
spec/squeel/visitors/select_visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe SelectVisitor do before do @jd = new_join_dependency(Person, { :children => { :children => { :parent => :parent } } }, []) @c = Squee...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/order_visitor_spec.rb
spec/squeel/visitors/order_visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe OrderVisitor do before do @jd = new_join_dependency(Person, { :children => { :children => { :parent => :parent } } }, []) @c = Squeel...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/preload_visitor_spec.rb
spec/squeel/visitors/preload_visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe PreloadVisitor do before do @v = PreloadVisitor.new end it 'returns symbols unmodified' do @v.accept(:blah).should eq :blah end it 'converts stubs to symbols' do @v.accept(dsl{blah}).should eq :b...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/visitors/from_visitor_spec.rb
spec/squeel/visitors/from_visitor_spec.rb
require 'spec_helper' module Squeel module Visitors describe FromVisitor do before do @jd = new_join_dependency(Person, {}, []) @c = Squeel::Adapters::ActiveRecord::Context.new(@jd) @v = FromVisitor.new(@c) end it 'allows strings' do from = @v.accept('people') ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/adapters/active_record/base_extensions_spec.rb
spec/squeel/adapters/active_record/base_extensions_spec.rb
require 'spec_helper' module Squeel module Adapters module ActiveRecord describe BaseExtensions do subject { Person } it { should respond_to :sifter } describe '#sifter' do subject { Article } specify { expect {subject.sifter 'blah'}.to raise_error ArgumentE...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/adapters/active_record/relation_extensions_spec.rb
spec/squeel/adapters/active_record/relation_extensions_spec.rb
require 'spec_helper' module Squeel module Adapters module ActiveRecord describe RelationExtensions do describe 'finding by attribute' do it 'returns nil when passed an empty string' do Person.find_by_id('').should be_nil end it 'casts an empty string to...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
true
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/adapters/active_record/context_spec.rb
spec/squeel/adapters/active_record/context_spec.rb
require 'spec_helper' module Squeel module Adapters module ActiveRecord describe Context do before do @jd = new_join_dependency(Person, { :children => { :children => { :parent => :parent } } ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/spec/squeel/adapters/active_record/join_dependency_extensions_spec.rb
spec/squeel/adapters/active_record/join_dependency_extensions_spec.rb
require 'spec_helper' module Squeel module Adapters module ActiveRecord describe "JoinDependencyExtensions" do it 'joins with symbols' do @jd = new_join_dependency(Person, { :articles => :comments }, []) if activerecord_version_at_least('4.2.0') @jd.join_constraints...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel.rb
lib/squeel.rb
require 'squeel/configuration' require 'polyamorous' module Squeel if defined?(Arel::InnerJoin) InnerJoin = Arel::InnerJoin OuterJoin = Arel::OuterJoin else InnerJoin = Arel::Nodes::InnerJoin OuterJoin = Arel::Nodes::OuterJoin end extend Configuration # Prevent warnings on the console when...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/generators/templates/squeel.rb
lib/generators/templates/squeel.rb
Squeel.configure do |config| # To load hash extensions (to allow for AND (&), OR (|), and NOT (-) against # hashes of conditions): # # config.load_core_extensions :hash # To load symbol extensions (for a subset of the old MetaWhere functionality, # via Arel predicate methods on Symbols: :name.matches, etc)...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/generators/squeel/initializer_generator.rb
lib/generators/squeel/initializer_generator.rb
module Squeel module Generators class InitializerGenerator < ::Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc 'Creates a sample Squeel initializer.' def copy_initializer copy_file 'squeel.rb', 'config/initializers/squeel.rb' end end ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/version.rb
lib/squeel/version.rb
module Squeel VERSION = '1.2.3' end
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes.rb
lib/squeel/nodes.rb
module Squeel # Namespace for the nodes created by Squeel::DSL, and # evaluated by Squeel::Visitors classes module Nodes end end require 'squeel/nodes/node' require 'squeel/nodes/predicate_methods' require 'squeel/nodes/operators' require 'squeel/nodes/predicate_operators' require 'squeel/nodes/aliasing' requ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/constants.rb
lib/squeel/constants.rb
module Squeel # Defines the default list of Arel predicates and predicate aliases module Constants PREDICATES = [ :eq, :eq_any, :eq_all, :not_eq, :not_eq_any, :not_eq_all, :matches, :matches_any, :matches_all, :does_not_match, :does_not_match_any, :does_not_match_all, :lt, :lt...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/dsl.rb
lib/squeel/dsl.rb
module Squeel # Interprets DSL blocks, generating various Squeel nodes as appropriate. class DSL # We're creating a BlankSlate-type class here, since we want most # method calls to fall through to method_missing. Squeel.evil_things do (instance_methods + private_instance_methods).each do |method|...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/configuration.rb
lib/squeel/configuration.rb
require 'squeel/constants' require 'squeel/nodes' module Squeel # The Squeel configuration module. The Squeel module extends this to provide its # configuration capability. module Configuration # Start a Squeel configuration block in an initializer. # # @yield [config] A configuration block # ...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/visitors.rb
lib/squeel/visitors.rb
require 'squeel/visitors/visitor' require 'squeel/visitors/predicate_visitation' require 'squeel/visitors/where_visitor' require 'squeel/visitors/having_visitor' require 'squeel/visitors/group_visitor' require 'squeel/visitors/order_visitor' require 'squeel/visitors/select_visitor' require 'squeel/visitors/from_visito...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/context.rb
lib/squeel/context.rb
require 'arel' module Squeel # @abstract Subclass and implement {#traverse}, {#find} and {#get_table} # to create a Context that supports a given ORM. class Context attr_reader :base, :engine, :arel_visitor # The Squeel context expects some kind of context object that is # representative of the cu...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/operators.rb
lib/squeel/nodes/operators.rb
module Squeel module Nodes # Module containing Operation factory methods for inclusion in Squeel nodes module Operators # Factory for a new addition operation with this node as its left operand. # @param value The right operand # @return [Operation] The new addition operation def +(va...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/predicate.rb
lib/squeel/nodes/predicate.rb
module Squeel module Nodes # This node is essentially a container that will result in Arel predicate nodes # once visited. It stores the expression (normally an attribute name, function, or # operation), the Arel predicate method name, and a value. these are then interpreted # when visited by the Pred...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/binary.rb
lib/squeel/nodes/binary.rb
module Squeel module Nodes # A node that represents an operation with two operands. class Binary < Node include PredicateOperators # The left operand attr_reader :left # The right operand attr_reader :right # @param left The left operand # @param right The right o...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/order.rb
lib/squeel/nodes/order.rb
module Squeel module Nodes # A node that represents SQL orderings, such as "people.id DESC" class Order < Node # @return The expression being ordered on. Might be an attribute, function, or operation attr_reader :expr # @return [Fixnum] 1 or -1, depending on ascending or descending directio...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/literal.rb
lib/squeel/nodes/literal.rb
module Squeel module Nodes # Literal nodes are a container for raw SQL. class Literal < Node include PredicateMethods include PredicateOperators include Operators include Aliasing include Ordering attr_reader :expr def initialize(expr) @expr = expr end...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/nary.rb
lib/squeel/nodes/nary.rb
module Squeel module Nodes # A node containing multiple children. Just the And node for now. class Nary < Node include PredicateOperators # @return [Array] This node's children attr_reader :children # Creates a new Nary node with the given array of children # @param [Array] chi...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/or.rb
lib/squeel/nodes/or.rb
require 'squeel/nodes/binary' module Squeel module Nodes # A node representing an SQL OR, which will result in same when visited. class Or < Binary end end end
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/node.rb
lib/squeel/nodes/node.rb
require 'polyamorous/tree_node' module Squeel module Nodes class Node include ::Polyamorous::TreeNode def each(&block) return enum_for(:each) unless block_given? Visitors::EnumerationVisitor.new(block).accept(self) end # We don't want the full Enumerable method list, be...
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false
activerecord-hackery/squeel
https://github.com/activerecord-hackery/squeel/blob/46072cf81cd81328983bd97e6fdc2e12c2205f17/lib/squeel/nodes/and.rb
lib/squeel/nodes/and.rb
require 'squeel/nodes/nary' module Squeel module Nodes # A grouping of nodes that will be converted to an Arel::Nodes::And upon visitation. class And < Nary end end end
ruby
MIT
46072cf81cd81328983bd97e6fdc2e12c2205f17
2026-01-04T15:56:01.875204Z
false