source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/portal_fetcher_spec.rb | Ruby | mit | 41,450 | master | 4,210 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/migrate_spec.rb | Ruby | mit | 41,450 | master | 2,387 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 6,737 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/portal_cache_spec.rb | Ruby | mit | 41,450 | master | 4,913 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/setup_spec.rb | Ruby | mit | 41,450 | master | 647 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/utils_spec.rb | Ruby | mit | 41,450 | master | 9,573 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/change_password_spec.rb | Ruby | mit | 41,450 | master | 1,585 | 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 = {
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/encryption_spec.rb | Ruby | mit | 41,450 | master | 2,364 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/nuke_spec.rb | Ruby | mit | 41,450 | master | 2,013 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/importer_spec.rb | Ruby | mit | 41,450 | master | 5,907 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/profile_includes_spec.rb | Ruby | mit | 41,450 | master | 6,875 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/generator_spec.rb | Ruby | mit | 41,450 | master | 7,958 | 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',... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/module_spec.rb | Ruby | mit | 41,450 | master | 2,895 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 4,138 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 29,851 | 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_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/encryption/encryption_spec.rb | Ruby | mit | 41,450 | master | 2,603 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/spec/encryption/openssl_spec.rb | Ruby | mit | 41,450 | master | 3,667 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match.rb | Ruby | mit | 41,450 | master | 602 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/storage.rb | Ruby | mit | 41,450 | master | 4,232 | 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" => ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/spaceship_ensure.rb | Ruby | mit | 41,450 | master | 4,994 | 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 ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/profile_includes.rb | Ruby | mit | 41,450 | master | 4,564 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/portal_fetcher.rb | Ruby | mit | 41,450 | master | 2,236 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/portal_cache.rb | Ruby | mit | 41,450 | master | 3,337 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/module.rb | Ruby | mit | 41,450 | master | 3,550 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/encryption.rb | Ruby | mit | 41,450 | master | 1,912 | 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
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/nuke.rb | Ruby | mit | 41,450 | master | 15,050 | 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
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/generator.rb | Ruby | mit | 41,450 | master | 5,061 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/utils.rb | Ruby | mit | 41,450 | master | 3,743 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/migrate.rb | Ruby | mit | 41,450 | master | 4,794 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/commands_generator.rb | Ruby | mit | 41,450 | master | 7,126 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/table_printer.rb | Ruby | mit | 41,450 | master | 1,826 | 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,... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/importer.rb | Ruby | mit | 41,450 | master | 6,552 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/options.rb | Ruby | mit | 41,450 | master | 26,890 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/setup.rb | Ruby | mit | 41,450 | master | 1,624 | 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")... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/change_password.rb | Ruby | mit | 41,450 | master | 1,733 | 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
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/runner.rb | Ruby | mit | 41,450 | master | 18,341 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/encryption/openssl.rb | Ruby | mit | 41,450 | master | 5,155 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/encryption/interface.rb | Ruby | mit | 41,450 | master | 359 | 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(_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | match/lib/match/encryption/encryption.rb | Ruby | mit | 41,450 | master | 5,697 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/manager_spec.rb | Ruby | mit | 41,450 | master | 4,410 | describe Sigh do
describe Sigh::Manager do
before do
ENV["DELIVER_USER"] = "test@fastlane.tools"
ENV["DELIVER_PASSWORD"] = "123"
end
let(:mock_base_client) { "fake api base client" }
before(:each) do
allow(mock_base_client).to receive(:login)
allow(mock_base_client).to receiv... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 3,965 | require 'sigh/commands_generator'
require 'sigh/repair'
describe Sigh::CommandsGenerator do
describe "resign option handling" do
let(:resign) do
resign = Sigh::Resign.new
expect(Sigh::Resign).to receive(:new).and_return(resign)
resign
end
def expect_resign_run(options)
expect(res... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/resign_sh_spec.rb | Ruby | mit | 41,450 | master | 13,076 | require "open3"
require "tempfile"
describe "resign.sh" do
RESIGN_SH_PATH = File.expand_path("../lib/assets/resign.sh", File.dirname(__FILE__))
before(:all) do
skip("resign.sh not found") unless File.exist?(RESIGN_SH_PATH)
@resign_sh_content = File.read(RESIGN_SH_PATH)
end
before(:each) do
skip("... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/resign_spec.rb | Ruby | mit | 41,450 | master | 3,075 | describe Sigh do
describe Sigh::Resign do
IDENTITY_1_NAME = "iPhone Developer: ed.belarus@gmail.com (ABCDEFGHIJ)"
IDENTITY_1_SHA1 = "T123XXXXXXXXXXXXXYYYYYYYYYYYYYYYYYYYYYYY"
IDENTITY_2_NAME = "iPhone Distribution: Some Company LLC (F12345678F)"
IDENTITY_2_SHA1 = "TXXXZZZ12345678909876543210123456789... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 6,190 | def sigh_stub_spaceship_connect(inhouse: false, create_profile_app_identifier: nil, all_app_identifiers: [], app_identifier_and_profile_names: {}, valid_profiles: true, expect_delete: false)
allow(Spaceship::ConnectAPI).to receive(:login).and_return(nil)
allow(Spaceship::ConnectAPI).to receive(:client).and_return("... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 18,159 | describe Sigh do
describe Sigh::Runner do
before do
ENV["DELIVER_USER"] = "test@fastlane.tools"
ENV["DELIVER_PASSWORD"] = "123"
end
let(:fake_runner) { Sigh::Runner.new }
let(:mock_base_client) { "fake api base client" }
before(:each) do
allow(mock_base_client).to receive(:logi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/manager.rb | Ruby | mit | 41,450 | master | 1,317 | require 'fastlane_core/provisioning_profile'
require_relative 'runner'
module Sigh
class Manager
def self.start(keychain_path: nil)
path = Sigh::Runner.new.run
return nil unless path
if Sigh.config[:filename]
file_name = Sigh.config[:filename]
else
file_name = File.base... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/resign.rb | Ruby | mit | 41,450 | master | 9,000 | require 'shellwords'
require 'fastlane_core/globals'
require_relative 'module'
module Sigh
# Resigns an existing ipa file
class Resign
def run(options, args)
# get the command line inputs and parse those into the vars we need...
ipa, signing_identity, provisioning_profiles, entitlements, version, ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/download_all.rb | Ruby | mit | 41,450 | master | 4,859 | require 'spaceship'
require 'base64'
require_relative 'manager'
require_relative 'module'
module Sigh
class DownloadAll
# Download all valid provisioning profiles
def download_all(download_xcode_profiles: false)
if (api_token = Spaceship::ConnectAPI::Token.from(hash: Sigh.config[:api_key], filepath: ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/local_manage.rb | Ruby | mit | 41,450 | master | 4,952 | require 'plist'
require 'fastlane_core/globals'
require 'fastlane_core/provisioning_profile'
require_relative 'module'
module Sigh
class LocalManage
LIST = "list"
CLEANUP = "cleanup"
def self.start(options, args)
command, clean_expired, clean_pattern, force = get_inputs(options, args)
if co... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/module.rb | Ruby | mit | 41,450 | master | 7,663 | require 'fastlane_core/ui/ui'
require 'fastlane_core/helper'
module Sigh
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
def profile_pretty_type(profile_type)
require 'spaceship'
case profile_type
when Spaceship::C... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/commands_generator.rb | Ruby | mit | 41,450 | master | 6,836 | require 'commander'
require 'fastlane/version'
require 'fastlane_core/ui/help_formatter'
require_relative 'options'
require_relative 'resign'
require_relative 'local_manage'
require_relative 'manager'
HighLine.track_eof = false
module Sigh
class CommandsGenerator
include Commander::Methods
def self.start
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/repair.rb | Ruby | mit | 41,450 | master | 1,081 | require 'spaceship'
require_relative 'module'
module Sigh
class Repair
def repair_all
UI.message("Starting login with user '#{Sigh.config[:username]}'")
Spaceship.login(Sigh.config[:username], nil)
Spaceship.select_team
UI.message("Successfully logged in")
# Select all 'Invalid' o... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/runner.rb | Ruby | mit | 41,450 | master | 14,765 | require 'spaceship'
require 'base64'
require 'fastlane_core/print_table'
require 'fastlane_core/cert_checker'
require_relative 'module'
module Sigh
class Runner
attr_accessor :spaceship
# Uses the spaceship to create or download a provisioning profile
# returns the path the newly created provisioning ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | sigh/lib/sigh/options.rb | Ruby | mit | 41,450 | master | 17,892 | require 'fastlane_core/configuration/configuration'
require 'credentials_manager/appfile_config'
require_relative 'module'
require 'spaceship/connect_api/models/device'
require 'spaceship/connect_api/models/certificate'
require 'spaceship/connect_api/models/bundle_id'
require 'spaceship/connect_api/models/profile'
mod... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot.rb | Ruby | mit | 41,450 | master | 206 | require "pilot/options"
require "pilot/manager"
require "pilot/build_manager"
require "pilot/tester_manager"
require "pilot/tester_importer"
require "pilot/tester_exporter"
require_relative 'pilot/module' |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/build_manager.rb | Ruby | mit | 41,450 | master | 26,765 | require 'tmpdir'
require 'terminal-table'
require 'emoji_regex'
require 'fastlane_core/itunes_transporter'
require 'fastlane_core/build_watcher'
require 'fastlane_core/ipa_upload_package_builder'
require_relative 'manager'
module Pilot
# rubocop:disable Metrics/ClassLength
class BuildManager < Manager
def upl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/tester_importer.rb | Ruby | mit | 41,450 | master | 1,393 | require_relative 'module'
require_relative 'manager'
require_relative 'tester_manager'
module Pilot
class TesterImporter < Manager
def import_testers(options)
UI.user_error!("Import file path is required") unless options[:testers_file_path]
start(options)
require 'csv'
file = config[:t... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/module.rb | Ruby | mit | 41,450 | master | 406 | require 'fastlane_core/helper'
require 'fastlane/boolean'
module Pilot
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
UI = FastlaneCore::UI
Boolean = Fastlane::Boolean
ROOT = Pathname.new(File.expand_path('../../..', __FILE__))
DESCRIPTION... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/commands_generator.rb | Ruby | mit | 41,450 | master | 5,703 | require "commander"
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/ui/help_formatter'
require_relative 'module'
require_relative 'tester_importer'
require_relative 'tester_exporter'
require_relative 'tester_manager'
require_relative 'build_manager'
require_relative 'options'
HighLine.track... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/options.rb | Ruby | mit | 41,450 | master | 25,364 | require 'fastlane_core/configuration/config_item'
require 'credentials_manager/appfile_config'
require_relative 'module'
module Pilot
class Options
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id)
user ||= CredentialsManager::AppfileConfig.try_f... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/tester_exporter.rb | Ruby | mit | 41,450 | master | 1,913 | require 'spaceship/tunes/application'
require_relative 'module'
require_relative 'manager'
module Pilot
class TesterExporter < Manager
def export_testers(options)
UI.user_error!("Export file path is required") unless options[:testers_file_path]
start(options)
require 'csv'
app = find_ap... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/manager.rb | Ruby | mit | 41,450 | master | 3,632 | require 'credentials_manager/appfile_config'
require 'fastlane_core/print_table'
require 'spaceship'
require 'spaceship/tunes/tunes'
require 'spaceship/tunes/members'
require 'spaceship/test_flight'
require 'fastlane_core/ipa_file_analyser'
require_relative 'module'
module Pilot
class Manager
def start(options,... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/lib/pilot/tester_manager.rb | Ruby | mit | 41,450 | master | 5,561 | require 'terminal-table'
require_relative 'manager'
module Pilot
class TesterManager < Manager
def add_tester(options)
start(options)
app = find_app(apple_id: config[:apple_id], app_identifier: config[:app_identifier])
UI.user_error!("You must provide either a Apple ID for the app (with the `:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 6,593 | require 'pilot/commands_generator'
describe Pilot::CommandsGenerator do
let(:available_options) { Pilot::Options.available_options }
def expect_build_manager_call_with(method_sym, expected_options)
fake_build_manager = "build_manager"
expect(Pilot::BuildManager).to receive(:new).and_return(fake_build_mana... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/options_spec.rb | Ruby | mit | 41,450 | master | 4,619 | describe Pilot::Options do
before(:each) do
ENV.delete('FASTLANE_TEAM_ID')
end
after(:each) do
ENV.delete('FASTLANE_TEAM_ID')
end
it "accepts a developer portal team ID" do
FastlaneCore::Configuration.create(Pilot::Options.available_options, { dev_portal_team_id: 'ABCD1234' })
expect(ENV['F... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/tester_importer_spec.rb | Ruby | mit | 41,450 | master | 4,588 | require 'csv'
describe Pilot::TesterImporter do
describe ".import_testers" do
let(:fake_tester_importer) { Pilot::TesterImporter.new }
context "when testers CSV file path is not given" do
let(:fake_tester_manager) { double("tester manager") }
let(:empty_input_options) { {} }
before(:each)... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/build_manager_spec.rb | Ruby | mit | 41,450 | master | 52,347 | describe "Build Manager" do
describe ".truncate_changelog" do
it "Truncates Changelog if it exceeds character size" do
changelog = File.read("./pilot/spec/fixtures/build_manager/changelog_long")
changelog = Pilot::BuildManager.truncate_changelog(changelog)
expect(changelog).to eq(File.read("./pi... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/manager_spec.rb | Ruby | mit | 41,450 | master | 21,292 | describe Pilot do
describe Pilot::Manager do
let(:fake_manager) { Pilot::Manager.new }
let(:fake_api_key_json_path) do
"./spaceship/spec/connect_api/fixtures/asc_key.json"
end
let(:fake_api_key) do
JSON.parse(File.read(fake_api_key_json_path), { symbolize_names: true })
end
let(:... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/test_exporter_spec.rb | Ruby | mit | 41,450 | master | 4,948 | require 'csv'
describe Pilot::TesterExporter do
describe ".export_testers" do
let(:fake_tester_exporter) { Pilot::TesterExporter.new }
let(:fake_tester_manager) { double("tester manager") }
let(:fake_testers_file_path) { Tempfile.new("fake testers_file_path").path }
let(:fake_apple_id) { "fake apple_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pilot/spec/tester_manager_spec.rb | Ruby | mit | 41,450 | master | 5,013 | require 'colored'
describe Pilot::TesterManager do
describe "Manages adding/removing/displaying testers" do
let(:tester_manager) { Pilot::TesterManager.new }
let(:custom_tester_group) do
Spaceship::ConnectAPI::BetaGroup.new("1", {
name: "Test Group"
})
end
let(:app_context_teste... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/lib/pem/commands_generator.rb | Ruby | mit | 41,450 | master | 1,509 | require 'commander'
require 'fastlane/version'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/ui/help_formatter'
require_relative 'options'
require_relative 'manager'
HighLine.track_eof = false
module PEM
class CommandsGenerator
include Commander::Methods
def self.start
s... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/lib/pem/module.rb | Ruby | mit | 41,450 | master | 581 | require 'fastlane_core/helper'
module PEM
# Use this to just setup the configuration attribute and set it later somewhere else
class << self
attr_accessor :config
end
tmp_dir = Dir.tmpdir
TMP_FOLDER = "#{tmp_dir}/fastlane/PEM/"
FileUtils.mkdir_p(TMP_FOLDER)
ENV['FASTLANE_TEAM_ID'] ||= ENV["PEM_TEAM... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/lib/pem/options.rb | Ruby | mit | 41,450 | master | 7,188 | require 'fastlane_core/configuration/config_item'
require 'credentials_manager/appfile_config'
require 'fastlane/helper/lane_helper'
require_relative 'module'
module PEM
class Options
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
user ||= C... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/lib/pem/manager.rb | Ruby | mit | 41,450 | master | 5,133 | require 'pathname'
require 'spaceship'
require 'fastlane_core/print_table'
require_relative 'module'
module PEM
# Creates the push profile and stores it in the correct location
class Manager
class << self
def start
FastlaneCore::PrintTable.print_values(config: PEM.config, hide_keys: [:new_profil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 996 | def pem_stub_spaceship
expect(Spaceship).to receive(:login).and_return(nil)
allow(Spaceship).to receive(:client).and_return("client")
expect(Spaceship.client).to receive(:select_team).and_return(nil)
expect(Spaceship.certificate).to receive(:all).and_return([])
csr = "csr"
pkey = "pkey"
expect(Spaceship... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/spec/manager_spec.rb | Ruby | mit | 41,450 | master | 2,114 | describe PEM do
describe PEM::Manager do
before do
ENV["DELIVER_USER"] = "test@fastlane.tools"
ENV["DELIVER_PASSWORD"] = "123"
pem_stub_spaceship
end
before :all do
FileUtils.mkdir("tmp")
end
it "Successful run" do
pem_stub_spaceship_cert(platform: 'ios')
op... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | pem/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 1,060 | require 'pem/commands_generator'
describe PEM::CommandsGenerator do
let(:available_options) { PEM::Options.available_options }
describe ":renew option handling" do
it "can use the save_private_key short flag from tool options" do
# leaving out the command name defaults to 'renew'
stub_commander_ru... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 1,268 | 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)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 689 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/spec/android_environment_spec.rb | Ruby | mit | 41,450 | master | 4,917 | 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'... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 10,410 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab.rb | Ruby | mit | 41,450 | master | 303 | 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' |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/commands_generator.rb | Ruby | mit | 41,450 | master | 2,524 | 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_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/reports_generator.rb | Ruby | mit | 41,450 | master | 1,368 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/detect_values.rb | Ruby | mit | 41,450 | master | 532 | 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
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/options.rb | Ruby | mit | 41,450 | master | 10,544 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/setup.rb | Ruby | mit | 41,450 | master | 910 | 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"
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/runner.rb | Ruby | mit | 41,450 | master | 22,033 | 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,
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/android_environment.rb | Ruby | mit | 41,450 | master | 1,304 | 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 ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/module.rb | Ruby | mit | 41,450 | master | 779 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | screengrab/lib/screengrab/dependency_checker.rb | Ruby | mit | 41,450 | master | 1,423 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit.rb | Ruby | mit | 41,450 | master | 389 | require 'frameit/frame_downloader'
require 'frameit/device_types'
require 'frameit/runner'
require 'frameit/screenshot'
require 'frameit/config_parser'
require 'frameit/offsets'
require 'frameit/editor'
require 'frameit/template_finder'
require 'frameit/strings_parser'
require 'frameit/mac_editor'
require 'frameit/depe... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/dependency_checker.rb | Ruby | mit | 41,450 | master | 732 | require_relative 'module'
module Frameit
class DependencyChecker
def self.check_dependencies
return if Helper.test?
self.check_image_magick
end
def self.check_image_magick
unless `which convert`.include?("convert")
UI.error('####################################################... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/template_finder.rb | Ruby | mit | 41,450 | master | 2,053 | require 'deliver/app_screenshot'
require_relative 'module'
require_relative 'device_types'
require_relative 'frame_downloader'
module Frameit
# Responsible for finding the correct device
class TemplateFinder
# This will detect the screen size and choose the correct template
def self.get_template(screenshot... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/offsets.rb | Ruby | mit | 41,450 | master | 1,088 | require_relative 'module'
require_relative 'frame_downloader'
module Frameit
class Offsets
# Returns the image offset needed for a certain device type
def self.image_offset(screenshot)
require 'json'
unless @offsets_cache
offsets_json_path = File.join(FrameDownloader.new.templates_path, ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/runner.rb | Ruby | mit | 41,450 | master | 3,704 | require 'fastimage'
require_relative 'frame_downloader'
require_relative 'module'
require_relative 'screenshot'
require_relative 'device_types'
module Frameit
class Runner
def initialize
downloader = FrameDownloader.new
unless downloader.frames_exist?
downloader.download_frames
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/editor.rb | Ruby | mit | 41,450 | master | 22,351 | require 'mini_magick'
require_relative 'template_finder'
require_relative 'trim_box'
require_relative 'module'
require_relative 'offsets'
require_relative 'config_parser'
require_relative 'strings_parser'
require_relative 'device_types'
module Frameit
# Currently the class is 2 lines too long. Reevaluate refactorin... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/module.rb | Ruby | mit | 41,450 | master | 1,180 | require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'config_parser'
module Frameit
class << self
attr_accessor :config
end
Boolean = Fastlane::Boolean
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
UI = Fastlane... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/device_types.rb | Ruby | mit | 41,450 | master | 15,329 | require_relative 'module'
require_relative './device'
require 'spaceship/connect_api/models/app_screenshot_set'
module Frameit
DisplayType = Spaceship::ConnectAPI::AppScreenshotSet::DisplayType
DEVICE_SCREEN_IDS = {
DisplayType::APP_IPHONE_35 => "iOS-3.5-in",
DisplayType::APP_IPHONE_40 => "iOS-4-in",
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | frameit/lib/frameit/options.rb | Ruby | mit | 41,450 | master | 7,360 | require 'fastlane_core/configuration/config_item'
require 'fastlane/actions/actions_helper'
require 'fastlane/helper/lane_helper'
require_relative 'module'
require_relative 'config_parser'
require_relative 'device_types'
module Frameit
class Options
def self.available_options
@options ||= [
Fastl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.