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
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/layout.rb
lib/teamocil/layout.rb
module Teamocil class Layout < ClosedStruct.new(:path) def execute! if Teamocil.options[:debug] Teamocil.puts(shell_commands.join("\n")) else Teamocil.system(shell_commands.join('; ')) end end def show! Teamocil.puts(raw_content) end def edit! Teamoc...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/tmux/session.rb
lib/teamocil/tmux/session.rb
module Teamocil module Tmux class Session < ClosedStruct.new(:name, :windows) def initialize(object) super # Sessions need a name self.name = "teamocil-session-#{rand(1_000_000)}" unless name self.windows = windows.each_with_index.map do |window, index| # Windows ...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/tmux/window.rb
lib/teamocil/tmux/window.rb
module Teamocil module Tmux class Window < ClosedStruct.new(:index, :root, :focus, :layout, :name, :panes, :options) def initialize(object) super # Make sure paths like `~/foo/bar` work self.root = File.expand_path(root) if root self.options ||= {} self.panes ||= []...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/tmux/pane.rb
lib/teamocil/tmux/pane.rb
module Teamocil module Tmux class Pane < ClosedStruct.new(:index, :root, :commands, :focus, :layout, :name) def as_tmux [].tap do |tmux| tmux << Teamocil::Command::SplitWindow.new(root: root, name: name) unless first? tmux << Teamocil::Command::SendKeysToPane.new(index: internal_...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/send_keys.rb
lib/teamocil/command/send_keys.rb
module Teamocil module Command class SendKeys < ClosedStruct.new(:keys) def to_s "send-keys '#{keys}'" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/set_window_option.rb
lib/teamocil/command/set_window_option.rb
module Teamocil module Command class SetWindowOption < ClosedStruct.new(:name, :option, :value) def to_s "set-window-option -t '#{name}' #{option} #{value}" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/split_window.rb
lib/teamocil/command/split_window.rb
module Teamocil module Command class SplitWindow < ClosedStruct.new(:root, :name) def to_s "split-window -t '#{name}' #{options.join(' ')}" end def options [].tap do |options| options << "-c '#{root}'" if root end end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/rename_window.rb
lib/teamocil/command/rename_window.rb
module Teamocil module Command class RenameWindow < ClosedStruct.new(:name) def to_s "rename-window '#{name}'" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/send_keys_to_pane.rb
lib/teamocil/command/send_keys_to_pane.rb
module Teamocil module Command class SendKeysToPane < ClosedStruct.new(:index, :keys) def to_s "send-keys -t '#{index}' '#{keys}'" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/list_windows.rb
lib/teamocil/command/list_windows.rb
module Teamocil module Command class ListWindows < ClosedStruct.new(:foo) def to_s 'list-windows' end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/select_layout.rb
lib/teamocil/command/select_layout.rb
module Teamocil module Command class SelectLayout < ClosedStruct.new(:layout, :name) def to_s "select-layout -t '#{name}' '#{layout}'" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/select_pane.rb
lib/teamocil/command/select_pane.rb
module Teamocil module Command class SelectPane < ClosedStruct.new(:index) def to_s "select-pane -t #{index}" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/rename_session.rb
lib/teamocil/command/rename_session.rb
module Teamocil module Command class RenameSession < ClosedStruct.new(:name) def to_s "rename-session '#{name}'" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/list_panes.rb
lib/teamocil/command/list_panes.rb
module Teamocil module Command class ListPanes < ClosedStruct.new(:index) def to_s "list-panes #{options.join(' ')}" end def options [].tap do |options| options << "-t '#{index}'" if index end end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/select_window.rb
lib/teamocil/command/select_window.rb
module Teamocil module Command class SelectWindow < ClosedStruct.new(:index) def to_s "select-window -t #{index}" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/show_window_options.rb
lib/teamocil/command/show_window_options.rb
module Teamocil module Command class ShowWindowOptions < ClosedStruct.new(:name) def to_s "show-window-options -gv #{name}" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/show_options.rb
lib/teamocil/command/show_options.rb
module Teamocil module Command class ShowOptions < ClosedStruct.new(:name) def to_s "show-options -gv #{name}" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/command/new_window.rb
lib/teamocil/command/new_window.rb
module Teamocil module Command class NewWindow < ClosedStruct.new(:name, :root) def to_s "new-window #{options.join(' ')}" end def options [].tap do |options| options << "-n '#{name}'" if name options << "-c '#{root}'" if root end end end ...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/error/invalid_yaml_layout.rb
lib/teamocil/error/invalid_yaml_layout.rb
module Teamocil module Error class InvalidYAMLLayout < StandardError def initialize(path) @path = path end def to_s "There was a YAML error when parsing `#{@path}`" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/error/layout_not_found.rb
lib/teamocil/error/layout_not_found.rb
module Teamocil module Error class LayoutNotFound < StandardError def initialize(path) @path = path end def to_s "Cannot find a layout at `#{@path}`" end end end end
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/utils/option_parser.rb
lib/teamocil/utils/option_parser.rb
module Teamocil class OptionParser def initialize(arguments: nil) @arguments = arguments @parsed_options = {} end def parsed_options @parsed_options.tap do parser.parse!(@arguments) end end # rubocop:disable MethodLength def parser ::OptionParser.new do ...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
remi/teamocil
https://github.com/remi/teamocil/blob/9ceecf5a89f73b9c01b20237c6854b6b3aed9690/lib/teamocil/utils/closed_struct.rb
lib/teamocil/utils/closed_struct.rb
module Teamocil class ClosedStruct < Struct def initialize(*args) args = [{}] unless args.any? args.first.each_pair do |key, value| # Make sure we only set values to defined arguments if members.map(&:intern).include?(key.to_sym) send "#{key}=", value else ...
ruby
MIT
9ceecf5a89f73b9c01b20237c6854b6b3aed9690
2026-01-04T15:55:57.509578Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/helper_spec.rb
spec/helper_spec.rb
require File.expand_path('../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Helper::TargetDiff do before do @target1 = @project.new_target(:static_library, 'Target 1', :ios) @target1.add_file_references([@project.new_file('/file/1')]) @target2 = @project.new_target(:static_lib...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/plist_helper_spec.rb
spec/plist_helper_spec.rb
# encoding: UTF-8 require File.expand_path('../spec_helper', __FILE__) module ProjectSpecs describe 'Xcodeproj::PlistHelper' do before do @plist = temporary_directory + 'plist' end describe 'In general' do extend SpecHelper::TemporaryDirectory it 'writes an XML plist file' do ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project_spec.rb
spec/project_spec.rb
# encoding: UTF-8 require File.expand_path('../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project do #-------------------------------------------------------------------------# describe 'In general' do it 'return the objects by UUID hash' do @project.objects_by_uuid.shoul...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/xcodebuild_helper_spec.rb
spec/xcodebuild_helper_spec.rb
require File.expand_path('../spec_helper', __FILE__) SPEC_XCODEBUILD_SAMPLE_SDK_OTPUT = <<-DOC OS X SDKs: Mac OS X 10.7 -sdk macosx10.7 OS X 10.8 -sdk macosx10.8 iOS SDKs: iOS 6.1 -sdk iphoneos6.1 iOS Simulator SDKs: Simulator - iOS 6.1 -sdk...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/workspace_spec.rb
spec/workspace_spec.rb
require File.expand_path('../spec_helper', __FILE__) describe Xcodeproj::Workspace do describe 'from new' do before do @pods_project_file_reference = Xcodeproj::Workspace::FileReference.new('Pods/Pods.xcodeproj') @project_file_reference = Xcodeproj::Workspace::FileReference.new('App.xcodeproj') ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme_spec.rb
spec/scheme_spec.rb
require File.expand_path('../spec_helper', __FILE__) def compare_elements(a, b) return a.should.be.nil if b.nil? a.attributes.should.be.equal b.attributes a.elements.count.should.be.equal b.elements.count end module ProjectSpecs describe Xcodeproj::XCScheme do before do @project.stubs(:path).returns...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
true
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/differ_spec.rb
spec/differ_spec.rb
require File.expand_path('../spec_helper', __FILE__) def options { :key_1 => 'v1', :key_2 => 'v2', } end module Xcodeproj describe Differ do describe 'Hashes' do it 'returns the nil if the hashes are equal' do v1 = { :add => 'add' } diff = Differ.hash_diff(v1, v1, options) ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/config_spec.rb
spec/config_spec.rb
require File.expand_path('../spec_helper', __FILE__) describe Xcodeproj::Config do describe 'In general' do extend SpecHelper::TemporaryDirectory before do @hash = { 'OTHER_LDFLAGS' => '-framework "Foundation"' } @config = Xcodeproj::Config.new(@hash) @config_fixture = fixture_path('onelin...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/spec_helper.rb
spec/spec_helper.rb
# Set up coverage analysis #-----------------------------------------------------------------------------# require 'codeclimate-test-reporter' CodeClimate::TestReporter.configure do |config| config.logger.level = Logger::WARN end CodeClimate::TestReporter.start # Set up #--------------------------------------------...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/constants_spec.rb
spec/constants_spec.rb
require File.expand_path('../spec_helper', __FILE__) describe Xcodeproj::Constants do describe 'COMMON_BUILD_SETTINGS' do def subject Xcodeproj::Constants::COMMON_BUILD_SETTINGS end it 'has a key :all' do subject[:all].should.not.be.nil end it 'has keys which are arrays' do (s...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/spec_helper/project.rb
spec/spec_helper/project.rb
module SpecHelper module Project def self.extended(context) context.before do @project = Xcodeproj::Project.new('/project_dir/Project.xcodeproj') end end def settings(*keys) settings = Xcodeproj::Constants::COMMON_BUILD_SETTINGS.values_at(*keys) settings.reduce({}) { |hash...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/spec_helper/xcscheme.rb
spec/spec_helper/xcscheme.rb
module SpecHelper module XCScheme def specs_for_bool_attr(attributes_map) attributes_map.each do |property, xml_attribute_name| attr_reader_sym = (property.to_s + '?').to_sym attr_writer_sym = (property.to_s + '=').to_sym describe property do it "##{property}? detect a tru...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/spec_helper/project_helper.rb
spec/spec_helper/project_helper.rb
require 'colored2' module SpecHelper module ProjectHelper # Keys which are excluded from comparison EXCLUDED_KEYS = %w( CODE_SIGN_ENTITLEMENTS IBSC_MODULE INFOPLIST_FILE IPHONEOS_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET PRODUCT_BUNDLE_IDENTIFIER SWIFT_VERSION ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/spec_helper/temporary_directory.rb
spec/spec_helper/temporary_directory.rb
require 'fileutils' module SpecHelper def self.temporary_directory TemporaryDirectory.temporary_directory end module TemporaryDirectory def temporary_directory ROOT + 'tmp' end module_function :temporary_directory def setup_temporary_directory temporary_directory.mkpath end ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/command/sort_spec.rb
spec/command/sort_spec.rb
require File.expand_path('../../spec_helper', __FILE__) class MockXcodeproj def initialize(sort_assertion) @sort_assertion = sort_assertion end def sort(options) @sort_assertion.call(options) end def save end end describe Xcodeproj::Command::Sort do it 'Can accept above group-option.' do a...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/workspace/group_reference_spec.rb
spec/workspace/group_reference_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe Workspace do before do @group = Workspace::GroupReference.new('Group Name', 'container', 'dir1/dir2') end it 'can be initialized with just the group name and have proper defaults' do group = Workspace::GroupRef...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/workspace/file_reference_spec.rb
spec/workspace/file_reference_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe Workspace do before do @file = Workspace::FileReference.new('project.xcodeproj', 'group') end it 'properly implements equality comparison' do @file.should == @file.dup @file.should.eql @file.dup @fi...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object_list_spec.rb
spec/project/object_list_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::ObjectList do describe 'In general' do before do @list = @project.main_group.children end it 'returns the attribute that generated the list' do @list.attribute.name.should =...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/project_helper_integration_spec.rb
spec/project/project_helper_integration_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectHelperSpecs describe Xcodeproj::Project::ProjectHelper do # # These specs run `Xcodeproj::Project::ProjectHelper::common_build_settings` # against the xcconfig files in spec/fixtures/CommonBuildSettings/configs # with various param...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/project_helper_spec.rb
spec/project/project_helper_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::ProjectHelper do before do @helper = Xcodeproj::Project::ProjectHelper end #-------------------------------------------------------------------------# describe 'Targets' do it 'creat...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/case_converter_spec.rb
spec/project/case_converter_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe CaseConverter do it 'converts a name to the plist format' do result = CaseConverter.convert_to_plist(:project_ref) result.should == 'ProjectRef' end it 'converts a name to the plist format starting with a lo...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object_spec.rb
spec/project/object_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe AbstractObject do describe 'In general' do before do @object = @project.new_file('Classes/file.m') @object.name = 'AnObject' end it 'returns its name when converting to a string' do @ob...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object_attributes_spec.rb
spec/project/object_attributes_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe AbstractObjectAttribute do before do @attribute = AbstractObjectAttribute.new(:simple, :source_tree, PBXFileReference) end it 'returns its type' do @attribute.type.should == :simple end it 'returns ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object_dictionary_spec.rb
spec/project/object_dictionary_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::ObjectDictionary do before do attribute = AbstractObjectAttribute.new(:references_by_keys, :project_references, PBXProject) attribute.classes = [PBXFileReference, PBXGroup] attribute.classes...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/dirty_tracking_spec.rb
spec/project/dirty_tracking_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project do def each_attribute(blk) project = Xcodeproj::Project.open(fixture_path('Sample Project/Cocoa Application.xcodeproj')) raise 'should not be dirty' if project.dirty? attributes_method = Abst...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/group_spec.rb
spec/project/object/group_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe 'Xcodeproj::Project::Object::PBXGroup' do before do @group = @project.new_group('Parent') @group.new_reference('Abracadabra.h') @group.new_reference('Banana.h') @group.new_group('ZappMachine') @g...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/swift_package_remote_reference_spec.rb
spec/project/object/swift_package_remote_reference_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::XCRemoteSwiftPackageReference do before do @proxy = @project.new(XCRemoteSwiftPackageReference) end it 'returns default display_name if repositoryURL is not set' do @proxy.disp...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/build_file_spec.rb
spec/project/object/build_file_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe PBXBuildFile do before do @build_file = @project.new(PBXBuildFile) end describe 'In general' do it "doesn't provide default file settings" do @build_file.settings.should.be.nil end it...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/root_object_spec.rb
spec/project/object/root_object_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe PBXProject do before do @project.new_target(:static, 'Pods', :ios) @root_object = @project.root_object end it 'returns the targets' do @root_object.targets.map(&:name).should == ['Pods'] end ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/configuration_list_spec.rb
spec/project/object/configuration_list_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe XCBuildConfiguration do before do @configuration_list = @project.new(XCConfigurationList) end it 'by the default the default configuration is not visible' do @configuration_list.default_configuration_is_v...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/swift_package_product_dependency_spec.rb
spec/project/object/swift_package_product_dependency_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::XCSwiftPackageProductDependency do before do @proxy = @project.new(XCSwiftPackageProductDependency) end it 'returns default display_name if product_name is not set' do @proxy.d...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/swift_package_local_reference_spec.rb
spec/project/object/swift_package_local_reference_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::XCLocalSwiftPackageReference do before do @proxy = @project.new(XCLocalSwiftPackageReference) end it 'returns default display_name if path is not set' do @proxy.display_name.sh...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/target_dependency_spec.rb
spec/project/object/target_dependency_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe PBXTargetDependency do before do @target_dependency = @project.new(PBXTargetDependency) end it 'may have a name' do @target_dependency.name.should.nil? @target_dependency.name = "This target's depen...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/build_rule_spec.rb
spec/project/object/build_rule_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe PBXBuildRule do before do @rule = @project.new(PBXBuildRule) end it 'returns the name' do @rule.name = 'myRule' @rule.name.should == 'myRule' end it 'returns the compiler spec' do @ru...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/native_target_spec.rb
spec/project/object/native_target_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe AbstractTarget do describe 'In general' do before do @target = @project.new_target(:static_library, 'Pods', :ios) end it 'returns the product name, which is the name of the binary (minus prefix/suff...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
true
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/reference_proxy_spec.rb
spec/project/object/reference_proxy_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::PBXReferenceProxy do before do @proxy = @project.new(PBXReferenceProxy) end it 'returns whether it is a proxy' do @proxy.proxy?.should == true end it 'returns default ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/build_configuration_spec.rb
spec/project/object/build_configuration_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe XCBuildConfiguration do before do @configuration = @project.new(XCBuildConfiguration) end describe 'In general' do it 'returns its name' do @configuration.name = 'Release' @configuration.n...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/build_phase_spec.rb
spec/project/object/build_phase_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe AbstractBuildPhase do before do # Can't initialize AbstractBuildPhase directly @build_phase = @project.new(PBXCopyFilesBuildPhase) end #----------------------------------------# describe '#add_file_r...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/container_item_proxy_spec.rb
spec/project/object/container_item_proxy_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe PBXContainerItemProxy do before do @proxy = @project.new(PBXContainerItemProxy) end it 'returns the container portal' do @proxy.container_portal = @project.root_object.uuid @proxy.container_portal.s...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/file_reference_spec.rb
spec/project/object/file_reference_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::PBXFileReference do before do @file = @project.new_file('File.m') end it 'returns the parent' do @file.parent.should == @project.main_group end it 'returns the parents...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/helpers/file_references_factory_spec.rb
spec/project/object/helpers/file_references_factory_spec.rb
require File.expand_path('../../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::FileReferencesFactory do before do @factory = FileReferencesFactory @group = @project.new_group('Classes') end #-------------------------------------------------------------...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/project/object/helpers/groupable_helper_spec.rb
spec/project/object/helpers/groupable_helper_spec.rb
require File.expand_path('../../../../spec_helper', __FILE__) module ProjectSpecs describe Xcodeproj::Project::Object::GroupableHelper do before do @helper = GroupableHelper end #-------------------------------------------------------------------------# describe 'In general' do before d...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/archive_action_spec.rb
spec/scheme/archive_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::ArchiveAction do it 'Creates a default XML node when created from scratch' do action = Xcodeproj::XCScheme::ArchiveAction.new(nil) action.xml_element.name.should == 'ArchiveAction' action.xml_element.att...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/buildable_product_runnable_spec.rb
spec/scheme/buildable_product_runnable_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::BuildableProductRunnable do describe 'Created from scratch' do it 'Creates an initial, empty XML node' do bpr = Xcodeproj::XCScheme::BuildableProductRunnable.new(nil) bpr.xml_element.name.should == '...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/abstract_scheme_action_spec.rb
spec/scheme/abstract_scheme_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::AbstractSchemeAction do before do @sut = Xcodeproj::XCScheme::AbstractSchemeAction.new @sut.instance_eval { @xml_element = REXML::Element.new('Foo') } end describe '#build_configuration' do it '...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/remote_runnable_spec.rb
spec/scheme/remote_runnable_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::RemoteRunnable do describe 'Created from scratch' do it 'Creates an initial, empty XML node' do bpr = Xcodeproj::XCScheme::RemoteRunnable.new(nil) bpr.xml_element.name.should == 'RemoteRunnable' ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/profile_action_spec.rb
spec/scheme/profile_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::ProfileAction do it 'Creates a default XML node when created from scratch' do action = Xcodeproj::XCScheme::ProfileAction.new(nil) action.xml_element.name.should == 'ProfileAction' action.xml_element.att...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/location_scenario_reference_spec.rb
spec/scheme/location_scenario_reference_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::LocationScenarioReference do describe 'Created from scratch' do before do @ref = Xcodeproj::XCScheme::LocationScenarioReference.new(nil) end it 'Creates an initial, quite empty XML node' do ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/macro_expansion_spec.rb
spec/scheme/macro_expansion_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::MacroExpansion do describe 'Created from scratch' do before do @macro_exp = Xcodeproj::XCScheme::MacroExpansion.new(nil) end it 'Creates an initial, empty XML node' do @macro_exp.xml_ele...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/launch_action_spec.rb
spec/scheme/launch_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::LaunchAction do it 'Creates a default XML node when created from scratch' do action = Xcodeproj::XCScheme::LaunchAction.new(nil) action.xml_element.name.should == 'LaunchAction' action.xml_element.attrib...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/analyze_action_spec.rb
spec/scheme/analyze_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::AnalyzeAction do it 'Creates a default XML node when created from scratch' do action = Xcodeproj::XCScheme::AnalyzeAction.new(nil) action.xml_element.name.should == 'AnalyzeAction' action.xml_element.att...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/environment_variables_spec.rb
spec/scheme/environment_variables_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj @xml_formatter = REXML::Formatters::Pretty.new(0) @xml_formatter.compact = true def self.xml_for_object(object) xml_out = '' @xml_formatter.write(object.xml_element, xml_out) xml_out.lines.each(&:strip!).join('') end descr...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/shell_script_action_content_spec.rb
spec/scheme/shell_script_action_content_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::ShellScriptActionContent do describe 'Created from scratch' do it 'Creates an initial, almost empty XML node' do sut = Xcodeproj::XCScheme::ShellScriptActionContent.new sut.xml_element.name.should ==...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/send_email_action_content_spec.rb
spec/scheme/send_email_action_content_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::SendEmailActionContent do describe 'Created from scratch' do it 'Creates an initial, almost empty XML node' do sut = Xcodeproj::XCScheme::SendEmailActionContent.new sut.xml_element.name.should == 'Ac...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/build_action_spec.rb
spec/scheme/build_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::BuildAction do it 'Creates a default XML node when created from scratch' do action = Xcodeproj::XCScheme::BuildAction.new(nil) action.xml_element.name.should == 'BuildAction' action.xml_element.attribute...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/test_action_spec.rb
spec/scheme/test_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::TestAction do it 'Creates a default XML node when created from scratch' do test_action = Xcodeproj::XCScheme::TestAction.new(nil) test_action.xml_element.name.should == 'TestAction' test_action.xml_eleme...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/xml_element_wrapper_spec.rb
spec/scheme/xml_element_wrapper_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::XMLElementWrapper do before do @wrapper = Xcodeproj::XCScheme::XMLElementWrapper.new end describe '#create_xml_element_with_fallback' do it 'uses node when tag match' do node = REXML::Element....
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/buildable_reference_spec.rb
spec/scheme/buildable_reference_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::BuildableReference do describe 'Created from scratch' do before do @ref = Xcodeproj::XCScheme::BuildableReference.new(nil) end it 'Creates an initial, quite empty XML node' do @ref.xml_e...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/scheme/execution_action_spec.rb
spec/scheme/execution_action_spec.rb
require File.expand_path('../../spec_helper', __FILE__) module Xcodeproj describe XCScheme::ExecutionAction do describe 'Created from scratch' do it 'Creates an initial, almost empty XML node' do action = Xcodeproj::XCScheme::ExecutionAction.new(nil, :shell_script) action.xml_element.name.s...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/spec/config/other_linker_flags_parser_spec.rb
spec/config/other_linker_flags_parser_spec.rb
require File.expand_path('../../spec_helper', __FILE__) describe Xcodeproj::Config::OtherLinkerFlagsParser do before do @parser = Xcodeproj::Config::OtherLinkerFlagsParser end describe 'In general' do it 'detects frameworks' do flags = '-framework Foundation' @parser.parse(flags).should == {...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj.rb
lib/xcodeproj.rb
module Xcodeproj require 'pathname' require 'claide' require 'colored2' class PlainInformative < StandardError include CLAide::InformativeError end class Informative < PlainInformative def message super !~ /\[!\]/ ? "[!] #{super}\n".red : super end end require 'xcodeproj/gem_version...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command.rb
lib/xcodeproj/command.rb
module Xcodeproj require 'colored2' require 'claide' class Command < CLAide::Command require 'xcodeproj/command/config_dump' require 'xcodeproj/command/target_diff' require 'xcodeproj/command/project_diff' require 'xcodeproj/command/show' require 'xcodeproj/command/sort' self.abstract_co...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/project.rb
lib/xcodeproj/project.rb
# frozen_string_literal: true require 'atomos' require 'fileutils' require 'securerandom' require 'xcodeproj/project/object' require 'xcodeproj/project/project_helper' require 'xcodeproj/project/uuid_generator' require 'xcodeproj/plist' module Xcodeproj # This class represents a Xcode project document. # # It c...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/plist.rb
lib/xcodeproj/plist.rb
autoload :Nanaimo, 'nanaimo' autoload :CFPropertyList, 'cfpropertylist' module Xcodeproj # Provides support for loading and serializing property list files. # module Plist # @return [Hash] Returns the native objects loaded from a property list # file. # # @param [#to_s] path # ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/differ.rb
lib/xcodeproj/differ.rb
module Xcodeproj # Computes the recursive diff of Hashes, Array and other objects. # # Useful to compare two projects. Inspired from # 'active_support/core_ext/hash/diff'. # # @example # h1 = { :common => 'value', :changed => 'v1' } # h2 = { :common => 'value', :changed => 'v2', :addition => 'new_va...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/user_interface.rb
lib/xcodeproj/user_interface.rb
module Xcodeproj # Manages the UI output so clients can customize it. # module UserInterface # Prints a message to standard output. # # @return [void] # def self.puts(message) STDOUT.puts message end # Prints a message to standard error. # # @return [void] # def ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/xcodebuild_helper.rb
lib/xcodeproj/xcodebuild_helper.rb
module Xcodeproj # Helper class which returns information from xcodebuild. # class XcodebuildHelper def initialize @needs_to_parse_sdks = true end # @return [String] The version of the last iOS sdk. # def last_ios_sdk parse_sdks_if_needed versions_by_sdk[:ios].sort.last ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/constants.rb
lib/xcodeproj/constants.rb
module Xcodeproj # This modules groups all the constants known to Xcodeproj. # module Constants # @return [String] The last known iOS SDK (stable). # LAST_KNOWN_IOS_SDK = '18.0' # @return [String] The last known OS X SDK (stable). # LAST_KNOWN_OSX_SDK = '15.0' # @return [String] The ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/scheme.rb
lib/xcodeproj/scheme.rb
require 'rexml/document' require 'xcodeproj/scheme/build_action' require 'xcodeproj/scheme/test_action' require 'xcodeproj/scheme/launch_action' require 'xcodeproj/scheme/profile_action' require 'xcodeproj/scheme/analyze_action' require 'xcodeproj/scheme/archive_action' require 'xcodeproj/scheme/buildable_product_run...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/config.rb
lib/xcodeproj/config.rb
# frozen_string_literal: true require 'shellwords' require 'xcodeproj/config/other_linker_flags_parser' module Xcodeproj # This class holds the data for a Xcode build settings file (xcconfig) and # provides support for serialization. # class Config require 'set' KEY_VALUE_PATTERN = / ( [...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/helper.rb
lib/xcodeproj/helper.rb
module Xcodeproj module Helper class TargetDiff attr_reader :project, :target1, :target2 def initialize(project, target1_name, target2_name) @project = project unless @target1 = @project.targets.find { |target| target.name == target1_name } raise ArgumentError, "Target 1 by ...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/workspace.rb
lib/xcodeproj/workspace.rb
require 'fileutils' require 'rexml/document' require 'xcodeproj/workspace/file_reference' require 'xcodeproj/workspace/group_reference' module Xcodeproj # Provides support for generating, reading and serializing Xcode Workspace # documents. # class Workspace # @return [REXML::Document] the parsed XML model...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/gem_version.rb
lib/xcodeproj/gem_version.rb
module Xcodeproj # The version of the xcodeproj gem. # VERSION = '1.27.0'.freeze unless defined? Xcodeproj::VERSION end
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command/project_diff.rb
lib/xcodeproj/command/project_diff.rb
module Xcodeproj class Command class ProjectDiff < Command self.summary = 'Shows the difference between two projects' self.description = summary + <<-EOS.gsub(/ {8}/, '') It shows the difference in a UUID agnostic fashion. To reduce the noise (and to simplify implementation) differe...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command/sort.rb
lib/xcodeproj/command/sort.rb
module Xcodeproj class Command class Sort < Command self.description = <<-eos Sorts the given project. If no `PROJECT' is specified then the current work directory is searched for one. eos self.summary = 'Sorts the given project.' def self.options [ ['-...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command/config_dump.rb
lib/xcodeproj/command/config_dump.rb
module Xcodeproj class Command class ConfigDump < Command self.description = <<-eos Dumps the build settings of all project targets for all configurations in directories named by the target in given output directory. It extracts common build settings in a per target base.xcconfig fi...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command/target_diff.rb
lib/xcodeproj/command/target_diff.rb
module Xcodeproj class Command class TargetDiff < Command self.summary = 'Shows the difference between two targets' def self.options [ ['--project PATH', 'The Xcode project document to use.'], ].concat(super) end self.arguments = [ CLAide::Argument.new('...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false
CocoaPods/Xcodeproj
https://github.com/CocoaPods/Xcodeproj/blob/ab3dfa504b5a97cae3a653a8924f4616dcaa062e/lib/xcodeproj/command/show.rb
lib/xcodeproj/command/show.rb
module Xcodeproj class Command class Show < Command self.summary = 'Shows an overview of a project in a YAML representation.' def self.options [ ['--format=[hash|tree_hash|raw]', 'YAML output format'], ].concat(super) end self.arguments = [ CLAide::Argum...
ruby
MIT
ab3dfa504b5a97cae3a653a8924f4616dcaa062e
2026-01-04T15:55:43.064680Z
false