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 | fastlane/spec/actions_specs/cloc_spec.rb | Ruby | mit | 41,450 | master | 1,592 | describe Fastlane do
describe Fastlane::FastFile do
describe "CLOC Integration" do
it "does run cloc using only default options" do
result = Fastlane::FastFile.new.parse("lane :test do
cloc
end").runner.execute(:test)
expect(result).to eq("/usr/local/bin/cloc --by-fil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/version_bump_podspec_spec.rb | Ruby | mit | 41,450 | master | 12,372 | describe Fastlane do
describe Fastlane::FastFile do
describe "version_podspec_file" do
before do
@version_podspec_file = Fastlane::Helper::PodspecHelper.new
end
it "raises an exception when an incorrect path is given" do
expect do
Fastlane::Helper::PodspecHelper.new('i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/spm_spec.rb | Ruby | mit | 41,450 | master | 18,049 | describe Fastlane do
describe Fastlane::FastFile do
before do
# Force FastlaneCore::CommandExecutor.execute to return command
allow(FastlaneCore::CommandExecutor).to receive(:execute).and_wrap_original do |m, *args|
args[0][:command]
end
end
describe "SPM Integration" do
i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/zip_spec.rb | Ruby | mit | 41,450 | master | 5,038 | describe Fastlane do
describe Fastlane::Actions::ZipAction do
describe "zip" do
it "sets default values for optional include and exclude parameters" do
params = { path: "Test.app" }
action = Fastlane::Actions::ZipAction::Runner.new(params)
expect(action.include).to eq([])
e... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xcodes_spec.rb | Ruby | mit | 41,450 | master | 6,188 | describe Fastlane do
describe Fastlane::FastFile do
describe "xcodes" do
let(:xcode_path) { "/valid/path/to/xcode.app" }
let(:xcode_developer_path) { "#{xcode_path}/Contents/Developer" }
let(:xcodes_binary_path) { "/path/to/bin/xcodes" }
let(:valid_xcodes_version) { "1.1.0" }
let(:ou... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/appledoc_spec.rb | Ruby | mit | 41,450 | master | 23,760 | describe Fastlane do
describe Fastlane::FastFile do
describe "Appledoc Integration" do
it "default use case" do
result = Fastlane::FastFile.new.parse("lane :test do
appledoc(
project_name: 'Project Name',
project_company: 'Company',
input: 'input/dir'
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/appetize_spec.rb | Ruby | mit | 41,450 | master | 4,324 | describe Fastlane do
describe Fastlane::FastFile do
let(:response_string) do
<<-"EOS"
{
"privateKey" : "private_Djksfj",
"publicKey" : "sKdfjL",
"appURL" : "https://appetize.io/app/sKdfjL",
"manageURL" : "https://appetize.io/manage/private_Djksfj"
}
EOS
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/ensure_xcode_version_spec.rb | Ruby | mit | 41,450 | master | 8,017 | describe Fastlane::Actions::EnsureXcodeVersionAction do
describe "matching versions" do
describe "strictly with minor version 8.0" do
let(:different_response) { "Xcode 7.3\nBuild version 34a893" }
let(:matching_response) { "Xcode 8.0\nBuild version 8A218a" }
let(:matching_response_extra_output) ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/dsym_zip_spec.rb | Ruby | mit | 41,450 | master | 3,036 | describe Fastlane do
describe Fastlane::FastFile do
describe "Create dSYM zip" do
xcodebuild_archive = 'MyApp.xcarchive'
before(:each) do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::XCODEBUILD_AR... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/deliver_action_spec.rb | Ruby | mit | 41,450 | master | 872 | describe Fastlane do
describe Fastlane::FastFile do
describe "Deliver Integration" do
it "uses the snapshot path if given" do
test_val = "test_val"
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::SNAPSHOT_SCREENSHOTS_PATH] = test_val
result = Fastlane::FastFile.new.p... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/splunkmint_spec.rb | Ruby | mit | 41,450 | master | 8,898 | describe Fastlane do
describe Fastlane::FastFile do
describe "Splunk MINT integration" do
it "verbosity is set correctly" do
expect(Fastlane::Actions::SplunkmintAction.verbose(verbose: true)).to eq("--verbose")
expect(Fastlane::Actions::SplunkmintAction.verbose(verbose: false)).to eq("")
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/apteligent_spec.rb | Ruby | mit | 41,450 | master | 1,383 | describe Fastlane do
describe Fastlane::FastFile do
describe "apteligent" do
it "raises an error if no dsym source has been found" do
expect do
ENV['DSYM_OUTPUT_PATH'] = nil
ENV['DSYM_ZIP_PATH'] = nil
Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::DSYM_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_commit_spec.rb | Ruby | mit | 41,450 | master | 3,729 | describe Fastlane do
describe Fastlane::FastFile do
describe "git_commit" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "generates the correct git command" do
result = Fastlane::FastFile.new.parse("lane :test do
git_com... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_code_signing_settings_spec.rb | Ruby | mit | 41,450 | master | 13,192 | require "xcodeproj"
# 771D79501D9E69C900D840FA = demo
# 77C503031DD3175E00AC8FF0 = today
describe Fastlane do
describe Fastlane::FastFile do
let(:project_path_old) do
"./fastlane/spec/fixtures/xcodeproj/update-code-signing-settings-old.xcodeproj"
end
let(:unmodified_project_path) do
"./fastla... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/slather_spec.rb | Ruby | mit | 41,450 | master | 14,881 | describe Fastlane do
describe Fastlane::FastFile do
describe "Slather Integration" do
let(:action) { Fastlane::Actions::SlatherAction }
it "works with all parameters" do
allow(Fastlane::Actions::SlatherAction).to receive(:slather_version).and_return(Gem::Version.create('2.8.0'))
source... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/produce_spec.rb | Ruby | mit | 41,450 | master | 517 | describe Fastlane do
describe Fastlane::FastFile do
describe "Produce Integration" do
it "raises an error if non hash is passed" do
expect do
Fastlane::FastFile.new.parse("lane :test do
produce('text')
end").runner.execute(:test)
end.to raise_error("You ha... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/xcode_select_spec.rb | Ruby | mit | 41,450 | master | 1,390 | describe Fastlane do
describe Fastlane::FastFile do
describe "Xcode Select Integration" do
let(:invalid_path) { "/path/to/nonexistent/dir" }
let(:valid_path) { "/valid/path/to/xcode" }
before(:each) do
allow(Dir).to receive(:exist?).with(invalid_path).and_return(false)
allow(Dir... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_remote_branch_spec.rb | Ruby | mit | 41,450 | master | 2,928 | describe Fastlane do
describe Fastlane::FastFile do
directory = "fl_spec_default_remote_branch"
describe "Git Remote Branch Action" do
it "generates the correct git command for retrieving default branch from remote" do
result = Fastlane::FastFile.new.parse("lane :test do
git_remote_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/git_tag_exists_spec.rb | Ruby | mit | 41,450 | master | 2,599 | describe Fastlane do
describe Fastlane::FastFile do
describe "git_tag_exists" do
it "executes the correct git command" do
allow(Fastlane::Actions).to receive(:sh)
.with("git rev-parse -q --verify refs/tags/1.2.0", anything)
.and_return("12345")
result = Fastlane::FastFile... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/update_app_identifier_spec.rb | Ruby | mit | 41,450 | master | 11,048 | require 'xcodeproj'
include(Xcodeproj)
describe Fastlane do
describe Fastlane::FastFile do
describe "Update App Identifier Integration" do
# Variables
let(:test_path) { "/tmp/fastlane/tests/fastlane" }
let(:fixtures_path) { "./fastlane/spec/fixtures/xcodeproj" }
let(:proj_file) { "bundle.... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/pilot_spec.rb | Ruby | mit | 41,450 | master | 2,870 | describe Fastlane do
describe Fastlane::FastFile do
describe "pilot Integration" do
it "can use a generated changelog as release notes" do
values = Fastlane::FastFile.new.parse("lane :test do
# changelog_from_git_commits sets this lane context variable
Actions.lane_context[Shared... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/get_info_plist_value_spec.rb | Ruby | mit | 41,450 | master | 538 | describe Fastlane do
describe Fastlane::FastFile do
describe "get_info_plist" do
let(:plist_path) { "./fastlane/spec/fixtures/plist/Info.plist" }
it "fetches the value from the plist" do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
value = Fastlane::FastFile.n... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/appetize_view_url_generator_spec.rb | Ruby | mit | 41,450 | master | 828 | describe Fastlane do
describe Fastlane::FastFile do
describe "AppetizeViewingUrlGeneratorAction" do
it "no parameters" do
result = Fastlane::FastFile.new.parse("lane :test do
appetize_viewing_url_generator(public_key: '123')
end").runner.execute(:test)
expect(result).to eq... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/clean_cocoapods_cache_spec.rb | Ruby | mit | 41,450 | master | 938 | describe Fastlane do
describe Fastlane::FastFile do
describe "Clean Cocoapods Cache Integration" do
it "default use case" do
result = Fastlane::FastFile.new.parse("lane :test do
clean_cocoapods_cache
end").runner.execute(:test)
expect(result).to eq("pod cache clean --all")... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/last_git_tag_spec.rb | Ruby | mit | 41,450 | master | 910 | describe Fastlane do
describe Fastlane::FastFile do
describe "last_git_tag" do
it "Returns the last git tag" do
result = Fastlane::FastFile.new.parse("lane :test do
last_git_tag
end").runner.execute(:test)
tag_name = %w(git rev-list --tags --max-count=1).shelljoin
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/prompt_spec.rb | Ruby | mit | 41,450 | master | 1,125 | describe Fastlane do
describe Fastlane::FastFile do
describe "prompt" do
it "uses the CI value if necessary" do
# make prompt think we're running in CI mode
expect(FastlaneCore::UI).to receive(:interactive?).with(no_args).and_return(false)
result = Fastlane::FastFile.new.parse("lane... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/github_api_spec.rb | Ruby | mit | 41,450 | master | 20,328 | describe Fastlane do
describe Fastlane::FastFile do
describe "github_api" do
let(:response_body) { File.read("./fastlane/spec/fixtures/requests/github_create_file_response.json") }
let(:user_agent) { 'fastlane-github_api' }
let(:headers) do
{
'Authorization' => 'Basic MTIzNDU2N... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/is_ci_spec.rb | Ruby | mit | 41,450 | master | 536 | describe Fastlane do
describe Fastlane::FastFile do
describe "is_ci" do
it "returns the correct value" do
result = Fastlane::FastFile.new.parse("lane :test do
is_ci
end").runner.execute(:test)
expect(result).to eq(FastlaneCore::Helper.ci?)
end
it "works with a... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/backup_file_spec.rb | Ruby | mit | 41,450 | master | 904 | describe Fastlane do
describe Fastlane::FastFile do
describe "Backup file Integration" do
tmp_path = Dir.mktmpdir
let(:test_path) { "#{tmp_path}/tests/fastlane" }
let(:file_path) { "file.txt" }
let(:backup_path) { "#{file_path}.back" }
let(:file_content) { Time.now.to_s }
befo... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/create_pull_request_spec.rb | Ruby | mit | 41,450 | master | 8,127 | describe Fastlane do
describe Fastlane::FastFile do
describe "create_pull_request" do
let(:response_body) { File.read("./fastlane/spec/fixtures/requests/github_create_pull_request_response.json") }
context 'successful' do
before do
stub_request(:post, "https://api.github.com/repos/f... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/gradle_spec.rb | Ruby | mit | 41,450 | master | 10,804 | describe Fastlane do
describe Fastlane::FastFile do
describe "gradle" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
describe "output controls" do
let(:expected_command) { "#{File.expand_path('README.md').shellescape} tasks -p ." }
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/sigh_spec.rb | Ruby | mit | 41,450 | master | 2,439 | describe Fastlane do
describe Fastlane::FastFile do
describe "sigh Action" do
before do
require 'sigh'
@profile_path = "/tmp/something"
expect(Sigh::Manager).to receive(:start).and_return(@profile_path)
end
it "properly stores the resulting path in the lane environment"... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/increment_build_number_spec.rb | Ruby | mit | 41,450 | master | 4,787 | describe Fastlane do
describe Fastlane::FastFile do
describe "Increment Build Number Integration" do
require 'shellwords'
describe "With agv enabled" do
before(:each) do
allow(Fastlane::Actions::IncrementBuildNumberAction).to receive(:system).with(/agvtool/).and_return(true)
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/oclint_spec.rb | Ruby | mit | 41,450 | master | 6,652 | describe Fastlane do
describe Fastlane::FastFile do
describe "OCLint Integration" do
before :each do
allow(FastlaneCore::FastlaneFolder).to receive(:path).and_return(nil)
end
it "raises an exception when the default compile_commands.json is not present" do
expect do
Fa... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/download_dsyms_spec.rb | Ruby | mit | 41,450 | master | 15,593 | describe Fastlane do
describe Fastlane::FastFile do
describe "download_dsyms" do
# 1 app, 2 trains/versions, 2 builds each
let(:app) { double('app') }
let(:build_resp) { double('build_resp') }
let(:tunes_client) { double('tunes_client') }
let(:version) { double('version') }
le... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/app_store_build_number_spec.rb | Ruby | mit | 41,450 | master | 14,861 | require 'ostruct'
describe Fastlane do
describe Fastlane::FastFile do
describe "app_store_build_number" do
it "orders versions array of integers" do
versions = [3, 5, 1, 0, 4]
result = Fastlane::Actions::AppStoreBuildNumberAction.order_versions(versions)
expect(result).to eq(['0', ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/download_spec.rb | Ruby | mit | 41,450 | master | 1,120 | describe Fastlane do
describe Fastlane::FastFile do
describe "download" do
before do
stub_request(:get, "https://google.com/remoteFile.json").
to_return(status: 200, body: { status: :ok }.to_json, headers: {})
stub_request(:get, "https://google.com/timeout.json").to_timeout
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/install_xcode_plugin_spec.rb | Ruby | mit | 41,450 | master | 963 | describe Fastlane do
describe Fastlane::FastFile do
describe "install_xcode_plugin" do
it "downloads plugin using argument-safe curl invocation" do
tmp_home = Dir.mktmpdir
stub_const('ENV', ENV.to_hash.merge('HOME' => tmp_home))
plugins_path = "#{tmp_home}/Library/Application Suppor... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/spec/actions_specs/bundle_install_spec.rb | Ruby | mit | 41,450 | master | 425 | describe Fastlane do
describe Fastlane::FastFile do
describe "bundle install action" do
it "default use case" do
expect(Fastlane::Actions::BundleInstallAction).to receive(:gemfile_exists?).and_return(true)
result = Fastlane::FastFile.new.parse("lane :test do
bundle_install
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/swift/formatting/Rakefile | Ruby | mit | 41,450 | master | 463 | # frozen_string_literal: true
task(default: %w[setup])
task(setup: [:brew, :lint])
task(:brew) do
raise '`brew` is required. Please install brew. https://brew.sh/' unless system('which brew')
puts('➡️ Brew')
sh('brew bundle check || brew bundle install')
end
task(:lint) do
Dir.chdir('..') do
sh("swift... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane.rb | Ruby | mit | 41,450 | master | 1,739 | require 'fastlane_core'
require 'fastlane/version'
require 'fastlane/features'
require 'fastlane/shells'
require 'fastlane/tools'
require 'fastlane/documentation/actions_list'
require 'fastlane/actions/actions_helper' # has to be before fast_file
require 'fastlane/fast_file'
require 'fastlane/runner'
require 'fastlane... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/assets/custom_action_template.rb | Ruby | mit | 41,450 | master | 3,272 | module Fastlane
module Actions
module SharedValues
[[NAME_UP]]_CUSTOM_VALUE = :[[NAME_UP]]_CUSTOM_VALUE
end
class [[NAME_CLASS]] < Action
def self.run(params)
# fastlane will take care of reading in the parameter and fetching the environment variable:
UI.message("Parameter API... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/lane_manager_base.rb | Ruby | mit | 41,450 | master | 3,479 | module Fastlane
# Base class for all LaneManager classes
# Takes care of all common things like printing the lane description tables and loading .env files
class LaneManagerBase
def self.skip_docs?
Helper.test? || FastlaneCore::Env.truthy?("FASTLANE_SKIP_DOCS")
end
# All the finishing up that n... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/environment_printer.rb | Ruby | mit | 41,450 | master | 10,208 | module Fastlane
class EnvironmentPrinter
def self.output
env_info = get
# Remove sensitive option values
FastlaneCore::Configuration.sensitive_strings.compact.each do |sensitive_element|
env_info.gsub!(sensitive_element, "#########")
end
puts(env_info)
UI.important("T... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/new_action.rb | Ruby | mit | 41,450 | master | 1,760 | module Fastlane
# Guides the new user through creating a new action
module NewAction
def self.run(new_action_name: nil)
name = new_action_name && check_action_name_from_args(new_action_name) ? new_action_name : fetch_name
generate_action(name)
end
def self.fetch_name
puts("Must be low... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/runner.rb | Ruby | mit | 41,450 | master | 15,984 | module Fastlane
class Runner
# Symbol for the current lane
attr_accessor :current_lane
# Symbol for the current platform
attr_accessor :current_platform
# @return [Hash] All the lanes available, first the platform, then the lane
attr_accessor :lanes
def full_lane_name
[current_pla... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/erb_template_helper.rb | Ruby | mit | 41,450 | master | 827 | require 'ostruct'
module Fastlane
class ErbTemplateHelper
require "erb"
def self.load(template_name)
path = "#{Fastlane::ROOT}/lib/assets/#{template_name}.erb"
load_from_path(path)
end
def self.load_from_path(template_filepath)
unless File.exist?(template_filepath)
UI.user_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/fastlane_require.rb | Ruby | mit | 41,450 | master | 3,229 | module Fastlane
class FastlaneRequire
class << self
def install_gem_if_needed(gem_name: nil, require_gem: true)
gem_require_name = format_gem_require_name(gem_name)
# check if it's installed
if gem_installed?(gem_name)
UI.success("gem '#{gem_name}' is already installed") i... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/cli_tools_distributor.rb | Ruby | mit | 41,450 | master | 9,897 | module Fastlane
# This class is responsible for checking the ARGV
# to see if the user wants to launch another fastlane
# tool or fastlane itself
class CLIToolsDistributor
class << self
def running_version_command?
ARGV.include?('-v') || ARGV.include?('--version')
end
def running_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/markdown_table_formatter.rb | Ruby | mit | 41,450 | master | 1,434 | module Fastlane
class MarkdownTableFormatter
# taken from: https://github.com/benbalter/markdown-table-formatter
def initialize(string, header = true)
@doc = string
@header = header
end
# converts the markdown string into an array of arrays
def parse
@table = []
rows = @do... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/command_line_handler.rb | Ruby | mit | 41,450 | master | 1,785 | module Fastlane
class CommandLineHandler
# This method handles command line inputs and properly transforms them to a usable format
# @param [Array] args An array of all arguments (not options)
# @param [Array] args A hash of all options (e.g. --env NAME)
def self.handle(args, options)
lane_param... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/supported_platforms.rb | Ruby | mit | 41,450 | master | 689 | module Fastlane
class SupportedPlatforms
class << self
attr_accessor :extra
attr_reader :default
def extra=(value)
value ||= []
UI.important("Setting '#{value}' as extra SupportedPlatforms")
@extra = value
end
end
@default = [:ios, :mac, :android]
@ext... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/commands_generator.rb | Ruby | mit | 41,450 | master | 14,463 | require 'commander'
require 'fastlane/new_action'
require 'fastlane_core/ui/help_formatter'
HighLine.track_eof = false
module Fastlane
class CommandsGenerator
include Commander::Methods
def self.start
# since at this point we haven't yet loaded commander
# however we do want to log verbose info... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/configuration_helper.rb | Ruby | mit | 41,450 | master | 926 | module Fastlane
class ConfigurationHelper
def self.parse(action, params)
first_element = (action.available_options || []).first
if first_element && first_element.kind_of?(FastlaneCore::ConfigItem)
# default use case
return FastlaneCore::Configuration.create(action.available_options, p... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/lane.rb | Ruby | mit | 41,450 | master | 3,678 | module Fastlane
# Represents a lane
class Lane
attr_accessor :platform
attr_accessor :name
# @return [Array] An array containing the description of this lane
# Each item of the array is one line
attr_accessor :description
attr_accessor :block
# @return [Boolean] Is that a private l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/console.rb | Ruby | mit | 41,450 | master | 630 | require 'irb'
module Fastlane
# Opens an interactive developer console
class Console
def self.execute(args, options)
ARGV.clear
IRB.setup(nil)
workspace = IRB::WorkSpace.new(binding)
@irb = IRB::Irb.new(workspace)
IRB.conf[:MAIN_CONTEXT] = @irb.context
IRB.conf[:PROMPT][:FAS... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/fast_file.rb | Ruby | mit | 41,450 | master | 19,546 | require "rubygems/requirement"
module Fastlane
class FastFile
# Stores all relevant information from the currently running process
attr_accessor :runner
# the platform in which we're currently in when parsing the Fastfile
# This is used to identify the platform in which the lane is in
attr_acces... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/lane_list.rb | Ruby | mit | 41,450 | master | 3,826 | module Fastlane
class LaneList
# Print out the result of `generate`
SWIFT_FUNCTION_REGEX = /\s*func\s*(\w*)\s*\((.*)\)\s*/
SWIFT_DESC_REGEX = /\s*desc\s*\(\s*"(.*)"\s*\)\s*/
def self.output(path)
puts(generate(path))
puts("Execute using `fastlane [lane_name]`".yellow)
end
def sel... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/action.rb | Ruby | mit | 41,450 | master | 5,194 | require 'fastlane/actions/actions_helper'
require 'forwardable'
module Fastlane
class Action
AVAILABLE_CATEGORIES = [
:testing,
:building,
:screenshots,
:project,
:code_signing,
:documentation,
:beta,
:push,
:production,
:source_control,
:notifica... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/features.rb | Ruby | mit | 41,450 | master | 670 | # Use this file as the place to register Feature switches for the fastlane_core project
# FastlaneCore::Feature.register(env_var: 'YOUR_FEATURE_SWITCH_ENV_VAR',
# description: 'Describe what this feature switch controls')
FastlaneCore::Feature.register(env_var: 'FASTLANE_ENABLE_BETA_DELIVER... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/swift_fastlane_api_generator.rb | Ruby | mit | 41,450 | master | 18,001 | require 'fastlane/swift_fastlane_function.rb'
module Fastlane
class SwiftToolDetail
attr_accessor :swift_class
attr_accessor :swift_protocol
attr_accessor :command_line_tool_name
def initialize(command_line_tool_name: nil, swift_class: nil, swift_protocol: nil)
self.command_line_tool_name = co... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/other_action.rb | Ruby | mit | 41,450 | master | 1,026 | module Fastlane
# This class is used to call other actions from within actions
# We use a separate class so that we can easily identify when
# we have dependencies between actions
class OtherAction
attr_accessor :runner
def initialize(runner)
self.runner = runner
end
# Allows the user to... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/action_collector.rb | Ruby | mit | 41,450 | master | 1,235 | module Fastlane
class ActionCollector
def show_message
UI.message("Sending Crash/Success information. Learn more at https://docs.fastlane.tools/#metrics")
UI.message("No personal/sensitive data is sent. Only sharing the following:")
UI.message(launches)
UI.message(@error) if @error
U... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/auto_complete.rb | Ruby | mit | 41,450 | master | 3,134 | require 'fileutils'
module Fastlane
# Enable tab auto completion
class AutoComplete
# This method copies the tab auto completion scripts to the user's home folder,
# while optionally adding custom commands for which to enable auto complete
# @param [Array] options An array of all options (e.g. --custom... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/swift_fastlane_function.rb | Ruby | mit | 41,450 | master | 17,617 | module Fastlane
class SwiftFunction
attr_accessor :function_name
attr_accessor :function_description
attr_accessor :function_details
attr_accessor :return_type
attr_accessor :return_value
attr_accessor :sample_return_value
attr_accessor :param_names
attr_accessor :param_descriptions
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/swift_runner_upgrader.rb | Ruby | mit | 41,450 | master | 11,729 | require 'xcodeproj'
require 'fileutils'
module Fastlane
# current logic:
# - find all groups in existing project
# -- if a group is missing, add it
# --- add all files for group into new group, build target, and compile phase
# - iterate through existing groups
# -- update all files needing updating
# - ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/tools.rb | Ruby | mit | 41,450 | master | 994 | module Fastlane
TOOLS = [
:fastlane,
:pilot,
:spaceship,
:produce,
:deliver,
:frameit,
:pem,
:snapshot,
:screengrab,
:supply,
:cert,
:sigh,
:match,
:scan,
:gym,
:precheck,
:trainer
]
# a list of all the config files we currently expect
TOOL_CO... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/junit_generator.rb | Ruby | mit | 41,450 | master | 1,057 | module Fastlane
class JUnitGenerator
def self.generate(results)
# JUnit file documentation: http://llg.cubic.org/docs/junit/
# And http://nelsonwells.net/2012/09/how-jenkins-ci-parses-and-displays-junit-output/
# And http://windyroad.com.au/dl/Open%20Source/JUnit.xsd
containing_folder = E... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/lane_manager.rb | Ruby | mit | 41,450 | master | 4,941 | require_relative 'lane_manager_base.rb'
module Fastlane
class LaneManager < LaneManagerBase
# @param platform The name of the platform to execute
# @param lane_name The name of the lane to execute
# @param parameters [Hash] The parameters passed from the command line to the lane
# @param A custom Fas... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/swift_lane_manager.rb | Ruby | mit | 41,450 | master | 12,343 | require_relative 'lane_manager_base.rb'
require_relative 'swift_runner_upgrader.rb'
module Fastlane
class SwiftLaneManager < LaneManagerBase
# @param lane_name The name of the lane to execute
# @param parameters [Hash] The parameters passed from the command line to the lane
def self.cruise_lane(lane, par... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/one_off.rb | Ruby | mit | 41,450 | master | 1,560 | module Fastlane
# Call actions without triggering a full lane
class OneOff
def self.execute(args: nil)
action_parameters = {}
action_name = nil
args.each do |current|
if current.include?(":") # that's a key/value which we want to pass to the lane
key, value = current.split("... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/version.rb | Ruby | mit | 41,450 | master | 354 | module Fastlane
VERSION = '2.233.0'.freeze
SUMMARY = "The easiest way to build and release mobile apps.".freeze
DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
MINIMUM_XCODE_RELEASE = "7.0".freeze
RUBOCOP_REQUIREMENT = '1.50.2'.freeze
SUGGESTED_... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/notification/slack.rb | Ruby | mit | 41,450 | master | 2,176 | module Fastlane
module Notification
class Slack
def initialize(webhook_url)
@webhook_url = webhook_url
@client = Faraday.new do |conn|
conn.use(Faraday::Response::RaiseError)
end
end
# Overriding channel, icon_url, icon_emoji and username is only supported in l... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/notification.rb | Ruby | mit | 41,450 | master | 3,308 | module Fastlane
module Actions
class NotificationAction < Action
def self.run(params)
require 'terminal-notifier'
options = params.values
# :message is non-optional
message = options.delete(:message)
# remove nil keys, since `notify` below does not ignore them and in... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/xcodebuild.rb | Ruby | mit | 41,450 | master | 25,038 | # rubocop:disable all
module Fastlane
module Actions
module SharedValues
XCODEBUILD_ARCHIVE ||= :XCODEBUILD_ARCHIVE
XCODEBUILD_DERIVED_DATA_PATH = :XCODEBUILD_DERIVED_DATA_PATH
end
# xcodebuild man page:
# https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/latest_testflight_build_number.rb | Ruby | mit | 41,450 | master | 7,926 | require 'credentials_manager'
module Fastlane
module Actions
module SharedValues
LATEST_TESTFLIGHT_BUILD_NUMBER = :LATEST_TESTFLIGHT_BUILD_NUMBER
LATEST_TESTFLIGHT_VERSION = :LATEST_TESTFLIGHT_VERSION
end
class LatestTestflightBuildNumberAction < Action
def self.run(params)
bui... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/xcode_server_get_assets.rb | Ruby | mit | 41,450 | master | 13,830 | module Fastlane
module Actions
module SharedValues
XCODE_SERVER_GET_ASSETS_PATH = :XCODE_SERVER_GET_ASSETS_PATH
XCODE_SERVER_GET_ASSETS_ARCHIVE_PATH = :XCODE_SERVER_GET_ASSETS_ARCHIVE_PATH
end
class XcodeServerGetAssetsAction < Action
require 'excon'
require 'json'
require '... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/rsync.rb | Ruby | mit | 41,450 | master | 2,475 | module Fastlane
module Actions
module SharedValues
end
class RsyncAction < Action
def self.run(params)
rsync_cmd = ["rsync"]
rsync_cmd << params[:extra]
rsync_cmd << params[:source]
rsync_cmd << params[:destination]
Actions.sh(rsync_cmd.join(" "))
end
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/get_build_number_repository.rb | Ruby | mit | 41,450 | master | 3,418 | module Fastlane
module Actions
module SharedValues
BUILD_NUMBER_REPOSITORY = :BUILD_NUMBER_REPOSITORY
end
class GetBuildNumberRepositoryAction < Action
def self.is_svn?
Actions.sh('svn info')
return true
rescue
return false
end
def self.is_git?
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/xctool.rb | Ruby | mit | 41,450 | master | 1,653 | module Fastlane
module Actions
class XctoolAction < Action
def self.run(params)
UI.important("Have you seen the new 'scan' tool to run tests? https://docs.fastlane.tools/actions/scan/")
unless Helper.test?
UI.user_error!("xctool not installed, please install using `brew install xct... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/splunkmint.rb | Ruby | mit | 41,450 | master | 6,165 | module Fastlane
module Actions
class SplunkmintAction < Action
def self.run(params)
command = []
command << "curl"
command << verbose(params)
command += proxy_options(params)
command += upload_options(params)
command << upload_url
command << upload_pro... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/app_store_connect_api_key.rb | Ruby | mit | 41,450 | master | 6,976 | require 'base64'
require 'spaceship'
module Fastlane
module Actions
module SharedValues
APP_STORE_CONNECT_API_KEY = :APP_STORE_CONNECT_API_KEY
end
class AppStoreConnectApiKeyAction < Action
def self.run(options)
key_id = options[:key_id]
issuer_id = options[:issuer_id]
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/dsym_zip.rb | Ruby | mit | 41,450 | master | 3,514 | require 'plist'
module Fastlane
module Actions
module SharedValues
DSYM_ZIP_PATH = :DSYM_ZIP_PATH
end
class DsymZipAction < Action
def self.run(params)
archive = params[:archive_path]
params[:dsym_path] ||= File.join("#{File.basename(archive, '.*')}.app.dSYM.zip")
ds... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/testflight.rb | Ruby | mit | 41,450 | master | 399 | module Fastlane
module Actions
require 'fastlane/actions/upload_to_testflight'
class TestflightAction < UploadToTestflightAction
#####################################################
# @!group Documentation
#####################################################
def self.description
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/ensure_bundle_exec.rb | Ruby | mit | 41,450 | master | 1,509 | module Fastlane
module Actions
module SharedValues
end
# Raises an exception and stop the lane execution if not using bundle exec to run fastlane
class EnsureBundleExecAction < Action
def self.run(params)
return if PluginManager.new.gemfile_path.nil?
if FastlaneCore::Helper.bund... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/skip_docs.rb | Ruby | mit | 41,450 | master | 1,066 | module Fastlane
module Actions
class SkipDocsAction < Action
def self.run(params)
ENV["FASTLANE_SKIP_DOCS"] = "1"
end
def self.step_text
nil
end
#####################################################
# @!group Documentation
###############################... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/appledoc.rb | Ruby | mit | 41,450 | master | 13,151 | module Fastlane
module Actions
module SharedValues
APPLEDOC_DOCUMENTATION_OUTPUT = :APPLEDOC_DOCUMENTATION_OUTPUT
end
class AppledocAction < Action
ARGS_MAP = {
input: "",
output: "--output",
templates: "--templates",
docset_install_path: "--docset-install-path... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/dotgpg_environment.rb | Ruby | mit | 41,450 | master | 1,732 | module Fastlane
module Actions
module SharedValues
end
class DotgpgEnvironmentAction < Action
def self.run(options)
Actions.verify_gem!('dotgpg')
require 'dotgpg/environment'
UI.message("Reading secrets from #{options[:dotgpg_file]}")
Dotgpg::Environment.new(options... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/adb.rb | Ruby | mit | 41,450 | master | 2,160 | module Fastlane
module Actions
module SharedValues
end
class AdbAction < Action
def self.run(params)
adb = Helper::AdbHelper.new(adb_path: params[:adb_path])
result = adb.trigger(command: params[:command], serial: params[:serial])
return result
end
#############... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/build_android_app.rb | Ruby | mit | 41,450 | master | 364 | module Fastlane
module Actions
require 'fastlane/actions/gradle'
class BuildAndroidAppAction < GradleAction
#####################################################
# @!group Documentation
#####################################################
def self.description
"Alias for the `... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/number_of_commits.rb | Ruby | mit | 41,450 | master | 2,056 | module Fastlane
module Actions
class NumberOfCommitsAction < Action
def self.is_git?
Actions.sh('git rev-parse HEAD')
return true
rescue
return false
end
def self.run(params)
if is_git?
if params[:all]
command = 'git rev-list --all --c... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/set_github_release.rb | Ruby | mit | 41,450 | master | 14,342 | module Fastlane
module Actions
module SharedValues
SET_GITHUB_RELEASE_HTML_LINK = :SET_GITHUB_RELEASE_HTML_LINK
SET_GITHUB_RELEASE_RELEASE_ID = :SET_GITHUB_RELEASE_RELEASE_ID
SET_GITHUB_RELEASE_JSON = :SET_GITHUB_RELEASE_JSON
end
class SetGithubReleaseAction < Action
def self.run(... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/pilot.rb | Ruby | mit | 41,450 | master | 394 | module Fastlane
module Actions
require 'fastlane/actions/upload_to_testflight'
class PilotAction < UploadToTestflightAction
#####################################################
# @!group Documentation
#####################################################
def self.description
... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/capture_ios_screenshots.rb | Ruby | mit | 41,450 | master | 1,421 | module Fastlane
module Actions
module SharedValues
SNAPSHOT_SCREENSHOTS_PATH = :SNAPSHOT_SCREENSHOTS_PATH
end
class CaptureIosScreenshotsAction < Action
def self.run(params)
return nil unless Helper.mac?
require 'snapshot'
Snapshot.config = params
Snapshot::De... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/update_plist.rb | Ruby | mit | 41,450 | master | 3,726 | module Fastlane
module Actions
module SharedValues
end
class UpdatePlistAction < Action
def self.run(params)
require 'xcodeproj'
if params[:plist_path].nil?
UI.user_error!("You must specify a plist path")
end
# Read existing plist file
plist_path ... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/build_and_upload_to_appetize.rb | Ruby | mit | 41,450 | master | 4,852 | module Fastlane
module Actions
class BuildAndUploadToAppetizeAction < Action
def self.run(params)
tmp_path = "/tmp/fastlane_build"
xcodebuild_configs = params[:xcodebuild]
xcodebuild_configs[:sdk] = "iphonesimulator"
xcodebuild_configs[:derivedDataPath] = tmp_path
xc... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/version_bump_podspec.rb | Ruby | mit | 41,450 | master | 4,637 | module Fastlane
module Actions
module SharedValues
PODSPEC_VERSION_NUMBER ||= :PODSPEC_VERSION_NUMBER
end
class VersionBumpPodspecAction < Action
def self.run(params)
podspec_path = params[:path]
UI.user_error!("Could not find podspec file at path #{podspec_path}") unless Fil... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/get_certificates.rb | Ruby | mit | 41,450 | master | 2,400 | module Fastlane
module Actions
module SharedValues
CERT_FILE_PATH = :CERT_FILE_PATH
CERT_CERTIFICATE_ID = :CERT_CERTIFICATE_ID
end
class GetCertificatesAction < Action
def self.run(params)
require 'cert'
return if Helper.test?
begin
# Only set :api_ke... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/backup_xcarchive.rb | Ruby | mit | 41,450 | master | 5,799 | module Fastlane
module Actions
module SharedValues
BACKUP_XCARCHIVE_FILE = :BACKUP_XCARCHIVE_FILE
end
class BackupXcarchiveAction < Action
require 'fileutils'
def self.run(params)
# Get params
xcarchive = params[:xcarchive]
base_destination = params[:destination... |
github | fastlane/fastlane | https://github.com/fastlane/fastlane | fastlane/lib/fastlane/actions/deploygate.rb | Ruby | mit | 41,450 | master | 9,565 | module Fastlane
module Actions
module SharedValues
DEPLOYGATE_URL = :DEPLOYGATE_URL
DEPLOYGATE_REVISION = :DEPLOYGATE_REVISION # auto increment revision number
DEPLOYGATE_APP_INFO = :DEPLOYGATE_APP_INFO # contains app revision, bundle identifier, etc.
end
class DeploygateAction < Action... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.