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/cert/lib/cert/runner.rb
cert/lib/cert/runner.rb
require 'fileutils' require 'fastlane_core/globals' require 'fastlane_core/cert_checker' require 'fastlane_core/keychain_importer' require 'fastlane_core/print_table' require 'spaceship' require_relative 'module' module Cert class Runner def launch run if Helper.mac? UI.message("Verifying t...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/cert/lib/cert/module.rb
cert/lib/cert/module.rb
require 'fastlane_core/helper' require 'fastlane/boolean' module Cert # Use this to just setup the configuration attribute and set it later somewhere else class << self attr_accessor :config end Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in Fastlane...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/spec/commands_generator_spec.rb
sigh/spec/commands_generator_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/spec/resign_spec.rb
sigh/spec/resign_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/spec/manager_spec.rb
sigh/spec/manager_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/spec/runner_spec.rb
sigh/spec/runner_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/spec/spec_helper.rb
sigh/spec/spec_helper.rb
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("...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh.rb
sigh/lib/sigh.rb
require_relative 'sigh/resign' require_relative 'sigh/manager' require_relative 'sigh/options' require_relative 'sigh/local_manage'
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/options.rb
sigh/lib/sigh/options.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/commands_generator.rb
sigh/lib/sigh/commands_generator.rb
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 ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/runner.rb
sigh/lib/sigh/runner.rb
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 ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/resign.rb
sigh/lib/sigh/resign.rb
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, ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/repair.rb
sigh/lib/sigh/repair.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/manager.rb
sigh/lib/sigh/manager.rb
require 'fastlane_core/provisioning_profile' require_relative 'runner' module Sigh class Manager def self.start path = Sigh::Runner.new.run return nil unless path if Sigh.config[:filename] file_name = Sigh.config[:filename] else file_name = File.basename(path) end...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/module.rb
sigh/lib/sigh/module.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/local_manage.rb
sigh/lib/sigh/local_manage.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/sigh/lib/sigh/download_all.rb
sigh/lib/sigh/download_all.rb
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: ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/spec/junit_generator_spec.rb
trainer/spec/junit_generator_spec.rb
describe Trainer do describe Trainer::JunitGenerator do it "works for a valid .plist file" do tp = Trainer::TestParser.new("./trainer/spec/fixtures/Valid1.plist") junit = File.read("./trainer/spec/fixtures/Valid1.junit") expect(tp.to_junit).to eq(junit) end it "works for a valid .plist ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/spec/test_parser_spec.rb
trainer/spec/test_parser_spec.rb
describe Trainer do describe Trainer::TestParser do describe "Loading a file" do it "raises an error if the file doesn't exist" do expect do Trainer::TestParser.new("notExistent") end.to raise_error(/File not found at path/) end it "raises an error if FormatVersion is ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/spec/spec_helper.rb
trainer/spec/spec_helper.rb
require 'trainer' # This module is only used to check the environment is currently a testing env module SpecHelper end
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer.rb
trainer/lib/trainer.rb
require 'fastlane' require 'trainer/options' require 'trainer/test_parser' require 'trainer/xcresult' require 'trainer/junit_generator' require 'trainer/legacy_xcresult' require 'trainer/plist_test_summary_parser' require 'trainer/module'
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/plist_test_summary_parser.rb
trainer/lib/trainer/plist_test_summary_parser.rb
require 'plist' module Trainer module PlistTestSummaryParser class << self def parse_content(raw_json, xcpretty_naming) data = raw_json["TestableSummaries"].collect do |testable_summary| summary_row = { project_path: testable_summary["ProjectPath"], target_name: te...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult.rb
trainer/lib/trainer/xcresult.rb
require 'json' require 'open3' require_relative 'xcresult/helper' require_relative 'xcresult/test_case_attributes' require_relative 'xcresult/repetition' require_relative 'xcresult/test_case' require_relative 'xcresult/test_suite' require_relative 'xcresult/test_plan' module Trainer # Model xcresulttool JSON output...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/options.rb
trainer/lib/trainer/options.rb
require 'fastlane_core/configuration/config_item' require_relative 'module' module Trainer class Options def self.available_options @options ||= [ FastlaneCore::ConfigItem.new(key: :path, short_option: "-p", env_name: "TRAIN...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/junit_generator.rb
trainer/lib/trainer/junit_generator.rb
require_relative 'module' module Trainer class JunitGenerator attr_accessor :results def initialize(results) self.results = results end def generate # JUnit file documentation: http://llg.cubic.org/docs/junit/ # And http://nelsonwells.net/2012/09/how-jenkins-ci-parses-and-displays...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/legacy_xcresult.rb
trainer/lib/trainer/legacy_xcresult.rb
require 'open3' require_relative 'xcresult/helper' module Trainer module LegacyXCResult # Model attributes and relationships taken from running the following command: # xcrun xcresulttool formatDescription --legacy class AbstractObject attr_accessor :type def initialize(data) self.t...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/commands_generator.rb
trainer/lib/trainer/commands_generator.rb
require 'commander' require 'fastlane_core/configuration/configuration' require 'fastlane_core/ui/help_formatter' require_relative 'options' require_relative 'test_parser' require_relative 'module' HighLine.track_eof = false module Trainer class CommandsGenerator include Commander::Methods def self.star...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/test_parser.rb
trainer/lib/trainer/test_parser.rb
require 'plist' require 'fastlane_core/print_table' require_relative 'xcresult' require_relative 'xcresult/helper' require_relative 'junit_generator' require_relative 'legacy_xcresult' require_relative 'plist_test_summary_parser' require_relative 'module' module Trainer class TestParser attr_accessor :data ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/module.rb
trainer/lib/trainer/module.rb
require 'fastlane_core/helper' require 'fastlane/boolean' module Trainer Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore UI = FastlaneCore::UI Boolean = Fastlane::Boolean ROOT = Pathname.new(File.expand_path('../../..', __FILE__)) DESCRIPTIO...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/test_plan.rb
trainer/lib/trainer/xcresult/test_plan.rb
require_relative 'test_suite' module Trainer module XCResult # Represents a collection of test suites + the configuration, and device used to run them class TestPlan attr_reader :test_suites, :name, :configurations, :devices attr_accessor :output_remove_retry_attempts def initialize(test_s...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/test_case.rb
trainer/lib/trainer/xcresult/test_case.rb
require_relative 'helper' require_relative 'test_case_attributes' require_relative 'repetition' module Trainer module XCResult # Represents a test case, including its retries (aka repetitions) class TestCase include TestCaseAttributes attr_reader :name attr_reader :identifier attr_re...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/repetition.rb
trainer/lib/trainer/xcresult/repetition.rb
require_relative 'test_case_attributes' module Trainer module XCResult # Represents retries of a test case, including the original run # e.g. a test case that ran 3 times in total will be represented by 3 Repetition instances in the `xcresulttool` JSON output, # one for the original run and one for the 2...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/test_case_attributes.rb
trainer/lib/trainer/xcresult/test_case_attributes.rb
module Trainer module XCResult # Mixin for shared attributes between TestCase and Repetition module TestCaseAttributes def self.included(base) base.extend(ClassMethods) end def passed? @result == 'Passed' end def failed? @result == 'Failed' end ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/helper.rb
trainer/lib/trainer/xcresult/helper.rb
require 'rexml/document' require 'rubygems' module Trainer module XCResult # Helper class for XML and node operations class Helper # Creates an XML element with the given name and attributes # # @param name [String] The name of the XML element # @param attributes [Hash] A hash of attr...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/trainer/lib/trainer/xcresult/test_suite.rb
trainer/lib/trainer/xcresult/test_suite.rb
require_relative 'test_case' module Trainer module XCResult # Represents a test suite, including its test cases and sub-suites class TestSuite attr_reader :name attr_reader :identifier attr_reader :type attr_reader :result attr_reader :test_cases attr_reader :sub_suites ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/sync_screenshots_spec.rb
deliver/spec/sync_screenshots_spec.rb
require 'deliver/sync_screenshots' require 'fakefs/spec_helpers' describe Deliver::SyncScreenshots do describe '#do_replace_screenshots' do subject { described_class.new(app: nil, platform: nil) } before do # To emulate checksum calculation, return the given path as a checksum allow(Deliver::Sc...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/setup_spec.rb
deliver/spec/setup_spec.rb
require 'deliver/setup' describe Deliver do describe Deliver::Setup do describe '#generate_metadata_files' do context 'with review_information' do let(:setup) { Deliver::Setup.new } let(:tempdir) { Dir.mktmpdir } let(:app) { double('app') } let(:app_info) do doubl...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/commands_generator_spec.rb
deliver/spec/commands_generator_spec.rb
require 'deliver/commands_generator' require 'deliver/setup' describe Deliver::CommandsGenerator do def expect_runner_run_with(expected_options) fake_runner = "runner" expect_runner_new_with(expected_options).and_return(fake_runner) expect(fake_runner).to receive(:run) end def expect_runner_new_with...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/submit_for_review_spec.rb
deliver/spec/submit_for_review_spec.rb
require 'deliver/submit_for_review' require 'ostruct' describe Deliver::SubmitForReview do let(:review_submitter) { Deliver::SubmitForReview.new } describe 'submit app' do let(:app) { double('app') } let(:edit_version) do double('edit_version', id: '1', version_string: "1.0...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/app_screenshot_spec.rb
deliver/spec/app_screenshot_spec.rb
require 'deliver/app_screenshot' require 'deliver/setup' describe Deliver::AppScreenshot do DisplayType = Deliver::AppScreenshot::DisplayType def screen_size_from(path) path.match(/{([0-9]+)x([0-9]+)}/).captures.map(&:to_i) end before do allow(FastImage).to receive(:size) do |path| screen_size_...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/loader_spec.rb
deliver/spec/loader_spec.rb
require 'deliver/loader' require 'fakefs/spec_helpers' describe Deliver::Loader do include(FakeFS::SpecHelpers) describe Deliver::Loader::LanguageFolder do let(:root) { '/some/root' } before { FileUtils.mkdir_p(root) } def directory_path(name) path = File.join(root, name) FileUtils.mkdir_...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/app_screenshot_validator_spec.rb
deliver/spec/app_screenshot_validator_spec.rb
require 'deliver/app_screenshot' require 'deliver/setup' describe Deliver::AppScreenshotValidator do DisplayType = Deliver::AppScreenshot::DisplayType Error = Deliver::AppScreenshotValidator::ValidationError def app_screenshot_with(display_type, format = :png, path = 'image.png', language = 'en-US') allow(D...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/app_screenshot_iterator_spec.rb
deliver/spec/app_screenshot_iterator_spec.rb
require 'deliver/app_screenshot_iterator' require 'spaceship/connect_api/models/app_screenshot_set' describe Deliver::AppScreenshotIterator do describe "#each_app_screenshot_set" do context 'when screenshot is empty' do it 'should iterates nothing' do localization = double('Spaceship::ConnectAPI::A...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/html_generator_spec.rb
deliver/spec/html_generator_spec.rb
require 'deliver/html_generator' require 'tmpdir' describe Deliver::HtmlGenerator do let(:generator) { Deliver::HtmlGenerator.new } describe :render do let(:screenshots) { [] } context 'minimal configuration' do let(:options) do { name: { 'en-US' => 'Fastlane Demo' }, de...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/upload_metadata_spec.rb
deliver/spec/upload_metadata_spec.rb
require 'deliver/upload_metadata' require 'tempfile' describe Deliver::UploadMetadata do let(:tmpdir) { Dir.mktmpdir } describe '#load_from_filesystem' do context 'with review information' do let(:options) { { metadata_path: tmpdir, app_review_information: app_review_information } } let(:uploader)...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/runner_spec.rb
deliver/spec/runner_spec.rb
require 'deliver/runner' class MockSession def teams [ { 'contentProvider' => { 'contentProviderId' => 'abc', 'name' => 'A B C' } }, { 'contentProvider' => { 'contentProviderId' => 'def', 'name' => 'D E F' } } ] end def team_id 'abc' end def csrf_tokens nil end end class Mock...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/detect_values_spec.rb
deliver/spec/detect_values_spec.rb
require 'deliver/detect_values' describe Deliver::DetectValues do let(:value_detector) { Deliver::DetectValues.new } describe :find_folders do describe 'when folders are not specified in options' do let(:options) { { screenshots_path: nil, metadata_path: nil } } describe 'running with fastlane' d...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/spec/upload_screenshots_spec.rb
deliver/spec/upload_screenshots_spec.rb
require 'deliver/upload_screenshots' require 'fakefs/spec_helpers' describe Deliver::UploadScreenshots do describe '#delete_screenshots' do context 'when localization has a screenshot' do it 'should delete screenshots by screenshot_sets that AppScreenshotIterator gives' do # return empty by `app_sc...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver.rb
deliver/lib/deliver.rb
require_relative 'deliver/languages' require_relative 'deliver/loader' require_relative 'deliver/options' require_relative 'deliver/commands_generator' require_relative 'deliver/detect_values' require_relative 'deliver/runner' require_relative 'deliver/upload_metadata' require_relative 'deliver/upload_screenshots' requ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/setup.rb
deliver/lib/deliver/setup.rb
require 'spaceship/tunes/tunes' require_relative 'module' require_relative 'download_screenshots' require_relative 'upload_metadata' module Deliver class Setup attr_accessor :is_swift def run(options, is_swift: false) containing = Helper.fastlane_enabled_folder_path self.is_swift = is_swift ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/download_screenshots.rb
deliver/lib/deliver/download_screenshots.rb
require_relative 'module' require 'spaceship' require 'open-uri' module Deliver class DownloadScreenshots def self.run(options, path) UI.message("Downloading all existing screenshots...") download(options, path) UI.success("Successfully downloaded all existing screenshots") rescue => ex ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/options.rb
deliver/lib/deliver/options.rb
require 'fastlane_core/configuration/config_item' require 'credentials_manager/appfile_config' require_relative 'module' module Deliver # rubocop:disable Metrics/ClassLength class Options def self.available_options user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id) user |...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
true
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/detect_values.rb
deliver/lib/deliver/detect_values.rb
require 'fastlane_core/fastlane_folder' require 'fastlane_core/ipa_file_analyser' require 'fastlane_core/pkg_file_analyser' require 'spaceship/tunes/tunes' require 'spaceship/tunes/application' require_relative 'module' require_relative 'languages' module Deliver class DetectValues def run!(options, skip_params...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/loader.rb
deliver/lib/deliver/loader.rb
require_relative 'module' require_relative 'app_screenshot' require_relative 'app_screenshot_validator' require_relative 'upload_metadata' require_relative 'languages' module Deliver module Loader # The directory 'appleTV' and `iMessage` are special folders that will cause our screenshot gathering code to iterat...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/generate_summary.rb
deliver/lib/deliver/generate_summary.rb
require_relative 'upload_metadata' require_relative 'html_generator' require_relative 'upload_screenshots' module Deliver class GenerateSummary def run(options) screenshots = UploadScreenshots.new.collect_screenshots(options) UploadMetadata.new(options).load_from_filesystem HtmlGenerator.new.re...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/app_screenshot_iterator.rb
deliver/lib/deliver/app_screenshot_iterator.rb
require_relative 'module' module Deliver # This is a convenient class that enumerates app store connect's screenshots in various degrees. class AppScreenshotIterator NUMBER_OF_THREADS = Helper.test? ? 1 : [ENV.fetch("DELIVER_NUMBER_OF_THREADS", 10).to_i, 10].min # @param localizations [Array<Spaceship::Co...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/sync_screenshots.rb
deliver/lib/deliver/sync_screenshots.rb
require 'fastlane_core' require 'digest/md5' require 'naturally' require_relative 'app_screenshot' require_relative 'app_screenshot_iterator' require_relative 'loader' require_relative 'screenshot_comparable' module Deliver class SyncScreenshots DeleteScreenshotJob = Struct.new(:app_screenshot, :locale) Upl...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/app_screenshot_validator.rb
deliver/lib/deliver/app_screenshot_validator.rb
require 'fastimage' module Deliver class AppScreenshotValidator # A simple structure that holds error information as well as formatted error messages consistently class ValidationError # Constants that can be given to `type` param INVALID_SCREEN_SIZE = 'Invalid screen size'.freeze INVALID_F...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/app_screenshot.rb
deliver/lib/deliver/app_screenshot.rb
require 'fastimage' require_relative 'module' require 'spaceship/connect_api/models/app_screenshot_set' module Deliver # AppScreenshot represents one screenshots for one specific locale and # device type. class AppScreenshot # Shorthand for DisplayType constants DisplayType = Spaceship::ConnectAPI::AppS...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/commands_generator.rb
deliver/lib/deliver/commands_generator.rb
require 'commander' require 'fastlane/version' require 'fastlane_core/ui/help_formatter' require_relative 'download_screenshots' require_relative 'options' require_relative 'module' require_relative 'generate_summary' require_relative 'runner' HighLine.track_eof = false module Deliver class CommandsGenerator i...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/upload_price_tier.rb
deliver/lib/deliver/upload_price_tier.rb
require_relative 'module' require 'spaceship' module Deliver # Set the app's pricing class UploadPriceTier def upload(options) return unless options[:price_tier] price_tier = options[:price_tier].to_s app = Deliver.cache[:app] attributes = {} # Check App update method to under...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/submit_for_review.rb
deliver/lib/deliver/submit_for_review.rb
require_relative 'module' require 'fastlane_core/build_watcher' require 'fastlane_core/ipa_file_analyser' require 'fastlane_core/pkg_file_analyser' module Deliver class SubmitForReview def submit!(options) app = Deliver.cache[:app] platform = Spaceship::ConnectAPI::Platform.map(options[:platform]) ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/runner.rb
deliver/lib/deliver/runner.rb
require 'precheck/options' require 'precheck/runner' require 'fastlane_core/configuration/configuration' require 'fastlane_core/ipa_upload_package_builder' require 'fastlane_core/pkg_upload_package_builder' require 'fastlane_core/itunes_transporter' require 'spaceship' require_relative 'html_generator' require_relative...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/languages.rb
deliver/lib/deliver/languages.rb
module Deliver module Languages # 2020-08-24 - Available locales are not available as an endpoint in App Store Connect # Update with Spaceship::Tunes.client.available_languages.sort (as long as endpoint is available) ALL_LANGUAGES = %w[ar-SA ca cs da de-DE el en-AU en-CA en-GB en-US es-ES es-MX fi fr-CA f...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/upload_metadata.rb
deliver/lib/deliver/upload_metadata.rb
require 'fastlane_core' require 'spaceship' require_relative 'module' module Deliver # upload description, rating, etc. # rubocop:disable Metrics/ClassLength class UploadMetadata # All the localised values attached to the version LOCALISED_VERSION_VALUES = { description: "description", keywo...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/html_generator.rb
deliver/lib/deliver/html_generator.rb
require 'spaceship' require_relative 'module' module Deliver class HtmlGenerator # Splits keywords supporting: # * separated by commas (with optional whitespace) # * separated by newlines KEYWORD_SPLITTER = /(?:,\s?|\r?\n)/ def run(options, screenshots) begin # Use fastlane folder...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/upload_screenshots.rb
deliver/lib/deliver/upload_screenshots.rb
require 'fastlane_core' require 'spaceship/tunes/tunes' require 'digest/md5' require_relative 'app_screenshot' require_relative 'module' require_relative 'loader' require_relative 'app_screenshot_iterator' module Deliver # upload screenshots to App Store Connect class UploadScreenshots DeleteScreenshotSetJob ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/module.rb
deliver/lib/deliver/module.rb
require 'fastlane_core/helper' require 'fastlane_core/ui/ui' require 'fastlane/boolean' module Deliver class << self attr_accessor :cache def cache @cache ||= {} @cache end end Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in Fastlan...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/deliver/lib/deliver/screenshot_comparable.rb
deliver/lib/deliver/screenshot_comparable.rb
require 'spaceship/connect_api/models/app_screenshot' require 'spaceship/connect_api/models/app_screenshot_set' require_relative 'app_screenshot' module Deliver # This clsas enables you to compare equality between different representations of the screenshots # in the standard API `Array#-` that requires objects t...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/spec/commands_generator_spec.rb
pem/spec/commands_generator_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/spec/manager_spec.rb
pem/spec/manager_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/spec/spec_helper.rb
pem/spec/spec_helper.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/lib/pem.rb
pem/lib/pem.rb
require_relative 'pem/manager' require_relative 'pem/options' require_relative 'pem/module'
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/lib/pem/options.rb
pem/lib/pem/options.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/lib/pem/commands_generator.rb
pem/lib/pem/commands_generator.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/lib/pem/manager.rb
pem/lib/pem/manager.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pem/lib/pem/module.rb
pem/lib/pem/module.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/spec/merchant_spec.rb
produce/spec/merchant_spec.rb
require "produce/merchant" describe Produce::Merchant do describe ".detect_merchant_identifier" do it "accesses merchant identifier from produce config" do config = { merchant_identifier: "merchant.com.example.app" } result = Produce::Merchant.detect_merchant_identifier(config) expect(result)...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/spec/commands_generator_spec.rb
produce/spec/commands_generator_spec.rb
require 'produce/commands_generator' require 'produce/service' require 'produce/group' require 'produce/merchant' require 'produce/cloud_container' describe Produce::CommandsGenerator do let(:available_options) { Produce::Options.available_options } describe ":create option handling" do it "can use the skip_i...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/spec/manager_spec.rb
produce/spec/manager_spec.rb
describe Produce do describe "Manager" do it "should auto convert string hash keys to symbol keys" do Produce.config = FastlaneCore::Configuration.create(Produce::Options.available_options, { username: "helmut@januschka.com", enable_services: { "data_protection" => "complete" }, ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce.rb
produce/lib/produce.rb
require_relative 'produce/manager' require_relative 'produce/options' require_relative 'produce/developer_center' require_relative 'produce/itunes_connect' require_relative 'produce/available_default_languages' require_relative 'produce/module'
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/developer_center.rb
produce/lib/produce/developer_center.rb
require 'spaceship' require_relative 'module' module Produce class DeveloperCenter SERVICE_ON = "on" SERVICE_OFF = "off" SERVICE_COMPLETE = "complete" SERVICE_UNLESS_OPEN = "unlessopen" SERVICE_UNTIL_FIRST_LAUNCH = "untilfirstauth" SERVICE_LEGACY = "legacy" SERVICE_CLOUDKIT = "cloudkit" ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/group.rb
produce/lib/produce/group.rb
require 'spaceship' require_relative 'module' module Produce class Group def create(options, _args) login ENV["CREATED_NEW_GROUP_ID"] = Time.now.to_i.to_s group_identifier = options.group_identifier || UI.input("Group identifier: ") if app_group_exists?(group_identifier) UI.suc...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/options.rb
produce/lib/produce/options.rb
require 'fastlane_core/configuration/config_item' require 'credentials_manager/appfile_config' require_relative 'module' require_relative 'developer_center' module Produce class Options def self.available_options user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id) user ||= ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/merchant.rb
produce/lib/produce/merchant.rb
require 'spaceship' require_relative 'module' module Produce class Merchant def create(_options, _args) login merchant_identifier = detect_merchant_identifier merchant = find_merchant(merchant_identifier) if merchant UI.success("[DevCenter] Merchant '#{merchant.bundle_id})' alre...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/commands_generator.rb
produce/lib/produce/commands_generator.rb
require 'commander' require 'fastlane/version' require 'fastlane_core/ui/help_formatter' require 'fastlane_core/configuration/config_item' require 'fastlane_core/print_table' require_relative 'module' require_relative 'manager' require_relative 'options' HighLine.track_eof = false module Produce class CommandsGene...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/itunes_connect.rb
produce/lib/produce/itunes_connect.rb
require 'spaceship' require 'spaceship/tunes/tunes' require 'fastlane_core/languages' require_relative 'module' module Produce class ItunesConnect def run @full_bundle_identifier = app_identifier @full_bundle_identifier.gsub!('*', Produce.config[:bundle_identifier_suffix].to_s) if wildcard_bundle? ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/service.rb
produce/lib/produce/service.rb
require 'spaceship' require_relative 'module' # rubocop:disable Metrics/ClassLength module Produce class Service include Spaceship::ConnectAPI::BundleIdCapability::Type include Spaceship::ConnectAPI::BundleIdCapability::Settings include Spaceship::ConnectAPI::BundleIdCapability::Options def self.ena...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/manager.rb
produce/lib/produce/manager.rb
require 'fastlane_core/print_table' require_relative 'developer_center' require_relative 'itunes_connect' module Produce class Manager # Produces app at DeveloperCenter and ItunesConnect def self.start_producing FastlaneCore::PrintTable.print_values(config: Produce.config, hide_keys: [], title: "Summar...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/module.rb
produce/lib/produce/module.rb
require 'fastlane_core/helper' module Produce class << self attr_accessor :config end Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore UI = FastlaneCore::UI ROOT = Pathname.new(File.expand_path('../../..', __FILE__)) ENV['FASTLANE_TEA...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/cloud_container.rb
produce/lib/produce/cloud_container.rb
require 'spaceship' require_relative 'module' module Produce class CloudContainer def create(options, _args) login container_identifier = options.container_identifier || UI.input("iCloud Container identifier: ") if container_exists?(container_identifier) UI.success("[DevCenter] iCloud...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/produce/lib/produce/available_default_languages.rb
produce/lib/produce/available_default_languages.rb
module Produce class AvailableDefaultLanguages # If you update this list, you probably also have to update these files: # - fastlane_core/lib/fastlane_core/languages.rb # - spaceship/lib/assets/languageMapping.json # See this pull request for example: https://github.com/fastlane/fastlane/pull/14110 ...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/commands_generator_spec.rb
pilot/spec/commands_generator_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/build_manager_spec.rb
pilot/spec/build_manager_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
true
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/tester_manager_spec.rb
pilot/spec/tester_manager_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/manager_spec.rb
pilot/spec/manager_spec.rb
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(:...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/tester_importer_spec.rb
pilot/spec/tester_importer_spec.rb
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)...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/spec_helper.rb
pilot/spec/spec_helper.rb
def before_each_pilot ENV["DELIVER_USER"] = "DELIVERUSER" ENV["DELIVER_PASSWORD"] = "DELIVERPASS" ENV["DELIVER_HTML_EXPORT_PATH"] = "/tmp" # to not pollute the working directory end
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/test_exporter_spec.rb
pilot/spec/test_exporter_spec.rb
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_...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false
fastlane/fastlane
https://github.com/fastlane/fastlane/blob/d1f6eb6228644936997aae1956d8036ea62cd5b4/pilot/spec/options_spec.rb
pilot/spec/options_spec.rb
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...
ruby
MIT
d1f6eb6228644936997aae1956d8036ea62cd5b4
2026-01-04T15:37:27.371479Z
false