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 |
|---|---|---|---|---|---|---|---|---|
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb | fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb | unless Object.const_defined?("Faraday")
# We create these empty error classes if we didn't require Faraday
# so that we can use it in the rescue block below even if we didn't
# require Faraday or didn't use it
module Faraday
class Error < StandardError; end
class ClientError < Error; end
class SSLEr... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb | fastlane_core/lib/fastlane_core/ui/github_issue_inspector_reporter.rb | require_relative '../helper'
require_relative '../globals'
module Fastlane
# Adds all the necessary emojis (obv)
#
class InspectorReporter
NUMBER_OF_ISSUES_INLINE = 3
# Called just as the investigation has begun.
def inspector_started_query(query, inspector)
puts("")
puts("Looking for re... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb | fastlane_core/lib/fastlane_core/ui/errors/fastlane_exception.rb | module FastlaneCore
class Interface
class FastlaneException < StandardError
def prefix
'[FASTLANE_EXCEPTION]'
end
def caused_by_calling_ui_method?(method_name: nil)
return false if backtrace.nil? || backtrace[0].nil? || method_name.nil?
first_frame = backtrace[0]
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb | fastlane_core/lib/fastlane_core/ui/errors/fastlane_error.rb | require_relative 'fastlane_exception'
module FastlaneCore
class Interface
class FastlaneError < FastlaneException
attr_reader :show_github_issues
attr_reader :error_info
def initialize(show_github_issues: false, error_info: nil)
@show_github_issues = show_github_issues
@error_i... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb | fastlane_core/lib/fastlane_core/ui/errors/fastlane_common_error.rb | require_relative 'fastlane_exception'
module FastlaneCore
class Interface
# Super class for exception types that we do not want to record
# explicitly as crashes or user errors
class FastlaneCommonException < FastlaneException; end
# Raised when there is a build failure in xcodebuild
class Fastl... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb | fastlane_core/lib/fastlane_core/ui/errors/fastlane_shell_error.rb | require_relative 'fastlane_exception'
module FastlaneCore
class Interface
class FastlaneShellError < FastlaneException
def prefix
'[SHELL_ERROR]'
end
end
end
end
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb | fastlane_core/lib/fastlane_core/ui/errors/fastlane_crash.rb | require_relative 'fastlane_exception'
module FastlaneCore
class Interface
class FastlaneCrash < FastlaneException
def prefix
'[FASTLANE_CRASH]'
end
end
end
end
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/ui/implementations/shell.rb | fastlane_core/lib/fastlane_core/ui/implementations/shell.rb | require_relative '../../helper'
require_relative '../../globals'
require_relative '../../env'
require_relative '../interface'
module FastlaneCore
# Shell is the terminal output of things
# For documentation for each of the methods open `interface.rb`
class Shell < Interface
require 'tty-screen'
def log... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/update_checker/update_checker.rb | fastlane_core/lib/fastlane_core/update_checker/update_checker.rb | require 'excon'
require 'digest'
require_relative 'changelog'
require_relative '../analytics/app_identifier_guesser'
require_relative '../helper'
require_relative '../ui/ui'
module FastlaneCore
# Verifies, the user runs the latest version of this gem
class UpdateChecker
def self.start_looking_for_update(gem_n... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane_core/lib/fastlane_core/update_checker/changelog.rb | fastlane_core/lib/fastlane_core/update_checker/changelog.rb | require 'excon'
module FastlaneCore
class Changelog
class << self
def show_changes(gem_name, current_version, update_gem_command: "bundle update")
did_show_changelog = false
self.releases(gem_name).each_with_index do |release, index|
next unless Gem::Version.new(release['tag_name... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/commands_generator_spec.rb | gym/spec/commands_generator_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/error_handler_spec.rb | gym/spec/error_handler_spec.rb | 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] ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/code_signing_mapping_spec.rb | gym/spec/code_signing_mapping_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/build_command_generator_spec.rb | gym/spec/build_command_generator_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/gymfile_spec.rb | gym/spec/gymfile_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/package_command_generator_xcode7_spec.rb | gym/spec/package_command_generator_xcode7_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/detect_values_spec.rb | gym/spec/detect_values_spec.rb | 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
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/platform_detection_spec.rb | gym/spec/platform_detection_spec.rb | 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.... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/spec_helper.rb | gym/spec/spec_helper.rb | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false | |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/options_spec.rb | gym/spec/options_spec.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/spec/xcodebuild_fixes/generic_archive_fix_spec.rb | gym/spec/xcodebuild_fixes/generic_archive_fix_spec.rb | 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?... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym.rb | gym/lib/gym.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/code_signing_mapping.rb | gym/lib/gym/code_signing_mapping.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/options.rb | gym/lib/gym/options.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/detect_values.rb | gym/lib/gym/detect_values.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/xcode.rb | gym/lib/gym/xcode.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/commands_generator.rb | gym/lib/gym/commands_generator.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/error_handler.rb | gym/lib/gym/error_handler.rb | # 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/runner.rb | gym/lib/gym/runner.rb | 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_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/manager.rb | gym/lib/gym/manager.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/module.rb | gym/lib/gym/module.rb | 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
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb | gym/lib/gym/xcodebuild_fixes/generic_archive_fix.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/generators/build_command_generator.rb | gym/lib/gym/generators/build_command_generator.rb | 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/generators/package_command_generator_xcode7.rb | gym/lib/gym/generators/package_command_generator_xcode7.rb | # 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/gym/lib/gym/generators/package_command_generator.rb | gym/lib/gym/generators/package_command_generator.rb | # 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... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/commands_generator_spec.rb | snapshot/spec/commands_generator_spec.rb | require 'snapshot/commands_generator'
require 'snapshot/reset_simulators'
describe Snapshot::CommandsGenerator do
let(:available_options) { Snapshot::Options.available_options }
describe ":run option handling" do
def expect_runner_work
allow(Snapshot::DetectValues).to receive(:set_additional_default_val... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/test_command_generator_xcode_8_spec.rb | snapshot/spec/test_command_generator_xcode_8_spec.rb | describe Snapshot do
describe Snapshot::TestCommandGeneratorXcode8 do
let(:os_version) { "9.3" }
let(:iphone6_9_3) { FastlaneCore::DeviceManager::Device.new(name: "iPhone 6", os_version: os_version, udid: "11111", state: "Don't Care", is_simulator: true) }
let(:iphone6_9_3_2) { FastlaneCore::DeviceManager... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/collector_spec.rb | snapshot/spec/collector_spec.rb | describe Snapshot do
describe Snapshot::Collector do
describe '#attachments_in_file for Xcode 7.2.1 plist output' do
it 'finds attachments and returns filenames' do
expected_files = [
"Screenshot_658CD3E2-96C5-4598-86EF-18164AEDE71D.png",
"Screenshot_31FC792E-A9E9-4C04-A31D-9901E... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/test_command_generator_spec.rb | snapshot/spec/test_command_generator_spec.rb | require 'tmpdir'
describe Snapshot do
describe Snapshot::TestCommandGenerator do
let(:os_version) { "9.3" }
let(:iphone6_9_3) { FastlaneCore::DeviceManager::Device.new(name: "iPhone 6", os_version: os_version, udid: "11111", state: "Don't Care", is_simulator: true) }
let(:iphone6_9_3_2) { FastlaneCore::D... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/simulator_launcher_base_spec.rb | snapshot/spec/simulator_launcher_base_spec.rb | describe Snapshot do
describe Snapshot::SimulatorLauncherBase do
let(:device_udid) { "123456789" }
let(:paths) { ['./logo.png'] }
describe '#add_media' do
it "should call simctl addmedia", requires_xcode: true do
allow(Snapshot::TestCommandGenerator).to receive(:device_udid).and_return(devi... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/reports_generator_spec.rb | snapshot/spec/reports_generator_spec.rb | require 'snapshot/reports_generator'
describe Snapshot::ReportsGenerator do
describe '#available_devices' do
# the Collector generates file names that remove all spaces from the device names, so
# any keys here can't contain spaces
it "xcode 8 devices don't have keys that contain spaces" do
allow(F... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/runner_spec.rb | snapshot/spec/runner_spec.rb | require 'os'
describe Snapshot do
describe Snapshot::Runner do
let(:runner) { Snapshot::Runner.new }
describe 'Parses embedded SnapshotHelper.swift' do
it 'finds the current embedded version' do
allow(FastlaneCore::Helper).to receive(:xcode_at_least?).with("9.0").and_return(true)
helpe... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/detect_values_spec.rb | snapshot/spec/detect_values_spec.rb | describe Snapshot do
describe Snapshot::DetectValues do
describe "value coercion" do
before(:each) do
allow(Snapshot).to receive(:snapfile_name).and_return("some fake snapfile")
end
it "coerces only_testing to be an array", requires_xcodebuild: true do
options = {
pr... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/reset_simulators_spec.rb | snapshot/spec/reset_simulators_spec.rb | require 'snapshot/reset_simulators'
describe Snapshot::ResetSimulators do
let(:usable_devices) do
[
[" iPhone 6s Plus (0311D4EC-14E7-443B-9F27-F32E72342799) (Shutdown)", "iPhone 6s Plus", "0311D4EC-14E7-443B-9F27-F32E72342799"],
[" iPad Pro (AD6A06DF-16EF-492D-8AF3-8128FCC03CBF) (Shutdown)", "i... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/spec/spec_helper.rb | snapshot/spec/spec_helper.rb | # Loading the XCode Project is really slow (>1 second)
# fake it out for tests
def fake_out_xcode_project_loading
fake_result = <<-EOS
Information about project "Example":
Targets:
Example
ExampleUITests
ExampleMacOS
ExampleMacOSUITests
Build Configurations:
Debug
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot.rb | snapshot/lib/snapshot.rb | require_relative 'snapshot/runner'
require_relative 'snapshot/reports_generator'
require_relative 'snapshot/detect_values'
require_relative 'snapshot/screenshot_flatten'
require_relative 'snapshot/screenshot_rotate'
require_relative 'snapshot/dependency_checker'
require_relative 'snapshot/latest_os_version'
require_rel... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/screenshot_flatten.rb | snapshot/lib/snapshot/screenshot_flatten.rb | require_relative 'module'
module Snapshot
# This class takes care of removing the alpha channel of the generated screenshots
class ScreenshotFlatten
# @param (String) The path in which the screenshots are located in
def run(path)
UI.message("Removing the alpha channel from generated png files")
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/test_command_generator.rb | snapshot/lib/snapshot/test_command_generator.rb | require_relative 'test_command_generator_base'
require_relative 'latest_os_version'
module Snapshot
# Responsible for building the fully working xcodebuild command
# Xcode 9 introduced the ability to run tests in parallel on multiple simulators
# This TestCommandGenerator constructs the appropriate `xcodebuild` ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/update.rb | snapshot/lib/snapshot/update.rb | require_relative 'module'
require_relative 'runner'
module Snapshot
# Migrate helper files
class Update
# @return [Array] A list of helper files (usually just one)
def self.find_helper
paths = Dir["./**/SnapshotHelper.swift"] + Dir["./**/SnapshotHelperXcode8.swift"]
# exclude assets in gym
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/setup.rb | snapshot/lib/snapshot/setup.rb | require_relative 'module'
module Snapshot
class Setup
# This method will take care of creating a Snapfile and other necessary files
def self.create(path, is_swift_fastfile: false, print_instructions_on_failure: false)
# First generate all the names & paths
if is_swift_fastfile
template_pa... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/collector.rb | snapshot/lib/snapshot/collector.rb | require 'plist'
require_relative 'module'
require_relative 'test_command_generator'
module Snapshot
# Responsible for collecting the generated screenshots and copying them over to the output directory
class Collector
# Returns true if it succeeds
def self.fetch_screenshots(output, dir_name, device_type, l... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/options.rb | snapshot/lib/snapshot/options.rb | require 'fastlane_core/configuration/config_item'
require 'fastlane_core/device_manager'
require 'fastlane/helper/xcodebuild_formatter_helper'
require 'credentials_manager/appfile_config'
require_relative 'module'
module Snapshot
class Options
def self.verify_type(item_name, acceptable_types, value)
type_o... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/detect_values.rb | snapshot/lib/snapshot/detect_values.rb | require 'fastlane_core/project'
require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class DetectValues
# This is needed as these are more complex default values
def self.set_additional_default_values
config = Snapshot.config
# First, try loading the Snapfile from th... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/dependency_checker.rb | snapshot/lib/snapshot/dependency_checker.rb | require 'fastlane_core/device_manager'
require 'fastlane_core/helper'
require_relative 'latest_os_version'
module Snapshot
class DependencyChecker
def self.check_dependencies
return if FastlaneCore::Helper.test?
return unless FastlaneCore::Helper.mac?
self.check_xcode_select
self.check_s... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/reports_generator.rb | snapshot/lib/snapshot/reports_generator.rb | require_relative 'module'
module Snapshot
class ReportsGenerator
require 'erb'
require 'fastimage'
def html_path
if Snapshot.config[:html_template]
Snapshot.config[:html_template]
else
File.join(Snapshot::ROOT, "lib", "snapshot/page.html.erb")
end
end
def gener... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/commands_generator.rb | snapshot/lib/snapshot/commands_generator.rb | require 'commander'
require 'fastlane_core/ui/help_formatter'
require_relative 'module'
require_relative 'runner'
require_relative 'options'
HighLine.track_eof = false
module Snapshot
class CommandsGenerator
include Commander::Methods
def self.start
self.new.run
end
def run
program :... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/latest_os_version.rb | snapshot/lib/snapshot/latest_os_version.rb | require 'open3'
require 'fastlane_core/ui/ui'
module Snapshot
class LatestOsVersion
def self.ios_version
return ENV["SNAPSHOT_IOS_VERSION"] if FastlaneCore::Env.truthy?("SNAPSHOT_IOS_VERSION")
self.version("iOS")
end
@versions = {}
def self.version(os)
@versions[os] ||= version_for... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/error_handler.rb | snapshot/lib/snapshot/error_handler.rb | require_relative 'module'
module Snapshot
class ErrorHandler
class << self
# @param [Array] The output of the errored build (line by line)
# This method should raise an exception in any case, as the return code indicated a failed build
def handle_test_error(output, return_code)
# The or... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/runner.rb | snapshot/lib/snapshot/runner.rb | require 'shellwords'
require 'plist'
require 'os'
require 'thread'
require 'terminal-table'
require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'update'
require_relative 'test_command_generator'
require_relative 'reports_generator'
require_relative 'simulator_launchers/simulator_launcher'
re... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/test_command_generator_xcode_8.rb | snapshot/lib/snapshot/test_command_generator_xcode_8.rb | require_relative 'test_command_generator_base'
require_relative 'module'
require_relative 'latest_os_version'
module Snapshot
# Responsible for building the fully working xcodebuild command
# This TestCommandGenerator supports Xcode 8's `xcodebuild` requirements
# It is its own object, as the logic differs for h... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/reset_simulators.rb | snapshot/lib/snapshot/reset_simulators.rb | require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class ResetSimulators
def self.clear_everything!(ios_versions, force = false)
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# !! Warning: This script will remove all your existing simulators !!
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/module.rb | snapshot/lib/snapshot/module.rb | require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'
require_relative 'dependency_checker'
module Snapshot
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
attr_accessor :project
attr_accesso... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/screenshot_rotate.rb | snapshot/lib/snapshot/screenshot_rotate.rb | require_relative 'module'
require 'fastlane_core/fastlane_pty'
module Snapshot
# This class takes care of rotating images
class ScreenshotRotate
require 'shellwords'
# @param (String) The path in which the screenshots are located in
def run(path)
UI.verbose("Rotating the screenshots (if necessar... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/test_command_generator_base.rb | snapshot/lib/snapshot/test_command_generator_base.rb | require 'fastlane_core/device_manager'
require_relative 'module'
module Snapshot
class TestCommandGeneratorBase
class << self
def prefix
["set -o pipefail &&"]
end
# Path to the project or workspace as parameter
# This will also include the scheme (if given)
# @return [Arra... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb | snapshot/lib/snapshot/simulator_launchers/launcher_configuration.rb | module Snapshot
class SimulatorLauncherConfiguration
# both
attr_accessor :languages
attr_accessor :devices
attr_accessor :add_photos
attr_accessor :add_videos
attr_accessor :clean
attr_accessor :erase_simulator
attr_accessor :headless
attr_accessor :localize_simulator
attr_acc... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb | snapshot/lib/snapshot/simulator_launchers/simulator_launcher_xcode_8.rb | require_relative 'simulator_launcher_base'
require_relative '../error_handler'
require_relative '../collector'
require_relative '../test_command_generator_xcode_8'
module Snapshot
class SimulatorLauncherXcode8 < SimulatorLauncherBase
def take_screenshots_one_simulator_at_a_time
results = {} # collect all t... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb | snapshot/lib/snapshot/simulator_launchers/simulator_launcher.rb | require 'fastlane_core/test_parser'
require_relative 'simulator_launcher_base'
module Snapshot
class CPUInspector
def self.hwprefs_available?
`which hwprefs` != ''
end
def self.cpu_count
@cpu_count ||=
case RUBY_PLATFORM
when /darwin9/
`hwprefs cpu_count`.to_i
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb | snapshot/lib/snapshot/simulator_launchers/simulator_launcher_base.rb | require 'plist'
require 'time'
require_relative '../module'
require_relative '../test_command_generator'
require_relative '../collector'
require_relative '../fixes/hardware_keyboard_fix'
require_relative '../fixes/simulator_zoom_fix'
require_relative '../fixes/simulator_shared_pasteboard'
module Snapshot
class Simu... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb | snapshot/lib/snapshot/fixes/simulator_zoom_fix.rb | require_relative '../module'
module Snapshot
module Fixes
# This fix is needed due to a bug in UI Tests that creates invalid screenshots when the
# simulator is not scaled to a 100%
# Issue: https://github.com/fastlane/fastlane/issues/2578
# Radar: https://openradar.appspot.com/radar?id=6127019184095... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb | snapshot/lib/snapshot/fixes/hardware_keyboard_fix.rb | require_relative '../module'
module Snapshot
module Fixes
# Having "Connect Hardware Keyboard" enabled causes issues with entering text in secure textfields
# Fixes https://github.com/fastlane/fastlane/issues/2494
class HardwareKeyboardFix
def self.patch
UI.verbose("Patching simulator to w... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb | snapshot/lib/snapshot/fixes/simulator_shared_pasteboard.rb | require_relative '../module'
module Snapshot
module Fixes
# Becoming first responder can trigger Pasteboard sync, which can stall and crash the simulator
# See https://twitter.com/steipete/status/1227551552317140992
class SharedPasteboardFix
def self.patch
UI.verbose("Patching simulator to... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/actions/plugin_scores.rb | fastlane/actions/plugin_scores.rb | module Fastlane
module Actions
class PluginScoresAction < Action
def self.run(params)
require_relative '../helper/plugin_scores_helper.rb'
require "erb"
plugins = fetch_plugins(params[:cache_path]).sort_by { |v| v.data[:overall_score] }.reverse
result = "<!--\nAuto generate... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/actions/test_sample_code.rb | fastlane/actions/test_sample_code.rb | module Fastlane
module Actions
class TestSampleCodeAction < Action
def self.run(params)
content = params[:content] || File.read(params[:path])
fill_in_env_variables
errors = []
content.scan(/```ruby\n(((.|\n)(?!```))*)\n```/).each do |current_match|
current_match =... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/unused_options_spec.rb | fastlane/spec/unused_options_spec.rb | describe Fastlane do
describe Fastlane::Action do
describe "No unused options" do
let(:all_exceptions) do
%w(
pilot
appstore
cert
deliver
gym
match
pem
produce
scan
sigh
snapshot
p... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/docs_generator_spec.rb | fastlane/spec/docs_generator_spec.rb | require 'fastlane/documentation/docs_generator'
describe Fastlane do
describe Fastlane::DocsGenerator do
it "generates new markdown docs" do
output_path = "/tmp/documentation.md"
ff = Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
Fastlane::DocsGenerator.run(ff, ou... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/actions_list_spec.rb | fastlane/spec/actions_list_spec.rb | require 'fastlane/documentation/actions_list'
describe Fastlane do
describe "Action List" do
it "doesn't throw an exception" do
Fastlane::ActionsList.run(filter: nil)
end
it "doesn't throw an exception with filter" do
Fastlane::ActionsList.run(filter: 'deliver')
end
it "shows all av... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/action_spec.rb | fastlane/spec/action_spec.rb | describe Fastlane do
describe Fastlane::Action do
describe "#action_name" do
it "converts the :: format to a readable one" do
expect(Fastlane::Actions::IpaAction.action_name).to eq('ipa')
expect(Fastlane::Actions::IncrementBuildNumberAction.action_name).to eq('increment_build_number')
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/action_metadata_spec.rb | fastlane/spec/action_metadata_spec.rb | require 'fastlane/documentation/actions_list'
describe Fastlane::Action do
Fastlane::ActionsList.all_actions do |action, name|
describe name do
it "`fastlane_class` and `action` are matching" do
# `to_s.gsub(/::.*/, '')` to convert
# "Fastlane::Actions::AdbDevicesAction"
# to
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/actions_helper_spec.rb | fastlane/spec/actions_helper_spec.rb | describe Fastlane do
describe Fastlane::FastFile do
describe "#execute_action" do
let(:step_name) { "My Step" }
it "stores the action properly" do
Fastlane::Actions.execute_action(step_name) {}
result = Fastlane::Actions.executed_actions.last
expect(result[:name]).to eq(step_n... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/action_collector_spec.rb | fastlane/spec/action_collector_spec.rb | describe Fastlane::ActionCollector do
before(:all) { ENV.delete("FASTLANE_OPT_OUT_USAGE") }
let(:collector) { Fastlane::ActionCollector.new }
describe "#determine_version" do
it "accesses the version number of the other tools" do
expect(collector.determine_version(:gym)).to eq(Fastlane::VERSION)
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/lane_manager_spec.rb | fastlane/spec/lane_manager_spec.rb | describe Fastlane do
describe Fastlane::LaneManager do
describe "#init" do
it "raises an error on invalid platform" do
expect do
Fastlane::LaneManager.cruise_lane(123, nil)
end.to raise_error("platform must be a string")
end
it "raises an error on invalid lane" do
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/supported_platforms.rb | fastlane/spec/supported_platforms.rb | describe Fastlane do
describe Fastlane::Action do
describe "#all" do
it "Contains 3 default supported platforms" do
expect(Fastlane::SupportedPlatforms.all.count).to eq(3)
end
end
describe "#extra=" do
after :each do
Fastlane::SupportedPlatforms.extra = []
end
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/lane_list_spec.rb | fastlane/spec/lane_list_spec.rb | require 'fastlane/lane_list'
describe Fastlane do
describe Fastlane::LaneList do
it "#generate" do
result = Fastlane::LaneList.generate('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
expect(result).to include("fastlane ios beta")
expect(result).to include("Build and upload a new build t... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/private_public_fastfile_spec.rb | fastlane/spec/private_public_fastfile_spec.rb | describe Fastlane do
describe Fastlane::FastFile do
describe "Public/Private lanes" do
let(:path) { './fastlane/spec/fixtures/fastfiles/FastfilePrivatePublic' }
before do
FileUtils.rm_rf('/tmp/fastlane/')
@ff = Fastlane::FastFile.new(path)
end
it "raise an exception when ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/env_spec.rb | fastlane/spec/env_spec.rb | require "fastlane/environment_printer"
require "fastlane/cli_tools_distributor"
describe Fastlane do
describe Fastlane::EnvironmentPrinter do
before do
stub_request(:get, %r{https://rubygems\.org\/api\/v1\/gems\/.*}).
to_return(status: 200, body: '{"version": "0.16.2"}', headers: {})
end
l... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/erb_template_helper_spec.rb | fastlane/spec/erb_template_helper_spec.rb | describe Fastlane do
describe Fastlane::ErbTemplateHelper do
describe "load_template" do
it "raises an error if file does not exist" do
expect do
Fastlane::ErbTemplateHelper.load('invalid_name')
end.to raise_exception("Could not find template at path '#{Fastlane::ROOT}/lib/assets/i... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/tools_spec.rb | fastlane/spec/tools_spec.rb | describe Fastlane do
describe "Fastlane::TOOLS" do
it "lists all the fastlane tools" do
expect(Fastlane::TOOLS.count).to be >= 15
end
it "contains symbols for each of the tools" do
Fastlane::TOOLS.each do |current|
expect(current).to be_kind_of(Symbol)
end
end
it "warns... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/lane_manager_base_spec.rb | fastlane/spec/lane_manager_base_spec.rb | describe Fastlane do
describe Fastlane::LaneManagerBase do
describe "#print_lane_context" do
it "prints lane context" do
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::LANE_NAME] = "test"
cleaned_row_data = [[:LANE_NAME, "test"]]
table_data = FastlaneCore::PrintTab... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/cli_tools_distributor_spec.rb | fastlane/spec/cli_tools_distributor_spec.rb | require 'fastlane/cli_tools_distributor'
describe Fastlane::CLIToolsDistributor do
around do |example|
# FASTLANE_SKIP_UPDATE_CHECK: prevent the update checker to run and clutter the output
# (Fastlane::PluginUpdateManager.start_looking_for_updates() will return)
# FASTLANE_DISABLE_ANIMATION: prevent the... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/gradle_helper_spec.rb | fastlane/spec/gradle_helper_spec.rb | describe Fastlane::Helper::GradleHelper do
describe 'parameter handling' do
it 'stores a shell-escaped version of the gradle_path when constructed' do
gradle_path = '/fake gradle/path'
helper = Fastlane::Helper::GradleHelper.new(gradle_path: gradle_path)
expect(helper.gradle_path).to eq(gradle_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/swift_fastlane_function_spec.rb | fastlane/spec/swift_fastlane_function_spec.rb | describe Fastlane do
describe Fastlane::SwiftFunction do
describe 'swift_parameter_documentation' do
it 'generates nil for functions with 0 parameters' do
swift_function = Fastlane::SwiftFunction.new
output = swift_function.swift_parameter_documentation
expect(output).to be_nil
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/junit_spec.rb | fastlane/spec/junit_spec.rb | describe Fastlane do
describe Fastlane::JUnitGenerator do
describe "#generate" do
it "properly generates a valid JUnit XML File" do
time = 25
step = {
name: "My Step Name",
error: nil,
time: time,
started: Time.now - 100
}
error_step =... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/one_off_spec.rb | fastlane/spec/one_off_spec.rb | require 'fastlane/one_off'
describe Fastlane do
describe Fastlane::OneOff do
describe "Valid parameters" do
before do
@runner = "runner"
expect(Fastlane::Runner).to receive(:new).and_return(@runner)
end
it "calls load_actions to load all built-in actions" do
action = 'i... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/command_line_handler_spec.rb | fastlane/spec/command_line_handler_spec.rb | describe Fastlane do
describe Fastlane::CommandLineHandler do
it "properly handles default calls" do
expect(Fastlane::LaneManager).to receive(:cruise_lane).with("ios", "deploy", {})
Fastlane::CommandLineHandler.handle(["ios", "deploy"], {})
end
it "properly handles calls with custom parameter... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/runner_spec.rb | fastlane/spec/runner_spec.rb | describe Fastlane do
describe Fastlane::Runner do
describe "#available_lanes" do
before do
@ff = Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/FastfileGrouped')
end
it "lists all available lanes" do
expect(@ff.runner.available_lanes).to eq(["test", "anotherroot", "m... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/fast_file_spec.rb | fastlane/spec/fast_file_spec.rb | describe Fastlane do
describe Fastlane::FastFile do
describe "#initialize" do
it "raises an error if file does not exist" do
expect do
Fastlane::FastFile.new('./fastlane/spec/fixtures/fastfiles/fastfileNotHere')
end.to raise_exception("Could not find Fastfile at path './fastlane/sp... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/spec_helper_spec.rb | fastlane/spec/spec_helper_spec.rb | describe FastlaneSpec::Env do
# rubocop:disable Naming/VariableName
describe "#with_ARGV" do
it "temporarily overrides the ARGV values under normal usage" do
current_ARGV = ARGV.dup
temp_ARGV = ['temp_inside']
block_ARGV = nil
FastlaneSpec::Env.with_ARGV(temp_ARGV) do
block_ARGV ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/spec_helper.rb | fastlane/spec/spec_helper.rb | Fastlane.load_actions
def before_each_fastlane
Fastlane::Actions.clear_lane_context
ENV.delete('DELIVER_SCREENSHOTS_PATH')
ENV.delete('DELIVER_SKIP_BINARY')
ENV.delete('DELIVER_VERSION')
end
def stub_plugin_exists_on_rubygems(plugin_name, exists)
stub_request(:get, "https://rubygems.org/api/v1/gems/fastlan... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/fastlane_require_spec.rb | fastlane/spec/fastlane_require_spec.rb | require 'fastlane/fastlane_require'
describe Fastlane do
describe Fastlane::FastlaneRequire do
it "formats gem require name for fastlane-plugin" do
gem_name = "fastlane-plugin-test"
gem_require_name = Fastlane::FastlaneRequire.format_gem_require_name(gem_name)
expect(gem_require_name).to eq("fa... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/fastlane/spec/plugins_specs/plugin_generator_ui_spec.rb | fastlane/spec/plugins_specs/plugin_generator_ui_spec.rb | describe Fastlane::PluginGeneratorUI do
let(:ui) { Fastlane::PluginGeneratorUI.new }
describe '#message' do
it 'calls puts' do
expect(ui).to receive(:puts).with('hi')
ui.message('hi')
end
end
describe '#input' do
it 'calls UI#input' do
expect(UI).to receive(:input).with('hi')
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.