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 | deliver/lib/deliver/generate_summary.rb | Ruby | mit | 41,450 | master | 370 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/html_generator.rb | Ruby | mit | 41,450 | master | 3,048 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/detect_values.rb | Ruby | mit | 41,450 | master | 3,725 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/languages.rb | Ruby | mit | 41,450 | master | 427 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/setup.rb | Ruby | mit | 41,450 | master | 7,401 | 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
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/options.rb | Ruby | mit | 41,450 | master | 35,623 | 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 |... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/app_screenshot.rb | Ruby | mit | 41,450 | master | 9,409 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/module.rb | Ruby | mit | 41,450 | master | 711 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/sync_screenshots.rb | Ruby | mit | 41,450 | master | 8,136 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/sync_app_previews.rb | Ruby | mit | 41,450 | master | 8,743 | require "fastlane_core"
require "fastlane_core/video_utils"
require "digest/md5"
require_relative 'module'
module Deliver
class SyncAppPreviews
UploadPreviewJob = Struct.new(:localization, :preview_set, :video_path, :frame_time_code)
def initialize(app:, platform:, app_previews_path:, preview_frame_time_co... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/screenshot_comparable.rb | Ruby | mit | 41,450 | master | 1,872 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/lib/deliver/upload_price_tier.rb | Ruby | mit | 41,450 | master | 1,540 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/sync_app_previews_spec.rb | Ruby | mit | 41,450 | master | 16,206 | require "spec_helper"
require "deliver/sync_app_previews"
require "fastlane_core/video_utils"
require "base64"
require "zlib"
require "fileutils"
describe Deliver::SyncAppPreviews do
let(:app) { double("Spaceship::ConnectAPI::App") }
let(:platform) { Spaceship::ConnectAPI::Platform::IOS }
let(:tmp_root) { Dir.mk... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 13,374 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/loader_spec.rb | Ruby | mit | 41,450 | master | 9,660 | 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_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/upload_screenshots_spec.rb | Ruby | mit | 41,450 | master | 32,066 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/detect_values_spec.rb | Ruby | mit | 41,450 | master | 2,271 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/upload_metadata_spec.rb | Ruby | mit | 41,450 | master | 25,761 | 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)... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/app_screenshot_iterator_spec.rb | Ruby | mit | 41,450 | master | 9,775 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/app_screenshot_spec.rb | Ruby | mit | 41,450 | master | 24,636 | 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_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/app_screenshot_validator_spec.rb | Ruby | mit | 41,450 | master | 2,713 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 9,853 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/setup_spec.rb | Ruby | mit | 41,450 | master | 4,311 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/html_generator_spec.rb | Ruby | mit | 41,450 | master | 2,614 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/sync_screenshots_spec.rb | Ruby | mit | 41,450 | master | 9,933 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | deliver/spec/submit_for_review_spec.rb | Ruby | mit | 41,450 | master | 8,856 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 6,466 | require 'tmpdir'
describe Cert do
describe Cert::Runner do
before do
ENV["DELIVER_USER"] = "test@fastlane.tools"
ENV["DELIVER_PASSWORD"] = "123"
end
xcode_versions = {
"10" => Spaceship.certificate.production,
"11" => Spaceship.certificate.apple_distribution
}
# Iterates... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/spec/spec_helper.rb | Ruby | mit | 41,450 | master | 471 | # Create a stub certificate object that reports its expiration date
# as the provided Time, or 1 day from now by default
def stub_certificate(name = "certificate", valid = true)
name.tap do |cert|
allow(cert).to receive(:id).and_return("cert_id")
allow(cert).to receive(:valid?).and_return(valid)
allow(cer... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 2,432 | require 'cert/commands_generator'
describe Cert::CommandsGenerator do
let(:runner) do
runner = Cert::Runner.new
expect(Cert::Runner).to receive(:new).and_return(runner)
runner
end
describe ":create option handling" do
it "can use the username short flag from tool options" do
# leaving out ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/lib/cert/options.rb | Ruby | mit | 41,450 | master | 9,388 | require 'credentials_manager/appfile_config'
require 'fastlane_core/configuration/config_item'
require_relative 'module'
module Cert
class Options
def self.available_options
user = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
user ||= CredentialsManager::AppfileConfig.try_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/lib/cert/module.rb | Ruby | mit | 41,450 | master | 496 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/lib/cert/commands_generator.rb | Ruby | mit | 41,450 | master | 1,962 | require 'commander'
require 'fastlane/version'
require 'fastlane_core/ui/help_formatter'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/globals'
require_relative 'options'
require_relative 'runner'
HighLine.track_eof = false
module Cert
class CommandsGenerator
include Commander::Met... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | cert/lib/cert/runner.rb | Ruby | mit | 41,450 | master | 11,396 | 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... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/lib/credentials_manager.rb | Ruby | mit | 41,450 | master | 242 | require_relative 'credentials_manager/account_manager'
require_relative 'credentials_manager/cli'
require_relative 'credentials_manager/appfile_config'
module CredentialsManager
ROOT = Pathname.new(File.expand_path('../..', __FILE__))
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/lib/credentials_manager/appfile_config.rb | Ruby | mit | 41,450 | master | 5,992 | require 'fastlane_core/globals'
module CredentialsManager
# Access the content of the app file (e.g. app identifier and Apple ID)
class AppfileConfig
def self.try_fetch_value(key)
# We need to load the file every time we call this method
# to support the `for_lane` keyword
begin
retur... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/lib/credentials_manager/cli.rb | Ruby | mit | 41,450 | master | 1,973 | require 'commander'
require_relative 'account_manager'
module CredentialsManager
class CLI
include Commander::Methods
# Parses command options and executes actions
def run
program :name, 'CredentialsManager'
program :version, Fastlane::VERSION
program :description, 'Manage credentials... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/lib/credentials_manager/account_manager.rb | Ruby | mit | 41,450 | master | 5,303 | require 'security'
require 'highline/import' # to hide the entered password
require_relative 'appfile_config'
module CredentialsManager
class AccountManager
DEFAULT_PREFIX = "deliver"
# Is used for iTunes Transporter
attr_reader :prefix
# @param prefix [String] Very optional, is used for the
#... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/spec/app_file_config_spec.rb | Ruby | mit | 41,450 | master | 14,196 | require 'credentials_manager/appfile_config'
describe CredentialsManager do
describe CredentialsManager::AppfileConfig do
describe "#load_for_lane_configuration" do
it "overrides Appfile configuration with current driven lane." do
ENV["FASTLANE_LANE_NAME"] = :beta.to_s
expect(CredentialsMa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | credentials_manager/spec/account_manager_spec.rb | Ruby | mit | 41,450 | master | 3,309 | describe CredentialsManager do
describe CredentialsManager::AccountManager do
let(:user) { "felix@krausefx.com" }
let(:password) { "suchSecret" }
it "allows passing user and password" do
c = CredentialsManager::AccountManager.new(user: user, password: password)
expect(c.user).to eq(user)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 1,196 | require 'supply/commands_generator'
require 'supply/setup'
describe Supply::CommandsGenerator do
def expect_uploader_perform_upload
fake_uploader = "uploader"
expect(Supply::Uploader).to receive(:new).and_return(fake_uploader)
expect(fake_uploader).to receive(:perform_upload)
end
def expect_setup_pe... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/spec/client_spec.rb | Ruby | mit | 41,450 | master | 7,712 | describe Supply do
describe Supply::Client do
let(:service_account_file) { File.read(fixture_file("sample-service-account.json")) }
let(:external_account_file) { File.read(fixture_file("sample-external-account.json")) }
before do
stub_request(:post, "https://www.googleapis.com/oauth2/v4/token").
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/spec/uploader_spec.rb | Ruby | mit | 41,450 | master | 26,771 | require 'fileutils'
describe Supply do
describe Supply::Uploader do
describe "#verify_config!" do
let(:subject) { Supply::Uploader.new }
it "raises error if empty config" do
Supply.config = {}
expect do
subject.verify_config!
end.to raise_error("No local metadata, a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply.rb | Ruby | mit | 41,450 | master | 1,753 | require 'json'
require 'supply/options'
require 'supply/client'
require 'supply/listing'
require 'supply/apk_listing'
require 'supply/image_listing'
require 'supply/generated_universal_apk'
require 'supply/release_listing'
require 'supply/uploader'
require 'supply/languages'
require 'fastlane_core'
module Supply
# ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/languages.rb | Ruby | mit | 41,450 | master | 1,195 | # https://support.google.com/googleplay/android-developer/answer/3125566?hl=en
# => Add your own text translations & localized graphic assets => See available languages => replace `-` with `_`
# %w => https://stackoverflow.com/a/1274703/252627
module Supply
module Languages
ALL_LANGUAGES = %w[
af
am
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/release_listing.rb | Ruby | mit | 41,450 | master | 498 | module Supply
class ReleaseListing
attr_accessor :track
attr_accessor :version
attr_accessor :versioncodes
attr_accessor :language
attr_accessor :release_notes
# Initializes the release listing with the current listing if available
def initialize(track, version, versioncodes, language, te... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/listing.rb | Ruby | mit | 41,450 | master | 1,162 | module Supply
class Listing
attr_reader :language
attr_accessor :title
attr_accessor :short_description
attr_accessor :full_description
attr_accessor :video
# Initializes the listing to use the given api client, language, and fills it with the current listing if available
def initialize(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/uploader.rb | Ruby | mit | 41,450 | master | 22,833 | require 'fastlane_core'
module Supply
# rubocop:disable Metrics/ClassLength
class Uploader
UploadJob = Struct.new(:language, :version_code, :release_notes_queue)
def perform_upload
FastlaneCore::PrintTable.print_values(config: Supply.config, hide_keys: [:issuer], mask_keys: [:json_key_data], title: ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/options.rb | Ruby | mit | 41,450 | master | 26,216 | # rubocop:disable Metrics/ClassLength
require 'fastlane_core/configuration/config_item'
require 'credentials_manager/appfile_config'
module Supply
class Options
# rubocop:disable Metrics/PerceivedComplexity
def self.available_options
@options ||= [
FastlaneCore::ConfigItem.new(key: :package_na... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/reader.rb | Ruby | mit | 41,450 | master | 1,048 | module Supply
class Reader
def track_version_codes
track = Supply.config[:track]
client.begin_edit(package_name: Supply.config[:package_name])
version_codes = client.track_version_codes(track)
client.abort_current_edit
if version_codes.empty?
UI.important("No version codes ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/setup.rb | Ruby | mit | 41,450 | master | 4,128 | module Supply
class Setup
def perform_download
UI.message("🕗 Downloading metadata, images, screenshots...")
if File.exist?(metadata_path)
UI.important("Metadata already exists at path '#{metadata_path}'")
return
end
client.begin_edit(package_name: Supply.config[:package... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/client.rb | Ruby | mit | 41,450 | master | 22,129 | require 'googleauth'
require 'google/apis/androidpublisher_v3'
AndroidPublisher = Google::Apis::AndroidpublisherV3
require 'net/http'
# rubocop:disable Metrics/ClassLength
module Supply
class AbstractGoogleServiceClient
SCOPE = nil
SERVICE = nil
# Connecting with Google
attr_accessor :client
d... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/image_listing.rb | Ruby | mit | 41,450 | master | 257 | module Supply
class ImageListing
attr_reader :id
attr_reader :sha1
attr_reader :sha256
attr_reader :url
def initialize(id, sha1, sha256, url)
@id = id
@sha1 = sha1
@sha256 = sha256
@url = url
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/commands_generator.rb | Ruby | mit | 41,450 | master | 1,947 | require "commander"
require "fastlane_core"
require 'fastlane_core/ui/help_formatter'
require "supply"
HighLine.track_eof = false
module Supply
class CommandsGenerator
include Commander::Methods
def self.start
new.run
end
def run
program :name, 'supply'
program :version, Fastlane... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/apk_listing.rb | Ruby | mit | 41,450 | master | 406 | module Supply
class ApkListing
attr_accessor :recent_changes
attr_accessor :language
attr_accessor :apk_version_code
# Initializes the apk listing with the current listing if available
def initialize(recent_changes, language, apk_version_code)
self.recent_changes = recent_changes
self... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | supply/lib/supply/generated_universal_apk.rb | Ruby | mit | 41,450 | master | 863 | module Supply
# A model representing the returned values from a call to Client#list_generated_universal_apks
class GeneratedUniversalApk
attr_accessor :package_name
attr_accessor :version_code
attr_accessor :certificate_sha256_hash
attr_accessor :download_id
# Initializes the Generated Universa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/slack_poster_spec.rb | Ruby | mit | 41,450 | master | 5,548 | require 'scan'
require 'slack-notifier'
describe Scan::SlackPoster do
before do
# mock the network request part
allow_any_instance_of(Fastlane::Actions::SlackAction::Runner).to receive(:post_message).with(any_args)
end
describe "slack_url handling" do
describe "without a slack_url set" do
it "... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/detect_values_spec.rb | Ruby | mit | 41,450 | master | 21,926 | describe Scan do
describe Scan::DetectValues do
describe 'Xcode project' do
describe 'detects FastlaneCore::Project' do
it 'with no :project or :package_path given', requires_xcodebuild: true do
# Mocks input from detect_projects
project = FastlaneCore::Project.new({
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/commands_generator_spec.rb | Ruby | mit | 41,450 | master | 1,206 | require 'scan/commands_generator'
describe Scan::CommandsGenerator do
let(:available_options) { Scan::Options.available_options }
describe ":tests option handling" do
def expect_manager_work_with(expected_options)
expect(Scan::Manager).to receive_message_chain(:new, :work) do |actual_options|
ex... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/xcpretty_reporter_options_generator_spec.rb | Ruby | mit | 41,450 | master | 15,945 | describe Scan do
describe Scan::XCPrettyReporterOptionsGenerator, requires_xcodebuild: true do
before(:all) do
options = { project: "./scan/examples/standard/app.xcodeproj" }
Scan.config = FastlaneCore::Configuration.create(Scan::Options.available_options, options)
Scan.cache[:temp_junit_report]... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/test_result_parser_spec.rb | Ruby | mit | 41,450 | master | 2,594 | describe Scan do
describe Scan::TestResultParser do
it "properly parses the xcodebuild output" do
output = "<?xml version='1.0' encoding='UTF-8'?>
<testsuites tests='2' failures='1'>
<testsuite name='appTests' tests='2' failures='1'>
<testcase classname='appTests' name='testExample'>
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/error_handler_spec.rb | Ruby | mit | 41,450 | master | 3,662 | require 'scan'
describe Scan do
describe Scan::ErrorHandler do
let(:log_path) { '~/scan.log' }
describe "handle_build_error" do
describe "when parsing parallel test failure output" do
it "does not report a build failure" do
expect(Scan).to receive(:config).and_return({})
ou... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/runner_spec.rb | Ruby | mit | 41,450 | master | 13,417 | require 'scan'
describe Scan do
describe Scan::Runner do
describe "handle_results" do
before(:each) do
mock_slack_poster = Object.new
allow(Scan::SlackPoster).to receive(:new).and_return(mock_slack_poster)
allow(mock_slack_poster).to receive(:run)
mock_test_command_generato... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/spec/test_command_generator_spec.rb | Ruby | mit | 41,450 | master | 60,530 | describe Scan do
before(:all) do
options = { project: "./scan/examples/standard/app.xcodeproj" }
config = FastlaneCore::Configuration.create(Scan::Options.available_options, options)
@project = FastlaneCore::Project.new(config)
end
before(:each) do
@valid_simulators = "== Devices ==
-- iOS 10.0 -... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan.rb | Ruby | mit | 41,450 | master | 392 | require_relative 'scan/manager'
require_relative 'scan/options'
require_relative 'scan/runner'
require_relative 'scan/detect_values'
require_relative 'scan/test_command_generator'
require_relative 'scan/xcpretty_reporter_options_generator.rb'
require_relative 'scan/test_result_parser'
require_relative 'scan/error_handl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/slack_poster.rb | Ruby | mit | 41,450 | master | 2,041 | require 'fastlane/action'
require 'fastlane/actions/slack'
require 'fastlane_core/configuration/configuration'
require_relative 'module'
module Scan
class SlackPoster
def run(results)
return if Scan.config[:skip_slack]
return if Scan.config[:slack_only_on_failure] && results[:failures] == 0
re... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/detect_values.rb | Ruby | mit | 41,450 | master | 12,999 | require 'fastlane_core/device_manager'
require 'fastlane_core/project'
require 'pathname'
require 'set'
require_relative 'module'
module Scan
# This class detects all kinds of default values
class DetectValues
PLATFORMS = {
'iOS' => { simulator: 'iphonesimulator', name: 'com.apple.platform.iphoneos' },
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/manager.rb | Ruby | mit | 41,450 | master | 1,269 | require 'fastlane_core/print_table'
require_relative 'module'
require_relative 'runner'
module Scan
class Manager
attr_accessor :plist_files_before
def work(options)
Scan.config = options # we set this here to auto-detect missing values, which we need later on
unless options[:derived_data_path].... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/commands_generator.rb | Ruby | mit | 41,450 | master | 2,443 | require 'commander'
require 'fastlane_core/configuration/configuration'
require 'fastlane_core/ui/help_formatter'
require_relative 'module'
require_relative 'manager'
require_relative 'options'
HighLine.track_eof = false
module Scan
class CommandsGenerator
include Commander::Methods
def self.start
n... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/runner.rb | Ruby | mit | 41,450 | master | 15,364 | require 'open3'
require 'fileutils'
require 'terminal-table'
require 'shellwords'
require 'fastlane_core/env'
require 'fastlane_core/device_manager'
require_relative 'module'
require_relative 'xcpretty_reporter_options_generator'
require_relative 'test_result_parser'
require_relative 'slack_poster'
require_relative 't... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/test_command_generator.rb | Ruby | mit | 41,450 | master | 10,601 | require_relative 'xcpretty_reporter_options_generator'
module Scan
# Responsible for building the fully working xcodebuild command
class TestCommandGenerator
def generate
parts = prefix
parts << Scan.config[:xcodebuild_command]
parts += options
parts += actions
parts += suffix
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/options.rb | Ruby | mit | 41,450 | master | 39,598 | require 'fastlane_core/configuration/config_item'
require 'fastlane/helper/xcodebuild_formatter_helper'
require 'credentials_manager/appfile_config'
require_relative 'module'
# rubocop:disable Metrics/ClassLength
module Scan
class Options
def self.verify_type(item_name, acceptable_types, value)
type_ok = [... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/error_handler.rb | Ruby | mit | 41,450 | master | 3,152 | require_relative 'module'
module Scan
# This classes methods are called when something goes wrong in the building process
class ErrorHandler
class << self
# @param [String] The output of the errored build
# This method should raise an exception in any case, as the return code indicated a failed bui... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/xcpretty_reporter_options_generator.rb | Ruby | mit | 41,450 | master | 3,030 | require_relative 'module'
module Scan
class XCPrettyReporterOptionsGenerator
SUPPORTED_REPORT_TYPES = %w(html junit json-compilation-database)
def self.generate_from_scan_config
self.new(Scan.config[:open_report],
Scan.config[:output_types],
Scan.config[:output_files] || ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/module.rb | Ruby | mit | 41,450 | master | 889 | require 'fastlane_core/helper'
require 'fastlane/boolean'
require_relative 'detect_values'
module Scan
class << self
attr_accessor :config
attr_accessor :project
attr_accessor :cache
attr_accessor :devices
def config=(value)
@config = value
DetectValues.set_additional_default_valu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | scan/lib/scan/test_result_parser.rb | Ruby | mit | 41,450 | master | 745 | require_relative 'module'
module Scan
class TestResultParser
def parse_result(output)
unless output
return {
tests: 0,
failures: 0
}
end
# e.g. ...<testsuites tests='2' failures='1'>...
matched = output.scan(/<testsuites\b(?=[^<>]*\s+tests='(\d+)')... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core.rb | Ruby | mit | 41,450 | master | 2,109 | require_relative 'fastlane_core/globals'
# Ruby monkey-patches - should be before almost all else
require_relative 'fastlane_core/core_ext/string'
require_relative 'fastlane_core/core_ext/shellwords'
require_relative 'fastlane_core/analytics/action_completion_context'
require_relative 'fastlane_core/analytics/action_l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/features.rb | Ruby | mit | 41,450 | master | 203 | require_relative 'feature/feature'
FastlaneCore::Feature.register(env_var: 'FASTLANE_ITUNES_TRANSPORTER_USE_SHELL_SCRIPT',
description: 'Use iTunes Transporter shell script') |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/provisioning_profile.rb | Ruby | mit | 41,450 | master | 4,932 | require_relative 'ui/ui'
module FastlaneCore
class ProvisioningProfile
class << self
# @return (Hash) The hash with the data of the provisioning profile
# @example
# {"AppIDName"=>"My App Name",
# "ApplicationIdentifierPrefix"=>["5A997XSAAA"],
# "CreationDate"=>#<DateTime: 2015... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/project.rb | Ruby | mit | 41,450 | master | 21,262 | require_relative 'helper'
require 'xcodeproj'
require_relative './configuration/configuration'
require 'fastlane_core/command_executor'
module FastlaneCore
# Represents an Xcode project
class Project # rubocop:disable Metrics/ClassLength
class << self
# Project discovery
def detect_projects(config)... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/fastlane_pty.rb | Ruby | mit | 41,450 | master | 2,890 | # Source: Mix of https://github.com/fastlane/fastlane/pull/7202/files,
# https://github.com/fastlane/fastlane/pull/11384#issuecomment-356084518 and
# https://github.com/DragonBox/u3d/blob/59e471ad78ac00cb629f479dbe386c5ad2dc5075/lib/u3d_core/command_runner.rb#L88-L96
class StandardError
def exit_status
return -1... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/video_utils.rb | Ruby | mit | 41,450 | master | 7,470 | require "fastlane_core/ui/ui"
# Reference for the MP4/QuickTime container (video atoms/boxes structure): ISO/IEC 14496-12:2022 (base media file format) - defines atoms like moov/trak/tkhd
# - https://observablehq.com/@benjamintoofer/iso-base-media-file-format
# - https://developer.apple.com/documentation/quicktime-fil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/itunes_transporter.rb | Ruby | mit | 41,450 | master | 45,272 | require 'shellwords'
require 'tmpdir'
require 'fileutils'
require 'credentials_manager/account_manager'
require 'securerandom'
require_relative 'features'
require_relative 'helper'
require_relative 'fastlane_pty'
module FastlaneCore
# The TransporterInputError occurs when you passed wrong inputs to the {Deliver::It... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/queue_worker.rb | Ruby | mit | 41,450 | master | 1,676 | require 'thread'
module FastlaneCore
# This dispatches jobs to worker threads and make it work in parallel.
# It's suitable for I/O bounds works and not for CPU bounds works.
# Use this when you have all the items that you'll process in advance.
# Simply enqueue them to this and call `QueueWorker#start`.
cla... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/device_manager.rb | Ruby | mit | 41,450 | master | 14,070 | require 'open3'
require 'plist'
require_relative 'command_executor'
require_relative 'helper'
module FastlaneCore
class DeviceManager
class << self
def all(requested_os_type = "")
return connected_devices(requested_os_type) + simulators(requested_os_type)
end
def runtime_build_os_vers... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/pkg_file_analyser.rb | Ruby | mit | 41,450 | master | 1,619 | require 'rexml/document'
require_relative 'helper'
module FastlaneCore
class PkgFileAnalyser
def self.fetch_app_identifier(path)
xml = self.fetch_distribution_xml_file(path)
return xml.elements['installer-gui-script/product'].attributes['id'] if xml
return nil
end
# Fetches the app pl... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/globals.rb | Ruby | mit | 41,450 | master | 514 | module FastlaneCore
class Globals
def self.captured_output
@captured_output ||= ""
end
class << self
attr_writer(:captured_output)
attr_writer(:capture_output)
attr_writer(:verbose)
end
def self.capture_output?
return nil unless @capture_output
return true
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/pkg_upload_package_builder.rb | Ruby | mit | 41,450 | master | 1,669 | require 'digest/md5'
require 'securerandom'
require_relative 'globals'
require_relative 'ui/ui'
require_relative 'module'
module FastlaneCore
# Builds a package for the pkg ready to be uploaded with the iTunes Transporter
class PkgUploadPackageBuilder
METADATA_FILE_NAME = 'metadata.xml'
attr_accessor :pa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/fastlane_folder.rb | Ruby | mit | 41,450 | master | 2,552 | require_relative 'ui/ui'
module FastlaneCore
class FastlaneFolder
FOLDER_NAME = 'fastlane'
# Path to the fastlane folder containing the Fastfile and other configuration files
def self.path
value ||= "./#{FOLDER_NAME}/" if File.directory?("./#{FOLDER_NAME}/")
value ||= "./.#{FOLDER_NAME}/" if... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/ios_app_identifier_guesser.rb | Ruby | mit | 41,450 | master | 4,847 | require 'credentials_manager/appfile_config'
require_relative 'env'
require_relative 'configuration/configuration'
module FastlaneCore
class IOSAppIdentifierGuesser
APP_ID_REGEX = /var\s*appIdentifier:\s*String\?{0,1}\s*\[?\]?\s*{\s*return\s*\[?\s*"(\s*[a-zA-Z.-]+\s*)"\s*\]?\s*}/
class << self
def gue... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/env.rb | Ruby | mit | 41,450 | master | 203 | module FastlaneCore
class Env
def self.truthy?(env)
return false unless ENV[env]
return false if ["no", "false", "off", "0"].include?(ENV[env].to_s)
return true
end
end
end |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/string_filters.rb | Ruby | mit | 41,450 | master | 1,933 | class String
# Truncates a given +text+ after a given <tt>length</tt> if +text+ is longer than <tt>length</tt>:
#
# 'Once upon a time, in a world far, far away'.truncate(28)
# # => "Once upon a time, in a wo..."
#
# Pass a string or regexp <tt>:separator</tt> to truncate +text+ at a natural break:
#
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/build_watcher.rb | Ruby | mit | 41,450 | master | 9,484 | require 'spaceship/connect_api'
require_relative 'ui/ui'
module FastlaneCore
class BuildWatcherError < StandardError
end
class BuildWatcher
VersionMatches = Struct.new(:version, :builds)
class << self
# @return The build we waited for. This method will always return a build
def wait_for_bu... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/test_parser.rb | Ruby | mit | 41,450 | master | 4,079 | require 'plist'
require 'fastlane/junit_generator'
require_relative 'ui/ui'
require_relative 'print_table'
module FastlaneCore
class TestParser
attr_accessor :data
attr_accessor :file_content
attr_accessor :raw_json
def initialize(path)
path = File.expand_path(path)
UI.user_error!("F... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/cert_checker.rb | Ruby | mit | 41,450 | master | 8,365 | require 'tempfile'
require 'openssl'
require_relative 'features'
require_relative 'helper'
# WWDR Intermediate Certificates in https://www.apple.com/certificateauthority/
WWDRCA_CERTIFICATES = [
{
alias: 'G2',
sha256: '9ed4b3b88c6a339cf1387895bda9ca6ea31a6b5ce9edf7511845923b0c8ac94c',
url: 'https://www.... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/clipboard.rb | Ruby | mit | 41,450 | master | 525 | require 'fastlane_core'
require 'open3'
module FastlaneCore
class Clipboard
def self.copy(content: nil)
return UI.crash!("'pbcopy' or 'pbpaste' command not found.") unless is_supported?
Open3.popen3('pbcopy') { |input, _, _| input << content }
end
def self.paste
return UI.crash!("'pbco... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/command_executor.rb | Ruby | mit | 41,450 | master | 3,479 | require_relative 'ui/ui'
require_relative 'globals'
require_relative 'fastlane_pty'
module FastlaneCore
# Executes commands and takes care of error handling and more
class CommandExecutor
class << self
# Cross-platform way of finding an executable in the $PATH. Respects the $PATHEXT, which lists
# ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/ipa_file_analyser.rb | Ruby | mit | 41,450 | master | 2,919 | require 'open3'
require 'stringio'
require 'zip'
require_relative 'core_ext/cfpropertylist'
require_relative 'ui/ui'
module FastlaneCore
class IpaFileAnalyser
# Fetches the app identifier (e.g. com.facebook.Facebook) from the given ipa file.
def self.fetch_app_identifier(path)
plist = self.fetch_info_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/print_table.rb | Ruby | mit | 41,450 | master | 4,792 | require_relative 'configuration/configuration'
require_relative 'helper'
# Monkey patch Terminal::Table until this is merged
# https://github.com/tj/terminal-table/pull/131
# solves https://github.com/fastlane/fastlane/issues/21852
# loads Terminal::Table first to be able to monkey patch it.
require 'terminal-table'
m... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/keychain_importer.rb | Ruby | mit | 41,450 | master | 6,754 | require_relative 'helper'
require 'open3'
require 'security'
module FastlaneCore
class KeychainImporter
def self.import_file(path, keychain_path, keychain_password: nil, certificate_password: "", certificate_format: nil, skip_set_partition_list: false, output: FastlaneCore::Globals.verbose?)
UI.user_error!... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane_core/lib/fastlane_core/languages.rb | Ruby | mit | 41,450 | master | 978 | module FastlaneCore
module Languages
# These are all the languages which are available to use to upload app metadata and screenshots
# The old format which was used until August 2015 (good old times)
ALL_LANGUAGES_LEGACY = %w[da-DK de-DE el-GR en-AU en-CA en-GB en-US es-ES es-MX fi-FI fr-CA fr-FR id-ID i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.