source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/push_to_git_remote.rb
Ruby
mit
41,450
master
6,436
module Fastlane module Actions # Push local changes to the remote branch class PushToGitRemoteAction < Action def self.run(params) # Find the local git branch using HEAD or fallback to CI's ENV git branch if you're in detached HEAD state local_git_branch = Actions.git_branch_name_using_H...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/snapshot.rb
Ruby
mit
41,450
master
406
module Fastlane module Actions require 'fastlane/actions/capture_ios_screenshots' class SnapshotAction < CaptureIosScreenshotsAction ##################################################### # @!group Documentation ##################################################### def self.description...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/check_app_store_metadata.rb
Ruby
mit
41,450
master
1,571
module Fastlane module Actions module SharedValues end class CheckAppStoreMetadataAction < Action def self.run(config) # Only set :api_key from SharedValues if :api_key_path isn't set (conflicting options) unless config[:api_key_path] config[:api_key] ||= Actions.lane_cont...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/testfairy.rb
Ruby
mit
41,450
master
15,508
module Fastlane module Actions module SharedValues TESTFAIRY_BUILD_URL = :TESTFAIRY_BUILD_URL TESTFAIRY_DOWNLOAD_URL = :TESTFAIRY_DOWNLOAD_URL TESTFAIRY_LANDING_PAGE = :TESTFAIRY_LANDING_PAGE end class TestfairyAction < Action def self.upload_build(upload_url, ipa, options, timeou...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/bundle_install.rb
Ruby
mit
41,450
master
9,217
module Fastlane module Actions class BundleInstallAction < Action # rubocop:disable Metrics/PerceivedComplexity def self.run(params) if gemfile_exists?(params) cmd = ['bundle install'] cmd << "--binstubs #{params[:binstubs]}" if params[:binstubs] cmd << "--clean"...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/actions/xcov.rb
Ruby
mit
41,450
master
1,698
module Fastlane module Actions class XcovAction < Action def self.run(values) Actions.verify_gem!('xcov') require 'xcov' if values[:xccov_file_direct_path].nil? && (path = Actions.lane_context[SharedValues::SCAN_GENERATED_XCRESULT_PATH]) UI.verbose("Pulling xcov 'xccov_fil...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/setup/setup.rb
Ruby
mit
41,450
master
15,786
require "tty-spinner" module Fastlane class Setup # Is the current `setup` using a swift based configuration file attr_accessor :is_swift_fastfile # :ios or :android attr_accessor :platform # Path to the xcodeproj or xcworkspace attr_accessor :project_path # Used for :manual sometimes ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/setup/setup_android.rb
Ruby
mit
41,450
master
3,653
module Fastlane class SetupAndroid < Setup attr_accessor :json_key_file attr_accessor :package_name def setup_android self.platform = :android self.is_swift_fastfile = false welcome_to_fastlane self.fastfile_content = fastfile_template_content self.appfile_content = appfil...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/setup/setup_ios.rb
Ruby
mit
41,450
master
20,304
module Fastlane # rubocop:disable Metrics/ClassLength class SetupIos < Setup # Reference to the iOS project `project.rb` attr_accessor :project # App Identifier of the current app attr_accessor :app_identifier # Scheme of the Xcode project attr_accessor :scheme # If the current setup ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/adb_helper.rb
Ruby
mit
41,450
master
1,908
module Fastlane module Helper class AdbDevice attr_accessor :serial def initialize(serial: nil) self.serial = serial end end class AdbHelper # Path to the adb binary attr_accessor :adb_path # Path to the adb binary attr_accessor :adb_host # All a...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/xcodeproj_helper.rb
Ruby
mit
41,450
master
361
module Fastlane module Helper class XcodeprojHelper DEPENDENCY_MANAGER_DIRS = ['Pods', 'Carthage'].freeze def self.find(dir) xcodeproj_paths = Dir[File.expand_path(File.join(dir, '**/*.xcodeproj'))] xcodeproj_paths.reject { |path| %r{/(#{DEPENDENCY_MANAGER_DIRS.join('|')})/.*.xcodepro...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/sh_helper.rb
Ruby
mit
41,450
master
6,163
require "open3" module Fastlane module Actions # Execute a shell command # This method will output the string and execute it # Just an alias for sh_no_action # When running this in tests, it will return the actual command instead of executing it # @param log [Boolean] should fastlane print out th...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/s3_client_helper.rb
Ruby
mit
41,450
master
2,226
require 'aws-sdk-s3' module Fastlane module Helper class S3ClientHelper attr_reader :access_key attr_reader :region def initialize(access_key: nil, secret_access_key: nil, session_token: nil, region: nil, s3_client: nil) @access_key = access_key @secret_access_key = secret_acce...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/dotenv_helper.rb
Ruby
mit
41,450
master
1,698
module Fastlane module Helper class DotenvHelper # @param env_cl_param [String] an optional list of dotenv environment names separated by commas, without space def self.load_dot_env(env_cl_param) base_path = find_dotenv_directory return unless base_path load_dot_envs_from(env...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/git_helper.rb
Ruby
mit
41,450
master
6,624
module Fastlane module Actions GIT_MERGE_COMMIT_FILTERING_OPTIONS = [:include_merges, :exclude_merges, :only_include_merges].freeze module SharedValues GIT_BRANCH_ENV_VARS = %w(GIT_BRANCH BRANCH_NAME TRAVIS_BRANCH BITRISE_GIT_BRANCH CI_BUILD_REF_NAME CI_COMMIT_REF_NAME WERCKER_GIT_BRANCH BUILDKITE_BRAN...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/xcversion_helper.rb
Ruby
mit
41,450
master
409
module Fastlane module Helper class XcversionHelper def self.find_xcode(req) req = Gem::Requirement.new(req.to_s) require 'xcode/install' installer = XcodeInstall::Installer.new installed = installer.installed_versions.reverse installed.detect do |xcode| re...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/podspec_helper.rb
Ruby
mit
41,450
master
2,633
module Fastlane module Helper class PodspecHelper attr_accessor :path attr_accessor :podspec_content attr_accessor :version_regex attr_accessor :version_match attr_accessor :version_value def initialize(path = nil, require_variable_prefix = true) version_var_name = 've...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/xcodes_helper.rb
Ruby
mit
41,450
master
559
module Fastlane module Helper class XcodesHelper def self.read_xcode_version_file xcode_version_paths = Dir.glob(".xcode-version") if xcode_version_paths.first return File.read(xcode_version_paths.first).strip end return nil end def self.find_xcodes_b...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/lane_helper.rb
Ruby
mit
41,450
master
336
module Fastlane module Helper class LaneHelper def self.current_platform return Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::PLATFORM_NAME] end def self.current_lane return Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::LANE_NAME] end ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/gradle_helper.rb
Ruby
mit
41,450
master
1,775
module Fastlane module Helper class GradleTask attr_accessor :title attr_accessor :description def initialize(title: nil, description: nil) self.title = title self.description = description end end class GradleHelper # Path to the gradle script attr_a...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/helper/gem_helper.rb
Ruby
mit
41,450
master
1,027
module Fastlane module Actions # will make sure a gem is installed. If it's not an appropriate error message is shown # this will *not* 'require' the gem def self.verify_gem!(gem_name) begin FastlaneRequire.install_gem_if_needed(gem_name: gem_name, require_gem: false) # We don't impo...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_search.rb
Ruby
mit
41,450
master
1,281
module Fastlane class PluginSearch require 'terminal-table' require 'word_wrap' def self.print_plugins(search_query: nil) if search_query UI.message("Looking for fastlane plugins containing '#{search_query}'...") else UI.message("Listing all available fastlane plugins") ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_info.rb
Ruby
mit
41,450
master
1,074
module Fastlane class PluginInfo attr_reader :plugin_name attr_reader :author attr_reader :gem_name attr_reader :email attr_reader :summary attr_reader :details def initialize(plugin_name, author, email, summary, details) @plugin_name = plugin_name @author = author @emai...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugins.rb
Ruby
mit
41,450
master
403
require 'fileutils' require 'erb' require 'find' require 'fastlane/plugins/plugin_info' require 'fastlane/plugins/plugin_generator' require 'fastlane/plugins/plugin_generator_ui' require 'fastlane/plugins/plugin_info_collector' require 'fastlane/plugins/plugin_manager' require 'fastlane/plugins/plugin_search' require ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_update_manager.rb
Ruby
mit
41,450
master
2,082
module Fastlane # Alert the user when updates for plugins are available class PluginUpdateManager def self.start_looking_for_updates return if FastlaneCore::Env.truthy?("FASTLANE_SKIP_UPDATE_CHECK") Thread.new do self.plugin_references.each do |plugin_name, current_plugin| begin ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_fetcher.rb
Ruby
mit
41,450
master
1,506
module Fastlane # Use the RubyGems API to get all fastlane plugins class PluginFetcher require 'fastlane_core' require 'fastlane/plugins/plugin_manager' # Returns an array of FastlanePlugin objects def self.fetch_gems(search_query: nil) require 'json' require 'open-uri' page = 1 ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_generator_ui.rb
Ruby
mit
41,450
master
257
module Fastlane class PluginGeneratorUI def success(text) puts(text.green) end def message(text) puts(text) end def input(text) UI.input(text) end def confirm(text) UI.confirm(text) end end end
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_manager.rb
Ruby
mit
41,450
master
15,459
require "fastlane/cli_tools_distributor" module Fastlane class PluginManager require "bundler" PLUGINFILE_NAME = "Pluginfile".freeze DEFAULT_GEMFILE_PATH = "Gemfile".freeze AUTOGENERATED_LINE = "# Autogenerated by fastlane\n#\n# Ensure this file is checked in to source control!\n\n" GEMFILE_SOUR...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_generator.rb
Ruby
mit
41,450
master
3,196
module Fastlane # Generates a sample plugin by traversing a template directory structure # and reproducing it in a destination location. At the same time, it runs # variable replacements on directory names, file names, and runs ERB # templating on file contents whose names end with '.erb'. # # Directory and...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/plugins/plugin_info_collector.rb
Ruby
mit
41,450
master
4,497
module Fastlane class PluginInfoCollector def initialize(ui = PluginGeneratorUI.new) @ui = ui end def collect_info(initial_name = nil) plugin_name = collect_plugin_name(initial_name) author = collect_author(detect_author) email = collect_email(detect_email) summary = collect...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/documentation/actions_list.rb
Ruby
mit
41,450
master
7,311
module Fastlane class ActionsList def self.run(filter: nil, platform: nil) require 'terminal-table' if filter show_details(filter: filter) else print_all(platform: platform) end end def self.print_all(platform: nil) rows = [] all_actions(platform) do |a...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/documentation/docs_generator.rb
Ruby
mit
41,450
master
3,061
module Fastlane class DocsGenerator def self.run(ff, output_path = nil) output_path ||= File.join(FastlaneCore::FastlaneFolder.path || '.', 'README.md') output = ["fastlane documentation"] output << "----" output << "" output << "# Installation" output << "" output << "...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/documentation/markdown_docs_generator.rb
Ruby
mit
41,450
master
8,328
module Fastlane class MarkdownDocsGenerator attr_accessor :categories def initialize require 'fastlane' require 'fastlane/documentation/actions_list' Fastlane.load_actions self.work end def work fill_built_in_actions end def fill_built_in_actions self.ca...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/action_command_return.rb
Ruby
mit
41,450
master
497
module Fastlane # Encapsulates the result and description of a return object returned by an executed fastlane action class ActionCommandReturn attr_reader :return_value attr_reader :return_value_type attr_reader :closure_argument_value def initialize(return_value: nil, return_value_type: nil, closu...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/json_return_value_processor.rb
Ruby
mit
41,450
master
2,283
require 'json' module Fastlane class JSONReturnValueProcessor def prepare_object(return_value: nil, return_value_type: nil) case return_value_type when nil UI.verbose("return_value_type is nil value: #{return_value}") return process_value_as_string(return_value: return_value) wh...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/control_command.rb
Ruby
mit
41,450
master
590
module Fastlane # Represents a command that is meant to signal the server to do something on the client's behalf # Examples are: :cancelFastlaneRune, and :done class ControlCommand attr_reader :command attr_reader :user_message attr_reader :reason def initialize(json: nil) @command = json['...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/socket_server_action_command_executor.rb
Ruby
mit
41,450
master
3,745
require 'fastlane/server/action_command_return.rb' require 'fastlane/server/command_parser.rb' require 'fastlane/server/command_executor.rb' module Fastlane # Handles receiving commands from the socket server, finding the Action to be invoked, # invoking it, and returning any return values class SocketServerActi...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/command_parser.rb
Ruby
mit
41,450
master
1,207
require 'fastlane/server/action_command.rb' require 'fastlane/server/control_command.rb' require 'json' module Fastlane class CommandParser def self.parse(json: nil) if json.strip == "done" return intercept_old_done_command end command_json = JSON.parse(json) command_type_json = ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/action_command.rb
Ruby
mit
41,450
master
1,459
module Fastlane # Represents an argument to the ActionCommand class Argument def initialize(json: nil) @name = json['name'] @value = json['value'] @value_type = json['value_type'] end def is_named return @name.to_s.length > 0 end def inspect if is_named re...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
fastlane/lib/fastlane/server/socket_server.rb
Ruby
mit
41,450
master
7,443
require 'fastlane/server/command_executor.rb' require 'fastlane/server/command_parser.rb' require 'fastlane/server/json_return_value_processor.rb' require 'socket' require 'json' module Fastlane class SocketServer COMMAND_EXECUTION_STATE = { ready: :ready, already_shutdown: :already_shutdown, e...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/spec/test_parser_spec.rb
Ruby
mit
41,450
master
22,621
describe Trainer do describe Trainer::TestParser do describe "Loading a file" do it "raises an error if the file doesn't exist" do expect do Trainer::TestParser.new("notExistent") end.to raise_error(/File not found at path/) end it "raises an error if FormatVersion is ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/spec/junit_generator_spec.rb
Ruby
mit
41,450
master
1,387
describe Trainer do describe Trainer::JunitGenerator do it "works for a valid .plist file" do tp = Trainer::TestParser.new("./trainer/spec/fixtures/Valid1.plist") junit = File.read("./trainer/spec/fixtures/Valid1.junit") expect(tp.to_junit).to eq(junit) end it "works for a valid .plist ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer.rb
Ruby
mit
41,450
master
240
require 'fastlane' require 'trainer/options' require 'trainer/test_parser' require 'trainer/xcresult' require 'trainer/junit_generator' require 'trainer/legacy_xcresult' require 'trainer/plist_test_summary_parser' require 'trainer/module'
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/module.rb
Ruby
mit
41,450
master
391
require 'fastlane_core/helper' require 'fastlane/boolean' module Trainer Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore UI = FastlaneCore::UI Boolean = Fastlane::Boolean ROOT = Pathname.new(File.expand_path('../../..', __FILE__)) DESCRIPTIO...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/plist_test_summary_parser.rb
Ruby
mit
41,450
master
3,416
require 'plist' module Trainer module PlistTestSummaryParser class << self def parse_content(raw_json, xcpretty_naming) data = raw_json["TestableSummaries"].collect do |testable_summary| summary_row = { project_path: testable_summary["ProjectPath"], target_name: te...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/commands_generator.rb
Ruby
mit
41,450
master
1,391
require 'commander' require 'fastlane_core/configuration/configuration' require 'fastlane_core/ui/help_formatter' require_relative 'options' require_relative 'test_parser' require_relative 'module' HighLine.track_eof = false module Trainer class CommandsGenerator include Commander::Methods def self.star...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult.rb
Ruby
mit
41,450
master
1,446
require 'json' require 'open3' require_relative 'xcresult/helper' require_relative 'xcresult/test_case_attributes' require_relative 'xcresult/repetition' require_relative 'xcresult/test_case' require_relative 'xcresult/test_suite' require_relative 'xcresult/test_plan' module Trainer # Model xcresulttool JSON output...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/options.rb
Ruby
mit
41,450
master
4,512
require 'fastlane_core/configuration/config_item' require_relative 'module' module Trainer class Options def self.available_options @options ||= [ FastlaneCore::ConfigItem.new(key: :path, short_option: "-p", env_name: "TRAIN...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/test_parser.rb
Ruby
mit
41,450
master
5,847
require 'plist' require 'fastlane_core/print_table' require_relative 'xcresult' require_relative 'xcresult/helper' require_relative 'junit_generator' require_relative 'legacy_xcresult' require_relative 'plist_test_summary_parser' require_relative 'module' module Trainer class TestParser attr_accessor :data ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/legacy_xcresult.rb
Ruby
mit
41,450
master
20,853
require 'open3' require_relative 'xcresult/helper' module Trainer module LegacyXCResult # Model attributes and relationships taken from running the following command: # xcrun xcresulttool formatDescription --legacy class AbstractObject attr_accessor :type def initialize(data) self.t...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/junit_generator.rb
Ruby
mit
41,450
master
974
require_relative 'module' module Trainer class JunitGenerator attr_accessor :results def initialize(results) self.results = results end def generate # JUnit file documentation: http://llg.cubic.org/docs/junit/ # And http://nelsonwells.net/2012/09/how-jenkins-ci-parses-and-displays...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/test_plan.rb
Ruby
mit
41,450
master
3,542
require_relative 'test_suite' module Trainer module XCResult # Represents a collection of test suites + the configuration, and device used to run them class TestPlan attr_reader :test_suites, :name, :configurations, :devices attr_accessor :output_remove_retry_attempts def initialize(test_s...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/helper.rb
Ruby
mit
41,450
master
2,589
require 'rexml/document' require 'rubygems' module Trainer module XCResult # Helper class for XML and node operations class Helper # Creates an XML element with the given name and attributes # # @param name [String] The name of the XML element # @param attributes [Hash] A hash of attr...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/test_case.rb
Ruby
mit
41,450
master
8,607
require_relative 'helper' require_relative 'test_case_attributes' require_relative 'repetition' module Trainer module XCResult # Represents a test case, including its retries (aka repetitions) class TestCase include TestCaseAttributes attr_reader :name attr_reader :identifier attr_re...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/test_case_attributes.rb
Ruby
mit
41,450
master
1,262
module Trainer module XCResult # Mixin for shared attributes between TestCase and Repetition module TestCaseAttributes def self.included(base) base.extend(ClassMethods) end def passed? @result == 'Passed' end def failed? @result == 'Failed' end ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/repetition.rb
Ruby
mit
41,450
master
1,263
require_relative 'test_case_attributes' module Trainer module XCResult # Represents retries of a test case, including the original run # e.g. a test case that ran 3 times in total will be represented by 3 Repetition instances in the `xcresulttool` JSON output, # one for the original run and one for the 2...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
trainer/lib/trainer/xcresult/test_suite.rb
Ruby
mit
41,450
master
4,050
require_relative 'test_case' module Trainer module XCResult # Represents a test suite, including its test cases and sub-suites class TestSuite attr_reader :name attr_reader :identifier attr_reader :type attr_reader :result attr_reader :test_cases attr_reader :sub_suites ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym.rb
Ruby
mit
41,450
master
357
require_relative 'gym/manager' require_relative 'gym/generators/build_command_generator' require_relative 'gym/generators/package_command_generator' require_relative 'gym/runner' require_relative 'gym/error_handler' require_relative 'gym/options' require_relative 'gym/detect_values' require_relative 'gym/xcode' require...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/error_handler.rb
Ruby
mit
41,450
master
17,247
# coding: utf-8 require 'fastlane_core/print_table' require_relative 'module' module Gym # This classes methods are called when something goes wrong in the building process class ErrorHandler class << self # @param [String] The output of the errored build # This method should raise an exception in...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/manager.rb
Ruby
mit
41,450
master
679
require 'fastlane_core/print_table' require_relative 'module' require_relative 'runner' module Gym class Manager def work(options) Gym.config = options # Also print out the path to the used Xcode installation # We go 2 folders up, to not show "Contents/Developer/" values = Gym.config.val...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/runner.rb
Ruby
mit
41,450
master
17,320
require 'open3' require 'fileutils' require 'shellwords' require 'terminal-table' require 'fastlane_core/print_table' require 'fastlane_core/command_executor' require_relative 'module' require_relative 'generators/package_command_generator' require_relative 'generators/build_command_generator' require_relative 'error_...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/code_signing_mapping.rb
Ruby
mit
41,450
master
10,787
require 'xcodeproj' require_relative 'module' module Gym class CodeSigningMapping attr_accessor :project def initialize(project: nil) self.project = project end # @param primary_mapping [Hash] The preferred mapping (e.g. whatever the user provided) # @param secondary_mapping [Hash] (opti...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/detect_values.rb
Ruby
mit
41,450
master
7,645
require 'fastlane_core/core_ext/cfpropertylist' require 'fastlane_core/project' require_relative 'module' require_relative 'code_signing_mapping' module Gym # This class detects all kinds of default values class DetectValues # This is needed as these are more complex default values # Returns the finished c...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/options.rb
Ruby
mit
41,450
master
25,337
require 'fastlane_core/configuration/config_item' require 'fastlane/helper/xcodebuild_formatter_helper' require 'credentials_manager/appfile_config' require_relative 'module' module Gym # rubocop:disable Metrics/ClassLength class Options def self.available_options return @options if @options @opti...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/xcode.rb
Ruby
mit
41,450
master
613
require_relative 'module' module Gym class Xcode class << self def xcode_path Helper.xcode_path end def xcode_version Helper.xcode_version end # Below Xcode 7 (which offers a new nice API to sign the app) def pre_7? UI.user_error!("Unable to locate Xc...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/commands_generator.rb
Ruby
mit
41,450
master
2,424
require 'commander' require 'fastlane_core/configuration/configuration' require 'fastlane_core/ui/help_formatter' require_relative 'module' require_relative 'manager' require_relative 'options' HighLine.track_eof = false module Gym class CommandsGenerator include Commander::Methods def self.start ne...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/module.rb
Ruby
mit
41,450
master
2,630
require 'fastlane_core/helper' require 'fastlane/boolean' require_relative 'detect_values' module Gym class << self attr_accessor :config attr_accessor :project attr_accessor :cache def config=(value) @config = value DetectValues.set_additional_default_values @cache = {} end ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/generators/package_command_generator_xcode7.rb
Ruby
mit
41,450
master
9,975
# encoding: utf-8 # from https://stackoverflow.com/a/9857493/445598 # because of # `incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)` require 'addressable/uri' require 'tempfile' require 'xcodeproj' require 'fastlane_core/core_ext/cfpropertylist' require_relativ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/generators/package_command_generator.rb
Ruby
mit
41,450
master
1,530
# encoding: utf-8 # from https://stackoverflow.com/a/9857493/445598 # because of # `incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string) (Encoding::CompatibilityError)` require 'shellwords' # The concrete implementations require_relative 'package_command_generator_xcode7' module Gym class Pack...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/generators/build_command_generator.rb
Ruby
mit
41,450
master
6,768
require 'shellwords' require_relative '../module' module Gym # Responsible for building the fully working xcodebuild command class BuildCommandGenerator class << self def generate parts = prefix parts << Gym.config[:xcodebuild_command] parts += options parts += buildaction...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb
Ruby
mit
41,450
master
1,213
require 'shellwords' require_relative '../module' require_relative '../generators/build_command_generator' module Gym class XcodebuildFixes class << self # Determine IPAs for the Watch App which aren't inside of a containing # iOS App and removes them. # # In the future it may be nice to...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/options_spec.rb
Ruby
mit
41,450
master
1,587
describe Gym do describe Gym::Options do it "raises an exception when project path wasn't found" do expect do options = { project: "./gym/examples/standard/Example.xcodeproj", workspace: "./gym/examples/cocoapods/Example.xcworkspace" } Gym.config = FastlaneCore::Configuration.create(Gym::Opt...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/commands_generator_spec.rb
Ruby
mit
41,450
master
1,232
require 'gym/commands_generator' describe Gym::CommandsGenerator do def expect_manager_work_with(expected_options) fake_manager = "manager" expect(Gym::Manager).to receive(:new).and_return(fake_manager) expect(fake_manager).to receive(:work) do |actual_options| expect(expected_options._values).to e...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/gymfile_spec.rb
Ruby
mit
41,450
master
650
describe Gym do before(:all) do options = { project: "./gym/examples/multipleSchemes/Example.xcodeproj" } @config = FastlaneCore::Configuration.create(Gym::Options.available_options, options) @project = FastlaneCore::Project.new(@config) end describe "Project with multiple Schemes and Gymfile", requi...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/detect_values_spec.rb
Ruby
mit
41,450
master
11,073
describe Gym do describe Gym::DetectValues do describe 'Xcode config handling', :stuff, requires_xcodebuild: true do now = Time.now day = now.strftime("%F") before do # These tests can take some time to run # Mocking Time.now to ensure test pass when running between two days ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/build_command_generator_spec.rb
Ruby
mit
41,450
master
28,162
describe Gym do before(:all) do options = { project: "./gym/examples/standard/Example.xcodeproj" } config = FastlaneCore::Configuration.create(Gym::Options.available_options, options) @project = FastlaneCore::Project.new(config) end before(:each) do @project.options.delete(:use_system_scm) al...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/error_handler_spec.rb
Ruby
mit
41,450
master
5,467
describe Gym do before(:all) do options = { project: "./gym/examples/multipleSchemes/Example.xcodeproj" } @config = FastlaneCore::Configuration.create(Gym::Options.available_options, options) @project = FastlaneCore::Project.new(@config) @output = %( 2015-12-15 13:00:57.177 xcodebuild[81544:4350404] ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/platform_detection_spec.rb
Ruby
mit
41,450
master
2,146
describe Gym do it "detects when a multiplatform project is building for iOS", requires_xcodebuild: true do options = { project: "./gym/examples/multiplatform/Example.xcodeproj", sdk: "iphoneos" } Gym.config = FastlaneCore::Configuration.create(Gym::Options.available_options, options) expect(Gym.project....
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/code_signing_mapping_spec.rb
Ruby
mit
41,450
master
10,144
describe Gym::CodeSigningMapping, requires_xcodebuild: true do describe "#app_identifier_contains?" do it "returns false if it doesn't contain it" do csm = Gym::CodeSigningMapping.new(project: nil) return_value = csm.app_identifier_contains?("dsfsdsdf", "somethingelse") expect(return_value).to e...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/package_command_generator_xcode7_spec.rb
Ruby
mit
41,450
master
11,176
describe Gym do before(:all) do options = { project: "./gym/examples/standard/Example.xcodeproj" } config = FastlaneCore::Configuration.create(Gym::Options.available_options, options) @project = FastlaneCore::Project.new(config) end before(:each) do allow(Gym).to receive(:project).and_return(@proj...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
gym/spec/xcodebuild_fixes/generic_archive_fix_spec.rb
Ruby
mit
41,450
master
489
describe Gym do describe Gym::XcodebuildFixes do let(:watch_app) { 'gym/spec/fixtures/xcodebuild_fixes/ios_watch_app.app' } let(:ios_app) { 'gym/spec/fixtures/xcodebuild_fixes/ios_app.app' } it "can detect watch application", requires_plistbuddy: true do expect(Gym::XcodebuildFixes.is_watchkit_app?...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
rubocop/missing_keys_on_shared_area.rb
Ruby
mit
41,450
master
3,611
require 'rubocop' module RuboCop module Lint class MissingKeysOnSharedArea < RuboCop::Cop::Cop MISSING_KEYS_MSG = "Found %<key>s in 'SharedValues' but not in 'output' method. Keys in the 'output' method: %<list>s".freeze MISSING_OUTPUT_METHOD_MSG = "There are declared keys on the shared area 'SharedV...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
rubocop/is_string_usage.rb
Ruby
mit
41,450
master
747
require 'rubocop' module RuboCop module Cop module Lint class IsStringUsage < RuboCop::Cop::Cop MSG = 'is_string key in used in FastlaneCore::ConfigItem. Replace with `type: <Integer|Float|String|Boolean|Array|Hash>`'.freeze def on_hash(node) pairs = node.pairs return i...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
rubocop/fork_usage.rb
Ruby
mit
41,450
master
1,039
require 'rubocop' module RuboCop module CrossPlatform class ForkUsage < RuboCop::Cop::Cop MSG = "Using `fork`, which does not work on all platforms. Wrap in `if Process.respond_to?(:fork)` to silence.".freeze def_node_matcher :bad_fork, <<-PATTERN (send _ :fork) PATTERN def_node...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship.rb
Ruby
mit
41,450
master
908
require_relative 'spaceship/globals' require_relative 'spaceship/base' require_relative 'spaceship/client' require_relative 'spaceship/provider' require_relative 'spaceship/launcher' require_relative 'spaceship/hashcash' # Middleware require_relative 'spaceship/stats_middleware' # Dev Portal require_relative 'spacesh...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/module.rb
Ruby
mit
41,450
master
344
module Spaceship # Requiring pathname is required here if not using bundler and requiring spaceship directly # https://github.com/fastlane/fastlane/issues/14661 require 'pathname' ROOT = Pathname.new(File.expand_path('../../..', __FILE__)) DESCRIPTION = "Ruby library to access the Apple Dev Center and App St...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/two_step_or_factor_client.rb
Ruby
mit
41,450
master
15,661
require_relative 'globals' require_relative 'tunes/tunes_client' module Spaceship class Client def handle_two_step_or_factor(response) raise "2FA can only be performed in interactive mode" if ENV["SPACESHIP_ONLY_ALLOW_INTERACTIVE_2FA"] == "true" && ENV["FASTLANE_IS_INTERACTIVE"] == "false" # extract ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/launcher.rb
Ruby
mit
41,450
master
3,652
require_relative 'portal/portal_client' module Spaceship class Launcher attr_accessor :client # Launch a new spaceship, which can be used to maintain multiple instances of # spaceship. You can call `.new` without any parameters, but you'll have to call # `.login` at a later point. If you prefer, you...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/connect_api.rb
Ruby
mit
41,450
master
5,851
require 'spaceship/connect_api/model' require 'spaceship/connect_api/response' require 'spaceship/connect_api/token' require 'spaceship/connect_api/file_uploader' require 'spaceship/connect_api/provisioning/provisioning' require 'spaceship/connect_api/testflight/testflight' require 'spaceship/connect_api/users/users' ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/spaceauth_runner.rb
Ruby
mit
41,450
master
3,086
require 'colored' require 'credentials_manager/appfile_config' require 'yaml' require 'fastlane_core' require_relative 'tunes/tunes_client' module Spaceship class SpaceauthRunner def initialize(username: nil, copy_to_clipboard: nil) @username = username @username ||= CredentialsManager::AppfileConfi...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/commands_generator.rb
Ruby
mit
41,450
master
2,181
require 'highline' HighLine.track_eof = false require 'fastlane/version' require 'fastlane_core/ui/help_formatter' require_relative 'playground' require_relative 'spaceauth_runner' module Spaceship class CommandsGenerator include Commander::Methods def self.start self.new.run end def run ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/ui.rb
Ruby
mit
41,450
master
695
paths = Dir[File.expand_path("**/ui/*.rb", File.dirname(__FILE__))] raise "Could not find UI classes to import" unless paths.count > 0 paths.each do |file| require file end module Spaceship class Client # All User Interface related code lives in this class class UserInterface # Access the client this...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/base.rb
Ruby
mit
41,450
master
9,037
require_relative 'globals' module Spaceship ## # Spaceship::Base is the superclass for models in Apple Developer Portal. # It's mainly responsible for mapping responses to objects. # # A class-level attribute `client` is used to maintain the spaceship which we # are using to talk to ADP. # # Example of...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/provider.rb
Ruby
mit
41,450
master
330
module Spaceship class Provider attr_accessor :provider_id attr_accessor :name attr_accessor :content_types def initialize(provider_hash: nil) self.provider_id = provider_hash['providerId'] self.name = provider_hash['name'] self.content_types = provider_hash['contentTypes'] end ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/upgrade_2fa_later_client.rb
Ruby
mit
41,450
master
3,531
require_relative 'globals' require_relative 'tunes/tunes_client' module Spaceship class Client def try_upgrade_2fa_later(response) if ENV['SPACESHIP_SKIP_2FA_UPGRADE'].nil? return false end puts("This account is being prompted to upgrade to 2FA") puts("Attempting to automatically...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/hashcash.rb
Ruby
mit
41,450
master
2,033
require 'digest' module Spaceship module Hashcash # This App Store Connect hashcash spec was generously donated by... # # __ _ # __ _ _ __ _ __ / _|(_) __ _ _ _ _ __ ___ ___ # / _` || '_ \ | '_ \ | |_ | | / _` || | | || '__|/ _ \/ __| # | (_| || |_) ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/test_flight.rb
Ruby
mit
41,450
master
423
require 'spaceship/test_flight/client' require 'spaceship/test_flight/base' require 'spaceship/test_flight/app_test_info' require 'spaceship/test_flight/build' require 'spaceship/test_flight/build_trains' require 'spaceship/test_flight/beta_review_info' require 'spaceship/test_flight/export_compliance' require 'spacesh...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/playground.rb
Ruby
mit
41,450
master
2,338
require "colored" require "credentials_manager" require_relative 'tunes/tunes' require_relative 'portal/portal' module Spaceship class Playground def initialize(username: nil) # Make sure the user has pry installed begin Gem::Specification.find_by_name("pry") rescue Gem::LoadError ...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/client.rb
Ruby
mit
41,450
master
43,399
require 'babosa' require 'faraday' # HTTP Client require 'faraday-cookie_jar' require 'faraday_middleware' require 'logger' require 'tmpdir' require 'cgi' require 'tempfile' require 'openssl' require 'fastlane/version' require_relative 'helper/net_http_generic_request' require_relative 'helper/plist_middleware' requir...
github
fastlane/fastlane
https://github.com/fastlane/fastlane
spaceship/lib/spaceship/stats_middleware.rb
Ruby
mit
41,450
master
2,380
require 'faraday' require_relative 'globals' module Spaceship class StatsMiddleware < Faraday::Middleware ServiceOption = Struct.new(:name, :url, :auth_type) URLLog = Struct.new(:url, :auth_type) class << self def services return @services if @services require_relative 'tunes/tune...