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/match/spec/setup_spec.rb | match/spec/setup_spec.rb | describe Match do
describe Match::Setup do
it "creates a new Matchfile, containing the git_url" do
git_url = "https://github.com/fastlane/fastlane/tree/master/certificates"
expect(FastlaneCore::UI.ui_object).to receive(:select).and_return("git")
expect(FastlaneCore::UI.ui_object).to receive(:in... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/profile_includes_spec.rb | match/spec/profile_includes_spec.rb | describe Match do
describe Match::ProfileIncludes do
describe "counts" do
let(:portal_profile) { double("profile") }
let(:profile_device) { double("profile_device") }
let(:profile_certificate) { double("profile_certificate") }
before do
allow(portal_profile).to receive(:devices).a... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/commands_generator_spec.rb | match/spec/commands_generator_spec.rb | require 'match/commands_generator'
describe Match::CommandsGenerator do
let(:available_options) { Match::Options.available_options }
def expect_runner_run_with(expected_options)
fake_runner = "runner"
expect(Match::Runner).to receive(:new).and_return(fake_runner)
expect(fake_runner).to receive(:run) d... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/encryption_spec.rb | match/spec/encryption_spec.rb | describe Match::Encryption do
describe "for_storage_mode" do
it "returns nil if storage mode is google_cloud" do
storage_mode = "google_cloud"
encryption = Match::Encryption.for_storage_mode(storage_mode, {
git_url: "",
s3_bucket: "",
s3_skip_encryption: false,
working... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/migrate_spec.rb | match/spec/migrate_spec.rb | describe Match do
describe Match::Migrate do
before do
stub_const('ENV', { "MATCH_PASSWORD" => '2"QAHg@v(Qp{=*n^' })
end
it "deletes decrypted files at the end", requires_security: true do
git_url = "https://github.com/fastlane/fastlane/tree/master/certificates"
values = {
app_i... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/portal_fetcher_spec.rb | match/spec/portal_fetcher_spec.rb | require 'spaceship/client'
describe Match do
describe Match::Portal::Fetcher do
let(:default_sut) { Match::Portal::Fetcher }
let(:portal_bundle_id) { double("portal_bundle_id") }
let(:portal_device) { double("portal_device") }
let(:portal_certificate) { double("portal_certificate") }
let(:porta... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/nuke_spec.rb | match/spec/nuke_spec.rb | describe Match do
describe Match::Nuke do
before do
allow(Spaceship::ConnectAPI).to receive(:login).and_return(nil)
allow(Spaceship::ConnectAPI).to receive(:client).and_return("client")
allow(Spaceship::ConnectAPI.client).to receive(:in_house?).and_return(false)
allow(Spaceship::ConnectAPI... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/module_spec.rb | match/spec/module_spec.rb | describe Match do
context "#profile_types" do
it "profile types for appstore" do
profiles = Match.profile_types("appstore")
expect(profiles).to eq([
Spaceship::ConnectAPI::Profile::ProfileType::IOS_APP_STORE,
Spaceship::ConnectAPI::Profile... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/portal_cache_spec.rb | match/spec/portal_cache_spec.rb | require 'spaceship/client'
describe Match do
describe Match::Portal::Cache do
let(:default_params) do
{
platform: 'ios',
type: 'development',
additional_cert_types: nil,
readonly: false,
force: false,
include_mac_in_profiles: true,
force_for_new_devi... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/utils_spec.rb | match/spec/utils_spec.rb | describe Match do
describe Match::Utils do
let(:thread) { double }
before(:each) do
value = double
allow(value).to receive(:success?).and_return(true)
allow(thread).to receive(:value).and_return(value)
allow(FastlaneCore::UI).to receive(:interactive?).and_return(false)
allow(S... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/change_password_spec.rb | match/spec/change_password_spec.rb | describe Match do
describe Match::ChangePassword do
before do
stub_const('ENV', { "MATCH_PASSWORD" => '2"QAHg@v(Qp{=*n^' })
end
it "deletes decrypted files at the end", requires_security: true do
git_url = "https://github.com/fastlane/fastlane/tree/master/certificates"
values = {
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/runner_spec.rb | match/spec/runner_spec.rb | require_relative 'spec_helper'
describe Match do
describe Match::Runner do
let(:keychain) { 'login.keychain' }
before do
allow(ENV).to receive(:[]).and_call_original
allow(ENV).to receive(:[]).with('MATCH_KEYCHAIN_NAME').and_return(keychain)
allow(ENV).to receive(:[]).with('MATCH_KEYCHAIN_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/generator_spec.rb | match/spec/generator_spec.rb | describe Match::Generator do
describe 'calling through' do
describe 'cert' do
require 'cert'
let(:fake_runner) { double }
let(:common_config_hash) {
{
development: true,
output_path: 'workspace/certs/development',
force: true,
username: 'username',... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/spec_helper.rb | match/spec/spec_helper.rb | RSpec::Matchers.define(:a_configuration_matching) do |expected|
match do |actual|
actual.values == expected.values
end
end
def before_each_match
ENV["DELIVER_USER"] = "flapple@krausefx.com"
ENV["DELIVER_PASSWORD"] = "so_secret"
end
def create_fake_storage(match_config:, repo_dir:)
fake_storage = "fake_s... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/importer_spec.rb | match/spec/importer_spec.rb | describe Match do
describe Match::Runner do
let(:fake_storage) { "fake_storage" }
let(:keychain) { 'login.keychain' }
let(:mock_cert) { double }
let(:cert_path) { "./match/spec/fixtures/test.cer" }
let(:p12_path) { "./match/spec/fixtures/test.p12" }
let(:ios_profile_path) { "./match/spec/fixtu... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/git_storage_spec_helper.rb | match/spec/storage/git_storage_spec_helper.rb | def branch_checkout_commands(git_branch)
[
# Check if branch exists.
"git --no-pager branch --list origin/#{git_branch} --no-color -r",
# Checkout branch.
"git checkout --orphan #{git_branch}",
# Reset all changes in the working branch copy.
"git reset --hard"
]
end
def expect_command_execu... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/s3_storage_spec.rb | match/spec/storage/s3_storage_spec.rb | describe Match do
describe Match::Storage::S3Storage do
subject { described_class.new(s3_region: nil, s3_access_key: nil, s3_secret_access_key: nil, s3_bucket: 'foobar') }
let(:working_directory) { '/var/folders/px/abcdefghijklmnop/T/d20181026-96528-1av4gge' }
before do
allow(subject).to receive(:w... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/git_storage_spec.rb | match/spec/storage/git_storage_spec.rb | require_relative 'git_storage_spec_helper'
describe Match do
describe Match::Storage::GitStorage do
let(:git_url) { "https://github.com/fastlane/fastlane/tree/master/certificates" }
let(:git_branch) { "test" }
before(:each) do
@path = Dir.mktmpdir # to have access to the actual path
allow(D... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/gitlab_secure_files_spec.rb | match/spec/storage/gitlab_secure_files_spec.rb | describe Match do
describe Match::Storage::GitLabSecureFiles do
subject { described_class.new(private_token: 'abc123', project_id: 'fake-project') }
let(:working_directory) { '/fake/path/to/files' }
before do
allow(subject).to receive(:working_directory).and_return(working_directory)
end
d... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/gitlab/client_spec.rb | match/spec/storage/gitlab/client_spec.rb | describe Match do
describe Match::Storage::GitLab::Client do
subject {
described_class.new(
api_v4_url: 'https://gitlab.example.com/api/v4',
project_id: 'sample/project',
private_token: 'abc123'
)
}
describe '#base_url' do
it 'returns the expected base_url for the ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/storage/gitlab/secure_file_spec.rb | match/spec/storage/gitlab/secure_file_spec.rb |
describe Match do
describe Match::Storage::GitLab::SecureFile do
let(:client) {
Match::Storage::GitLab::Client.new(
api_v4_url: 'https://gitlab.example.com/api/v4',
project_id: 'sample/project',
private_token: 'abc123'
)
}
subject {
described_class.new(
file: ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/encryption/encryption_spec.rb | match/spec/encryption/encryption_spec.rb | describe Match do
describe Match::Encryption::MatchDataEncryption do
let(:v1) { Match::Encryption::EncryptionV1.new }
let(:v2) { Match::Encryption::EncryptionV2.new }
let(:e) { Match::Encryption::MatchDataEncryption.new }
let(:salt) { salt = SecureRandom.random_bytes(8) }
let(:data) { "Hello Worl... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/spec/encryption/openssl_spec.rb | match/spec/encryption/openssl_spec.rb | describe Match do
describe Match::Encryption::OpenSSL do
before do
@directory = Dir.mktmpdir
profile_path = "./match/spec/fixtures/test.mobileprovision"
FileUtils.cp(profile_path, @directory)
@full_path = File.join(@directory, "test.mobileprovision")
@content = File.binread(@full_pat... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match.rb | match/lib/match.rb | require_relative 'match/options'
require_relative 'match/runner'
require_relative 'match/nuke'
require_relative 'match/utils'
require_relative 'match/table_printer'
require_relative 'match/generator'
require_relative 'match/setup'
require_relative 'match/spaceship_ensure'
require_relative 'match/change_password'
requir... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage.rb | match/lib/match/storage.rb | require_relative 'storage/interface'
require_relative 'storage/git_storage'
require_relative 'storage/google_cloud_storage'
require_relative 'storage/s3_storage'
require_relative 'storage/gitlab_secure_files'
module Match
module Storage
class << self
def backends
@backends ||= {
"git" => ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/portal_fetcher.rb | match/lib/match/portal_fetcher.rb | require 'fastlane_core/provisioning_profile'
require 'spaceship/client'
require 'spaceship/connect_api/models/profile'
module Match
class Portal
module Fetcher
def self.profiles(profile_type:, needs_profiles_devices: false, needs_profiles_certificate_content: false, name: nil)
includes = ['bundleId... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/portal_cache.rb | match/lib/match/portal_cache.rb | require 'fastlane_core/provisioning_profile'
require 'spaceship/client'
require_relative 'portal_fetcher'
module Match
class Portal
class Cache
def self.build(params:, bundle_id_identifiers:)
require_relative 'profile_includes'
require 'sigh'
profile_type = Sigh.profile_type_for_dis... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/setup.rb | match/lib/match/setup.rb | require_relative 'module'
require_relative 'storage'
module Match
class Setup
def run(path, is_swift_fastfile: false)
if is_swift_fastfile
template = File.read("#{Match::ROOT}/lib/assets/MatchfileTemplate.swift")
else
template = File.read("#{Match::ROOT}/lib/assets/MatchfileTemplate")... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/migrate.rb | match/lib/match/migrate.rb | require_relative 'spaceship_ensure'
require_relative 'encryption'
require_relative 'storage'
require_relative 'module'
require 'fileutils'
module Match
class Migrate
def migrate(params)
loaded_matchfile = params.load_configuration_file("Matchfile")
ensure_parameters_are_valid(params)
# We ini... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/options.rb | match/lib/match/options.rb | require 'fastlane_core/configuration/config_item'
require 'fastlane/helper/lane_helper'
require 'credentials_manager/appfile_config'
require_relative 'module'
module Match
# rubocop:disable Metrics/ClassLength
class Options
# This is match specific, as users can append storage specific options
def self.app... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/encryption.rb | match/lib/match/encryption.rb | require_relative 'encryption/interface'
require_relative 'encryption/openssl'
require_relative 'encryption/encryption'
module Match
module Encryption
class << self
def backends
@backends ||= {
"git" => lambda { |params|
# OpenSSL is storage agnostic so this maps git_url
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/utils.rb | match/lib/match/utils.rb | require 'fastlane_core/keychain_importer'
require 'openssl'
require_relative 'module'
module Match
class Utils
def self.import(item_path, keychain, password: nil)
keychain_path = FastlaneCore::Helper.keychain_path(keychain)
FastlaneCore::KeychainImporter.import_file(item_path, keychain_path, keychain... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/nuke.rb | match/lib/match/nuke.rb | require 'terminal-table'
require 'spaceship'
require 'fastlane_core/provisioning_profile'
require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'storage'
require_relative 'encryption'
require 'tempfile'
require 'base64'
module Match
# rubocop:disable Metrics/ClassLength
class Nuke
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/spaceship_ensure.rb | match/lib/match/spaceship_ensure.rb | require 'spaceship'
require_relative 'module'
require_relative 'portal_fetcher'
module Match
# Ensures the certificate and profiles are also available on App Store Connect
class SpaceshipEnsure
attr_accessor :team_id
def initialize(user, team_id, team_name, api_token)
UI.message("Verifying that the ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/commands_generator.rb | match/lib/match/commands_generator.rb | require 'commander'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/ui/help_formatter'
require_relative 'nuke'
require_relative 'change_password'
require_relative 'setup'
require_relative 'runner'
require_relative 'options'
require_relative 'migrate'
require_relative 'importer'
require_rel... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/runner.rb | match/lib/match/runner.rb | require 'fastlane_core/cert_checker'
require 'fastlane_core/provisioning_profile'
require 'fastlane_core/print_table'
require 'spaceship/client'
require 'sigh/module'
require_relative 'generator'
require_relative 'module'
require_relative 'table_printer'
require_relative 'spaceship_ensure'
require_relative 'utils'
re... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/profile_includes.rb | match/lib/match/profile_includes.rb | require_relative 'portal_fetcher'
require_relative 'module'
module Match
class ProfileIncludes
PROV_TYPES_WITH_DEVICES = [:adhoc, :development]
PROV_TYPES_WITH_MULTIPLE_CERTIFICATES = [:development]
def self.can_force_include?(params:, notify:)
self.can_force_include_all_devices?(params: params, n... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/generator.rb | match/lib/match/generator.rb | require_relative 'module'
require_relative 'profile_includes'
module Match
# Generate missing resources
class Generator
def self.generate_certificate(params, cert_type, working_directory, specific_cert_type: nil)
require 'cert/runner'
require 'cert/options'
output_path = File.join(working_di... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/table_printer.rb | match/lib/match/table_printer.rb | require 'terminal-table'
require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'utils'
module Match
class TablePrinter
# logs public key's name, user, organisation, country, availability dates
def self.print_certificate_info(cert_info: nil)
params = {
rows: cert_info,... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/module.rb | match/lib/match/module.rb | require 'spaceship'
require 'fastlane_core/helper'
require 'fastlane/boolean'
module Match
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('../../..', __FI... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/change_password.rb | match/lib/match/change_password.rb | require_relative 'module'
require_relative 'storage'
require_relative 'encryption'
module Match
# These functions should only be used while in (UI.) interactive mode
class ChangePassword
def self.update(params: nil)
if params[:storage_mode] != "git"
# Only git supports changing the password
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/importer.rb | match/lib/match/importer.rb | require_relative 'spaceship_ensure'
require_relative 'encryption'
require_relative 'storage'
require_relative 'module'
require_relative 'generator'
require 'fastlane_core/provisioning_profile'
require 'fileutils'
module Match
class Importer
def import_cert(params, cert_path: nil, p12_path: nil, profile_path: nil... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/interface.rb | match/lib/match/storage/interface.rb | require_relative '../module'
module Match
module Storage
class Interface
MATCH_VERSION_FILE_NAME = "match_version.txt"
# The working directory in which we download all the profiles
# and decrypt/encrypt them
attr_accessor :working_directory
# To make debugging easier, we have a cus... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/google_cloud_storage.rb | match/lib/match/storage/google_cloud_storage.rb | require 'fastlane_core/command_executor'
require 'fastlane_core/configuration/configuration'
require 'google/cloud/storage'
require_relative '../options'
require_relative '../module'
require_relative '../spaceship_ensure'
require_relative './interface'
module Match
module Storage
# Store the code signing identi... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/s3_storage.rb | match/lib/match/storage/s3_storage.rb | require 'fastlane_core/command_executor'
require 'fastlane_core/configuration/configuration'
require 'fastlane/helper/s3_client_helper'
require_relative '../options'
require_relative '../module'
require_relative '../spaceship_ensure'
require_relative './interface'
module Match
module Storage
# Store the code si... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/git_storage.rb | match/lib/match/storage/git_storage.rb | require 'fastlane_core/command_executor'
require_relative '../module'
require_relative './interface'
module Match
module Storage
# Store the code signing identities in a git repo
class GitStorage < Interface
# User provided values
attr_accessor :git_url
attr_accessor :shallow_clone
a... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/gitlab_secure_files.rb | match/lib/match/storage/gitlab_secure_files.rb | require 'fastlane_core/command_executor'
require 'fastlane_core/configuration/configuration'
require 'net/http/post/multipart'
require_relative './gitlab/client'
require_relative './gitlab/secure_file'
require_relative '../options'
require_relative '../module'
require_relative '../spaceship_ensure'
require_relative '... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/gitlab/secure_file.rb | match/lib/match/storage/gitlab/secure_file.rb | require 'open-uri'
require_relative '../../module'
module Match
module Storage
class GitLab
class SecureFile
attr_reader :client, :file
def initialize(file:, client:)
@file = OpenStruct.new(file)
@client = client
end
def file_url
"#{@client... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/storage/gitlab/client.rb | match/lib/match/storage/gitlab/client.rb | require 'net/http/post/multipart'
require 'securerandom'
require_relative '../../module'
require_relative './secure_file'
module Match
module Storage
class GitLab
class Client
def initialize(api_v4_url:, project_id:, job_token: nil, private_token: nil)
@job_token = job_token
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/encryption/interface.rb | match/lib/match/encryption/interface.rb | module Match
module Encryption
class Interface
# Call this method to trigger the actual
# encryption
def encrypt_files(password: nil)
not_implemented(__method__)
end
# Call this method to trigger the actual
# decryption
def decrypt_files
not_implemented(_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/encryption/encryption.rb | match/lib/match/encryption/encryption.rb | require 'base64'
require 'openssl'
require 'securerandom'
module Match
module Encryption
# This is to keep backwards compatibility with the old fastlane version which used the local openssl installation.
# The encryption parameters in this implementation reflect the old behavior which was the most common def... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/match/lib/match/encryption/openssl.rb | match/lib/match/encryption/openssl.rb | require 'base64'
require 'openssl'
require 'securerandom'
require 'security'
require 'shellwords'
require_relative '../change_password'
require_relative '../module'
module Match
module Encryption
class OpenSSL < Interface
attr_accessor :keychain_name
attr_accessor :working_directory
attr_acc... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/spec/commands_generator_spec.rb | screengrab/spec/commands_generator_spec.rb | require 'screengrab/commands_generator'
describe Screengrab::CommandsGenerator do
let(:available_options) { Screengrab::Options.available_options }
describe ":run option handling" do
def expect_runner_run_with(android_home)
allow(Screengrab::DetectValues).to receive(:set_additional_default_values)
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/spec/android_environment_spec.rb | screengrab/spec/android_environment_spec.rb | describe Screengrab do
describe Screengrab::AndroidEnvironment do
before(:each) do
allow(FastlaneCore::Helper).to receive(:windows?).and_return(false)
end
describe "with an empty ANDROID_HOME and an empty PATH" do
it "finds no useful values" do
FastlaneSpec::Env.with_env_values('PATH'... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/spec/runner_spec.rb | screengrab/spec/runner_spec.rb | describe Screengrab::Runner do
let(:config) { { tests_package_name: "com.package.app", test_instrumentation_runner: "Runner" } }
let(:ui) { Screengrab::UI }
let(:mock_android_environment) { double(Screengrab.android_environment) }
let(:mock_executor) { class_double('FastlaneCore::CommandExecutor') }
before d... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/spec/spec_helper.rb | screengrab/spec/spec_helper.rb | def raise_fastlane_error
raise_error(FastlaneCore::Interface::FastlaneError)
end
def raise_fastlane_test_failure
raise_error(FastlaneCore::Interface::FastlaneTestFailure)
end
# The following methods is taken from activesupport,
#
# https://github.com/rails/rails/blob/d66e7835bea9505f7003e5038aa19b6ea95ceea1/activ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab.rb | screengrab/lib/screengrab.rb | require_relative 'screengrab/runner'
require_relative 'screengrab/reports_generator'
require_relative 'screengrab/detect_values'
require_relative 'screengrab/dependency_checker'
require_relative 'screengrab/options'
require_relative 'screengrab/android_environment'
require_relative 'screengrab/module'
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/setup.rb | screengrab/lib/screengrab/setup.rb | require_relative 'module'
module Screengrab
class Setup
# This method will take care of creating a screengrabfile and other necessary files
def self.create(path, is_swift_fastfile: false)
if is_swift_fastfile
template_location = "#{Screengrab::ROOT}/lib/assets/ScreengrabfileTemplate.swift"
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/options.rb | screengrab/lib/screengrab/options.rb | require 'fastlane_core/configuration/config_item'
require 'credentials_manager/appfile_config'
require_relative 'module'
module Screengrab
class Options
DEVICE_TYPES = ["phone", "sevenInch", "tenInch", "tv", "wear"].freeze
# Temporarily make non-Mac environments default to skipping the open summary
# st... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/detect_values.rb | screengrab/lib/screengrab/detect_values.rb | module Screengrab
class DetectValues
# This is needed to supply default values which are based on config values determined in the initial
# configuration pass
def self.set_additional_default_values
config = Screengrab.config
# First, try loading the Screengrabfile from the current directory
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/android_environment.rb | screengrab/lib/screengrab/android_environment.rb | require_relative 'module'
require 'fastlane_core/command_executor'
module Screengrab
class AndroidEnvironment
attr_reader :android_home
# android_home - the String path to the install location of the Android SDK
# build_tools_version - the String version of the Android build tools that should be ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/dependency_checker.rb | screengrab/lib/screengrab/dependency_checker.rb | require_relative 'module'
module Screengrab
class DependencyChecker
def self.check(android_env)
return if Helper.test?
check_adb(android_env)
end
def self.check_adb(android_env)
android_home = android_env.android_home
adb_path = android_env.adb_path
warn_if_command_path_n... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/reports_generator.rb | screengrab/lib/screengrab/reports_generator.rb | require_relative 'module'
module Screengrab
class ReportsGenerator
require 'erb'
def generate
UI.message("Generating HTML Report")
screens_path = Screengrab.config[:output_directory]
@data = {}
Dir[File.join(screens_path, "*")].sort.each do |language_folder|
language = Fil... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/commands_generator.rb | screengrab/lib/screengrab/commands_generator.rb | require 'commander'
require 'fastlane/version'
require 'fastlane_core/ui/help_formatter'
require 'fastlane_core/fastlane_folder'
require 'fastlane_core/configuration/configuration'
require_relative 'android_environment'
require_relative 'dependency_checker'
require_relative 'runner'
require_relative 'options'
require_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/runner.rb | screengrab/lib/screengrab/runner.rb | require 'fastlane_core/print_table'
require 'fastlane_core/command_executor'
require 'fastlane/helper/adb_helper'
require_relative 'reports_generator'
require_relative 'module'
module Screengrab
class Runner
attr_accessor :number_of_retries
def initialize(executor = FastlaneCore::CommandExecutor,
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/screengrab/lib/screengrab/module.rb | screengrab/lib/screengrab/module.rb | require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'
module Screengrab
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
attr_accessor :android_environment
def config=(value)
@config = va... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rule_processor_spec.rb | precheck/spec/rule_processor_spec.rb | require 'precheck'
require 'spaceship'
require 'webmock'
describe Precheck do
describe Precheck::RuleProcessor do
let(:fake_happy_app) { "fake_app_object" }
let(:fake_happy_app_version) { "fake_app_version_object" }
let(:fake_happy_app_info) { "fake_app_info_object" }
let(:fake_in_app_purchase) { "fa... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/rule_spec.rb | precheck/spec/rules/rule_spec.rb | require 'precheck'
module Precheck
class TestItemToCheck < ItemToCheck
attr_accessor :data
def initialize(data: nil, item_name: :a, friendly_name: "none", is_optional: false)
@data = data
super(item_name, friendly_name, is_optional)
end
def item_data
return data
end
end
c... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/other_platforms_rule_spec.rb | precheck/spec/rules/other_platforms_rule_spec.rb | require 'precheck'
module Precheck
describe Precheck do
describe Precheck::OtherPlatformsRule do
let(:rule) { OtherPlatformsRule.new }
let(:allowed_item) { TextItemToCheck.new("We have integration with the Files app so you can open documents stored in your Google Drive.", :description, "description")... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/curse_words_rule_spec.rb | precheck/spec/rules/curse_words_rule_spec.rb | require 'precheck'
module Precheck
describe Precheck do
describe Precheck::CurseWordsRule do
let(:rule) { CurseWordsRule.new }
let(:happy_item) { TextItemToCheck.new("tacos are really delicious, seriously, I can't even", :description, "description") }
let(:curse_item) { TextItemToCheck.new("ple... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/unreachable_urls_rule_spec.rb | precheck/spec/rules/unreachable_urls_rule_spec.rb | require 'precheck'
module Precheck
describe Precheck do
describe Precheck::UnreachableURLRule do
let(:rule) { UnreachableURLRule.new }
def setup_url_rule_mock(url: "http://fastlane.tools", return_status: 200)
request = "fake request"
head_object = "fake head object"
allow(he... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/abstract_text_match_rule_spec.rb | precheck/spec/rules/abstract_text_match_rule_spec.rb | require 'precheck'
module Precheck
# all the stuff we need that doesn't matter for testing
class TestingRule < AbstractTextMatchRule
def self.key
return :test_rule_key
end
def self.env_name
return "JUST_A_TEST_RULE"
end
def self.description
return "test descriptions"
end... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/spec/rules/copyright_date_rule_spec.rb | precheck/spec/rules/copyright_date_rule_spec.rb | require 'precheck'
module Precheck
describe Precheck do
describe Precheck::CopyrightDateRule do
let(:rule) { CopyrightDateRule.new }
let(:happy_item) { TextItemToCheck.new("Copyright taquitos, #{DateTime.now.year}", :copyright, "copyright") }
let(:old_copyright_item) { TextItemToCheck.new("Copy... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck.rb | precheck/lib/precheck.rb | require_relative 'precheck/runner'
require_relative 'precheck/options'
require 'spaceship'
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rule_processor.rb | precheck/lib/precheck/rule_processor.rb | require 'spaceship/tunes/language_item'
require 'spaceship/tunes/iap_list'
require 'fastlane/markdown_table_formatter'
require_relative 'module'
require_relative 'item_to_check'
require_relative 'rule'
module Precheck
# encapsulated the results of the rule processing, needed to return not just an array of the resul... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/options.rb | precheck/lib/precheck/options.rb | require 'fastlane_core/configuration/config_item'
require 'credentials_manager/appfile_config'
require_relative 'rules/all'
module Precheck
class Options
def self.rules
[
NegativeAppleSentimentRule,
PlaceholderWordsRule,
OtherPlatformsRule,
FutureFunctionalityRule,
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/commands_generator.rb | precheck/lib/precheck/commands_generator.rb | require "commander"
require "fastlane_core/globals"
require "fastlane_core/configuration/commander_generator"
require "fastlane_core/configuration/configuration"
require "fastlane_core/helper"
require "fastlane/version"
require 'fastlane_core/ui/help_formatter'
require_relative 'module'
require_relative 'options'
requ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/runner.rb | precheck/lib/precheck/runner.rb | require 'terminal-table'
require 'fastlane_core/print_table'
require 'spaceship/tunes/tunes'
require 'spaceship/tunes/application'
require_relative 'rule_processor'
require_relative 'options'
module Precheck
class Runner
attr_accessor :spaceship
# Uses the spaceship to download app metadata and then run al... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rule.rb | precheck/lib/precheck/rule.rb | require 'credentials_manager/appfile_config'
require 'fastlane_core/configuration/config_item'
require_relative 'module'
require_relative 'item_to_check'
require_relative 'rule_check_result'
module Precheck
VALIDATION_STATES = {
passed: "passed",
failed: "failed"
}
# rules can cause warnings, errors, o... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/module.rb | precheck/lib/precheck/module.rb | require 'fastlane_core/helper'
require 'fastlane_core/ui/ui'
require 'fastlane/boolean'
module Precheck
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
def precheckfile_name
"Precheckfile"
end
end
Helper = FastlaneCore... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rule_check_result.rb | precheck/lib/precheck/rule_check_result.rb | module Precheck
# after each item is checked for rule conformance to a single rule, a result is generated
# a result can have a status of success or fail for a given rule/item
class RuleCheckResult
attr_accessor :item
attr_accessor :rule_return # RuleReturn
attr_accessor :rule
def initialize(item... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/item_to_check.rb | precheck/lib/precheck/item_to_check.rb | module Precheck
# each attribute on a app version is a single item.
# for example: .name, .keywords, .description, will all have a single item to represent them
# which includes their name and a more user-friendly name we can use to print out information
class ItemToCheck
attr_accessor :item_name
attr_a... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb | precheck/lib/precheck/rules/negative_apple_sentiment_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class NegativeAppleSentimentRule < AbstractTextMatchRule
def self.key
:negative_apple_sentiment
end
def self.env_name
"RULE_NEGATIVE_APPLE_SENTIMENT"
end
def self.friendly_name
"No negative sentiment"
end
d... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/unreachable_urls_rule.rb | precheck/lib/precheck/rules/unreachable_urls_rule.rb | require 'addressable'
require 'faraday_middleware'
require_relative '../rule'
module Precheck
class UnreachableURLRule < URLRule
def self.key
:unreachable_urls
end
def self.env_name
"RULE_UNREACHABLE_URLS"
end
def self.friendly_name
"No broken urls"
end
def self.desc... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/abstract_text_match_rule.rb | precheck/lib/precheck/rules/abstract_text_match_rule.rb | require_relative '../rule'
module Precheck
# abstract class that defines a default way to check for the presence of a list of words within a block of text
class AbstractTextMatchRule < TextRule
WORD_SEARCH_TYPES = {
fail_on_inclusion: "fail_on_inclusion",
fail_on_exclusion: "fail_on_exclusion"
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/free_stuff_iap_rule.rb | precheck/lib/precheck/rules/free_stuff_iap_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class FreeStuffIAPRule < AbstractTextMatchRule
def self.key
:free_stuff_in_iap
end
def self.env_name
"RULE_FREE_STUFF_IN_IAP"
end
def self.friendly_name
"No words indicating your IAP is free"
end
def self.des... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/copyright_date_rule.rb | precheck/lib/precheck/rules/copyright_date_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class CopyrightDateRule < AbstractTextMatchRule
def self.key
:copyright_date
end
def self.env_name
"RULE_COPYRIGHT_DATE"
end
def self.friendly_name
"Incorrect, or missing copyright date"
end
def self.descript... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/placeholder_words_rule.rb | precheck/lib/precheck/rules/placeholder_words_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class PlaceholderWordsRule < AbstractTextMatchRule
def self.key
:placeholder_text
end
def self.env_name
"RULE_PLACEHOLDER_TEXT_THINGS"
end
def self.friendly_name
"No placeholder text"
end
def self.description... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/curse_words_rule.rb | precheck/lib/precheck/rules/curse_words_rule.rb | require 'digest'
require_relative '../rule'
module Precheck
class CurseWordsRule < TextRule
def self.key
:curse_words
end
def self.env_name
"RULE_CURSE_WORDS"
end
def self.friendly_name
"No curse words"
end
def self.description
"including words that might be co... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/test_words_rule.rb | precheck/lib/precheck/rules/test_words_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class TestWordsRule < AbstractTextMatchRule
def self.key
:test_words
end
def self.env_name
"RULE_TEST_WORDS"
end
def self.friendly_name
"No words indicating test content"
end
def self.description
"using... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/custom_text_rule.rb | precheck/lib/precheck/rules/custom_text_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class CustomTextRule < AbstractTextMatchRule
attr_accessor :data
def self.key
:custom_text
end
def self.env_name
"RULE_CUSTOM_TEXT"
end
def self.friendly_name
"No user-specified words are included"
end
d... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/other_platforms_rule.rb | precheck/lib/precheck/rules/other_platforms_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class OtherPlatformsRule < AbstractTextMatchRule
def self.key
:other_platforms
end
def self.env_name
"RULE_OTHER_PLATFORMS"
end
def self.friendly_name
"No mentioning competitors"
end
def self.description
... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/future_functionality_rule.rb | precheck/lib/precheck/rules/future_functionality_rule.rb | require_relative 'abstract_text_match_rule'
module Precheck
class FutureFunctionalityRule < AbstractTextMatchRule
def self.key
:future_functionality
end
def self.env_name
"RULE_FUTURE_FUNCTIONALITY"
end
def self.friendly_name
"No future functionality promises"
end
def... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/precheck/lib/precheck/rules/all.rb | precheck/lib/precheck/rules/all.rb | Dir[File.dirname(__FILE__) + '/*.rb'].each { |file| require_relative file }
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/spec/commands_generator_spec.rb | cert/spec/commands_generator_spec.rb | require 'cert/commands_generator'
describe Cert::CommandsGenerator do
let(:runner) do
runner = Cert::Runner.new
expect(Cert::Runner).to receive(:new).and_return(runner)
runner
end
describe ":create option handling" do
it "can use the username short flag from tool options" do
# leaving out ... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/spec/runner_spec.rb | cert/spec/runner_spec.rb | require 'tmpdir'
describe Cert do
describe Cert::Runner do
before do
ENV["DELIVER_USER"] = "test@fastlane.tools"
ENV["DELIVER_PASSWORD"] = "123"
end
xcode_versions = {
"10" => Spaceship.certificate.production,
"11" => Spaceship.certificate.apple_distribution
}
# Iterates... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/spec/spec_helper.rb | cert/spec/spec_helper.rb | # Create a stub certificate object that reports its expiration date
# as the provided Time, or 1 day from now by default
def stub_certificate(name = "certificate", valid = true)
name.tap do |cert|
allow(cert).to receive(:id).and_return("cert_id")
allow(cert).to receive(:valid?).and_return(valid)
allow(cer... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/lib/cert.rb | cert/lib/cert.rb | require_relative 'cert/runner'
require_relative 'cert/options'
require_relative 'cert/module'
| ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/lib/cert/options.rb | cert/lib/cert/options.rb | require 'credentials_manager/appfile_config'
require 'fastlane_core/configuration/config_item'
require_relative 'module'
module Cert
class Options
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
user ||= CredentialsManager::AppfileConfig.try_... | ruby | MIT | d1f6eb6228644936997aae1956d8036ea62cd5b4 | 2026-01-04T15:37:27.371479Z | false |
fastlane/fastlane | https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/lib/cert/commands_generator.rb | cert/lib/cert/commands_generator.rb | require 'commander'
require 'fastlane/version'
require 'fastlane_core/ui/help_formatter'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/globals'
require_relative 'options'
require_relative 'runner'
HighLine.track_eof = false
module Cert
class CommandsGenerator
include Commander::Met... | 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.